:root {
  --rose: #fb7185;
  --rose-dark: #e11d48;
  --orange: #fb923c;
  --orange-dark: #ea580c;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --panel: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 60px rgba(225, 29, 72, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(251, 146, 60, 0.18), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(251, 113, 133, 0.18), transparent 32%),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #fff7ed 100%);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button, input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 28px rgba(225, 29, 72, 0.08);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 24px rgba(251, 113, 133, 0.3);
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

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

.brand-text strong, .footer-brand strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--rose-dark), var(--orange-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

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

.desktop-nav a, .mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: #4b5563;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.desktop-nav a:hover, .mobile-nav a:hover {
  color: var(--rose-dark);
  background: #fff1f2;
  transform: translateY(-1px);
}

.desktop-nav a.active, .mobile-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 14px 22px rgba(251, 113, 133, 0.25);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: #fff1f2;
  border-radius: 14px;
  width: 44px;
  height: 44px;
  padding: 11px;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 54px;
  min-height: 540px;
  border-radius: 34px;
  overflow: hidden;
  color: #fff;
  background: #111827;
  box-shadow: 0 34px 70px rgba(17, 24, 39, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

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

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.56) 52%, rgba(251, 113, 133, 0.18)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 48%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 40px;
  padding: 62px;
}

.hero-copy {
  max-width: 680px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-dark);
  background: #fff1f2;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero .kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.hero p {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}

.hero-tags span, .tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tag-row span {
  color: var(--rose-dark);
  background: #fff1f2;
  border-color: #ffe4e6;
}

.hero-actions, .action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 16px 24px rgba(251, 113, 133, 0.3);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.btn-soft {
  color: var(--rose-dark);
  background: #fff1f2;
  border-color: #ffe4e6;
}

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

.hero-panel {
  align-self: center;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
}

.hero-panel strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.hero-panel a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 62px;
  bottom: 30px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
}

.hero-dots button.is-active {
  background: #fff;
}

.section {
  padding: 44px 0;
}

.section.band {
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.86), rgba(240, 249, 255, 0.7));
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

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

.section-head h1, .section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  flex: 0 0 auto;
  color: var(--rose-dark);
  font-weight: 900;
  background: #fff;
  border: 1px solid #ffe4e6;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(251, 113, 133, 0.11);
}

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

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

.movie-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  border-radius: 24px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  overflow: hidden;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 54px rgba(225, 29, 72, 0.17);
  background: #fff;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent);
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(12px);
}

.badge-year {
  top: 10px;
  left: 10px;
}

.badge-type {
  right: 10px;
  bottom: 10px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.card-copy {
  display: grid;
  gap: 8px;
}

.card-copy strong {
  font-size: 18px;
  line-height: 1.3;
}

.card-copy em {
  min-height: 45px;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  background: #fff1f2;
  border-radius: 999px;
  padding: 5px 8px;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.9), rgba(251, 146, 60, 0.86)),
    var(--bg, none);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card strong {
  position: relative;
  z-index: 1;
  font-size: 26px;
}

.category-card span {
  position: relative;
  z-index: 1;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.07);
}

.rank-no {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-thumb {
  width: 64px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #fff1f2;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.rank-year {
  color: var(--rose-dark);
  font-weight: 900;
}

.search-panel {
  margin-top: 28px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.search-box input {
  width: 100%;
  height: 52px;
  border: 1px solid #ffe4e6;
  border-radius: 18px;
  padding: 0 18px;
  background: #fff;
  outline: none;
  color: var(--ink);
}

.search-box input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-chip {
  border: 0;
  color: #9f1239;
  font-weight: 900;
  background: #fff1f2;
  border-radius: 999px;
  padding: 9px 13px;
}

.filter-chip.active {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.page-hero {
  margin-top: 32px;
  padding: 40px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  right: -80px;
  top: -90px;
  background: rgba(255, 255, 255, 0.2);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.page-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.detail-hero {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  background: #fff1f2;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 42px rgba(225, 29, 72, 0.1);
}

.detail-copy h1 {
  margin: 8px 0 16px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.info-strip span {
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 900;
  color: var(--rose-dark);
  background: #fff1f2;
}

.player-card {
  margin-top: 34px;
  border-radius: 30px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(251, 113, 133, 0.25), transparent 30%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.25));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 20px 40px rgba(251, 113, 133, 0.34);
  font-size: 32px;
  padding-left: 6px;
}

.player-caption {
  padding: 20px 24px;
  color: #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.player-caption strong {
  color: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 34px;
}

.article-card, .side-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.09);
}

.article-card + .article-card {
  margin-top: 20px;
}

.article-card h2, .side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
  font-size: 16px;
}

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

.related-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
}

.related-list img {
  width: 54px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: #fff1f2;
}

.related-list strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-list em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  margin-top: 3px;
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
}

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

.site-footer {
  margin-top: 60px;
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fb7185;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-inner,
  .detail-hero,
  .content-grid,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

@media (max-width: 720px) {
  .container,
  .hero {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    min-width: 0;
  }

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

  .hero {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-inner {
    min-height: 620px;
    padding: 34px 24px 74px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-dots {
    left: 24px;
  }

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

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

  .detail-copy,
  .page-hero,
  .article-card,
  .side-card {
    padding: 22px;
    border-radius: 22px;
  }

  .rank-item {
    grid-template-columns: 44px 52px minmax(0, 1fr);
  }

  .rank-year {
    display: none;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster {
    aspect-ratio: 16 / 10;
  }

  .detail-poster .poster {
    aspect-ratio: 16 / 10;
  }
}
