/* =========================
   MAIN WATCH APP
========================= */

@keyframes watchFade{

    from{
        opacity:0;
        transform:translateY(8px);
    }

    to{
        opacity:1;
        transform:none;
    }

}


@keyframes skeletonPulse{

    0%, 100%{
        opacity:.5;
    }

    50%{
        opacity:.9;
    }

}




/* =========================
   TOP AREA
========================= */

.watch-top{

    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:20px;

}


.watch-search{

    flex:1;
    max-width:560px;
    height:48px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 16px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    transition:border-color var(--speed) var(--curve), background var(--speed) var(--curve);

}


.watch-search:hover{
    border-color:var(--border-strong);
}


.watch-search:focus-within{
    background:var(--surface-2);
    border-color:var(--accent);
}


.search-icon{
    width:16px;
    height:16px;
    opacity:.55;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}


.search-icon img{
    width:16px;
    height:16px;
    object-fit:contain;
    filter:invert(1);
    opacity:.7;
}


.watch-search input{
    flex:1;
    background:none;
    border:none;
    outline:none;
    color:var(--text);
    font-size:14px;
    font-family:var(--font-body);
}


.watch-search input::placeholder{
    color:var(--muted-dim);
}




/* =========================
   WATCH TABS
========================= */

.watch-tabs{
    display:flex;
    gap:6px;
    flex-shrink:0;
}


.watch-tab{
    padding:0 16px;
    height:36px;
    border-radius:8px;
    border:1px solid var(--border);
    color:var(--muted);
    background:transparent;
    font-size:13px;
    font-weight:500;
    cursor:pointer;
    transition:background var(--speed) var(--curve), color var(--speed) var(--curve), border-color var(--speed) var(--curve);
}


.watch-tab:hover{
    background:var(--surface);
    color:var(--text);
    border-color:var(--border-strong);
}


.watch-tab.active{
    background:var(--surface-2);
    color:var(--text);
    border-color:var(--border-strong);
}

.watch-tab.active::after{
    content:'';
}




/* =========================
   HERO
========================= */


.watch-hero{
    height:420px;
    flex-shrink:0;
    margin-top:24px;
    position:relative;
    overflow:hidden;
    border-radius:14px;
    border:1px solid var(--border);
    background:var(--surface);
}


.hero-background{
    position:absolute;
    inset:0;
}


.hero-background img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.85);
}


.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(10,10,9,.94),
        rgba(10,10,9,.55) 55%,
        rgba(10,10,9,.15)
    );
}


.hero-content{
    position:relative;
    z-index:2;
    padding:44px;
    width:min(860px,74%);
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
}


.hero-content span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 11px;
    width:fit-content;
    border-radius:6px;
    background:var(--surface-2);
    border:1px solid var(--border-strong);
    font-family:var(--font-mono);
    font-size:10.5px;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--accent);
    margin-bottom:18px;
}


.hero-content h1{
    font-family:var(--font-display);
    font-weight:600;
    font-size:48px;
    letter-spacing:-.02em;
    line-height:1.03;
    color:var(--white);
}


.hero-content p{
    margin-top:16px;
    max-width:520px;
    color:var(--muted);
    font-size:14.5px;
    line-height:1.6;
}



#watchHeroMeta{
    display:flex;
    gap:8px;
    margin-top:18px;
}


#watchHeroMeta span{
    margin:0;
    padding:5px 10px;
    background:rgba(242,242,237,.06);
    border:1px solid var(--border);
    border-radius:6px;
    font-family:var(--font-mono);
    font-size:11px;
    color:var(--muted);
    text-transform:none;
    letter-spacing:0;
}



.hero-actions{
    display:flex;
    gap:10px;
    margin-top:26px;
}


.hero-actions button{
    height:44px;
    padding:0 20px;
    border-radius:9px;
    font-weight:600;
    font-size:13.5px;
    cursor:pointer;
    border:1px solid transparent;
    transition:background var(--speed) var(--curve), border-color var(--speed) var(--curve), transform var(--speed) var(--curve);
}


