:root {
  --brand-red: #dc2626;
  --brand-orange: #ea580c;
  --brand-yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --dark: #111827;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 48%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 19px;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-red);
  background: #fff1f2;
  transform: translateY(-1px);
}

.header-search {
  width: 260px;
}

.header-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.header-search input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

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

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

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(220, 38, 38, 0.28) 100%),
    radial-gradient(circle at 82% 22%, rgba(250, 204, 21, 0.28), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  margin-left: max(16px, calc((100vw - 1280px) / 2));
}

.hero-badge,
.sub-hero span {
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  font-weight: 800;
  font-size: 14px;
}

.hero-content h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content h1 span {
  display: block;
  margin-top: 14px;
  color: var(--brand-yellow);
  text-shadow: 0 10px 42px rgba(250, 204, 21, 0.38);
}

.hero-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.movie-meta-row,
.tag-row,
.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--brand-red);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

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

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.ghost-button.dark {
  color: var(--brand-red);
  border-color: #fecaca;
  background: #fff1f2;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.warm-section,
.dark-section {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1280px) / 2));
  padding-right: max(16px, calc((100vw - 1280px) / 2));
}

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

.dark-section {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.dark-section .section-head h2,
.dark-section .movie-card-body h3 {
  color: #ffffff;
}

.dark-section .section-head p,
.dark-section .movie-card-body p,
.dark-section .movie-meta-row {
  color: rgba(255, 255, 255, 0.72);
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-link {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 58%);
}

.movie-year {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand-red);
  font-size: 12px;
  font-weight: 900;
}

.movie-play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--brand-red);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-poster-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  color: #ffffff;
}

.movie-poster-title strong,
.movie-poster-title small {
  display: block;
}

.movie-poster-title small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0 0 8px;
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta-row {
  margin-top: 12px;
  justify-content: space-between;
  color: #9ca3af;
  font-size: 12px;
}

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

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

.category-card {
  padding: 18px;
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.category-card span {
  color: var(--brand-red);
  font-weight: 900;
}

.rank-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 54px 68px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.rank-number {
  color: var(--brand-orange);
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  width: 68px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  font-size: 16px;
  font-weight: 900;
}

.rank-info em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-play {
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  font-size: 13px;
  font-weight: 900;
}

.sub-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.28), transparent 26%),
    linear-gradient(135deg, #991b1b, #ea580c 55%, #111827);
}

.sub-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.sub-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  font-weight: 950;
}

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

.mini-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.mini-card span {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(250, 204, 21, 0.2), transparent 32%),
    linear-gradient(135deg, #111827, #7f1d1d 54%, #ea580c);
}

.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.03;
  font-weight: 950;
}

.detail-one-line {
  max-width: 880px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.75;
}

.tag-row {
  margin-top: 20px;
}

.detail-section {
  padding-bottom: 32px;
}

.static-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.62), rgba(153, 27, 27, 0.46)),
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 44%);
  cursor: pointer;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.play-circle {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand-red);
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
  font-size: 24px;
  font-weight: 950;
}

.player-overlay em {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

.detail-text-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding-top: 28px;
}

.article-card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 950;
}

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

.site-footer {
  margin-top: 48px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.site-footer p {
  max-width: 420px;
  color: #9ca3af;
  line-height: 1.8;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
  text-decoration: none;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[hidden-by-search="true"] {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
  }

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

  .compact-rank {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-text small {
    display: none;
  }

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

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

  .content-section,
  .warm-section,
  .dark-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

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

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

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

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

  .rank-item a {
    grid-template-columns: 42px 54px 1fr;
  }

  .rank-play {
    display: none;
  }

  .rank-item img {
    width: 54px;
    height: 72px;
  }

  .detail-shell {
    grid-template-columns: 1fr;
    padding: 38px 0;
  }

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

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