/* Compact, poster-led catalog layout. */
.card-popularity{color:#f398b3;font-size:11px;font-weight:600;line-height:1.5;margin:5px 0 6px;padding-right:22px}
.card-popularity>span{margin-right:3px}.card-popularity.unavailable{color:#8f8b94;font-weight:400;font-size:10px}
.detail-info .card-popularity{font-size:13px;margin:12px 0}
@media(max-width:600px){.card-popularity{font-size:10px;padding-right:0}.card-popularity.unavailable{font-size:9px}}
:root{--bg:#070707;--panel:#171719;--accent:#e54c78;--line:#303034;--muted:#aaa7ad}
.topbar{height:76px;padding:0 4%;gap:32px;background:#070707;border-bottom:1px solid #202023;position:sticky;top:0}
.brand{font-size:24px}.brand-symbol{background:var(--accent);color:white;border-radius:10px;width:32px;height:34px;font-size:25px;text-align:center;padding-top:3px;margin-right:9px}
.main-nav{gap:25px}.nav-item{font-size:14px;font-weight:700}.nav-item.selected{color:var(--accent)}.nav-item.selected:after{display:none}
.searchbox{border:1px solid #353538;border-radius:30px;background:#1b1b1e;padding:7px 15px}.searchbox input{width:210px;font-size:13px}#language{border:0;background:transparent;font-size:13px}
.hero{margin:26px auto 32px;width:92%;max-width:none;height:420px;min-height:420px;max-height:none;background:linear-gradient(115deg,#2b1821,#141015 50%,#090909);border-radius:20px}
.hero-art{left:32px;top:28px;bottom:28px;width:240px;right:auto;background-size:cover;background-position:center;border-radius:12px;opacity:1;filter:none;box-shadow:0 12px 30px #0006}.hero-art:before,.hero-shade{display:none}
.hero-copy{margin-left:310px;width:calc(100% - 340px);max-width:none;padding:34px 0 100px}.eyebrow{color:var(--accent);font-size:11px;letter-spacing:2px}
.hero h1{font-size:clamp(28px,3.4vw,48px);line-height:1.08;letter-spacing:-1.1px;margin:16px 0;max-width:900px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-copy p{line-height:1.7;font-size:13px;max-width:650px;margin:14px 0 19px;-webkit-line-clamp:2}.hero-meta{font-size:11px}.hero-caption{display:none}
.button{border-radius:24px}.button.primary{background:var(--accent);color:white}.hero .button.primary{background:white;color:#171217}.hero .button.secondary{background:#ffffff0a;border-color:#ffffff25}
.hero-bottom{left:310px;right:30px;bottom:20px;gap:16px}.hero-counter{display:none}.hero-dots{gap:9px;overflow:auto;max-width:80%;padding:4px}.hero-dots button{width:35px;height:48px;flex-shrink:0;border-radius:5px;overflow:hidden;padding:0;background:#30242a;border:2px solid transparent;opacity:.65}.hero-dots button.active{width:35px;background:none;border-color:white;opacity:1}.hero-dots img{width:100%;height:100%;object-fit:cover}.hero-arrows{margin-left:auto}
.browse-content{max-width:1566px;margin:auto;padding:0 4% 30px}.browse-toolbar{padding:0 0 28px;gap:20px}.genre-filters{gap:8px}.genre-filters button{border-radius:8px;background:#161619;border:1px solid #2b2b30;font-size:11px;padding:8px 12px}.genre-filters button.active{background:#3b1c29;border-color:var(--accent);color:#ff90af}#all-tags{border-radius:8px;background:#161619}
.shelf{margin-bottom:38px}.shelf h2{font-size:25px}.shelf-title:before{display:none}.shelf p{margin-left:0;color:#929097}.shelf-head{margin-bottom:18px}.poster-row{grid-auto-columns:calc((100% - 90px)/6);gap:18px}.poster-image{border-radius:10px}.poster-rank{font-size:48px}.card-title{font-size:14px;line-height:1.4;min-height:39px;margin-top:10px}.card-tags{font-size:11px}.poster-badge{font-size:9px}.poster-episodes{font-size:10px}.list-toggle{bottom:14px}.load-more{border:1px solid #3d3037;border-radius:20px;padding:10px 20px;color:#f48fae}
.results-view .poster-row{grid-auto-flow:row;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 18px;overflow:visible}.results-view .shelf-arrows{display:none}
@media(min-width:1600px){.poster-row{grid-auto-columns:calc((100% - 108px)/7)}.results-view .poster-row{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:1100px){.topbar{gap:20px}.main-nav{gap:16px}.searchbox input{width:145px}.brand{font-size:20px}.hero-art{width:210px}.hero-copy{margin-left:270px;width:calc(100% - 300px)}.hero-bottom{left:270px}.hero h1{font-size:34px}.poster-row{grid-auto-columns:calc((100% - 64px)/5);gap:16px}.results-view .poster-row{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:900px){.topbar{height:auto;min-height:112px;padding:14px 4% 0;gap:12px}.main-nav{height:40px}.header-tools{margin-left:auto}.hero{height:400px;min-height:400px}.hero-art{width:185px;left:22px;top:25px;bottom:90px}.hero-copy{margin-left:230px;width:calc(100% - 255px);padding-top:28px}.hero h1{font-size:30px}.hero-bottom{left:22px}.hero-dots{max-width:75%}.poster-row{grid-auto-columns:calc((100% - 48px)/4)}.results-view .poster-row{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.topbar{position:relative;gap:12px}.brand{font-size:19px}.header-tools{display:contents}.searchbox{order:4;width:100%;margin-bottom:14px;padding:8px 14px;display:flex}.searchbox span{position:static;display:block;font-size:23px}.searchbox:focus-within span{display:block}.searchbox input,.searchbox input:focus{width:100%;border:0;padding:0;background:none;font-size:13px}.searchbox input::placeholder{color:#aaa}#language{margin-left:auto;max-width:105px}.main-nav{order:3;height:35px;justify-content:space-between}.hero{margin-top:16px;height:355px;min-height:355px;border-radius:14px}.hero-art{width:115px;height:173px;left:16px;top:22px;bottom:auto}.hero-copy{margin-left:148px;width:calc(100% - 164px);padding:24px 0 75px}.hero h1{font-size:23px;letter-spacing:-.5px;-webkit-line-clamp:3;margin:12px 0}.hero-copy .eyebrow{font-size:8px}.hero-meta{font-size:10px;gap:5px}.hero-meta>span+span:before{margin-right:5px}.hero-copy p{display:none}.hero-actions{position:absolute;left:16px;bottom:86px;gap:8px}.hero-actions .button{font-size:11px;padding:10px 14px}.hero-bottom{left:16px;right:16px;bottom:16px}.hero-dots{max-width:70%}.hero-dots button,.hero-dots button.active{width:32px;height:45px}.browse-toolbar{padding-bottom:24px}.genre-filters{gap:7px}.genre-filters button{font-size:10px;padding:7px 10px}.poster-row{grid-auto-columns:calc((100% - 24px)/3);gap:12px}.results-view .poster-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}.shelf h2{font-size:22px}.card-title{font-size:12px;min-height:34px}.card-tags{font-size:9px}.poster-rank{font-size:37px}.poster-badge{font-size:7px}.poster-episodes{font-size:8px}.shelf{margin-bottom:28px}}
@media(max-width:380px){.results-view .poster-row{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:20px}}

/* Keep the first Trending cards in reach on smaller screens. All categories
   remain available in the select, including any currently selected category. */
@media(min-width:601px) and (max-width:900px){
  .genre-filters>button:nth-of-type(n+5){display:none}
}
@media(max-width:600px){
  .genre-filters{display:flex;flex-wrap:nowrap;width:100%;min-width:0;gap:6px}
  .genre-filters>button:nth-of-type(n+3){display:none}
  .genre-filters>button{padding:7px 9px}
  #all-tags{flex:1;min-width:0;max-width:190px;padding:7px 8px;font-size:10px}
  .browse-toolbar{padding-bottom:18px}
  .hero{height:290px;min-height:290px;margin-top:12px;margin-bottom:20px}
  .hero-art{top:18px;width:101px;height:151px}
  .hero-copy{position:static;margin-left:132px;width:calc(100% - 148px);padding-top:18px}
  .hero h1{font-size:21px;margin:10px 0;line-height:1.08}
  .hero-meta{font-size:9px;gap:4px}
  .hero-actions{left:16px;right:16px;bottom:76px}
  .hero-actions .button{min-height:35px;padding:8px 13px}
  .hero-bottom{bottom:14px}
  .shelf-head{margin-bottom:12px}
}

.poster-placeholder{position:absolute;inset:0;display:grid;place-items:center;padding:18px;text-align:center;color:#bbb0c5;font-size:13px;line-height:1.5}.poster-image img{position:relative;z-index:0}.poster-image:after{z-index:0}

.recommendation{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:16px 0;padding:12px 0;border-top:1px solid #ffffff12;border-bottom:1px solid #ffffff12}.recommendation-title{font-size:12px;color:#d9d2dd}.recommendation-stars{display:inline-flex;gap:4px;direction:ltr;line-height:1}.recommendation-star{position:relative;display:inline-block;width:24px;height:28px;font-family:Arial,sans-serif;font-size:27px;line-height:28px}.star-empty{color:#827887}.star-fill{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:#f7c65a;height:100%}.recommendation-note{font-size:11px;color:#a69baa}@media(max-width:600px){.recommendation{gap:8px 10px}.recommendation-note{flex-basis:100%}}
/* Detail panel reserves a separate, always-visible area for episode selection. */
.detail-dialog{height:fit-content;max-height:90dvh;overflow:hidden;--episode-panel-height:clamp(190px,32dvh,280px)}
#detail-content{height:auto;display:flex;flex-direction:column}
.detail-top{min-height:0;max-height:calc(90dvh - var(--episode-panel-height) - 2px);flex:none;overflow:auto;align-items:start;grid-template-columns:230px 1fr}
.detail-cover img{max-height:360px}.detail-info{padding:26px 30px 18px}.detail-info h2{font-size:26px;margin:8px 30px 12px 0}
.detail-signals{display:flex;align-items:center;gap:10px 28px;flex-wrap:wrap}.detail-signals .card-popularity{margin:0;font-size:12px;padding:0}
.detail-signals .recommendation{border:0;padding:0;margin:0;gap:0}.detail-signals .recommendation-title,.detail-signals .recommendation-note{display:none}
.detail-signals .recommendation-stars{gap:2px}.detail-signals .recommendation-star{font-size:20px;width:19px;height:22px;line-height:22px}
.detail-tags{max-height:52px;overflow:auto;margin:10px 0;gap:5px}.detail-tags span{padding:4px 7px}
.detail-info .detail-description{margin:8px 0;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.detail-info .detail-description.expanded{display:block;overflow:visible}
.description-toggle{font-size:12px;color:#ee91ad}.social-actions{display:flex;justify-content:flex-start;gap:10px 22px;flex-wrap:wrap;margin-top:14px}.social-action{display:flex;align-items:center;justify-content:center;gap:7px;background:transparent;color:#c9c3cf;font-size:12px;padding:7px 3px}.social-action>span{font-size:24px;line-height:1}.social-action.saved{color:var(--accent)}
.detail-dialog .episode-section{height:var(--episode-panel-height);flex:none;min-height:190px;padding:16px 24px;overflow:auto}.episode-heading{margin-bottom:12px}.detail-dialog .episode-grid{max-height:none;overflow:visible}.episode-grid button{padding:10px 2px}
.share-dialog{padding:26px;width:min(440px,94vw);max-height:90dvh;overflow:auto}.share-dialog h2{margin-top:0}.share-dialog p{color:#aaa;font-size:13px}.share-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:22px 0}.share-options a{padding:12px 4px;text-align:center;border:1px solid #453947;border-radius:9px;font-size:12px}.share-dialog label{font-size:12px;color:#aaa}.share-dialog input{width:100%;margin:8px 0 14px;padding:12px;background:#08080b;color:white;border:1px solid #453947;border-radius:8px}.share-dialog .button{width:100%}
@media(max-width:600px){.detail-dialog{height:fit-content;max-height:94dvh}.detail-top{display:block;max-height:calc(94dvh - var(--episode-panel-height) - 2px)}.social-actions{gap:8px 16px}.detail-signals{column-gap:22px}.detail-cover{height:110px}.detail-cover img{height:110px;max-height:none;object-position:center 25%}.detail-info{margin:0;padding:12px 18px}.detail-info h2{font-size:22px;margin-top:5px}.detail-info>.eyebrow{display:none}.detail-dialog .episode-section{padding:14px 18px}.detail-info .detail-description{-webkit-line-clamp:2}.social-action{font-size:11px;gap:5px}.social-action>span{font-size:21px}.detail-tags{max-height:28px}.detail-signals .recommendation-note{display:none}.episode-grid{grid-template-columns:repeat(6,1fr)}}

button.hero-art{padding:0;border:0;cursor:pointer;}
button.hero-art:focus-visible{outline:2px solid var(--accent,#ff0066);outline-offset:4px;}