.hero-watch-button{
    background:var(--text);
    color:var(--bg);
}

.hero-watch-button:hover{
    background:var(--accent);
    transform:translateY(-1px);
}


.hero-info-button{
    background:var(--surface-2);
    border-color:var(--border-strong);
    color:var(--text);
}

.hero-info-button:hover{
    background:var(--surface-3);
    border-color:var(--accent);
}


.hero-dots{
    position:absolute;
    bottom:22px;
    right:28px;
    display:flex;
    gap:8px;
    z-index:10;
    align-items:center;
}


.hero-dot{
    width:6px;
    height:6px;
    border-radius:50%;
    background:rgba(242,242,237,.3);
    border:none;
    cursor:pointer;
    transition:width var(--speed) var(--curve), background var(--speed) var(--curve);
    padding:0;
}


.hero-dot.active{
    width:22px;
    border-radius:20px;
    background:var(--accent);
}


.hero-dot:hover{
    background:var(--text);
}




/* =========================
   ROWS
========================= */


.watch-row{
    margin-top:38px;
}

.watch-rows{
    width:100%;
    overflow:hidden;
    margin-top:8px;
}


.row-title h2{
    font-family:var(--font-display);
    font-weight:600;
    font-size:22px;
    letter-spacing:-.01em;
    margin-bottom:14px;
}


.row-wrapper{
    position:relative;
}


.row-scroll{
    display:flex;
    gap:16px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding:4px 0 16px;
    width:100%;
}


.row-scroll::-webkit-scrollbar{
    height:6px;
}

.row-scroll::-webkit-scrollbar-thumb{
    background:var(--border-strong);
    border-radius:20px;
}


.row-scroll.no-scrollbar{
    overflow:hidden;
}


.row-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:5;
    width:36px;
    height:56px;
    border-radius:9px;
    background:var(--sidebar);
    border:1px solid var(--border-strong);
    color:var(--text);
    font-size:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    opacity:0;
    transition:opacity var(--speed) var(--curve), background var(--speed) var(--curve), border-color var(--speed) var(--curve);
}


.row-wrapper:hover .row-arrow{
    opacity:1;
}


.row-arrow:hover{
    background:var(--surface-2);
    border-color:var(--accent);
    color:var(--accent);
}


.row-arrow.left{
    left:-4px;
}


.row-arrow.right{
    right:-4px;
}




/* =========================
   MOVIE CARDS
========================= */


.movie-card{
    flex:0 0 168px;
    cursor:pointer;
    transition:transform var(--speed-slow) var(--curve);
}


.movie-card:hover{
    transform:translateY(-4px);
}


.poster-wrap{
    position:relative;
}


.movie-card img{
    width:100%;
    height:252px;
    object-fit:cover;
    border-radius:10px;
    border:1px solid var(--border);
    display:block;
    transition:border-color var(--speed) var(--curve);
}


.movie-card:hover img{
    border-color:var(--border-strong);
}


.quality-badge{
    position:absolute;
    top:10px;
    left:10px;
    padding:4px 8px;
    border-radius:5px;
    background:var(--sidebar);
    border:1px solid var(--border-strong);
    color:var(--text);
    font-family:var(--font-mono);
    font-size:10px;
    letter-spacing:.02em;
}


.movie-card-info{
    padding:10px 2px 0;
}


.movie-card-info h3{
    font-size:13.5px;
    font-weight:600;
    line-height:1.3;
    height:35px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    text-overflow:ellipsis;
}


.movie-card-info p{
    margin-top:4px;
    color:var(--muted-dim);
    font-family:var(--font-mono);
    font-size:11px;
}




/* =========================
   WATCH PANEL FIX
========================= */


.watch-panel.active{
    width:100%;
    height:100%;
}


.watch-app{
    width:100%;
    height:100%;
    overflow-y:auto;
    overflow-x:hidden;
    padding:32px;
    animation:watchFade var(--speed-slow) var(--curve);
}


.watch-browse-view.hidden,
.watch-details-view.hidden{
    display:none;
}




/* =========================
   FULL-PAGE DETAILS VIEW
========================= */


