:root {
  color-scheme: light;
  --site-red: #dc2626;
  --site-red-dark: #b91c1c;
  --site-rose: #e11d48;
  --site-amber: #d97706;
  --site-text: #1f2937;
  --site-muted: #64748b;
  --site-border: #e5e7eb;
  --site-soft: #f8fafc;
  --site-card: #ffffff;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--site-text);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.96));
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--site-red), var(--site-rose));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text strong {
  display: block;
  font-size: 21px;
  line-height: 1;
  color: #111827;
}

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

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

.nav-link {
  font-weight: 600;
  color: #374151;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--site-red-dark);
}

.top-search {
  position: relative;
  width: 240px;
  display: flex;
  align-items: center;
}

.top-search input,
.mobile-search input,
.movie-filter,
.search-panel input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 44px 11px 18px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.movie-filter:focus,
.search-panel input:focus {
  border-color: var(--site-red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.top-search button {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--site-muted);
  background: transparent;
  cursor: pointer;
}

.top-search button:hover {
  color: var(--site-red);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 26px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid #e5e7eb;
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  padding-right: 18px;
}

.mobile-search button,
.search-panel button {
  border: 0;
  cursor: pointer;
}

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  font-weight: 600;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--site-red-dark);
  background: #fef2f2;
}

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.48) 46%, rgba(2, 6, 23, 0.18));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(1180px, calc(100% - 42px));
  transform: translateX(-50%);
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f87171;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-kicker::before,
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.18);
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-tags span:first-child {
  background: var(--site-red);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: var(--site-red);
  box-shadow: 0 16px 28px rgba(220, 38, 38, 0.25);
}

.primary-btn:hover {
  background: var(--site-red-dark);
  transform: translateY(-2px);
}

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

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

.ghost-btn.light {
  color: #fff;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.34);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.page-top {
  padding-top: 34px;
}

.section-block {
  margin: 54px 0;
}

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

.section-head h2,
.section-head h3 {
  margin: 0;
  color: #1f2937;
  font-weight: 900;
}

.section-head h2 {
  font-size: 28px;
}

.section-head h3 {
  font-size: 19px;
}

.section-head a {
  color: var(--site-red);
  font-weight: 800;
}

.small-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.small-head h3 span {
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: var(--site-red);
}

.horizontal-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(285px, 340px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
}

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

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

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

.category-preview {
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: var(--site-card);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

.mini .poster-frame {
  aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
  transition: opacity 0.25s ease;
}

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

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: 999px;
  color: var(--site-amber);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.66);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--site-red-dark);
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
}

.page-hero {
  overflow: hidden;
  border-radius: 28px;
  padding: 44px;
  color: #fff;
  background: radial-gradient(circle at 18% 0%, rgba(248, 113, 113, 0.58), transparent 28%), linear-gradient(135deg, #0f172a, #7f1d1d 58%, #111827);
  box-shadow: var(--site-shadow);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 17px;
  line-height: 1.8;
}

.compact-hero {
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.category-hero {
  background: radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.28), transparent 28%), linear-gradient(135deg, #111827, #991b1b);
}

.ranking-hero {
  background: radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.32), transparent 30%), linear-gradient(135deg, #111827, #7f1d1d);
}

.small-actions {
  margin-top: 22px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--site-red-dark);
}

.category-list-large {
  display: grid;
  gap: 24px;
  margin: 38px 0 60px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

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

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-card-large p {
  margin: 0 0 16px;
  color: #64748b;
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-samples a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 14px;
}

.with-filter {
  align-items: center;
}

.movie-filter {
  max-width: 280px;
  padding-right: 18px;
}

.rank-list,
.ranking-strip {
  display: grid;
  gap: 16px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.rank-num {
  color: #dc2626;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.rank-cover img {
  width: 112px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-body p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-panel {
  display: flex;
  max-width: 680px;
  gap: 12px;
  margin-top: 24px;
}

.search-panel input {
  padding-right: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
  gap: 28px;
}

.player-panel,
.detail-card,
.side-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.12));
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-start span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: var(--site-red);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.32);
}

.player-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.9;
}

.lead-text {
  color: #111827 !important;
  font-size: 18px;
  font-weight: 700;
}

.detail-meta {
  margin-bottom: 16px;
  color: #4b5563;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
}

.detail-meta span:first-child {
  color: #991b1b;
  background: #fef2f2;
  font-weight: 800;
}

.tag-row {
  margin-bottom: 22px;
}

.tag-row span {
  color: #374151;
  background: #f3f4f6;
}

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

.side-card {
  position: sticky;
  top: 94px;
  padding: 22px;
}

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

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

.compact-card img {
  width: 112px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong {
  display: -webkit-box;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.more-block {
  margin-top: 44px;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #111827;
}

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

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 460px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px;
  color: #94a3b8;
  text-align: center;
}

.is-filter-hidden {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  border-radius: 18px;
  color: #64748b;
  background: #fff;
  text-align: center;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 12px;
  }

  .nav-extra {
    display: none;
  }

  .top-search {
    width: 210px;
  }

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

  .category-preview-grid,
  .ranking-strip,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

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

  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    bottom: 68px;
  }

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

  .hero-nav {
    display: none;
  }

  .page-hero {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .section-head,
  .with-filter,
  .footer-inner,
  .category-card-large {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-filter {
    max-width: none;
  }

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

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

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

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

  .rank-body p {
    display: none;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .header-inner,
  .mobile-menu,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-tags span:nth-child(n + 5) {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .horizontal-cards {
    grid-auto-columns: 82%;
  }

  .four-cols {
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-info p {
    display: none;
  }

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

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

  .detail-card {
    padding: 20px;
  }
}
