:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --primary: #0284c7;
  --primary-dark: #075985;
  --primary-soft: #e0f2fe;
  --accent: #059669;
  --accent-soft: #ecfdf5;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
  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: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.28);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link {
  padding: 10px 14px;
  color: #334155;
  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 {
  color: var(--primary-dark);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: var(--primary-soft);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--primary-dark);
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(14, 165, 233, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.66) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.65) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  color: #ffffff;
}

.hero-content > * {
  max-width: 690px;
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #dbeafe;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(186, 230, 253, 0.34);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 18px 32px rgba(2, 132, 199, 0.28);
}

.button-primary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.full-button {
  width: 100%;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 30px;
  background: #ffffff;
}

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

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

.section-heading p,
.inner-hero p {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.inner-hero h1,
.detail-title-block h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--primary-dark);
  font-weight: 900;
}

.center-heading {
  display: block;
  text-align: center;
}

.light-heading p,
.light-heading h2,
.light-heading a {
  color: #ffffff;
}

.quick-entry {
  padding-bottom: 32px;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-chip-row a {
  padding: 12px 18px;
  color: var(--primary-dark);
  background: var(--paper);
  border: 1px solid var(--soft);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

.movie-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.movie-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-body h2 {
  margin: 0 0 8px;
  min-height: 1.5em;
  font-size: 18px;
  line-height: 1.25;
}

.movie-body h2 a:hover {
  color: var(--primary);
}

.movie-body p {
  margin: 0 0 14px;
  color: #475569;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span,
.detail-tags span {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.feature-band {
  width: min(1220px, calc(100% - 32px));
  padding: 52px clamp(18px, 4vw, 52px);
  background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
  border: 1px solid rgba(186, 230, 253, 0.8);
  border-radius: 34px;
}

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

.category-card,
.category-overview-card {
  background: var(--paper);
  border: 1px solid var(--soft);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-card {
  display: block;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.category-thumbs img,
.category-cover img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}

.category-card strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

.category-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.ranking-band {
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.26), transparent 35%),
    linear-gradient(135deg, #0f172a, #082f49);
}

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

.ranking-grid .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.ranking-grid .movie-body p,
.ranking-grid .movie-meta-line {
  color: rgba(255, 255, 255, 0.72);
}

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

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--soft);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.filter-fields {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-fields label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
}

.filter-fields input,
.filter-fields select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--soft);
  border-radius: 14px;
  outline: none;
}

.filter-fields input:focus,
.filter-fields select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.filter-result {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--soft);
  border-radius: var(--radius);
}

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

.inner-hero {
  min-height: 310px;
  display: grid;
  align-items: end;
  padding: 76px 0 56px;
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 20%, rgba(16, 185, 129, 0.28), transparent 28%),
    linear-gradient(135deg, #0f172a, #075985);
}

.inner-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.inner-hero p,
.inner-hero span,
.inner-hero strong {
  color: rgba(255, 255, 255, 0.82);
}

.inner-hero span,
.inner-hero strong {
  display: block;
  max-width: 760px;
  margin-top: 14px;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 18px;
}

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

.category-overview-card h2 a:hover {
  color: var(--primary);
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.category-overview-card strong {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--primary-dark);
}

.category-overview-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-weight: 800;
}

.category-overview-card li span {
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.detail-main,
.detail-aside {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.player-frame video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 12px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18), rgba(2, 6, 23, 0.48));
  border: 0;
  cursor: pointer;
}

.player-frame.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.play-symbol {
  display: inline-grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin: 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(2, 132, 199, 0.34);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.detail-title-block,
.detail-section,
.aside-card {
  background: #ffffff;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.detail-title-block,
.detail-section {
  padding: 24px;
}

.detail-title-block p {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 900;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.score-row span,
.score-row a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.score-row span {
  color: #92400e;
  background: #fef3c7;
}

.score-row a {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.detail-section h2,
.aside-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-section p {
  margin: 0 0 14px;
  color: #334155;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.aside-card {
  padding: 20px;
}

.aside-card dl {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.aside-card dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
}

.aside-card dt {
  color: var(--muted);
  font-weight: 900;
}

.aside-card dd {
  margin: 0;
  color: #334155;
  font-weight: 800;
}

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

.related-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card img {
  width: 66px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.related-card strong,
.related-card em {
  display: block;
}

.related-card strong {
  color: var(--ink);
  line-height: 1.25;
}

.related-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.compact-heading {
  margin-bottom: 16px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
}

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.footer-brand p {
  max-width: 520px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  text-align: center;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--soft);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

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

  .menu-toggle {
    display: block;
  }

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

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

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

  .detail-aside {
    grid-template-columns: minmax(0, 320px) 1fr;
  }
}

@media (max-width: 720px) {
  .hero-slider {
    height: 76vh;
    min-height: 560px;
  }

  .hero-control {
    display: none;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .section-wrap {
    padding: 48px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .category-grid,
  .footer-grid,
  .filter-fields,
  .category-overview-card,
  .category-overview-card ul,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .feature-band {
    border-radius: 24px;
  }

  .movie-body {
    padding: 12px;
  }

  .movie-body h2 {
    font-size: 16px;
  }

  .movie-body p {
    font-size: 14px;
  }

  .detail-title-block,
  .detail-section,
  .aside-card {
    padding: 18px;
  }
}

@media (max-width: 460px) {
  .nav-wrap,
  .section-wrap,
  .hero-content,
  .breadcrumb,
  .detail-layout,
  .footer-grid,
  .footer-bottom,
  .inner-hero > div {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 18px;
  }

  .movie-grid,
  .ranking-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }
}