.watch-details-view{
    width:100%;
    margin:-32px;
    padding-bottom:60px;
    animation:watchFade var(--speed-slow) var(--curve);
}


.details-back-btn{
    position:fixed;
    top:26px;
    left:calc(216px + 26px);
    z-index:40;
    display:flex;
    align-items:center;
    gap:8px;
    height:40px;
    padding:0 16px 0 12px;
    border-radius:9px;
    background:rgba(13,13,12,.72);
    backdrop-filter:blur(8px);
    border:1px solid var(--border-strong);
    color:var(--text);
    font-size:13px;
    font-weight:500;
    cursor:pointer;
    transition:background var(--speed) var(--curve), border-color var(--speed) var(--curve);
}


.details-back-btn:hover{
    background:var(--surface-2);
    border-color:var(--accent);
    color:var(--accent);
}


.details-back-arrow{
    font-size:15px;
}


.details-hero{
    position:relative;
    height:560px;
    overflow:hidden;
}


.details-hero-bg{
    position:absolute;
    inset:0;
}


.details-hero-bg img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.85);
}


.details-hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg, rgba(10,10,9,.2) 0%, rgba(10,10,9,.55) 55%, var(--bg) 100%),
        linear-gradient(90deg, rgba(10,10,9,.85) 0%, rgba(10,10,9,.35) 45%, rgba(10,10,9,.1) 100%);
}


.details-hero-content{
    position:relative;
    z-index:2;
    height:100%;
    max-width:1180px;
    margin:0 auto;
    padding:0 64px;
    display:flex;
    align-items:flex-end;
    gap:32px;
}


.details-poster{
    width:200px;
    height:300px;
    object-fit:cover;
    border-radius:12px;
    border:1px solid var(--border-strong);
    flex-shrink:0;
    box-shadow:0 20px 44px rgba(0,0,0,.5);
    margin-bottom:46px;
}


.details-info{
    padding-bottom:46px;
    max-width:640px;
}


.details-title-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}


.details-info h1{
    font-family:var(--font-display);
    font-weight:600;
    font-size:42px;
    letter-spacing:-.015em;
    line-height:1.05;
    color:var(--white);
}


#detailsMeta{
    display:flex;
    gap:8px;
    margin:16px 0;
    flex-wrap:wrap;
}


#detailsMeta span{
    background:rgba(242,242,237,.08);
    border:1px solid var(--border-strong);
    padding:5px 10px;
    border-radius:6px;
    font-family:var(--font-mono);
    font-size:11px;
    color:var(--text);
}


.details-info p{
    color:var(--muted);
    line-height:1.65;
    font-size:14.5px;
}


.details-genres{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}


.genre-chip{
    padding:5px 11px;
    border-radius:20px;
    background:rgba(242,242,237,.06);
    border:1px solid var(--border-strong);
    font-family:var(--font-mono);
    font-size:10.5px;
    letter-spacing:.02em;
    color:var(--muted);
}


.provider-actions{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:24px;
}


.details-watch{
    height:46px;
    padding:0 26px;
    border-radius:9px;
    background:var(--text);
    color:var(--bg);
    font-weight:600;
    font-size:13.5px;
    border:none;
    cursor:pointer;
    transition:background var(--speed) var(--curve), transform var(--speed) var(--curve);
    flex-shrink:0;
}


.details-watch:hover{
    background:var(--accent);
    transform:translateY(-1px);
}


.details-body{
    max-width:1180px;
    margin:0 auto;
    padding:44px 64px 0;
}


.details-section-title{
    font-family:var(--font-display);
    font-weight:600;
    font-size:20px;
    letter-spacing:-.01em;
    margin-bottom:16px;
}



/* =========================
   WATCHLIST BUTTONS
========================= */

.card-watchlist-btn{
    position:absolute;
    top:10px;
    right:10px;
    width:30px;
    height:30px;
    border-radius:50%;
    background:rgba(10,10,9,.72);
    border:1px solid var(--border-strong);
    color:var(--text);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    backdrop-filter:blur(4px);
    transition:background var(--speed) var(--curve), border-color var(--speed) var(--curve), transform var(--speed) var(--curve);
}


