@font-face {
  font-family: "Inter Variable";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0a0b;
  --surface: #151214;
  --raised: #1e191c;
  --line: #2d252a;
  --text: #faf6f7;
  --muted: #bcb2b7;
  --red: #d81836;
  --accent: #ff5270;
  --gap: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Inter Variable", Inter, Arial, sans-serif; }
img { display: block; width: 100%; }
svg { display: block; width: 1em; height: 1em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 750; line-height: 1.12; letter-spacing: -.042em; }
:focus-visible { outline: 2px solid #ff8ba0; outline-offset: 4px; }
.container { width: min(100%, 1552px); padding-inline: clamp(17px, 4vw, 64px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; transform: translateY(-200%); top: 10px; left: 12px; background: var(--surface); border-radius: 8px; padding: 9px 12px; }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid #2b2226; background: #100d10; }
.header-inner { min-height: 65px; display: flex; align-items: center; gap: clamp(16px, 4vw, 62px); }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 790; letter-spacing: -.065em; white-space: nowrap; }
.brand img { width: 35px; height: 35px; border-radius: 10px; box-shadow: 0 3px 18px #d8183640; }
.brand small { margin-left: 2px; padding: 3px 5px; border: 1px solid #e04c686e; border-radius: 4px; color: #ffa5b4; font-size: 8px; font-weight: 750; letter-spacing: .12em; vertical-align: 3px; }
.header-nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(13px, 2.3vw, 33px); }
.header-nav a, .footer-inner nav a, .header-search { color: var(--muted); font-size: 13px; font-weight: 570; white-space: nowrap; }
.header-nav a { position: relative; display: flex; align-items: center; min-height: 65px; }
.header-nav a:hover, .header-nav a[aria-current], .header-search:hover, .footer-inner nav a:hover { color: var(--text); }
.header-nav a[aria-current]::after { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); content: ""; }
.header-search { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 9px 1px; border: 0; background: transparent; }
.header-search svg { width: 18px; height: 18px; }

.hero { --hero-height: clamp(420px, 37vw, 570px); position: relative; isolation: isolate; overflow: hidden; background: #170e13; }
.hero-slide { min-height: var(--hero-height); display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; }
.hero-slide.is-outgoing { position: absolute; inset: 0; }
.hero-image-link, .hero-image-link img, .hero-slide::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image-link { z-index: -2; }
.hero-image-link img { object-fit: cover; object-position: center 48%; }
.hero-slide::after { z-index: -1; content: ""; pointer-events: none; background: linear-gradient(90deg,#0b080cf5 0%,#100b11de 20%,#110c14a3 41%,#110c140d 71%), linear-gradient(0deg,var(--bg) 0%,#0b0a0b30 26%,transparent 55%); }
.hero-copy { position: relative; z-index: 0; padding-block: 40px 75px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.feature-label { display: inline-flex; align-items: center; gap: 7px; color: #ffb5c0; background: #49132294; border: 1px solid #ff55785c; padding: 4px 9px; border-radius: 4px; font-size: 10px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.feature-label::before { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; content: ""; }
.hero h1, .hero h2 { max-width: 8em; margin-top: 16px; font-size: clamp(49px, 6.3vw, 94px); font-weight: 820; line-height: .96; letter-spacing: -.075em; text-wrap: balance; overflow-wrap: anywhere; }
.hero h1 a:hover, .hero h2 a:hover { color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: #f0dfe6; font-size: 13px; font-weight: 630; }
.hero-meta span { color: var(--accent); }
.hero-description { margin-top: 10px; max-width: 45ch; color: #ddcdd5; font-size: 14px; line-height: 1.65; }
.button { display: inline-flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 9px 15px; min-height: 42px; font-size: 13px; font-weight: 740; line-height: 1.2; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s; }
.primary { background: linear-gradient(115deg,#de1b38,#be102d); color: #fff; border-color: #f4738960; box-shadow: 0 4px 18px #d8183639; }
.primary:hover { background: linear-gradient(115deg,#e21e3a,#c81431); box-shadow: 0 7px 21px #d818365d; transform: translateY(-2px); }
.secondary { color: var(--text); background: var(--surface); border-color: #47363e; }
.secondary:hover { border-color: var(--accent); background: var(--raised); }
.feature-watch { gap: 10px; margin-top: 22px; padding-inline: 20px; min-height: 47px; font-size: 14px; }
.feature-watch svg { width: 16px; height: 16px; }
.hero-controls { position: absolute; right: max(clamp(17px,4vw,64px), calc((100vw - 1424px) / 2)); bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.icon-button { width: 35px; height: 35px; display: grid; place-items: center; padding: 0; border: 1px solid #55434d; border-radius: 50%; background: #1a141ad9; color: var(--text); transition: background .2s, border-color .2s; }
.icon-button svg { width: 19px; height: 19px; }
.icon-button:hover:not(:disabled) { background: #3a1c28; border-color: var(--accent); }
.icon-button:disabled { opacity: .34; cursor: default; }
.hero-pages { display: flex; align-items: center; gap: 2px; }
.hero-pages button { width: 22px; height: 29px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.hero-pages button::before { width: 7px; height: 6px; border-radius: 5px; background: #ae929e; content: ""; transition: background .2s, width .2s; }
.hero-pages button[aria-pressed="true"]::before { width: 17px; background: #ff4967; }
.hero[data-active] .hero-slide:not([hidden], .is-outgoing) { z-index: 1; animation: hero-enter .6s ease both; }
@keyframes hero-enter { from { opacity: 0; } to { opacity: 1; } }

.home-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); padding-block: 23px 64px; }
.shelf { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); scroll-margin-top: 20px; }
.section-heading { min-height: 33px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.section-heading h2 { font-size: clamp(22px, 2.15vw, 32px); }
.shelf-title { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.shelf-note { color: var(--muted); font-size: 12px; }
.rail-controls { display: flex; gap: 7px; }
.rail-controls .icon-button { width: 31px; height: 31px; }
.poster-rail, .video-grid { display: grid; gap: var(--gap); }
.poster-rail { grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * var(--gap)) / 6); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #513740 transparent; padding-block: 3px 7px; }
.poster-rail article { scroll-snap-align: start; }
.video-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.video-card { min-width: 0; position: relative; }
.poster-link { display: block; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2 / 3; background: #20191e; border-radius: 10px; border: 1px solid #392c34; transition: border-color .2s, box-shadow .2s; }
.poster-link::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(0deg,#0f0a10f5 0%,#130d16d1 13%,#17101965 36%,transparent 55%); }
.poster-image { height: 100%; object-fit: cover; transition: transform .45s ease; }
.poster-link:hover, .poster-link:focus-visible { border-color: #e04c68; box-shadow: 0 5px 25px #15070c88; }
.poster-link:hover .poster-image { transform: scale(1.045); }
.poster-caption { z-index: 1; position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 11px; }
.poster-caption > span { color: #ffd5df; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; font-weight: 720; }
.poster-caption h3 { font-size: clamp(14px, 1.35vw, 20px); line-height: 1.15; overflow-wrap: anywhere; }
.poster-open { position: absolute; z-index: 2; right: 8px; top: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #180f18cc; border: 1px solid #ffd5df64; opacity: 0; transition: opacity .2s; }
.poster-link:hover .poster-open, .poster-link:focus-visible .poster-open { opacity: 1; }

.search-dialog { width: min(520px, calc(100% - 32px)); max-height: 78vh; margin: 70px auto auto; padding: 17px; color: var(--text); background: var(--surface); border: 1px solid #483740; border-radius: 12px; }
.search-dialog::backdrop { background: #0b0a0bd9; }
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.search-heading h2 { font-size: 21px; }
.search-heading .icon-button { font-size: 23px; line-height: 1; }
.search-box { display: flex; gap: 9px; align-items: center; background: var(--bg); border: 1px solid #483740; padding: 5px 12px; border-radius: 9px; }
.search-box:focus-within { border-color: var(--accent); }
.search-box > svg { width: 19px; height: 19px; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; height: 37px; outline: none; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: var(--muted); }
.search-message, .search-results { margin: 12px 0 0; color: var(--muted); }
.search-results { padding: 0; list-style: none; }
.search-results a { display: grid; gap: 3px; padding: 9px 10px; border-radius: 6px; color: var(--text); }
.search-results a:hover { background: var(--raised); }
.search-results small { color: var(--muted); }

.detail-page { max-width: 1440px; display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; padding-block: 24px 62px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: #ffc1cc; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-intro { min-height: clamp(225px, 30vw, 390px); position: relative; display: flex; align-items: end; isolation: isolate; overflow: hidden; background: var(--surface); border: 1px solid #352830; border-radius: 16px; }
.detail-intro.with-player { min-height: clamp(185px, 21vw, 300px); }
.detail-backdrop, .detail-intro::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail-backdrop { object-fit: cover; object-position: center 48%; z-index: -2; }
.detail-intro::after { z-index: -1; content: ""; background: linear-gradient(0deg,#100913fc,#10091380 47%,transparent 85%), linear-gradient(90deg,#110b15ac,transparent 73%); }
.detail-title { padding: clamp(17px, 3vw, 42px); }
.detail-category { display: inline-flex; background: #711c2cd6; padding: 4px 8px; border: 1px solid #ff6c8a68; border-radius: 4px; font-size: 10px; font-weight: 730; letter-spacing: .06em; text-transform: uppercase; }
.detail-category:hover { background: #98253e; }
.detail-title h1 { font-size: clamp(33px, 5.7vw, 76px); margin-top: 8px; font-weight: 810; letter-spacing: -.067em; overflow-wrap: anywhere; }
.detail-title p { font-size: 13px; color: #ecd8e1; margin-top: 8px; }
.detail-title p span { color: var(--accent); padding-inline: 3px; }
.watch-layout { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 22px; }
.watch-main { min-width: 0; display: grid; gap: 17px; }
.player { overflow: hidden; border: 1px solid #392831; border-radius: 13px; aspect-ratio: 16 / 9; background: #080608; }
.player video, .player iframe { display: block; width: 100%; height: 100%; border: 0; }
.viewing-note { color: var(--muted); background: #181218; border: 1px solid #392932; padding: 14px; border-radius: 9px; font-size: 14px; }
.viewing-note strong { color: var(--text); }
.watch-action { display: grid; gap: 8px; }
.watch-button { width: 100%; min-height: 62px; font-size: clamp(17px, 2vw, 21px); font-weight: 830; border-radius: 11px; gap: 10px; padding: 11px 16px; }
.watch-button svg { width: 21px; height: 21px; }
.watch-provider { text-align: center; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.watch-provider strong { color: var(--text); }
.sponsored-badge { padding: 4px 6px; border: 1px solid #fff9; border-radius: 5px; font-weight: 650; font-size: 10px; }
.synopsis { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(15px,2vw,24px); }
.synopsis h2 { font-size: clamp(20px,2vw,26px); }
.synopsis p { color: var(--muted); max-width: 72ch; line-height: 1.65; }
.synopsis .source-credit { font-size: 12px; }
#related { padding-top: 12px; }

.ad-placement { --ad-height: 96px; width: 100%; display: grid; align-content: start; gap: 5px; padding: 9px; text-align: center; background: #100d11; border: 1px solid #30252e; border-radius: 9px; }
.ad-label { font-size: 10px; color: var(--muted); }
.ad-space { height: var(--ad-height); min-width: 0; display: grid; align-items: center; color: #ae9ca8; font-size: 12px; }
.ad-preview .ad-space { border: 1px dashed #55404c; border-radius: 5px; background: repeating-linear-gradient(128deg,#171117 0 13px,#1c141c 13px 26px); }
.ad-unavailable .ad-label { visibility: hidden; }
.ad-sidebar { --ad-height: 280px; display: none; }
.ad-inContent { --ad-height: 252px; max-width: 350px; justify-self: center; }
.ad-mobile { --ad-height: 96px; display: none; }
.site-footer { border-top: 1px solid var(--line); background: #110e12; }
.footer-inner { min-height: 116px; padding-block: 23px; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 17px; }
.footer-inner nav { flex-wrap: wrap; }
.footer-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
.footer-inner .brand { font-size: 19px; }

@media (min-width: 1060px) {
  .watch-layout.with-sidebar { grid-template-columns: minmax(0, 1fr) 310px; }
  .ad-sidebar { display: grid; }
}
@media (max-width: 1070px) {
  .poster-rail { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); }
  .video-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .poster-rail { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }
  .video-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .header-inner { min-height: 59px; gap: 13px; }
  .header-nav a { min-height: 59px; font-size: 12px; }
  .header-nav a:nth-child(2), .header-search span { display: none; }
  .brand { font-size: 19px; gap: 7px; }
  .brand img { width: 31px; height: 31px; }
  .brand small { font-size: 7px; vertical-align: 2px; }
}
@media (max-width: 680px) {
  :root { --gap: 12px; }
  .hero { --hero-height: 395px; }
  .hero-slide { align-items: end; }
  .hero-slide::after { background: linear-gradient(0deg,var(--bg) 0%,#0b090de8 16%,#130d17b2 46%,#180e1925 86%),linear-gradient(90deg,#100b16a0,transparent); }
  .hero-image-link img { object-position: 62% center; }
  .hero-copy { padding-block: 30px 61px; }
  .hero h1, .hero h2 { font-size: clamp(40px, 9vw, 62px); margin-top: 10px; }
  .hero-meta { margin-top: 9px; font-size: 12px; }
  .hero-description { font-size: 12px; line-height: 1.45; margin-top: 7px; }
  .feature-watch { margin-top: 13px; min-height: 42px; }
  .hero-controls { bottom: 12px; gap: 6px; }
  .hero-controls .icon-button { width: 31px; height: 31px; }
  .home-content { padding-block: 12px 42px; }
  .poster-rail { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
  .video-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-page { padding-block: 15px 45px; gap: 13px; }
  .watch-button { min-height: 56px; }
  .ad-mobile { display: grid; }
  .watch-main:has(> .ad-mobile) > .ad-belowVideo { display: none; }
}
@media (max-width: 480px) {
  .header-nav { gap: 10px; }
}
@media (max-width: 440px) {
  .poster-rail { grid-auto-columns: 42%; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .poster-caption { padding: 9px; }
  .poster-caption h3 { font-size: 15px; }
  .section-heading { align-items: center; }
  .shelf-note { font-size: 11px; }
  #trending .shelf-title { gap: 7px; }
}
@media (max-width: 343px) {
  .header-nav a:first-child { display: none; }
  .header-inner { gap: 7px; }
  .header-inner .brand { font-size: 17px; }
  .header-inner .brand img { width: 28px; height: 28px; }
  .header-inner .brand small { padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero[data-active] .hero-slide:not([hidden], .is-outgoing) { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

