:root {
  --page-bg: #fff7ed;
  --paper: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.82);
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 113, 133, 0.22);
  --rose: #e11d48;
  --rose-dark: #be123c;
  --orange: #ea580c;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(190, 18, 60, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #ffe4e6 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb7185, #f97316);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
}

.brand-text,
.footer-logo {
  font-size: 20px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--rose);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--rose);
  background: #fff1f2;
  cursor: pointer;
}

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(190, 18, 60, 0.94), rgba(234, 88, 12, 0.82) 48%, rgba(17, 24, 39, 0.48));
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1240px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  color: #ffffff;
}

.hero-content h1,
.page-hero h1 {
  margin: 8px 0 18px;
  max-width: 820px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.ranking-strip .eyebrow {
  color: #ffe4e6;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

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

.tag-row.wide {
  margin: 18px 0 28px;
}

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

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

.primary-button {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(255, 255, 255, 0.18);
}

.primary-button.small {
  min-height: 44px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.66);
}

.ghost-button.light {
  border-color: rgba(255, 255, 255, 0.8);
}

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

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.content-section,
.quick-categories,
.category-overview,
.split-section,
.ranking-strip,
.detail-layout {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.content-section,
.quick-categories,
.category-overview {
  padding: 72px 0;
}

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

.section-head.centered {
  display: block;
  text-align: center;
}

.section-head h2 {
  margin: 6px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

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

.section-head a {
  color: var(--rose);
  font-weight: 900;
}

.pill-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.pill-links a {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: #374151;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.06);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 113, 133, 0.16);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 46px rgba(190, 18, 60, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(234, 88, 12, 0.18));
}

.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-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
  transition: opacity 0.25s ease;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .play-dot {
  opacity: 1;
}

.movie-card:hover .play-dot {
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  min-width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.3);
}

.card-body {
  padding: 18px;
}

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

.meta-line span,
.detail-meta span {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.compact-card h3 {
  font-size: 16px;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
  padding: 72px 0;
}

.feature-panel {
  position: sticky;
  top: 92px;
  padding: 30px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--rose), var(--orange));
  box-shadow: var(--shadow);
}

.feature-panel h2 {
  margin: 10px 0;
  font-size: 34px;
  line-height: 1.08;
}

.feature-panel p {
  color: rgba(255, 255, 255, 0.84);
}

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

.category-tile {
  min-height: 154px;
  padding: 24px;
  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(190, 18, 60, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: var(--rose);
  font-size: 22px;
}

.category-tile span {
  color: var(--muted);
}

.category-tile.big {
  min-height: 190px;
}

.category-overview.wide {
  padding-top: 36px;
}

.ranking-strip {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  padding: 42px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #881337, #c2410c);
  box-shadow: var(--shadow);
}

.ranking-copy h2 {
  margin: 8px 0 12px;
  font-size: 42px;
  line-height: 1.05;
}

.ranking-copy p {
  color: rgba(255, 255, 255, 0.82);
}

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

.side-media {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-media:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.side-media img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.side-media strong {
  display: block;
  color: #ffffff;
  line-height: 1.35;
}

.side-media em {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-size: 13px;
}

.side-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 42px rgba(190, 18, 60, 0.06);
}

.sticky-filter {
  position: sticky;
  top: 82px;
  z-index: 8;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(251, 113, 133, 0.22);
  border-radius: 16px;
  padding: 0 16px;
  color: #374151;
  background: #ffffff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.page-hero {
  width: min(1240px, calc(100% - 40px));
  margin: 34px auto 0;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: center;
  border-radius: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.96), rgba(234, 88, 12, 0.92));
  box-shadow: var(--shadow);
}

.compact-hero {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: 32px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

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

.player-card,
.detail-card,
.side-panel {
  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(190, 18, 60, 0.1);
}

.player-card {
  overflow: hidden;
  background: #111827;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111827;
}

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

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

.cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.55), rgba(17, 24, 39, 0.72));
}

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.94);
  font-size: 30px;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.detail-card {
  margin-top: 24px;
  padding: 32px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.detail-card h1 {
  margin: 8px 0 14px;
  color: #111827;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.detail-card h2 {
  margin: 26px 0 10px;
  color: #111827;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.lead-text {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, #fff1f2, #ffedd5);
  color: #374151;
  font-weight: 700;
}

.share-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  white-space: nowrap;
}

.detail-sidebar {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.side-panel h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
}

.side-panel .side-media {
  background: #fff7ed;
}

.side-panel .side-media:hover {
  background: #fff1f2;
}

.side-panel .side-media strong {
  color: #111827;
}

.side-panel .side-media em {
  color: var(--muted);
}

.side-panel .side-rank {
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.detail-related {
  width: auto;
  padding: 48px 0 0;
}

.site-footer {
  margin-top: 60px;
  color: #ffffff;
  background: linear-gradient(135deg, #881337, #7c2d12);
}

.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer-inner p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

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

.hidden-card {
  display: none;
}

@media (max-width: 1100px) {
  .large-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .ranking-strip,
  .page-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

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

  .main-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
  }

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

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

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

  .content-section,
  .quick-categories,
  .category-overview,
  .split-section,
  .ranking-strip,
  .detail-layout,
  .page-hero {
    width: min(100% - 24px, 1240px);
  }

  .content-section,
  .quick-categories,
  .category-overview,
  .split-section {
    padding: 46px 0;
  }

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

  .card-body {
    padding: 14px;
  }

  .movie-card p {
    -webkit-line-clamp: 2;
  }

  .ranking-strip,
  .page-hero,
  .detail-card {
    padding: 24px;
    border-radius: 26px;
  }

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

  .section-head,
  .title-row {
    display: block;
  }

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

@media (max-width: 480px) {
  .large-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .side-media {
    grid-template-columns: 72px 1fr auto;
  }

  .side-media img {
    width: 72px;
    height: 54px;
  }
}