.card-watchlist-btn:hover{
    border-color:var(--accent);
    transform:scale(1.08);
}


.card-watchlist-btn .watchlist-icon-add,
.card-watchlist-btn .watchlist-icon-added{
    font-size:15px;
    font-weight:600;
    line-height:1;
}


.card-watchlist-btn .watchlist-icon-added{
    display:none;
}


.card-watchlist-btn.in-list{
    background:var(--accent);
    border-color:var(--accent);
    color:var(--bg);
}


.card-watchlist-btn.in-list .watchlist-icon-add{
    display:none;
}


.card-watchlist-btn.in-list .watchlist-icon-added{
    display:block;
}


.watchlist-btn{
    flex-shrink:0;
    margin-top:4px;
    width:44px;
    height:44px;
    border-radius:9px;
    background:rgba(242,242,237,.08);
    border:1px solid var(--border-strong);
    color:var(--text);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background var(--speed) var(--curve), border-color var(--speed) var(--curve), color var(--speed) var(--curve);
}


.watchlist-btn:hover{
    border-color:var(--accent);
    background:rgba(242,242,237,.14);
}


.watchlist-btn .watchlist-icon-add,
.watchlist-btn .watchlist-icon-added{
    font-size:17px;
    font-weight:600;
    line-height:1;
}


.watchlist-btn .watchlist-icon-added{
    display:none;
}


.watchlist-btn.in-list{
    background:var(--accent);
    border-color:var(--accent);
    color:var(--bg);
}


.watchlist-btn.in-list .watchlist-icon-add{
    display:none;
}


.watchlist-btn.in-list .watchlist-icon-added{
    display:block;
}



/* =========================
   CONTINUE WATCHING PROGRESS BAR
========================= */


.card-progress{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:4px;
    background:rgba(10,10,9,.6);
}


.card-progress-fill{
    height:100%;
    background:var(--accent);
}



/* =========================
   MY LIST — EMPTY STATE
========================= */

.mylist-empty{
    margin-top:60px;
    text-align:center;
    color:var(--muted);
    font-size:14px;
    line-height:1.6;
}


.mylist-empty strong{
    color:var(--accent);
    font-weight:600;
}



/* =========================
   PROVIDER SELECTOR
========================= */


.provider-selector{
    position:relative;
    width:280px;
}


.provider-label{
    font-family:var(--font-mono);
    font-size:10.5px;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--muted-dim);
    margin-bottom:8px;
}


.provider-current{
    width:100%;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    border-radius:9px;
    background:var(--surface-2);
    border:1px solid var(--border-strong);
    color:var(--text);
    font-size:13.5px;
    cursor:pointer;
    transition:border-color var(--speed) var(--curve), background var(--speed) var(--curve);
}


.provider-current:hover{
    border-color:var(--accent);
    background:var(--surface-3);
}


.provider-arrow{
    opacity:.6;
    transition:transform var(--speed) var(--curve);
}


.provider-dropdown{
    position:absolute;
    bottom:calc(100% + 8px);
    top:auto;
    width:100%;
    background:var(--sidebar);
    border:1px solid var(--border-strong);
    border-radius:10px;
    overflow:hidden;
    opacity:0;
    visibility:hidden;
    transform:translateY(6px);
    transition:
        opacity var(--speed) var(--curve),
        transform var(--speed) var(--curve),
        visibility var(--speed);
    z-index:30;
    max-height:280px;
    overflow-y:auto;
}


.provider-dropdown.open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}


.provider-item{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 16px;
    background:none;
    color:var(--text);
    font-size:13px;
    border:none;
    cursor:pointer;
    transition:background var(--speed) var(--curve);
}


.provider-item:hover{
    background:var(--surface-2);
}


.provider-item.selected{
    background:var(--accent-dim);
    color:var(--accent);
}




/* =========================
   EPISODE PICKER
========================= */

.episode-picker{
    margin-bottom:44px;
}


