/* ============================================================
   StreamIT.az — watch.css  (film + serial)
   ============================================================ */

/* ── SHARED ─────────────────────────────────────────────── */
.wpage {
    width: 100%;
    box-sizing: border-box;
    max-width: 1160px;
    margin: calc(var(--nav-h) + 20px) auto 60px;
    padding: 0 16px;
  }
  
  /* Card wrapper */
  .wcard, .ws-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
  }
  
  /* ── PLAYER ─────────────────────────────────────────────── */
  .wplayer {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
  }
  .wplayer iframe {
    position: absolute;
    inset: 0; width: 100%; height: 100%;
    border: 0;
  }
  
  /* Altta gradient — info block'a yumuşaq geçiş */
  .wplayer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,6,13,.8) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
  }
  
  /* No video */
  .no-video {
    position: absolute;
    inset: 0; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px; text-align: center; padding: 24px;
    color: var(--muted);
  }
  .no-video p { font-size: 13px; }
  .no-video-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--accent); color: #fff;
    font-family: var(--font-display); font-size: 12pxx; font-weight: 700;
    padding: 9px 18px; border-radius: 8px;
    text-decoration: none; transition: background var(--ease);
  }
  .no-video-btn:hover { background: var(--accent-hover); }
  
  /* Devtools blok */
  .devtools-block {
    display: none; position: absolute; inset: 0; z-index: 10;
    background: #000; align-items: center; justify-content: center;
    font-size: 15px; color: var(--muted); text-align: center; padding: 24px;
  }
  
  /* ── ANIMASIYALI PLAY DÜYMƏSİ ───────────────────────────── */
  .play-ring {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    z-index: 2;
  }
  .play-ring svg { width: 100%; height: 100%; }
  
  .play-outer {
    fill: none;
    stroke: rgba(255,255,255,.15);
    stroke-width: 2;
  }
  .play-dash {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 100 200;
    stroke-linecap: round;
    transform-origin: center;
    animation: playDash 2.4s ease-in-out infinite alternate;
  }
  .play-inner {
    position: absolute;
    inset: 11px;
    background: rgba(229,9,20,.88);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: playPulse 2s ease-in-out infinite;
  }
  .play-inner::after {
    content: '';
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
  }
  @keyframes playDash {
    0%   { stroke-dasharray: 15 285; stroke-dashoffset: 0; }
    100% { stroke-dasharray: 130 170; stroke-dashoffset: -80; }
  }
  @keyframes playPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(229,9,20,.45); }
    50%     { box-shadow: 0 0 0 14px rgba(229,9,20,0); }
  }
  
  /* ── INFO BLOCK ─────────────────────────────────────────── */
  .winfo {
    padding: 14px 18px 16px;
    border-top: 1px solid var(--border);
  }
  
  .winfo-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  
  .winfo-left { flex: 1; min-width: 0; }
  
  .wfilm-title {
    font-size: clamp(15px, 2.5vw, 22px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.3px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .wmeta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .wmeta-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; color: var(--muted);
  }
  .wmeta-item svg { opacity: .6; flex-shrink: 0; }
  
  /* IMDB badge */
  .imdb-badge {
    display: inline-flex; align-items: center; gap: 3px;
    background: #f5c518; color: #000;
    font-size: 10px; font-weight: 800;
    padding: 2px 7px; border-radius: 4px;
  }
  
  /* Il, müddət */
  .meta-pill {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 10px; color: var(--muted);
  }
  
  /* Mənbə dropdown (sağ) */
  .wsrc-wrap { position: relative; flex-shrink: 0; }
  .wsrc-wrap::after {
    content: '';
    position: absolute; right: 9px; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--muted);
    pointer-events: none;
  }
  .wsrc-sel {
    appearance: none; -webkit-appearance: none;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 9px;
    color: var(--text);
    font-family: var(--font-display); font-size: 12pxx; font-weight: 600;
    padding: 7px 28px 7px 11px;
    cursor: pointer; outline: none;
    transition: border-color var(--ease);
  }
  .wsrc-sel:hover { border-color: rgba(229,9,20,.4); }
  .wsrc-sel:focus { border-color: var(--accent); }
  
  
  /* Xülasə */
  .wdesc {
    font-size: 11px; color: var(--muted); line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Ad blok */
  .watch-ad { border-top: 1px solid var(--border); overflow: hidden; text-align: center; }
  
  /* ══════════════════════════════════════════════════════════
     SERİAL LAYOUT
     ══════════════════════════════════════════════════════════ */
  .ws-page { margin-bottom: 60px; }
  
  .ws-wrap {
    display: grid;
    grid-template-columns: 1fr 238px;
  }
  
  /* Sol */
  .ws-left {
    min-width: 0; display: flex; flex-direction: column;
    border-right: 1px solid var(--border);
  }
  .ws-left .wplayer { border-radius: 0; }
  .ws-left .winfo { border-top: none; border-bottom: 1px solid var(--border); }
  
  /* S1·Bölüm badge */
  .ws-epbadge {
    flex-shrink: 0;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 7px;
    padding: 5px 11px;
    font-size: 10px; font-weight: 700; color: var(--muted);
    white-space: nowrap; align-self: flex-start; margin-top: 2px;
  }
  
  /* Nav bar */
  .ws-nav {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    background: var(--surface2);
    flex-shrink: 0;
  }
  .ws-nb {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 10px; border-radius: 8px;
    border: 1px solid var(--border2); background: var(--surface);
    color: var(--muted); font-family: var(--font);
    font-size: 11px; font-weight: 700;
    text-decoration: none; white-space: nowrap; transition: all .15s;
  }
  .ws-nb:hover:not(.off) { color: var(--text); border-color: rgba(255,255,255,.18); }
  .ws-nb.next { background: var(--accent); border-color: var(--accent); color: #fff; }
  .ws-nb.next:hover:not(.off) { background: var(--accent-hover); }
  .ws-nb.off { opacity: .25; pointer-events: none; }
  .ws-nb-lbl { display: inline; }
  
  .ws-nav-mid { flex: 1; display: flex; justify-content: center; }
  
  /* Sağ panel */
  .ws-panel {
    display: flex; flex-direction: column;
    min-height: 0; background: var(--surface);
  }
  .ws-ph {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
  }
  .ws-ph-t { font-size: 11px; font-weight: 700; color: var(--text); }
  .ws-ph-c {
    background: var(--accent); color: #fff;
    font-size: 9px; font-weight: 800;
    padding: 2px 8px; border-radius: 20px;
  }
  
  /* Sezon tabları */
  .ws-stabs {
    display: flex; gap: 4px; padding: 7px 10px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap; flex-shrink: 0;
  }
  .ws-stab {
    padding: 3px 10px; border-radius: 6px;
    font-size: 10px; font-weight: 700; color: var(--muted);
    border: 1px solid var(--border2); background: var(--bg);
    text-decoration: none; transition: all .15s;
  }
  .ws-stab.active, .ws-stab:hover {
    background: var(--accent); border-color: var(--accent); color: #fff;
  }
  
  /* Epizod siyahısı */
  .ws-eps {
    flex: 1; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
  }
  .ws-eps::-webkit-scrollbar { width: 3px; }
  .ws-eps::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
  
  .ws-ep {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 13px; border-bottom: 1px solid var(--border);
    text-decoration: none; transition: background .1s;
  }
  .ws-ep:last-child { border-bottom: none; }
  .ws-ep:hover { background: var(--surface2); }
  .ws-ep.active { background: var(--surface2); border-left: 2px solid var(--accent); padding-left: 11px; }
  
  .ws-epn {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; flex-shrink: 0;
    background: var(--surface2); color: var(--muted);
    border: 1px solid var(--border2); transition: all .1s;
  }
  .ws-epn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  .ws-ep:hover .ws-epn:not(.on) { background: var(--border2); }
  
  .ws-epname {
    font-size: 11px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1; transition: color .1s;
  }
  .ws-ep:hover .ws-epname,
  .ws-ep.active .ws-epname { color: var(--text); }
  
  /* ══════════════════════════════════════════════════════════
     RESPONSIVE
     ══════════════════════════════════════════════════════════ */
  @media (max-width: 900px) {
    .ws-wrap { grid-template-columns: 1fr 200px; }
  }
  
  @media (max-width: 700px) {
    .wpage {
      margin-top: calc(var(--nav-h) + 10px);
      padding: 0 10px;
    }
    .wcard, .ws-wrap { border-radius: 10px; }
  
    /* Film mobile */
    .winfo-top { flex-wrap: wrap; }
    .wsrc-wrap { order: 3; width: 100%; }
    .wsrc-sel { width: 100%; }
  
    /* Serial mobile — alt-alta */
    .ws-wrap { grid-template-columns: 1fr; }
    .ws-left { border-right: none; }
    .ws-panel {
      border-top: 1px solid var(--border);
      max-height: 280px;
    }
    .ws-eps { max-height: 220px; }
  
    /* Nav labels gizlə */
    .ws-nb-lbl { display: none; }
    .ws-nb { padding: 6px 9px; }
    .winfo { padding: 12px 14px 14px; }
    .wfilm-title { font-size: 16px; }
  }
  
  @media (max-width: 440px) {
    .wpage { padding: 0 8px; }
    .ws-nav { padding: 6px 8px; gap: 4px; }
  }
  
  /* ══════════════════════════════════════════
     XƏTA BİLDİRMƏ
     ══════════════════════════════════════════ */
  .wreport-bar {
    display: flex;
    justify-content: flex-end;
    padding: 8px 14px;
    border-top: 1px solid var(--border);
  }
  .wreport-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--border2);
    border-radius: 7px;
    color: var(--muted);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    cursor: pointer;
    transition: all .15s;
  }
  .wreport-btn:hover {
    border-color: rgba(229,9,20,.5);
    color: var(--accent);
  }
  
  /* Overlay */
  .wreport-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .wreport-overlay.active { display: flex; }
  
  /* Modal */
  .wreport-modal {
    background: #0f0f1a;
    border: 1px solid var(--border2);
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: reportIn .2s ease-out;
  }
  @keyframes reportIn {
    from { opacity: 0; transform: scale(.95) translateY(8px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
  }
  .wreport-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }
  .wreport-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
  }
  .wreport-close {
    background: transparent;
    border: none;
    color: #6b6b88;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color .15s;
  }
  .wreport-close:hover { color: #fff; }
  
  .wreport-body { padding: 16px; }
  .wreport-sub {
    font-size: 11px;
    color: #6b6b88;
    margin-bottom: 10px;
  }
  
  /* Seçim düymələri */
  .wreport-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }
  .wreport-opt {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #16162a;
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 8px 10px;
    color: #9090b0;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .12s;
    text-align: left;
  }
  .wreport-opt:hover {
    border-color: rgba(229,9,20,.4);
    color: #fff;
  }
  .wreport-opt.active {
    background: rgba(229,9,20,.12);
    border-color: var(--accent);
    color: #fff;
  }
  
  /* Qeyd sahəsi */
  .wreport-note {
    width: 100%;
    background: #16162a;
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: #e0e0f0;
    font-family: var(--font);
    font-size: 12px;
    padding: 9px 12px;
    resize: none;
    outline: none;
    transition: border-color .15s;
    margin-bottom: 12px;
  }
  .wreport-note:focus { border-color: rgba(229,9,20,.5); }
  .wreport-note::placeholder { color: #4a4a68; }
  
  /* Alt */
  .wreport-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .wreport-status {
    font-size: 11px;
    flex: 1;
  }
  .wreport-send {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 20px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
  }
  .wreport-send:hover:not(:disabled) { background: var(--accent-hover); }
  .wreport-send:disabled { opacity: .5; cursor: default; }
  
  @media (max-width: 480px) {
    .wreport-options { grid-template-columns: 1fr; }
  }
  
  /* ══════════════════════════════════════════
     TRAİLER
     ══════════════════════════════════════════ */
  .wtrailer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(229,9,20,.1);
    border: 1px solid rgba(229,9,20,.35);
    border-radius: 7px;
    color: var(--accent);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    cursor: pointer;
    margin-right: 8px;
    transition: all .15s;
  }
  .wtrailer-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  
  .wtrailer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .wtrailer-overlay.active { display: flex; }
  
  .wtrailer-modal {
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 14px;
    width: 100%;
    max-width: 760px;
    overflow: hidden;
    animation: reportIn .2s ease-out;
  }
  .wtrailer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .wtrailer-body { padding: 0; }
  .wtrailer-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
  }
  .wtrailer-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  /* ── IMDB + GENRE BADGES ── */
  .wmeta-imdb {
    display: inline-flex;
    align-items: center;
    background: #f5c518;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .3px;
  }
  .wgenres {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 18px 14px;
  }
  .wgenre {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 10px;
    color: var(--muted);
    transition: all .15s;
    cursor: default;
  }
  .wgenre:hover {
    border-color: rgba(229,9,20,.4);
    color: var(--accent);
  }
  /* ── COLLECTION ── */
  .wcollection {
    border-top: 0.5px solid var(--border);
    padding: 14px 16px 16px;
  }
  .wcollection-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .wcollection-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .wcollection-label svg {
    color: var(--accent);
    flex-shrink: 0;
  }
  .wcollection-sep {
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  .wcollection-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -.2px;
  }
  .wcollection-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
    cursor: grab;
    user-select: none;
  }
  .wcollection-scroll.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }
  .wcollection-scroll::-webkit-scrollbar { display: none; }
  .wcollection-card {
    position: relative;
    width: var(--card-w);
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    background: var(--surface);
    transition: transform var(--ease), box-shadow var(--ease);
    text-decoration: none;
  }
  .wcollection-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,.55);
  }
  .wcollection-card img {
    width: 100%;
    height: var(--card-h);
    object-fit: cover;
    display: block;
  }
  .wcollection-noposter {
    width: 100%;
    height: var(--card-h);
    background: var(--surface2);
  }
  .wcollection-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
  }
  .wcollection-card:hover .wcollection-card-overlay { opacity: 1; }
  .wcollection-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  .wcollection-card-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: var(--accent);
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
  }
  /* ── PAYLAŞ DÜYMƏSİ ─────────────────────────────────────── */
  .wshare-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.35);
    border-radius: 7px;
    color: #818cf8;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    cursor: pointer;
    transition: all .15s;
    position: relative;
    margin-right: 6px;
  }
  .wshare-btn:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
  }
  .wshare-btn.copied {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.4);
    color: #4ade80;
  }
  
  /* Kopyalandı tooltip */
  .wshare-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #1f1f26;
    border: 1px solid rgba(99,102,241,.4);
    color: #f0f0f2;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    white-space: nowrap;
    display: flex; align-items: center; gap: 8px;
  }
  .wshare-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }