:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --border: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --emerald: #34d399;
  --teal: #14b8a6;
  --cyan: #22d3ee;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(20, 184, 166, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 0%, rgba(52, 211, 153, 0.13), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  min-height: 100vh;
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 38px rgba(20, 184, 166, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-strong);
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.12);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 13px 14px;
}

.hero-section {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 32px auto 0;
  min-height: 620px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 38px;
  padding: 80px 64px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.018);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(14px) saturate(1.2);
  transform: scale(1.08);
}

.hero-bg::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.9)),
    radial-gradient(circle at 28% 40%, rgba(20, 184, 166, 0.22), transparent 34rem);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-summary,
.page-hero p,
.detail-line {
  margin: 24px 0 0;
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.card-tags span {
  border: 1px solid rgba(52, 211, 153, 0.24);
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
}

.card-tags span {
  padding: 5px 9px;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.wide-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-btn {
  padding: 14px 24px;
  color: #04111d;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 16px 44px rgba(20, 184, 166, 0.3);
}

.ghost-btn {
  padding: 13px 22px;
  color: var(--text-strong);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.wide-link:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(1.4deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 76px auto 0;
}

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

.section-heading h2,
.panel-title h2,
.article-card h2,
.side-card h2,
.player-title h2 {
  margin: 0;
  color: var(--text-strong);
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 3.3vw, 46px);
}

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

.section-more,
.wide-link,
.text-link {
  color: var(--emerald);
}

.section-more,
.wide-link {
  min-width: max-content;
  padding: 12px 18px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.08);
}

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

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.92));
}

.category-card span,
.category-card strong,
.category-card em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-card span {
  top: 18px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 900;
}

.category-card strong {
  bottom: 58px;
  color: var(--text-strong);
  font-size: 24px;
}

.category-card em {
  bottom: 18px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.62;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(14px);
}

.filter-input,
.filter-year,
.filter-region,
.filter-reset {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 15px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.64);
  outline: none;
  font: inherit;
}

.filter-input {
  padding: 0 16px;
}

.filter-year,
.filter-region {
  padding: 0 12px;
}

.filter-reset {
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
}

.filter-input:focus,
.filter-year:focus,
.filter-region:focus {
  border-color: rgba(52, 211, 153, 0.68);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

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

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

.movie-card,
.compact-card,
.article-card,
.side-card,
.player-card,
.category-overview-card,
.ranking-panel {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.42);
  box-shadow: 0 18px 54px rgba(20, 184, 166, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-year,
.poster-type {
  position: absolute;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.poster-year {
  right: 12px;
}

.poster-type {
  left: 12px;
}

.card-body {
  padding: 18px;
}

.card-body h3,
.compact-card h3 {
  margin: 12px 0 8px;
  color: var(--text-strong);
  line-height: 1.35;
}

.card-body h3 {
  font-size: 19px;
}

.card-body p,
.compact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.card-body p {
  min-height: 82px;
  font-size: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: #cbd5e1;
  font-size: 13px;
}

.card-meta a {
  color: var(--emerald);
  font-weight: 900;
}

.small-card .card-body p {
  min-height: 72px;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 26px;
}

.ranking-list,
.ranking-page-list,
.side-related {
  display: grid;
  gap: 14px;
}

.ranking-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
}

.compact-poster {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.compact-poster img {
  height: 138px;
  object-fit: cover;
}

.rank-num {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #03120d;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

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

.compact-card p {
  font-size: 13px;
}

.compact-meta {
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 12px;
}

.wide-link {
  width: 100%;
  margin-top: 18px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 76px 64px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 75% 20%, rgba(20, 184, 166, 0.2), transparent 28rem),
    rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.compact-hero {
  padding-block: 58px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
}

.category-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-cover-grid img {
  height: 132px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  color: var(--text-strong);
}

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

.detail-hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: 72px 0;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(12px) saturate(1.15);
  transform: scale(1.08);
}

.detail-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--emerald);
  font-weight: 800;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card,
.article-card,
.side-card {
  border-radius: 26px;
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.52));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #04111d;
  font-size: 34px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 18px 50px rgba(20, 184, 166, 0.36);
}

.player-title,
.article-card,
.side-card {
  padding: 24px;
}

.player-title p,
.article-card p,
.side-card dd,
.side-card dt {
  color: var(--muted);
  line-height: 1.85;
}

.article-card p {
  margin: 14px 0 0;
  font-size: 16px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 18px 0 0;
}

.side-card dt {
  color: #cbd5e1;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
}

.nav-pair {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.nav-pair a {
  color: var(--emerald);
  font-weight: 900;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 760px;
}

.footer-brand strong {
  color: var(--text-strong);
  font-size: 20px;
}

.footer-brand p,
.footer-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 26px 0 0;
}

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

.footer-links a:hover {
  color: var(--emerald);
}

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .category-strip,
  .movie-grid,
  .slim-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-poster {
    display: none;
  }

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    height: 66px;
  }

  .hero-section,
  .hero-slider {
    min-height: 590px;
  }

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

  .hero-dots {
    left: 26px;
    bottom: 24px;
  }

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

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

  .section-heading {
    display: grid;
  }

  .page-hero {
    padding: 48px 24px;
  }

  .category-overview-card,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .brand-subtitle {
    display: none;
  }

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

  .hero-section,
  .content-section,
  .page-hero,
  .detail-wrap,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .hero-section,
  .hero-slider {
    min-height: 640px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 36px;
  }

  .hero-summary,
  .page-hero p,
  .detail-line {
    font-size: 16px;
  }

  .category-strip,
  .movie-grid,
  .slim-grid,
  .ranking-page-list {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .compact-poster img {
    height: 124px;
  }

  .nav-pair {
    display: grid;
  }
}