.episode-picker.hidden{
    display:none;
}


.episode-picker-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}


.episode-picker-top .details-section-title{
    margin-bottom:0;
}


.season-selector{
    position:relative;
    width:220px;
}


.episode-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}


.episode-loading{
    color:var(--muted-dim);
    font-size:13px;
    padding:16px 2px;
}


.episode-row{
    display:flex;
    align-items:center;
    gap:14px;
    width:100%;
    text-align:left;
    padding:10px;
    border-radius:10px;
    background:var(--surface);
    border:1px solid var(--border);
    cursor:pointer;
    transition:background var(--speed) var(--curve), border-color var(--speed) var(--curve);
}


.episode-row:hover{
    background:var(--surface-2);
    border-color:var(--border-strong);
}


.episode-row.active{
    border-color:var(--accent);
    background:var(--accent-dim);
}


.episode-still{
    position:relative;
    flex-shrink:0;
    width:132px;
    height:74px;
    border-radius:7px;
    overflow:hidden;
    background:var(--surface-3);
}


.episode-still img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}


.episode-num{
    position:absolute;
    bottom:5px;
    left:5px;
    padding:2px 7px;
    border-radius:5px;
    background:rgba(10,10,9,.78);
    border:1px solid var(--border-strong);
    font-family:var(--font-mono);
    font-size:10px;
    color:var(--text);
}


.episode-info{
    min-width:0;
    flex:1;
}


.episode-info h4{
    font-size:13.5px;
    font-weight:600;
    color:var(--text);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}


.episode-info p{
    margin-top:4px;
    font-size:12px;
    line-height:1.5;
    color:var(--muted);
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}


.episode-row-skeleton{
    height:96px;
    border-radius:10px;
    background:var(--surface);
    border:1px solid var(--border);
    animation:skeletonPulse 1.4s ease-in-out infinite;
}



/* =========================
   CAST ROW
========================= */


.cast-section{
    margin-bottom:44px;
}


.cast-section.hidden{
    display:none;
}


.cast-row{
    display:flex;
    gap:18px;
    overflow-x:auto;
    padding-bottom:8px;
}


.cast-row::-webkit-scrollbar{
    height:6px;
}

.cast-row::-webkit-scrollbar-thumb{
    background:var(--border-strong);
    border-radius:20px;
}


.cast-card{
    flex:0 0 108px;
    text-align:center;
}


.cast-card img{
    width:108px;
    height:108px;
    object-fit:cover;
    border-radius:50%;
    border:1px solid var(--border-strong);
    display:block;
    margin-bottom:10px;
    background:var(--surface-2);
}


.cast-card h4{
    font-size:12.5px;
    font-weight:600;
    line-height:1.3;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}


.cast-card p{
    margin-top:2px;
    font-size:11px;
    color:var(--muted-dim);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}


.cast-skeleton{
    flex:0 0 108px;
    text-align:center;
}


.cast-skeleton-photo{
    width:108px;
    height:108px;
    border-radius:50%;
    background:var(--surface-2);
    margin-bottom:10px;
    animation:skeletonPulse 1.4s ease-in-out infinite;
}



/* =========================
   MORE LIKE THIS
========================= */


.related-section{
    margin-bottom:12px;
}


.related-section.hidden{
    display:none;
}



/* =========================
   SKELETON LOADERS (rows)
========================= */


.skeleton-row .row-title h2{
    display:none;
}


.skeleton-line{
    height:12px;
    border-radius:5px;
    background:var(--surface-2);
    animation:skeletonPulse 1.4s ease-in-out infinite;
}


.skeleton-line.title{
    width:180px;
    height:20px;
    margin-bottom:14px;
}


.skeleton-line.short{
    width:60%;
    margin-top:8px;
}


.skeleton-card{
    flex:0 0 168px;
}


.skeleton-poster{
    width:100%;
    height:252px;
    border-radius:10px;
    background:var(--surface-2);
    border:1px solid var(--border);
    animation:skeletonPulse 1.4s ease-in-out infinite;
}



/* =========================
   PLAYER
========================= */


