* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --ink: #111827;
  --muted: #64748b;
  --deep: #020617;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --amber-soft: #fffbeb;
  --line: rgba(148, 163, 184, 0.28);
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #020617, #0f172a 60%, #1e293b);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.38);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: var(--amber);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.current {
  color: var(--amber);
}

.nav-search {
  position: relative;
  width: 230px;
}

.nav-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 999px;
  padding: 11px 42px 11px 16px;
  outline: none;
}

.nav-search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.nav-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--amber);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.menu-toggle {
  display: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 20px;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--deep);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}

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

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

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

.hero-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
  font-weight: 700;
}

.hero-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 7px 12px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

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

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

.primary-btn {
  padding: 13px 28px;
  color: #ffffff;
  background: var(--amber);
  box-shadow: 0 18px 35px rgba(245, 158, 11, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--amber-deep);
}

.ghost-btn {
  padding: 12px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--amber);
}

.content-section {
  padding: 72px max(18px, calc((100vw - 1180px) / 2));
}

.section-light {
  background: #ffffff;
}

.section-deep {
  background: linear-gradient(180deg, #0f172a, #f8fafc);
}

.section-warm {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.section-soft {
  background: linear-gradient(90deg, #f1f5f9, #f8fafc);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.white-head h2,
.white-head p {
  color: #ffffff;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: var(--amber-deep);
  padding: 10px 0;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  min-width: 280px;
  scroll-snap-align: start;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f172a, #334155);
}

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

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

.play-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.78);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--amber-deep);
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.large-card {
  grid-column: span 2;
  grid-row: span 2;
}

.large-card .card-title {
  font-size: 24px;
}

.rank-list {
  display: grid;
  gap: 16px;
}

.list-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 150px;
}

.list-card .card-poster {
  height: 100%;
  aspect-ratio: auto;
}

.list-card .card-title {
  min-height: auto;
}

.list-card .tag-row span {
  color: #92400e;
  background: #fffbeb;
  backdrop-filter: none;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #111827;
  background: var(--amber);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.35);
}

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

.category-tile,
.category-card a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 22px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.38), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.24);
}

.category-tile span,
.category-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.category-pill {
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #111827;
  background: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: var(--slate);
  background-size: cover;
  background-position: center;
}

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

.page-hero h1,
.detail-info h1 {
  max-width: 820px;
  margin: 12px 0 16px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.lead-text {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  color: #111827;
  background: var(--amber);
  padding: 7px 12px;
  font-weight: 900;
}

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

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

.detail-breadcrumb {
  color: rgba(255, 255, 255, 0.7);
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
  padding: 54px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, #0f172a, #334155);
}

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

.detail-meta {
  color: #fbbf24;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.15);
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.2);
}

.movie-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

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

.play-ring {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: var(--amber);
  font-size: 34px;
  box-shadow: 0 0 0 14px rgba(245, 158, 11, 0.22), 0 20px 45px rgba(0, 0, 0, 0.3);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 310px;
  gap: 22px;
}

.story-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.story-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: #475569;
}

.info-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.info-card dt {
  color: #64748b;
  font-weight: 700;
}

.info-card dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.info-card a {
  color: var(--amber-deep);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 20px;
  align-items: end;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.filter-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.filter-panel p {
  margin: 0;
  color: var(--muted);
}

.filter-controls {
  display: flex;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  background: #ffffff;
  color: #111827;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

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

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

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

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
}

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

.no-results {
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 28px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
}

@media (max-width: 1080px) {
  .nav-menu {
    gap: 12px;
  }

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

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

@media (max-width: 860px) {
  .site-nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 11px 0;
  }

  .nav-search {
    width: 100%;
    order: 4;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    min-height: 620px;
    padding: 70px 0;
  }

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

  .large-card {
    grid-column: span 1;
    grid-row: span 1;
  }

  .list-card {
    grid-template-columns: 150px 1fr;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .content-section {
    padding: 48px 16px;
  }

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

  .list-card {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    flex-direction: column;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .play-ring {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
