/* Desktop browse, mobile-native catalog, shared portrait feed. */
#mobile-header{display:none}.main-nav .nav-item{font-size:17px}.main-nav{gap:22px}.topbar{gap:26px}.shelf-all{border:0;background:none;color:#bcb7c2;font-size:15px;white-space:nowrap;padding:8px}.shelf-all:hover{color:#ff3879}.shelf-head{align-items:center}.home-catalog .home-shelf .poster-row{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:calc((100% - 90px)/6);gap:24px 18px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:16px}.home-shelf .poster-card{scroll-snap-align:start}#genre-filters #all-tags{border:0;background:none;color:#c9c4cf;border-radius:0;padding:8px;font-size:13px}.listing-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0 26px}.listing-heading h1,.listing-heading h2{font-family:inherit;font-size:32px;letter-spacing:normal;margin:12px 0}.listing-heading>span{margin-inline-start:auto;color:#999;font-size:14px}.breadcrumbs{width:100%;color:#888;font-size:14px}.breadcrumbs button{border:0;background:none;color:#aaa;padding:0}.drama-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.drama-row{display:flex;gap:18px;background:#1b191e;border-radius:18px;padding:16px;min-width:0}.drama-cover{position:relative;flex:0 0 132px;aspect-ratio:2/3;border:0;padding:0;overflow:hidden;border-radius:10px;background:#28232f}.drama-cover img{width:100%;height:100%;object-fit:cover}.drama-cover b{position:absolute;bottom:0;left:7px;font-size:56px;font-style:italic;color:#ff3974}.drama-copy{display:flex;flex-direction:column;min-width:0;flex:1;padding:3px 0}.drama-title{border:0;background:none;text-align:start;padding:0;color:#f7f4fa;font-size:20px;line-height:1.3;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.drama-copy p{font-size:13px;line-height:1.6;color:#aaa;margin:12px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.drama-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}.drama-bottom .button{font-size:12px;padding:9px 17px;min-height:0}.drama-bottom .card-popularity{font-size:12px;margin:0}.discover-sort{display:flex;gap:22px;margin-bottom:20px}.discover-sort button{background:none;border:0;color:#999;padding:8px 0;font-size:15px}.discover-sort button[aria-pressed=true]{color:#ff347b;border-bottom:2px solid #ff347b}.listing-shelf .poster-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:row;overflow:visible;gap:20px}.search-tags button{border:1px solid #302c35;background:#17151b;color:#bbb;border-radius:30px;padding:10px 16px;margin:0 8px 10px 0}.search-tags h3{font-size:16px}.search-tags{margin:14px 0 26px}
#feed-paging{display:none}.feed-open #feed-paging{display:flex;position:fixed;top:50%;left:calc(50% + min(23.625vh,215px) + 22px);flex-direction:column;gap:14px;z-index:20}.feed-open #feed-paging button{width:48px;height:48px;border-radius:50%;background:#28252d;color:#fff;border:0;font-size:30px}.feed-open #feed-paging button:disabled{opacity:.3;cursor:not-allowed}.feed-open>footer{display:none}.feed-open #feed-view{display:flex;justify-content:center;padding:22px 0}.feed-open .feed-stage{height:calc(100dvh - 125px);max-height:840px;aspect-ratio:9/16;width:auto;max-width:430px;border-radius:20px;border:1px solid #332b37}.feed-open .mobile-sheet{max-width:480px;left:50%;transform:translateX(-50%)}
@media(min-width:769px) and (max-width:1200px){.main-nav{gap:14px}.main-nav .nav-item{font-size:15px}.topbar{gap:18px}.topbar .brand{font-size:20px}.home-catalog .home-shelf .poster-row{grid-auto-columns:calc((100% - 64px)/5);gap:20px 16px}.drama-cover{flex-basis:105px}.drama-title{font-size:17px}.drama-copy p{-webkit-line-clamp:2}}
@media(max-width:768px){
 body:not(.feed-open)>.topbar{display:none!important}body:not(.feed-open)>#mobile-header{display:block;padding:18px 16px 5px}body[data-browse=account]>#mobile-header{display:none}.mobile-masthead{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;gap:12px;margin-bottom:20px}.mobile-masthead>.brand{justify-self:center;font-size:19px;gap:0;letter-spacing:-.7px}.mobile-masthead>button{border:0;background:#1b191f;border-radius:50%;width:38px;height:38px;padding:9px;color:white}.mobile-masthead svg{width:20px;height:20px}.mobile-masthead .language-trigger span{display:none}.mobile-search-form{display:flex;align-items:center;gap:8px;margin:6px 0 18px}.mobile-search-form label{display:flex;align-items:center;gap:8px;flex:1;min-width:0;background:#19171c;border:1px solid #302c35;border-radius:28px;padding:0 12px;height:46px}.mobile-search-form label>span{font-size:24px;color:#999}.mobile-search-form input{width:100%;min-width:0;border:0!important;outline:none;background:transparent!important;color:#fff;padding:0;font-size:14px}.mobile-search-form>button[type=submit]{height:42px;padding:0 18px;border:0;background:#ff1768;color:#fff;border-radius:24px;font-size:14px;font-weight:700}.mobile-search-form>button[data-search-back]{background:none;border:0;color:white;font-size:32px;padding:0 4px}.browse-content{padding:12px 16px 20px!important}.home-catalog .browse-toolbar,.mobile-search-mode .browse-toolbar{display:none}.discover-catalog .browse-toolbar{padding:4px 0 14px!important}.discover-catalog #genre-filters{display:flex;flex-wrap:nowrap;overflow:hidden;gap:8px;width:100%}.discover-catalog #genre-filters button{display:block;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:1;padding:8px 10px;font-size:11px}.discover-catalog #genre-filters #all-tags{display:none}.discover-catalog #library-count{display:none}.home-catalog .home-shelf .poster-row{display:grid;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - 20px)/3);overflow-x:auto;gap:20px 10px;padding:0 0 12px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.home-shelf .poster-rank{display:none}.home-shelf .poster-badge{display:none}.home-shelf .poster-episodes{font-size:9px}.home-shelf .card-title{font-size:13px;line-height:1.4;min-height:36px}.home-shelf .card-tags{font-size:10px}.home-shelf .card-popularity{font-size:10px}.home-shelf .list-toggle{font-size:16px}.shelf-head h2{font-size:21px}.shelf-head{margin-bottom:14px}.shelf-all{font-size:13px}.home-shelf{margin-bottom:30px}.listing-heading{margin:0 0 18px;gap:8px}.listing-heading h1,.listing-heading h2{font-size:23px}.listing-heading>span{font-size:12px}.discover-catalog .listing-heading{display:none}.listing-shelf .poster-row,.results-view .listing-shelf .poster-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px}.drama-rows{grid-template-columns:1fr;gap:22px}.drama-row{background:none;padding:0;gap:13px;border-radius:0}.drama-cover{flex:0 0 92px;align-self:flex-start}.drama-title{font-size:16px}.drama-copy p{font-size:12px;line-height:1.5;margin:9px 0;-webkit-line-clamp:2}.drama-bottom .button{display:none}.drama-bottom{margin-top:6px}.drama-bottom .card-popularity{font-size:11px}.drama-copy{padding-top:1px}.discover-sort{margin-bottom:18px;gap:22px}.discover-sort button{font-size:14px}.mobile-search-mode .listing-heading h1{display:none}.mobile-search-mode .listing-heading>span{margin:0}.mobile-search-mode .listing-heading{margin-top:12px}.feed-open #feed-view{display:block;padding:0}.feed-open .feed-stage{height:calc(100dvh - 67px - env(safe-area-inset-bottom));max-height:none;width:100%;max-width:none;aspect-ratio:auto;border:0;border-radius:0}.feed-open #feed-paging{display:none}.feed-open .mobile-sheet{max-width:none;left:0;transform:none}.feed-open #mobile-header{display:none}
}
@media(max-width:768px){.search-landing .listing-heading h1{display:block;font-size:22px}.search-landing .listing-heading>span{display:none}}
/* Consistent navigation glyphs and compact feed chrome. */
.chevron-icon{width:20px;height:20px;display:block;flex:none}.chevron-up{transform:rotate(-90deg)}.chevron-down{transform:rotate(90deg)}.shelf-all{display:inline-flex;align-items:center;gap:5px}.shelf-all .chevron-icon{width:18px;height:18px}.feed-open #feed-paging button{display:grid;place-items:center;padding:0}.feed-open #feed-paging .chevron-icon{width:23px;height:23px}.hero-actions .button{font-size:17px;line-height:1.3;min-height:46px;padding:12px 22px;gap:10px}.hero-actions .button>span{font-size:19px}
@media(min-width:769px){.feed-top{display:none}.feed-sound{inset-block-start:16px}}
@media(max-width:768px){
 .feed-top button{display:flex;align-items:center;justify-content:center;padding:9px}.feed-top button svg{width:20px;height:20px;flex:none}.feed-top [data-mobile=language]>span{display:none}.feed-brand{display:inline-flex;align-items:center;white-space:nowrap;font-size:19px;direction:ltr}.feed-brand-mark{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:9px;background:#ff1768;color:#fff;font-size:13px;font-style:normal;margin-inline-end:7px;box-shadow:0 3px 14px #ff17682b}.mobile-search-form input,.mobile-search-form input:focus{font-size:16px}.search-tags h3,.search-tags button{font-size:11px}.search-tags h3{font-weight:500;color:#aaa}.search-tags button{padding:8px 10px}

}

/* Feed loading hints must stay transparent at every viewport width. */
#feed-video .player-loading{inset:44% 12px auto;max-width:none;height:auto;margin:0;padding:8px;background:transparent;border-radius:0;text-shadow:0 1px 5px #000;display:block}.feed-status{background:transparent;text-shadow:0 1px 5px #000;padding:8px}.feed-paused{background:none}
/* Clip both slides to one stable portrait viewport while paging. */
.feed-open #feed-viewport{position:relative;isolation:isolate;overflow:hidden;height:calc(100dvh - 125px);max-height:840px;aspect-ratio:9/16;max-width:430px;border-radius:20px;border:1px solid #332b37;background:#101015}
.feed-open #feed-viewport>.feed-stage{width:100%;height:100%;max-height:none;max-width:none;aspect-ratio:auto;border:0;border-radius:0;will-change:transform}
.feed-slide-preview{position:absolute;inset:0;z-index:12;pointer-events:none;background:#101015;will-change:transform;overflow:hidden;color:#fff}.feed-slide-art{position:absolute;width:100%;height:100%;inset:0;object-fit:contain}.feed-slide-preview .feed-info{bottom:28px}
@media(max-width:768px){.feed-open #feed-viewport{width:100%;max-width:none;height:calc(100dvh - 67px - env(safe-area-inset-bottom));max-height:none;aspect-ratio:auto;border:0;border-radius:0}}

#feed-viewport{user-select:none;-webkit-user-select:none}

/* Keep navigation stationary; every media layer uses the same edge-to-edge crop. */
#feed-viewport>.feed-top{z-index:30;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
#feed-viewport .feed-art,#feed-viewport .feed-slide-art,#feed-viewport #feed-video video{object-fit:cover;object-position:center;width:100%;height:100%;max-width:none;max-height:none}
#feed-viewport #feed-video .video-wrap{width:100%;height:100%;max-width:none;max-height:none;padding:0;margin:0;border:0;border-radius:0;background:transparent}
#feed-viewport .feed-stage:not(.has-video) #feed-video video{opacity:0}
#feed-viewport .feed-stage.has-video #feed-video video{opacity:1}
#feed-viewport .feed-info,#feed-viewport .feed-meta{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}

/* Immersive playback: controls fade together, never leave invisible hit targets. */
.feed-info,.feed-actions,.feed-sound,#feed-seek,.feed-shade,#feed-viewport>.feed-top,.feed-open #mobile-nav{transition:none}
.feed-controls-hidden .feed-info,.feed-controls-hidden .feed-actions,.feed-controls-hidden .feed-sound,.feed-controls-hidden #feed-seek,.feed-controls-hidden .feed-shade,.feed-controls-hidden #feed-viewport>.feed-top,.feed-open.feed-controls-hidden #mobile-nav{opacity:0;visibility:hidden;pointer-events:none;transition:opacity 2s cubic-bezier(.42,0,1,1),visibility 0s linear 2s}
#feed-title{pointer-events:auto;display:block;text-align:start;border:0;padding:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-shadow:inherit;cursor:pointer}
#feed-title:hover{color:#ff82a6}
#feed-paused{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#ff1768d9;border:1px solid #ffffff30;box-shadow:0 6px 28px #0004;font-size:0;pointer-events:none}
#feed-paused[hidden]{display:none}#feed-paused svg{width:32px;height:32px;fill:#fff;margin-inline-start:3px}
@media(prefers-reduced-motion:reduce){.feed-info,.feed-actions,.feed-sound,#feed-seek,.feed-shade,#feed-viewport>.feed-top,.feed-open #mobile-nav{transition:none}}

.feed-controls-hidden #feed-title{pointer-events:none}

/* Navigation overlays full-height media, so fading it reveals video, not a reserved gutter. */
@media(max-width:768px){
 .feed-open #feed-viewport{height:100dvh}
 .feed-open .feed-info{bottom:calc(95px + env(safe-area-inset-bottom))}
 .feed-open #feed-seek{bottom:calc(68px + env(safe-area-inset-bottom))}
 .feed-open .feed-actions{bottom:calc(171px + env(safe-area-inset-bottom))}
}
@media(max-width:768px) and (max-height:700px){.feed-open .feed-actions{bottom:calc(158px + env(safe-area-inset-bottom))}}
/* One handset layout in both orientations; never remount playback on resize. */
#feed-paused{background:transparent;border:0;box-shadow:none;border-radius:0;width:84px;height:84px}
#feed-paused svg{width:80px;height:80px;fill:rgba(255,255,255,.58);stroke:rgba(255,255,255,.58);stroke-width:2;stroke-linejoin:round;margin:0}
.landscape-search{display:none}
@media (pointer:coarse) and (hover:none) and (orientation:landscape) and (max-height:600px){
 body{padding-bottom:0}
 body:not(.feed-open)>.topbar,body.feed-open>.topbar{display:flex!important;height:62px;padding:8px 18px;gap:20px}
 .topbar .brand{font-size:23px;white-space:nowrap}.topbar .brand-symbol{width:36px;height:36px}
 .main-nav{display:flex;gap:20px}.main-nav .nav-item{font-size:17px;padding:4px 0}
 .main-nav [data-view=must],.topbar .searchbox{display:none}
 .header-tools{margin-inline-start:auto;gap:14px}.header-tools #language{font-size:0;gap:0}.header-tools #language svg{width:23px;height:23px}
 .landscape-search{display:grid;place-items:center;background:transparent;border:0;color:inherit;width:36px;height:36px}.landscape-search svg{width:23px;height:23px}
 #mobile-header,#mobile-nav,#feed-viewport>.feed-top{display:none!important}
 .feed-open #feed-view{position:fixed;inset:62px 0 0;display:flex;justify-content:center;padding:0}
 .feed-open #feed-viewport{height:calc(100dvh - 62px);width:auto;max-height:none;max-width:100%;aspect-ratio:9/16;border:0;border-radius:10px}
 .feed-open #feed-video video{object-fit:contain}
 .feed-open .feed-actions{bottom:60px;gap:4px;right:5px}.feed-open .feed-action svg{width:20px;height:20px}.feed-open .feed-action span{font-size:9px}
 .feed-open .feed-info{bottom:23px;padding:8px}.feed-open #feed-title{font-size:15px}.feed-open .feed-meta,.feed-open #feed-budget{font-size:10px;margin:2px 0}
 .feed-open #feed-seek{bottom:5px}.feed-open .feed-sound{top:5px;left:5px;font-size:10px;padding:5px}
 .feed-open #feed-paging{display:flex}
 body.feed-open.feed-controls-hidden .topbar{opacity:0;pointer-events:none;transition:opacity 2s cubic-bezier(.42,0,1,1)}
}
#feed-viewport:fullscreen{height:100dvh!important;width:100vw!important;max-width:none!important;max-height:none!important;border:0;border-radius:0}
#feed-viewport:fullscreen #feed-video video{object-fit:contain}

@media (pointer:coarse) and (hover:none) and (orientation:landscape) and (max-height:600px){
 #mobile-header:has(.mobile-search-form){display:block!important;padding:8px 18px}
 .feed-open #feed-paging{left:calc(50% + (100dvh - 62px)*.28125 + 16px)}
 .feed-open #feed-paging button{width:36px;height:36px}
}

/* A single translucent silhouette, without overlapping fill/stroke edges. */
#feed-paused{top:50%;width:76px;height:76px;text-shadow:none}
#feed-paused svg{width:76px;height:76px;fill:rgba(255,255,255,.48);stroke:none;filter:none}
#feed-paused svg path{fill:inherit;stroke:none}
#feed-landscape-fullscreen{display:none}
@media (pointer:coarse) and (hover:none) and (orientation:landscape) and (max-height:600px){
 /* Controls use the full landscape canvas, not the narrow portrait image. */
 body.feed-open>.topbar{position:fixed;inset:0 0 auto;z-index:40;background:linear-gradient(#0009,transparent);border:0}
 .feed-open #feed-view{inset:0;padding:0;background:#000}
 .feed-open #feed-viewport{width:100%;height:100dvh;max-width:none;aspect-ratio:auto;border-radius:0}
 .feed-open #feed-viewport #feed-video video,.feed-open #feed-viewport .feed-art{object-fit:contain}
 .feed-open .feed-info{inset-inline:24px 180px;bottom:27px;padding:0}
 .feed-open .feed-info h1{font-size:18px;max-width:480px}
 .feed-open #feed-title{font-size:18px}.feed-open .feed-meta{flex-wrap:nowrap;font-size:12px}
 .feed-open #feed-budget{font-size:11px}
 .feed-open .feed-actions{inset-inline-end:16px;bottom:48px;display:grid;grid-template-columns:repeat(2,48px);gap:6px 10px}
 .feed-open .feed-action{width:48px;min-height:32px;padding:0;gap:2px}
 .feed-open .feed-action svg{width:20px;height:20px}.feed-open .feed-gift svg{padding:0;background:none;box-shadow:none}
 .feed-open .feed-sound{top:70px;left:20px}
 .feed-open #feed-paging{display:none}
 .feed-open #feed-landscape-fullscreen{display:block;position:absolute;right:20px;top:70px;z-index:45;border:1px solid #ffffff40;border-radius:20px;padding:8px 14px;background:#202024aa;color:#fff;font:600 13px system-ui;cursor:pointer}
 .feed-open:has(#feed-viewport:fullscreen) #feed-landscape-fullscreen{display:none}
}
/* Let handset Safari receive native page scrolling from the landscape header.
   Keep the video gesture surface independent so swiping still changes dramas. */
@media (pointer:coarse) and (hover:none) and (orientation:landscape) and (max-height:600px){
 body.feed-open{overflow-y:auto;min-height:calc(100lvh + 120px);overscroll-behavior-y:auto}
 body.feed-open>.topbar{touch-action:pan-y}
}

/* Native vertical panning must reach Safari from the video itself, not only
   the header. A sticky canvas keeps playback visible during document scroll. */
@media (pointer:coarse) and (hover:none) and (orientation:landscape) and (max-height:600px){
 .feed-open #feed-view{position:sticky;top:0;bottom:auto;height:100dvh}
 .feed-open #feed-stage,.feed-open #feed-viewport{touch-action:pan-y}
}

/* Keep the document scrollable before rotation, as on Home / Discover.
   The landscape header participates in document layout instead of becoming
   an independent fixed overlay. The player stays in normal document flow. */
@media (pointer:coarse) and (hover:none){
 body.feed-open{overflow-y:auto;overscroll-behavior-y:auto}
}
@media (pointer:coarse) and (hover:none) and (orientation:landscape) and (max-height:600px){
 body.feed-open>.topbar{position:sticky;top:0;bottom:auto;min-height:62px;flex-wrap:nowrap}
 .feed-open #feed-view{position:relative;inset:auto;height:100lvh;margin-top:-62px}
 .feed-open #feed-viewport{height:100lvh}
}

/* Keep all four handset destinations on the landscape navigation row. */
@media (pointer:coarse) and (hover:none) and (orientation:landscape) and (max-height:600px){
 body:not(.feed-open)>.topbar,body.feed-open>.topbar{flex-wrap:nowrap;gap:14px;min-height:62px}
 .topbar .main-nav{order:0;width:auto;min-width:0;height:auto;gap:14px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .topbar .main-nav::-webkit-scrollbar{display:none}
 .topbar .main-nav .nav-item{flex-shrink:0;white-space:nowrap}
 .topbar .main-nav [data-view=myList]{display:block}
 .topbar .header-tools{flex:0 0 auto;gap:10px}
}

/* Use the same measured column count for sizing and catalog supplementation. */
.home-catalog .browse-content{max-width:none}
.home-catalog .home-shelf .poster-row{grid-auto-columns:calc((100% - (var(--home-columns) - 1)*var(--home-gap))/var(--home-columns));column-gap:var(--home-gap)}

/* Skip offscreen card layout and painting while retaining scroll geometry. */
.poster-card{content-visibility:auto;contain-intrinsic-size:auto 300px}.drama-row{content-visibility:auto;contain-intrinsic-size:auto 220px}

/* HotMV identity: familiar play mark, compact wordmark. */
.brand,.auth-brand,.feed-brand,.mobile-boot-brand{direction:ltr;letter-spacing:-.7px}
.brand-symbol,.auth-brand-mark,.feed-brand-mark,.mobile-boot-brand>b{background:linear-gradient(145deg,#ff397f,#ed155e);color:#fff;box-shadow:0 4px 18px #ed155e26}
.brand .brand-symbol{display:inline-grid;place-items:center;padding:0;font-size:23px;line-height:1;width:32px;height:32px;border-radius:10px;flex:none}
.auth-brand>span:last-child{white-space:nowrap}
.footer-brand{gap:0}
@media(max-width:768px){.topbar .brand .brand-symbol{width:28px;height:28px;font-size:20px}}
