:root {
  --bg: #070a12;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-solid: #111827;
  --card: rgba(17, 24, 39, 0.82);
  --card-strong: rgba(30, 41, 59, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --brand: #f97316;
  --brand-soft: rgba(249, 115, 22, 0.16);
  --gold: #facc15;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30rem),
    linear-gradient(180deg, #060913 0%, #090d17 48%, #05070d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
}

.site-logo::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #ef4444 55%, #a855f7);
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.38);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1s ease;
  pointer-events: none;
}

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 12, 0.94) 0%, rgba(4, 6, 12, 0.72) 42%, rgba(4, 6, 12, 0.24) 100%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.12) 0%, rgba(4, 6, 12, 0.72) 100%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  min-height: 620px;
  margin: 0 auto;
  padding-top: 122px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(249, 115, 22, 0.32);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.hero-slide h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-slide p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.8;
}

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

.btn,
.filter-panel button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.filter-panel button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.btn-primary,
.filter-panel button,
.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 16px 42px rgba(239, 68, 68, 0.34);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(240px, 440px) 1fr auto;
  gap: 18px;
  align-items: center;
}

.hero-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(18px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 12px;
}

.hero-search input::placeholder {
  color: #94a3b8;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-quick-links a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-controls,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls > button,
.hero-dots button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.5;
}

.hero-dots button.is-active {
  width: 26px;
  background: var(--brand);
  opacity: 1;
}

.section-block {
  padding: 64px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  flex: none;
  color: #fed7aa;
  font-weight: 900;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.92));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(88, 28, 135, 0.35));
}

.movie-card__poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .movie-card__poster img {
  transform: scale(1.07);
  filter: saturate(1.12);
}

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.movie-card__year,
.rank-mark {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.movie-card__year {
  right: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.56);
}

.rank-mark {
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.42);
}

.movie-card__body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0;
  overflow: hidden;
  color: #cbd5e1;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.movie-card--compact .movie-card__body {
  padding: 12px;
}

.movie-card--compact h3 {
  font-size: 16px;
}

.movie-card--compact p {
  min-height: 44px;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fed7aa;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.tag-row--hero span,
.detail-tags span {
  font-size: 13px;
}

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

.category-card,
.category-overview-card,
.ranking-box,
.detail-article,
.player-section {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.5);
}

.category-card span {
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card__covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-card__covers img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.ranking-box {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-md);
  padding: 22px;
}

.ranking-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ranking-box h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
}

.ranking-box a {
  color: #fed7aa;
  font-weight: 800;
}

.ranking-box ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-box li + li {
  border-top: 1px solid var(--line);
}

.ranking-box li a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 14px 0;
  color: #fff;
}

.ranking-box li span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

.ranking-box li strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-box li em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  padding-bottom: 60px;
}

.page-hero {
  padding: 72px 0 28px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

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

.category-overview-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.category-overview-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
}

.category-overview-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 0.7fr)) auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.76);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: 0;
  color: #fff;
  background: rgba(2, 6, 23, 0.56);
  padding: 0 13px;
}

.filter-panel input::placeholder {
  color: #64748b;
}

.empty-result {
  display: none;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.08);
  font-weight: 800;
}

.empty-result.is-visible {
  display: block;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 36px;
  padding: 60px 0 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.64);
}

.detail-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 6px 0 0;
  color: #fff;
  font-weight: 900;
}

.player-section {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 24px 70px rgba(239, 68, 68, 0.48);
  position: relative;
}

.play-icon::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 27px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 24px solid #fff;
}

.content-section {
  padding: 38px 0 0;
}

.detail-article {
  border-radius: var(--radius-lg);
  padding: 30px;
}

.detail-article h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 950;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 34px 0;
  align-items: center;
}

.site-footer strong {
  font-size: 20px;
}

.site-footer p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 800;
}

.site-footer__copy {
  grid-column: 1 / -1;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid--home,
  .movie-grid--mini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .split-layout {
    grid-template-columns: 1fr;
  }

  .ranking-box {
    position: static;
  }

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

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7, 10, 18, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 14px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide__content {
    min-height: 650px;
    padding-top: 86px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    bottom: 22px;
  }

  .hero-search {
    border-radius: 20px;
  }

  .hero-controls {
    justify-content: space-between;
  }

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

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

  .detail-poster {
    max-width: 320px;
  }

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

  .category-overview-card__head,
  .section-heading,
  .site-footer__grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-shell,
  .site-header__inner,
  .hero-slide__content,
  .hero-panel {
    width: min(100% - 24px, 1180px);
  }

  .site-logo {
    font-size: 18px;
  }

  .hero-slide h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-search {
    display: grid;
    border-radius: 18px;
  }

  .hero-search input {
    min-height: 42px;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .player-section,
  .detail-article,
  .category-overview-card {
    padding: 18px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
  }

  .play-icon::before {
    left: 28px;
    top: 21px;
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 20px;
  }
}
