:root {
  --bg: #070b14;
  --bg-soft: #0c1322;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-2: rgba(17, 24, 39, 0.92);
  --line: rgba(255,255,255,0.08);
  --text: #eef2ff;
  --muted: #9ca3af;
  --accent: #f97316;
  --accent-2: #fb923c;
  --blue: #38bdf8;
  --shadow: 0 22px 60px rgba(0,0,0,.38);
  --radius: 22px;
  --radius-lg: 30px;
  --container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(249,115,22,.18), transparent 25%),
    radial-gradient(circle at top right, rgba(56,189,248,.12), transparent 22%),
    linear-gradient(180deg, #04070d 0%, #09101c 45%, #050814 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 17, .72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .5px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #f59e0b 65%, #fde68a);
  color: #111827; box-shadow: 0 10px 24px rgba(249,115,22,.32);
}
.logo-text { font-size: 1.08rem; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 11px 16px; border-radius: 999px; color: #dbe3f0;
  transition: .22s ease; border: 1px solid transparent;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.06); border-color: var(--line); color: #fff; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.04); color: #fff;
}
.page-top-spacer { padding-bottom: 48px; }
.hero-stage { position: relative; }
.hero-carousel { position: relative; min-height: 760px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: stretch;
  background-size: cover; background-position: center; opacity: 0; transform: scale(1.02);
  transition: opacity .45s ease, transform .45s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,6,14,.92) 0%, rgba(3,6,14,.78) 42%, rgba(3,6,14,.35) 100%),
              linear-gradient(180deg, rgba(3,6,14,.15), rgba(3,6,14,.8));
}
.hero-content {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .72fr; align-items: end;
  gap: 28px; padding: 112px 0 84px;
}
.hero-copy { max-width: 740px; }
.hero-badge, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #f8fafc; font-size: .88rem;
}
.hero-copy h1, .page-hero h1, .category-hero h1, .detail-copy h1 { margin: 18px 0 16px; font-size: clamp(2.2rem, 4vw, 4.8rem); line-height: 1.02; letter-spacing: -.03em; }
.hero-copy p, .page-hero p, .category-hero p, .detail-copy p { color: #d6d9e5; line-height: 1.8; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line); transition: .22s ease; font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111827; border-color: transparent; box-shadow: 0 16px 32px rgba(249,115,22,.28); }
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; }
.hero-tags, .detail-tags, .movie-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-tags span, .tag-chip {
  display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; font-size: .85rem;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #e5e7eb;
}
.tag-chip.link { transition: .2s ease; }
.tag-chip.link:hover { border-color: rgba(249,115,22,.55); color: #fff; }
.hero-feature {
  align-self: end; display: block; padding: 14px; border-radius: var(--radius-lg);
  background: rgba(7, 11, 20, .5); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.hero-feature-poster {
  aspect-ratio: 4 / 5; border-radius: 24px; background-size: cover; background-position: center;
  box-shadow: inset 0 -90px 80px rgba(0,0,0,.4);
}
.hero-feature-meta { display: grid; gap: 6px; padding: 14px 4px 2px; }
.hero-feature-meta strong { font-size: 1.08rem; }
.hero-feature-meta span { color: var(--muted); }
.hero-controls {
  position: absolute; inset: auto 0 34px; display: flex; justify-content: space-between; pointer-events: none;
}
.hero-arrow {
  pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(0,0,0,.26); color: #fff; font-size: 1.6rem;
}
.hero-dots-wrap {
  position: absolute; inset: auto 0 22px; display: flex; gap: 10px; justify-content: center; z-index: 2;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.34);
}
.hero-dot.active { background: var(--accent); transform: scale(1.22); }
.intro-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -34px; position: relative; z-index: 3; }
.intro-card, .search-panel, .category-card, .movie-card, .detail-hero, .player-panel, .info-panel, .ranking-row, .rank-item, .page-hero, .category-hero {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.intro-card { padding: 20px 22px; display: flex; align-items: baseline; justify-content: space-between; }
.intro-card strong { color: #e5e7eb; }
.intro-card span { font-size: 1.35rem; font-weight: 800; color: #fff; }
.search-panel { margin-top: 28px; padding: 20px; }
.search-panel.compact { padding: 16px 20px; }
.search-bar { display: grid; gap: 10px; }
.search-bar input {
  height: 52px; width: 100%; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.05);
  color: #fff; padding: 0 16px; outline: none;
}
.search-bar input::placeholder { color: #94a3b8; }
.search-hint { color: var(--muted); font-size: .92rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 18px; }
.section-heading h2 { margin: 0; font-size: 1.55rem; }
.section-heading p { margin: 8px 0 0; color: var(--muted); }
.section-more { color: var(--accent-2); }
.movie-grid, .category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.movie-card { overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.movie-card:hover { transform: translateY(-4px); border-color: rgba(249,115,22,.42); }
.movie-poster {
  position: relative; aspect-ratio: 3 / 4; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.movie-year {
  position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 10px; border-radius: 999px;
  background: rgba(7,11,20,.65); border: 1px solid rgba(255,255,255,.16); font-size: .85rem;
}
.poster-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.72) 100%); }
.movie-card-body { padding: 16px; }
.movie-card h3 { margin: 0 0 8px; font-size: 1.03rem; line-height: 1.35; }
.movie-card p { margin: 0; color: #cbd5e1; line-height: 1.7; font-size: .93rem; min-height: 3.2em; }
.movie-meta { margin-top: 10px; color: var(--muted); font-size: .86rem; }
.movie-tags { margin-top: 12px; }
.category-card { padding: 20px; display: grid; gap: 10px; transition: transform .24s ease, border-color .24s ease; }
.category-card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.35); }
.category-card h3 { margin: 2px 0; font-size: 1.08rem; }
.category-card p { margin: 0; color: #d6d9e5; line-height: 1.7; }
.category-meta { color: var(--muted); font-size: .92rem; }
.category-pill { color: var(--accent-2); font-weight: 700; }
.category-card.wide { min-height: 192px; }
.ranking-list { display: grid; gap: 12px; }
.ranking-row, .rank-item {
  padding: 16px 18px; display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: center;
  transition: .2s ease;
}
.ranking-row:hover, .rank-item:hover { transform: translateY(-2px); border-color: rgba(249,115,22,.38); }
.rank-no {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(56,189,248,.12)); color: #fff;
}
.ranking-main strong, .rank-item strong { display: block; margin-bottom: 6px; }
.ranking-main p, .rank-item p, .ranking-side span { margin: 0; color: var(--muted); }
.ranking-side { display: grid; gap: 6px; justify-items: end; }
.page-hero, .category-hero { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-hero h1, .category-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin-top: 12px; }
.category-hero-box {
  min-width: 160px; padding: 22px; border-radius: 22px; text-align: center;
  background: linear-gradient(135deg, rgba(249,115,22,.17), rgba(56,189,248,.1)); border: 1px solid var(--line);
}
.category-hero-box strong { display: block; font-size: 2.4rem; }
.breadcrumb-row { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 18px; }
.detail-hero { padding: 18px; display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: stretch; }
.detail-poster {
  min-height: 520px; border-radius: 28px; background-size: cover; background-position: center;
  box-shadow: inset 0 -120px 80px rgba(0,0,0,.38);
}
.detail-copy { padding: 6px 8px; }
.detail-one-line { font-size: 1.05rem; color: #e5e7eb; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.detail-meta span { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #dbe3f0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 22px; margin-top: 22px; }
.player-panel, .info-panel { padding: 18px; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h2 { margin: 0; font-size: 1.2rem; }
.panel-title p { margin: 0; color: var(--muted); }
.video-shell { position: relative; border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.video-element { width: 100%; height: 100%; background: #000; }
.video-play-overlay {
  position: absolute; inset: 0; margin: auto; width: 156px; height: 56px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111827; font-weight: 800;
  box-shadow: 0 18px 36px rgba(249,115,22,.28);
}
.video-shell.playing .video-play-overlay { opacity: 0; pointer-events: none; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.info-list div { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.info-list span { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.info-list strong { color: #fff; }
.text-block { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-top: 12px; }
.text-block h3 { margin: 0 0 10px; font-size: 1rem; }
.text-block p { margin: 0; color: #dbe3f0; line-height: 1.85; }
.site-footer {
  margin-top: 42px; border-top: 1px solid var(--line); background: rgba(3,6,14,.7); padding: 30px 0 42px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 26px; }
.footer-grid h4 { margin: 0 0 14px; }
.footer-grid p, .footer-grid a { color: var(--muted); display: block; margin: 0 0 10px; }
.footer-logo { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.empty-state {
  padding: 26px; text-align: center; color: var(--muted); background: rgba(255,255,255,.04); border: 1px dashed var(--line); border-radius: 22px;
}
@media (max-width: 1120px) {
  .movie-grid, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-content, .detail-layout { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 280px 1fr; }
}
@media (max-width: 820px) {
  .site-nav {
    position: absolute; top: 72px; left: 16px; right: 16px; display: none; flex-direction: column; padding: 12px;
    background: rgba(6,10,18,.96); border: 1px solid var(--line); border-radius: 20px;
  }
  .site-nav.open { display: flex; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-carousel { min-height: 860px; }
  .hero-content { padding-top: 92px; }
  .intro-strip, .footer-grid, .detail-hero, .movie-grid, .category-grid, .info-list, .page-hero, .category-hero, .ranking-row { grid-template-columns: 1fr; }
  .page-hero, .category-hero { display: grid; }
  .category-hero-box { width: 100%; }
  .ranking-row { gap: 10px; }
  .ranking-side { justify-items: start; }
}
@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .hero-carousel { min-height: 920px; }
  .hero-slide { align-items: start; }
  .hero-content { padding: 78px 0 72px; }
  .hero-copy h1 { font-size: 2.4rem; }
  .detail-poster { min-height: 380px; }
  .section-heading { align-items: start; flex-direction: column; }
  .detail-actions, .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}
