@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Oswald:wght@500;600;700&display=swap");

:root{
  --bg:#040404;
  --bg-soft:#101014;
  --surface:rgba(17,17,20,.84);
  --surface-2:rgba(255,255,255,.055);
  --surface-3:rgba(255,255,255,.08);
  --text:#f4f4f6;
  --muted:#a6a7b3;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.16);
  --accent:#e50914;
  --accent-2:#ff3344;
  --gold:#f2c979;
  --ok:#4fd48f;
  --shadow:0 28px 90px rgba(0,0,0,.42);
  --radius:26px;
  --radius-sm:18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  color:var(--text);
  font-family:"Manrope",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(229,9,20,.17), transparent 60%),
    radial-gradient(760px 420px at 100% 0%, rgba(245,201,121,.10), transparent 55%),
    linear-gradient(180deg,#0d0d0f 0%, #040404 32%, #070709 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.12;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size:28px 28px;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,textarea,select{font:inherit}
button{appearance:none}

::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:#09090a}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--accent-2),var(--accent));border-radius:999px;border:2px solid #09090a}

.container{width:min(1360px,calc(100% - 48px));margin:0 auto}
.page{min-height:calc(100vh - 180px);padding:22px 0 64px;position:relative;z-index:1}
.muted{color:var(--muted)}
.small{font-size:12px}

.topbar{
  position:sticky;
  top:0;
  z-index:90;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(4,4,4,.94), rgba(4,4,4,.76));
  backdrop-filter:blur(18px);
}
.topbar__inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:20px;
  align-items:center;
  padding:18px 0;
}
.topbar__cluster{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.topbar__actions{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.brand__mark{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-family:"Oswald","Arial Narrow",sans-serif;
  font-size:26px;
  letter-spacing:.14em;
  text-indent:.14em;
  color:#fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow:0 16px 40px rgba(229,9,20,.35);
}
.brand__mark--image{
  padding:0;
  overflow:hidden;
  background:transparent;
  box-shadow:none;
}
.brand__logo{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 14px 34px rgba(229,9,20,.28));
}
.brand__copy{display:grid;gap:3px}
.brand__text{
  font-size:23px;
  font-weight:800;
  letter-spacing:-.03em;
}
.brand__sub{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
}

.nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.nav a{
  padding:10px 14px;
  border-radius:999px;
  color:var(--muted);
  transition:.18s transform ease,.18s background ease,.18s color ease;
}
.nav a:hover,
.nav a.is-active{
  color:var(--text);
  background:rgba(255,255,255,.07);
}
.nav__user{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
}

.search{
  width:100%;
  max-width:430px;
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}
.search__input,.input,textarea,select{
  width:100%;
  min-height:48px;
  padding:13px 16px;
  color:var(--text);
  border-radius:16px;
  border:1px solid var(--line);
  outline:none;
  background:rgba(255,255,255,.05);
  transition:.18s border-color ease,.18s background ease,.18s transform ease;
}
.search__input::placeholder,.input::placeholder,textarea::placeholder{color:rgba(255,255,255,.42)}
.search__input:focus,.input:focus,textarea:focus,select:focus{
  border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.075);
}
.search__btn,.btn,.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  cursor:pointer;
  color:var(--text);
  background:rgba(255,255,255,.06);
  transition:.18s transform ease,.18s background ease,.18s border-color ease,.18s box-shadow ease;
}
.search__btn:hover,.btn:hover,.pill:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
}
.btn--primary,.pill--primary,.btn--red{
  color:#fff;
  border-color:rgba(255,69,88,.45);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow:0 16px 38px rgba(229,9,20,.32);
}
.btn--ghost{
  background:transparent;
  box-shadow:none;
}
.btn--glass{
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
}
.btn--danger{
  background:rgba(229,9,20,.14);
  border-color:rgba(229,9,20,.28);
}
.btn--sm{
  min-height:38px;
  padding:8px 12px;
  font-size:13px;
  border-radius:12px;
  box-shadow:none;
}
.btn--lg{
  min-height:54px;
  padding:15px 22px;
  font-size:15px;
}
.pill{
  min-height:42px;
  border-radius:999px;
  padding:9px 14px;
}

.avatar{
  border-radius:50%;
  object-fit:cover;
  background:rgba(255,255,255,.1);
}
.avatar--sm{width:28px;height:28px}

.flash-wrap{padding-bottom:8px}
.alert{
  margin:0 0 14px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
}
.alert--ok{border-color:rgba(79,212,143,.38);background:rgba(79,212,143,.12)}
.alert--err{border-color:rgba(229,9,20,.38);background:rgba(229,9,20,.12)}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(242,201,121,.25);
  background:rgba(242,201,121,.1);
  color:var(--gold);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.16em;
}