.player-modal{
    position:fixed;
    inset:0;
    z-index:200;
    background:rgba(6,6,5,.85);
    backdrop-filter:blur(12px);
    display:flex;
    align-items:center;
    justify-content:center;
}


.player-modal.hidden{
    display:none;
}


.player-box{
    width:min(1040px,95%);
    background:#000;
    border-radius:14px;
    overflow:hidden;
    border:1px solid var(--border-strong);
    position:relative;
}


.player-header{
    padding:20px 90px 20px 26px;
    display:flex;
    align-items:center;
    min-height:64px;
    position:relative;
    z-index:1;
}


.player-header h2{
    font-family:var(--font-display);
    font-weight:600;
    font-size:22px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width:80%;
}


.player-frame{
    aspect-ratio:16/9;
}


.player-frame iframe{
    width:100%;
    height:100%;
    border:0;
}


.player-fullscreen,
.player-close{
    position:absolute;
    top:16px;
    width:36px;
    height:36px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--surface-2);
    border:1px solid var(--border-strong);
    color:var(--text);
    cursor:pointer;
    transition:background var(--speed) var(--curve), border-color var(--speed) var(--curve);
    z-index:20;
}


.player-fullscreen{
    right:64px;
}


.player-close{
    right:16px;
}


.player-fullscreen:hover,
.player-close:hover{
    background:var(--surface-3);
    border-color:var(--accent);
    color:var(--accent);
}


/* =========================
   MOBILE — TABLET (≤900px)
========================= */

@media(max-width:900px){

    .watch-app{
        padding:20px;
    }

    .watch-top{
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }

    .watch-tabs{
        width:100%;
    }

    .watch-tab{
        flex:1;
        text-align:center;
    }

    .watch-hero{
        height:380px;
    }

    .hero-content{
        padding:26px;
        width:100%;
    }

    .hero-content h1{
        font-size:32px;
    }

    .movie-card{
        flex:0 0 140px;
    }

    .movie-card img{
        height:210px;
    }

    .skeleton-card{
        flex:0 0 140px;
    }

    .skeleton-poster{
        height:210px;
    }


    .watch-details-view{
        margin:-20px;
    }

    .details-back-btn{
        left:20px;
    }

    .details-hero{
        height:auto;
        padding-top:70px;
    }

    .details-hero-content{
        flex-direction:column;
        align-items:flex-start;
        padding:0 28px 32px;
        gap:20px;
    }

    .details-poster{
        width:140px;
        height:210px;
        margin-bottom:0;
    }

    .details-info{
        padding-bottom:0;
        max-width:100%;
    }

    .details-info h1{
        font-size:30px;
    }

    .details-body{
        padding:32px 28px 0;
    }

    .episode-still{
        width:100px;
        height:58px;
    }

}


/* =========================
   MOBILE — PHONE (≤600px)
========================= */

