:root {
  --bg: #fff8f3;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(248, 113, 113, 0.18);
  --red: #ef4444;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(127, 29, 29, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(254, 215, 170, 0.65), transparent 34rem), var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.08);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--amber));
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

.brand-text {
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #dc2626, #ea580c, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 15px;
  color: #4b5563;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.22);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(248, 113, 113, 0.22);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
}

.header-search button,
.primary-btn,
.band-btn {
  border: 0;
  border-radius: 13px;
  padding: 10px 16px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.24);
  transition: 0.25s ease;
}

.header-search button:hover,
.primary-btn:hover,
.band-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.32);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-panel a:hover {
  background: #fff1f2;
  color: #dc2626;
}

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

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  height: min(680px, calc(100vh - 74px));
  min-height: 560px;
  overflow: hidden;
  background: #7f1d1d;
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 8, 8, 0.84), rgba(124, 45, 18, 0.68) 48%, rgba(124, 45, 18, 0.18)), radial-gradient(circle at 70% 40%, rgba(251, 191, 36, 0.24), transparent 28rem);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100% - 1200px) / 2));
  width: min(720px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #fff;
}

.hero-kicker,
.inner-hero span,
.section-head span,
.detail-info .crumbs,
.crumbs {
  color: #fed7aa;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-content h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-content p {
  width: min(680px, 100%);
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.82rem;
  font-weight: 800;
}

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

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

.primary-btn,
.ghost-btn,
.text-link,
.band-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  min-height: 48px;
  padding: 12px 24px;
}

.ghost-btn {
  min-height: 48px;
  padding: 12px 24px;
  color: #fff;
  font-weight: 800;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

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

.hero-controls {
  position: absolute;
  right: max(24px, calc((100% - 1200px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 4;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots .hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots .hero-dot.active {
  width: 28px;
  background: #fff;
}

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

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.intro-strip h2,
.section-head h2,
.inner-hero h1,
.detail-info h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.intro-strip p,
.inner-hero p,
.full-band p,
.detail-info .lead,
.detail-section p,
.category-detail-body p,
.movie-card p,
.ranking-card p {
  color: var(--muted);
}

.text-link {
  color: #dc2626;
  font-weight: 900;
}

.text-link:hover {
  color: #ea580c;
}

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

.section-head a {
  color: #dc2626;
  font-weight: 900;
}

.section-head.plain {
  align-items: start;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(248, 113, 113, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(127, 29, 29, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

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

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

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

.play-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #fff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #9ca3af;
  font-size: 0.86rem;
  font-weight: 800;
}

.card-meta a {
  color: #dc2626;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: #dc2626;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.93rem;
}

.movie-card.compact .card-body {
  padding: 13px;
}

.movie-card.compact h3 {
  font-size: 1rem;
}

.full-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 72px 0;
  padding: 64px max(24px, calc((100% - 1200px) / 2));
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f97316, #f59e0b);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24);
}

.full-band h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.full-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
}

.band-btn {
  color: #dc2626;
  background: #fff;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #7f1d1d;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 8, 8, 0.86));
}

.category-card strong,
.category-card small {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #fff;
}

.category-card strong {
  bottom: 58px;
  font-size: 1.35rem;
}

.category-card small {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.84);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.ranking-box {
  position: sticky;
  top: 98px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.rank-item > span {
  color: #dc2626;
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: #fee2e2;
}

.rank-item strong,
.rank-item small {
  display: block;
}

.rank-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.inner-hero {
  margin: 0 0 28px;
  padding: 86px max(24px, calc((100% - 1200px) / 2));
  color: #fff;
  background: radial-gradient(circle at 78% 30%, rgba(251, 191, 36, 0.34), transparent 20rem), linear-gradient(135deg, #7f1d1d, #dc2626, #f97316);
}

.inner-hero.slim {
  padding-top: 72px;
  padding-bottom: 72px;
}

.inner-hero h1 {
  max-width: 820px;
  margin: 10px 0 12px;
  color: #fff;
}

.inner-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fed7aa;
}

.crumbs a:hover {
  color: #fff;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px 160px;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(127, 29, 29, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: 14px;
  outline: none;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(239, 68, 68, 0.52);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

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

.category-detail-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fff1f2;
}

.category-thumbs img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.category-detail-body {
  padding: 24px;
}

.category-detail-body h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.ranking-grid {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(127, 29, 29, 0.08);
}

.ranking-card img {
  width: 130px;
  height: 170px;
  border-radius: 16px;
  object-fit: cover;
  background: #fee2e2;
}

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

.ranking-card h2 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 38px;
  width: min(1200px, calc(100% - 32px));
  margin: 48px auto 38px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.92));
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: #fee2e2;
  box-shadow: 0 24px 48px rgba(127, 29, 29, 0.18);
}

.detail-info {
  align-self: center;
}

.detail-info .crumbs {
  color: #dc2626;
  margin-bottom: 12px;
}

.detail-info h1 {
  margin-bottom: 18px;
}

.detail-info .lead {
  max-width: 760px;
  font-size: 1.08rem;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section,
.detail-section {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  cursor: pointer;
  text-align: center;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(17, 24, 39, 0.72));
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 46px rgba(239, 68, 68, 0.35);
  font-size: 2.2rem;
}

.player-cover strong {
  max-width: min(680px, 88%);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
}

.player-frame.is-playing .player-cover {
  display: none;
}

.detail-section {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.related-wrap {
  margin-top: 44px;
}

.site-footer {
  margin-top: 80px;
  padding: 42px 0;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.footer-links a:hover {
  color: #fed7aa;
}

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

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

  .two-column {
    grid-template-columns: 1fr;
  }

  .ranking-box {
    position: static;
  }
}

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

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

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    top: 54%;
  }

  .hero-controls {
    left: 24px;
    right: auto;
  }

  .intro-strip,
  .full-band,
  .footer-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .category-detail-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero-carousel {
    height: 620px;
  }

  .hero-content h1 {
    letter-spacing: -0.06em;
  }

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

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

  .ranking-card {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }

  .ranking-card img {
    width: 96px;
    height: 132px;
  }

  .detail-hero {
    padding: 18px;
  }

  .detail-section {
    padding: 22px;
  }
}