.hero-stream{
  position:relative;
  min-height:72vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  border-radius:32px;
  border:1px solid var(--line);
  background:#0d0d0f;
  box-shadow:var(--shadow);
}
.hero-stream__backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.08) contrast(1.05);
}
.hero-stream__shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(4,4,4,.96) 0%, rgba(4,4,4,.78) 38%, rgba(4,4,4,.4) 60%, rgba(4,4,4,.88) 100%),
    linear-gradient(0deg, rgba(4,4,4,.96) 0%, rgba(4,4,4,.08) 58%);
}
.hero-stream__content{
  position:relative;
  z-index:1;
  width:min(760px,100%);
  padding:clamp(28px,5vw,58px);
}
.hero-stream__title,
.detail-shell__title,
.browse-banner__title{
  margin:14px 0 16px;
  line-height:.92;
  text-transform:uppercase;
  font-family:"Oswald","Arial Narrow",sans-serif;
  letter-spacing:.01em;
}
.hero-stream__title{font-size:clamp(3rem,7vw,5.6rem)}
.hero-stream__summary,
.browse-banner__text,
.detail-shell__summary{
  max-width:62ch;
  line-height:1.75;
  color:#ececf0;
  font-size:1.02rem;
}
.hero-stream__actions,
.detail-shell__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}
.meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:8px;
}
.meta-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  font-size:13px;
}
.meta-chip--accent{
  background:rgba(229,9,20,.18);
  border-color:rgba(229,9,20,.35);
}
.stats-strip{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:12px;
  margin-top:28px;
}
.stat-card,.info-card{
  padding:15px 16px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(10,10,12,.56);
  backdrop-filter:blur(10px);
}
.stat-card__label,.info-card__label{
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}
.stat-card__value,.info-card__value{
  font-weight:800;
  font-size:1.15rem;
}

.section{padding:24px 0 10px}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.section__title,h1,h2,h3{margin:0}
.section__title{
  font-size:clamp(1.45rem,2.7vw,2.2rem);
  font-weight:800;
  letter-spacing:-.03em;
}
.section__sub{
  color:var(--muted);
  max-width:62ch;
  line-height:1.7;
}

.browse-banner{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  border:1px solid var(--line);
  padding:32px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(242,201,121,.15), transparent 60%),
    linear-gradient(135deg, rgba(229,9,20,.24), rgba(255,255,255,.04));
  box-shadow:var(--shadow);
}
.browse-banner::after{
  content:"";
  position:absolute;
  inset:auto -100px -100px auto;
  width:280px;
  height:280px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(229,9,20,.28), transparent 70%);
}
.browse-banner__title{font-size:clamp(2.4rem,5vw,4rem)}
.filter-bar,.genre-cloud,.row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.genre-pill{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  transition:.18s transform ease,.18s background ease;
}
.genre-pill:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.1);
}

.poster-grid,
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(182px,1fr));
  gap:18px;
}
.poster-card,.card,.panel{
  border-radius:24px;
  border:1px solid var(--line);
  background:var(--surface);
  box-shadow:var(--shadow);
}
.poster-card{
  position:relative;
  overflow:hidden;
  min-height:320px;
  transition:.2s transform ease,.2s border-color ease,.2s box-shadow ease;
}
.poster-card:hover,
.card:hover{
  transform:translateY(-8px);
  border-color:rgba(255,255,255,.16);
}
.poster-card__image{
  position:absolute;
  inset:0;
}
.poster-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.35s transform ease,.35s filter ease;
}
.poster-card:hover .poster-card__image img{
  transform:scale(1.06);
  filter:saturate(1.05) contrast(1.04);
}
.poster-card__shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.14) 36%, rgba(0,0,0,.92) 100%);
}
.poster-card__body{
  position:relative;
  z-index:1;
  min-height:320px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:18px;
}
.poster-card__tag{
  display:inline-flex;
  align-self:flex-start;
  margin-bottom:auto;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(0,0,0,.42);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.poster-card__title,.card__title{
  font-size:1rem;
  font-weight:800;
  line-height:1.34;
  margin:0 0 6px;
}
.poster-card__meta,.card__meta,.card__sub{
  color:#d3d3d8;
  font-size:12px;
}
.poster-card__cta{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  color:#fff;
}

.card{
  overflow:hidden;
  transition:.2s transform ease,.2s border-color ease;
}
.card__poster,.card__img{
  aspect-ratio:2/3;
  background:rgba(255,255,255,.03);
}
.card__poster img,.card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.card__body,.card__meta,.panel__pad{padding:16px}

.panel{
  overflow:hidden;
}

.detail-shell{
  position:relative;
  overflow:hidden;
  border-radius:32px;
  border:1px solid var(--line);
  background:#0d0d10;
  box-shadow:var(--shadow);
}
.detail-shell__backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.04) contrast(1.05);
}
.detail-shell__shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(4,4,4,.96) 0%, rgba(4,4,4,.82) 40%, rgba(4,4,4,.55) 64%, rgba(4,4,4,.92) 100%),
    linear-gradient(0deg, rgba(4,4,4,.96) 0%, rgba(4,4,4,.14) 60%);
}
.detail-shell__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:320px 1fr;
  gap:32px;
  padding:38px;
  align-items:end;
}
.detail-shell__poster img{
  width:100%;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 22px 54px rgba(0,0,0,.38);
}
.detail-shell__title{font-size:clamp(2.6rem,5vw,4.7rem)}
.info-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
  margin-top:24px;
}

