:root {
  --bg: #0b1020;
  --panel: rgba(18, 25, 48, 0.86);
  --panel-solid: #11182d;
  --card: #151e35;
  --card-soft: #1d2945;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #a8b3cf;
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --teal: #14b8a6;
  --blue: #3b82f6;
  --radius: 24px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(20, 184, 166, 0.2), transparent 32rem),
    linear-gradient(180deg, #08101f 0%, #0b1020 46%, #0a0f1d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 28, 0.82);
  backdrop-filter: blur(22px);
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #14b8a6);
  box-shadow: 0 14px 40px rgba(245, 158, 11, 0.28);
}

.brand-name {
  font-size: 22px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-search {
  display: flex;
  width: min(330px, 30vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.header-search input,
.big-search input,
.filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  padding: 10px 14px;
}

.header-search button,
.big-search button {
  border: 0;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #14b8a6);
}

.header-search button {
  padding: 0 16px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 11px;
}

.quick-nav {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.quick-nav a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: 1380px;
  margin: 28px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
}

.hero-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: end;
  padding: clamp(28px, 6vw, 70px);
  background-position: center;
  background-size: cover;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(1.03);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-copy {
  width: min(760px, 100%);
}

.hero-kicker,
.section-eyebrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 14px 0 16px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  color: #dbe5ff;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.movie-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.detail-tags span,
.movie-badges span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
}

.movie-badges span {
  padding: 4px 8px;
  font-size: 12px;
}

.hero-actions,
.detail-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.button-primary {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #14b8a6);
  box-shadow: 0 16px 38px rgba(20, 184, 166, 0.22);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(245, 158, 11, 0.28);
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  position: absolute;
  left: 42px;
  bottom: 30px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, #fbbf24, #14b8a6);
}

.hero-side {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  background: rgba(17, 24, 45, 0.84);
  box-shadow: var(--shadow);
}

.hero-side h2,
.section-head h2,
.intro-panel h2,
.page-hero h1,
.article-section h2 {
  margin: 8px 0 0;
  letter-spacing: -0.04em;
}

.hero-side-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.hero-side .movie-card {
  grid-template-columns: 96px 1fr;
}

.section-block,
.page-hero,
.detail-hero {
  max-width: 1380px;
  margin: 26px auto 0;
  padding: 28px;
}

.section-block {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(17, 24, 45, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}

.intro-panel p,
.page-hero p,
.article-section p,
.category-card-body p {
  color: var(--muted);
  line-height: 1.8;
}

.big-search {
  display: flex;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.big-search input {
  padding: 0 20px;
}

.big-search button {
  padding: 0 26px;
}

.section-head {
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.text-link {
  color: #fcd34d;
  font-weight: 800;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-tile {
  min-height: 138px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(20, 184, 166, 0.08));
  transition: 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.36);
}

.category-tile span {
  font-size: 21px;
  font-weight: 900;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.filter-bar {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.filter-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.filter-search span {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 900;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #0f172a;
  border-color: transparent;
  background: linear-gradient(135deg, #fbbf24, #14b8a6);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  transition: 0.2s ease;
}

.movie-card.is-hidden {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  min-height: 230px;
  background-color: #111827;
  background-position: center;
  background-size: cover;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.poster-meta,
.rank-mark {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 900;
  background: #fbbf24;
}

.poster-meta {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  font-size: 12px;
}

.rank-mark {
  left: 10px;
  top: 10px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.movie-card-body {
  padding: 14px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #fcd34d;
}

.movie-card p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-card-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-foot a {
  color: #5eead4;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.rank-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #14b8a6);
}

.rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
}

.page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(20, 184, 166, 0.08)),
    rgba(17, 24, 45, 0.84);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.category-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  transition: 0.2s ease;
}

.category-card-cover {
  min-height: 180px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
}

.category-card-cover span {
  border-radius: 18px;
  background-color: #111827;
  background-position: center;
  background-size: cover;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h2 {
  margin: 0 0 8px;
}

.breadcrumb {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.breadcrumb a {
  color: #5eead4;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.detail-cover {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background-color: #111827;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.detail-info {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(17, 24, 45, 0.82);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 10px 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-lead {
  color: #dbe5ff;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(20, 184, 166, 0.18), transparent 30%),
    #050814;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050814;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--text);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(5, 8, 20, 0.18), rgba(5, 8, 20, 0.76));
}

.player-frame.is-ready .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-symbol {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #0f172a;
  font-size: 34px;
  background: linear-gradient(135deg, #fbbf24, #14b8a6);
  box-shadow: 0 20px 55px rgba(20, 184, 166, 0.25);
}

.player-overlay strong {
  font-size: 22px;
}

.article-section h2 {
  font-size: 30px;
}

.article-section h2 + p {
  margin-top: 12px;
}

.article-section p + h2 {
  margin-top: 26px;
}

.search-page-form {
  margin-top: 26px;
  max-width: 760px;
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 34px auto 0;
  padding: 0 28px 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(17, 24, 45, 0.72);
}

.footer-inner strong {
  font-size: 24px;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-inner nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.copyright {
  padding: 18px 8px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side .movie-card {
    grid-template-columns: auto;
  }

  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    min-height: 420px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav,
  .header-search {
    display: none;
    grid-column: 1 / -1;
  }

  .main-nav.is-open,
  .header-search.is-open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .header-search {
    width: 100%;
  }

  .hero-stage {
    min-height: 540px;
  }

  .filter-bar,
  .section-head,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .rank-row em {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .quick-nav,
  .hero,
  .section-block,
  .page-hero,
  .detail-hero,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage {
    min-height: 500px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 26px 20px 56px;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-poster {
    min-height: 300px;
  }

  .big-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .big-search input,
  .big-search button {
    min-height: 54px;
  }

  .detail-cover {
    min-height: 360px;
  }
}
