:root {
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --orange: #f97316;
  --rose: #fb7185;
  --ink: #111827;
  --muted: #6b7280;
  --paper: #ffffff;
  --cream: #fff7ed;
  --line: rgba(17, 24, 39, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.25), transparent 34%), linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.96), rgba(249, 115, 22, 0.96), rgba(244, 63, 94, 0.96));
  box-shadow: 0 12px 30px rgba(194, 65, 12, 0.24);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 -4px 12px rgba(245, 158, 11, 0.22);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: #fff;
  transition: transform 0.2s ease;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  margin: auto;
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-7px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-nav a {
  color: #fff;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

main {
  flex: 1;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111827;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28) 54%, rgba(0, 0, 0, 0.08));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background-image: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.3), transparent 28%), radial-gradient(circle at 75% 70%, rgba(244, 63, 94, 0.22), transparent 35%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72vh;
  padding: 88px 20px 96px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  color: #fff;
}

.hero-panel {
  display: none;
}

.hero-panel.is-active {
  display: block;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 950;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-copy p {
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
}

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

.btn-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section.tight {
  padding-top: 36px;
}

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

.section-title h2,
.section-title h1 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.cover-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fed7aa, #fecdd3);
}

.cover-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .cover-frame img,
.related-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: #fff;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge {
  min-height: 24px;
  padding: 0 10px;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #78716c;
  font-size: 13px;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.category-band {
  border-radius: 28px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(120deg, #0ea5e9, #06b6d4, #14b8a6);
  box-shadow: 0 24px 60px rgba(14, 165, 233, 0.22);
}

.category-band .section-title h2,
.category-band .section-title p {
  color: #fff;
}

.split-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.split-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.split-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.96), rgba(249, 115, 22, 0.96));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(3n + 2) {
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #8b5cf6, #f43f5e);
}

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

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 950;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 16px;
  outline: none;
  background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 74px 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-badge {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.rank-row img {
  width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  padding: 72px 0 46px;
  background: radial-gradient(circle at 16% 20%, rgba(245, 158, 11, 0.28), transparent 28%), radial-gradient(circle at 86% 30%, rgba(244, 63, 94, 0.18), transparent 32%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
}

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

.detail-card,
.aside-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.detail-body {
  padding: 30px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.detail-intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
}

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

.info-item {
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
}

.info-item strong {
  display: block;
  margin-bottom: 4px;
  color: #9a3412;
  font-size: 13px;
}

.info-item span {
  font-weight: 900;
}

.article-copy h2 {
  margin: 30px 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.article-copy p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #030712;
  border-radius: 28px 28px 0 0;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  display: block;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.54));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.42);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.play-button svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
}

.player-message.is-visible {
  display: block;
}

.aside-card {
  padding: 18px;
}

.aside-card h2 {
  margin: 4px 0 16px;
  font-size: 22px;
  font-weight: 950;
}

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

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

.related-card img {
  width: 112px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.5s ease;
}

.related-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  margin-top: 64px;
  padding: 46px 0 28px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.footer-grid p,
.footer-grid li {
  color: #9ca3af;
  line-height: 1.75;
}

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

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1024px) {
  .grid.cards-4,
  .category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: grid;
  }

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

  .hero,
  .hero-content {
    min-height: 680px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 50px 120px 1fr;
  }

  .rank-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

@media (max-width: 560px) {
  .nav-wrap {
    min-height: 66px;
  }

  .logo {
    font-size: 19px;
  }

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

  .hero-content {
    padding-top: 64px;
    padding-bottom: 84px;
  }

  .hero-actions,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.cards-4,
  .grid.cards-3,
  .grid.cards-2,
  .category-list {
    grid-template-columns: 1fr;
  }

  .category-band {
    padding: 22px;
  }

  .detail-body {
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: 42px 92px 1fr;
    gap: 12px;
  }

  .rank-row img {
    width: 92px;
  }

  .related-card {
    grid-template-columns: 96px 1fr;
  }

  .related-card img {
    width: 96px;
  }

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