.player-page{
  display:grid;
  gap:20px;
}
.player-stage{
  overflow:hidden;
  border-radius:30px;
  border:1px solid var(--line);
  background:#000;
  box-shadow:var(--shadow);
}
.player-stage__header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px 18px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
}
.player-stage__sub{
  margin-top:6px;
  color:var(--muted);
  line-height:1.6;
}
.player-frame-wrap{
  position:relative;
  background:#000;
}
.player-frame{
  width:100%;
  aspect-ratio:16/9;
  border:0;
  display:block;
  background:#000;
}
.player-overlay{
  position:absolute;
  inset:0;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}
.player-overlay__video{
  width:100%;
  height:100%;
  object-fit:cover;
}
.player-overlay__shade{
  position:absolute;
  inset:0;
  background:
    radial-gradient(76% 76% at 50% 50%, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.86) 100%),
    linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,.28));
}
.player-overlay__copy{
  position:absolute;
  inset:auto 28px 28px 28px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.player-overlay__badge{
  max-width:560px;
  padding:18px 20px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.42);
  backdrop-filter:blur(12px);
}
.player-overlay__badge strong{
  display:block;
  margin-bottom:8px;
  font-size:1.1rem;
}
.player-choice,.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:20px 24px 24px;
}
.player-pill,.tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.player-pill.is-active,.tab.active{
  border-color:rgba(229,9,20,.32);
  background:rgba(229,9,20,.18);
}

.episode-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:14px;
}
.episode-card{
  padding:18px;
  border-radius:20px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  transition:.18s transform ease,.18s background ease;
}
.episode-card:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.08);
}
.episode-card__code{
  margin-bottom:8px;
  color:var(--gold);
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.episode-card__title{
  font-size:16px;
  font-weight:800;
  line-height:1.4;
}
.episode-card__cta{
  margin-top:10px;
  color:var(--muted);
}

.empty-state{
  padding:24px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
}

.table{
  width:100%;
  border-collapse:collapse;
}
.table th,.table td{
  padding:14px 12px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid var(--line);
}
.table th{
  color:var(--muted);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.nowrap{white-space:nowrap}
.form{display:grid;gap:12px}
.label{font-size:13px;color:var(--muted);font-weight:700}
textarea{min-height:140px;resize:vertical}
.check{display:flex;align-items:center;gap:10px;color:var(--muted)}

.auth-card{max-width:620px;margin:0 auto}
.filmview{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start}
.filmview__poster img{width:100%;border-radius:22px;border:1px solid var(--line);box-shadow:var(--shadow)}

.pagination{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.pagination a{
  display:inline-flex;
  min-width:44px;
  min-height:44px;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
}
.pagination a.is-active{
  background:rgba(229,9,20,.18);
  border-color:rgba(229,9,20,.34);
}

.footer{
  margin-top:56px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  padding:38px 0 48px;
}
.footer__grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:24px;
}
.footer__brand{
  display:grid;
  gap:10px;
}
.footer__links{
  display:grid;
  gap:10px;
}
.footer__links strong{
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold);
}

hr{
  border:0;
  border-top:1px solid var(--line);
}

@media (max-width:1180px){
  .topbar__inner{
    grid-template-columns:1fr;
  }
  .topbar__cluster{
    order:3;
    flex-direction:column;
    align-items:stretch;
  }
  .search{
    max-width:none;
  }
  .topbar__actions{
    justify-content:flex-start;
  }
  .detail-shell__grid{
    grid-template-columns:1fr;
    align-items:start;
  }
  .detail-shell__poster{
    max-width:340px;
  }
}

@media (max-width:920px){
  .container{width:min(100%,calc(100% - 28px))}
  .hero-stream{
    min-height:62vh;
  }
  .hero-stream__shade,
  .detail-shell__shade{
    background:
      linear-gradient(0deg, rgba(4,4,4,.96) 0%, rgba(4,4,4,.16) 60%),
      linear-gradient(180deg, rgba(4,4,4,.82), rgba(4,4,4,.92));
  }
  .poster-grid,.grid{
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  }
  .filmview{
    grid-template-columns:1fr;
  }
  .footer__grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .page{padding-top:16px}
  .hero-stream__content,
  .detail-shell__grid,
  .browse-banner,
  .player-stage__header,
  .player-choice,
  .tabs{
    padding-left:18px;
    padding-right:18px;
  }
  .hero-stream{
    min-height:56vh;
  }
  .hero-stream__title,
  .detail-shell__title,
  .browse-banner__title{
    word-break:break-word;
  }
  .poster-grid,.grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }
  .poster-card,.poster-card__body{
    min-height:280px;
  }
  .player-overlay__copy{
    inset:auto 16px 16px 16px;
  }
}
