
:root {
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-teal-600: #0d9488;
  --color-teal-500: #14b8a6;
  --color-teal-400: #2dd4bf;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.10);
  --radius-lg: 22px;
  --radius-md: 16px;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-slate-900);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(var(--page-width), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-teal-500), #06b6d4);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.36);
}

.brand-text strong,
.brand-text em {
  display: block;
  font-style: normal;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand-text em {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  padding: 9px 12px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: rgba(20, 184, 166, 0.18);
  transform: translateY(-1px);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(310px, 34vw);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.56);
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  color: #ffffff;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.header-search button {
  height: 38px;
  padding: 0 14px;
  color: #042f2e;
  font-size: 13px;
  font-weight: 800;
  border: 0;
  background: var(--color-teal-400);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav-row,
.mobile-category-grid {
  display: grid;
  gap: 8px;
}

.mobile-nav-row {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
}

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

.mobile-category-link {
  padding: 10px 12px;
  color: #dbeafe;
  font-size: 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.74);
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-slate-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(20, 184, 166, 0.25), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  align-items: center;
  gap: 48px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 13px;
  color: #99f6e4;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 26px;
  color: #dbeafe;
  font-size: 18px;
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 11px;
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 850;
  border-radius: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-teal-500), #06b6d4);
  box-shadow: 0 16px 32px rgba(20, 184, 166, 0.32);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  color: #e0f2fe;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.42);
}

.hero-side-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-side-body {
  padding: 22px;
}

.hero-side-body h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.hero-side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: #dbeafe;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.main-section,
.page-section {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: var(--color-slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--color-slate-600);
}

.section-link {
  color: var(--color-teal-600);
  font-weight: 850;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: var(--shadow-card);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 25% 20%, rgba(20, 184, 166, 0.28), transparent 32%),
    linear-gradient(135deg, var(--color-slate-800), var(--color-slate-950));
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  font-style: normal;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.88);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.38);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--color-slate-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: var(--color-teal-600);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--color-slate-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 4px 8px;
  color: var(--color-teal-600);
  font-size: 12px;
  font-weight: 750;
  border-radius: 8px;
  background: #ecfeff;
}

.dark-band {
  margin: 24px auto;
  padding: 54px 38px;
  color: #ffffff;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.23), transparent 28%),
    linear-gradient(135deg, var(--color-slate-950), var(--color-slate-800));
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.26);
}

.dark-band .section-head h2,
.dark-band .section-head p {
  color: #ffffff;
}

.dark-band .section-head p {
  color: #cbd5e1;
}

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

.category-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-card strong {
  color: var(--color-slate-900);
  font-size: 19px;
}

.category-card p {
  margin: 0;
  color: var(--color-slate-600);
  font-size: 14px;
}

.category-card span {
  align-self: end;
  color: var(--color-teal-600);
  font-weight: 850;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.28), transparent 30%),
    linear-gradient(135deg, var(--color-slate-950), var(--color-slate-800));
}

.page-title {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.page-title h1,
.page-title p {
  color: #ffffff;
}

.page-title p {
  max-width: 760px;
  color: #cbd5e1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #99f6e4;
  font-size: 14px;
  font-weight: 750;
}

.filter-panel {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  height: 44px;
  width: 100%;
  padding: 0 12px;
  color: var(--color-slate-900);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.count-line {
  margin: -12px 0 24px;
  color: var(--color-slate-600);
  font-weight: 750;
}

.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 20%, rgba(20, 184, 166, 0.24), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #1e293b 100%);
}

.detail-hero-inner {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--color-slate-800), var(--color-slate-950));
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.46);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-info .one-line {
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 18px;
}

.player-box {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
}

.video-shell {
  position: relative;
  min-height: 480px;
  background:
    radial-gradient(circle at 50% 35%, rgba(20, 184, 166, 0.20), transparent 34%),
    linear-gradient(135deg, #020617, #111827);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay button {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  color: #ffffff;
  font-size: 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-teal-500), #06b6d4);
  box-shadow: 0 18px 45px rgba(20, 184, 166, 0.42);
  cursor: pointer;
}

.player-overlay strong,
.player-overlay span {
  display: block;
}

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

.player-overlay span {
  margin-top: 6px;
  color: #cbd5e1;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
}

.article-panel,
.side-panel {
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.article-panel {
  padding: 28px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: var(--color-slate-900);
  font-size: 24px;
}

.article-panel p {
  margin: 0 0 20px;
  color: #334155;
  font-size: 16px;
}

.side-panel {
  padding: 20px;
  align-self: start;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 92px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--color-slate-800);
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  color: var(--color-slate-500);
  font-size: 12px;
}

.site-footer {
  margin-top: 48px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--color-slate-900), var(--color-slate-950));
}

.footer-inner {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 28px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 42px;
}

.footer-brand p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 17px;
}

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

.footer-bottom {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #94a3b8;
  font-size: 13px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

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

@media (max-width: 1080px) {
  .hero-inner,
  .detail-hero-inner,
  .content-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    max-width: 560px;
  }

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

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

@media (max-width: 820px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .site-header-inner {
    gap: 12px;
  }

  .hero-inner {
    padding: 58px 0;
  }

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

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

  .video-shell,
  .video-shell video {
    min-height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .mobile-panel,
  .hero-inner,
  .main-section,
  .page-section,
  .page-title,
  .detail-hero-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, var(--page-width));
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text em {
    display: none;
  }

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

  .dark-band {
    padding: 32px 18px;
    border-radius: 22px;
  }

  .section-head {
    display: block;
  }

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