@media(max-width:600px){

    .watch-app{
        padding:14px;
    }

    /* --- top / search / tabs --- */

    .watch-search{
        height:44px;
    }

    .watch-tabs{
        gap:6px;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .watch-tabs::-webkit-scrollbar{
        display:none;
    }

    .watch-tab{
        flex:0 0 auto;
        padding:0 14px;
        white-space:nowrap;
    }

    /* --- hero --- */

    .watch-hero{
        height:auto;
        min-height:0;
        margin-top:16px;
        border-radius:12px;
    }

    .hero-background{
        position:relative;
        height:220px;
    }

    .hero-overlay{
        background:linear-gradient(
            180deg,
            rgba(10,10,9,.15),
            rgba(10,10,9,.55) 70%,
            var(--surface) 100%
        );
    }

    .hero-content{
        position:relative;
        padding:18px 16px 22px;
        justify-content:flex-start;
        margin-top:-64px;
    }

    .hero-content span{
        font-size:10px;
        padding:4px 9px;
        margin-bottom:12px;
    }

    .hero-content h1{
        font-size:24px;
        line-height:1.1;
    }

    .hero-content p{
        font-size:13px;
        max-width:100%;
        display:-webkit-box;
        -webkit-line-clamp:3;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    #watchHeroMeta{
        flex-wrap:wrap;
        margin-top:12px;
    }

    .hero-actions{
        margin-top:18px;
        gap:8px;
    }

    .hero-actions button{
        flex:1;
        height:42px;
        padding:0 12px;
        font-size:12.5px;
    }

    .hero-dots{
        bottom:auto;
        top:200px;
        right:16px;
    }

    /* --- rows / cards --- */

    .watch-row{
        margin-top:26px;
    }

    .row-title h2{
        font-size:18px;
        margin-bottom:10px;
    }

    .row-scroll{
        gap:10px;
        scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling:touch;
    }

    .movie-card{
        flex:0 0 118px;
        scroll-snap-align:start;
    }

    .movie-card img{
        height:177px;
        border-radius:8px;
    }

    .movie-card-info h3{
        font-size:12px;
        height:32px;
    }

    .skeleton-card{
        flex:0 0 118px;
    }

    .skeleton-poster{
        height:177px;
        border-radius:8px;
    }

    /* row arrows rely on :hover, which touch devices never trigger —
       hide them here rather than leave dead buttons on screen */
    .row-arrow{
        display:none;
    }

    .card-watchlist-btn{
        width:26px;
        height:26px;
        top:8px;
        right:8px;
    }

    .card-watchlist-btn .watchlist-icon-add,
    .card-watchlist-btn .watchlist-icon-added{
        font-size:13px;
    }


    /* --- full page details --- */

    .watch-details-view{
        margin:-14px;
        padding-bottom:40px;
    }

    .details-back-btn{
        top:14px;
        left:14px;
        height:36px;
        padding:0 12px 0 10px;
        font-size:12px;
    }

    .details-hero{
        height:auto;
        padding-top:60px;
    }

    .details-hero-content{
        flex-direction:column;
        align-items:flex-start;
        padding:0 18px 24px;
        gap:14px;
    }

    .details-poster{
        width:104px;
        height:156px;
        border-radius:8px;
    }

    .details-info h1{
        font-size:22px;
        line-height:1.15;
    }

    .details-title-row{
        gap:10px;
    }

    .watchlist-btn{
        width:38px;
        height:38px;
    }

    #detailsMeta{
        margin:10px 0;
        gap:6px;
    }

    #detailsMeta span{
        font-size:10px;
        padding:4px 8px;
    }

    .details-info p{
        font-size:13px;
    }

    .genre-chip{
        font-size:10px;
        padding:4px 9px;
    }

    .provider-actions{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
        margin-top:18px;
    }

    .provider-selector{
        width:100%;
    }

    .details-watch{
        width:100%;
        height:48px;
    }

    .details-body{
        padding:24px 18px 0;
    }

    .details-section-title{
        font-size:17px;
    }

    .episode-picker{
        margin-bottom:32px;
    }

    .episode-picker-top{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .season-selector{
        width:100%;
    }

    .episode-row{
        gap:10px;
        padding:8px;
    }

    .episode-still{
        width:84px;
        height:50px;
    }

    .episode-info h4{
        font-size:12.5px;
    }

    .episode-info p{
        font-size:11px;
        -webkit-line-clamp:1;
    }

    .cast-section,
    .related-section{
        margin-bottom:32px;
    }

    .cast-card,
    .cast-skeleton{
        flex:0 0 84px;
    }

    .cast-card img,
    .cast-skeleton-photo{
        width:84px;
        height:84px;
    }

    /* --- player --- */

    .player-modal{
        padding:0;
        align-items:flex-end;
    }

    .player-box{
        width:100%;
        border-radius:16px 16px 0 0;
    }

    .player-header{
        padding:16px 76px 14px 16px;
        min-height:52px;
    }

    .player-header h2{
        font-size:16px;
        max-width:100%;
    }

    .player-fullscreen,
    .player-close{
        width:32px;
        height:32px;
        top:12px;
    }

    .player-fullscreen{
        right:52px;
    }

    .player-close{
        right:12px;
    }

}