:root {
  --site-bg: #f8fafc;
  --site-card: #ffffff;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-soft: #fee2e2;
  --site-red: #dc2626;
  --site-red-dark: #991b1b;
  --site-border: #e5e7eb;
  --site-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--site-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.28);
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 32vw);
  margin-left: auto;
  padding: 6px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.mobile-search input,
.big-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--site-text);
}

.header-search button,
.mobile-search button,
.big-search button {
  border-radius: 999px;
  background: var(--site-red);
  color: #ffffff;
  font-weight: 700;
  padding: 8px 15px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.primary-button:hover {
  background: var(--site-red-dark);
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f3f4f6;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--site-border);
  background: #ffffff;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--site-border);
  border-radius: 18px;
}

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

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

.hero-slide {
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(239, 68, 68, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: -60px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 820px;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 650px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-actions {
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--site-red);
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.36);
}

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

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

.hero-tags {
  max-width: 680px;
  margin-top: 24px;
}

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

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 154px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 22px;
  font-weight: 900;
}

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

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  min-height: 10px;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.42) !important;
}

.hero-dot.active {
  width: 30px !important;
  background: #ffffff !important;
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.45fr);
  gap: 18px;
  transform: translateX(-50%);
}

.hero-search-card,
.hero-rank-card,
.ranking-panel,
.detail-side,
.static-article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card {
  padding: 22px;
}

.hero-search-card > span,
.hero-rank-card h2 {
  display: block;
  margin-bottom: 14px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.hero-search-card form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: #f3f4f6;
}

.hero-search-card input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 10px;
}

.hero-search-card button {
  border-radius: 15px;
  color: #ffffff;
  background: var(--site-red);
  padding: 10px 18px;
  font-weight: 800;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #991b1b;
  background: #fee2e2;
  font-size: 13px;
  font-weight: 800;
}

.hero-rank-card,
.ranking-panel {
  padding: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #f9fafb;
  transform: translateX(2px);
}

.compact-cover {
  width: 62px;
  height: 76px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.compact-info {
  min-width: 0;
}

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

.compact-info strong {
  overflow: hidden;
  color: #111827;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-info em {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  font-weight: 900;
}

.content-section {
  padding: 72px 0;
}

.alt-section {
  background: #ffffff;
}

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

.section-heading .eyebrow,
.page-hero .eyebrow {
  color: var(--site-red);
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--site-muted);
  line-height: 1.75;
}

.section-more {
  color: var(--site-red);
  background: var(--site-soft);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: var(--site-card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(220, 38, 38, 0.34);
  box-shadow: var(--site-shadow);
  transform: translateY(-4px);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.9);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-meta {
  margin-bottom: 7px;
  color: var(--site-red);
  font-size: 12px;
  font-weight: 850;
}

.movie-card h3 {
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 45px;
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 22%, rgba(239, 68, 68, 0.34), transparent 30%),
    linear-gradient(135deg, #111827, #7f1d1d);
}

.small-hero {
  padding: 88px 0 70px;
}

.page-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #111827);
  box-shadow: var(--site-shadow);
}

.category-card span,
.category-overview-card h2 {
  display: block;
  font-size: 26px;
  font-weight: 900;
}

.category-card em,
.category-overview-card p {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.7;
}

.category-overview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  background-size: cover;
  background-position: center;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-weight: 800;
}

.pagination .current {
  color: #ffffff;
  background: var(--site-red);
  border-color: var(--site-red);
}

.ranking-hero {
  padding: 72px 0;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.62fr);
  gap: 34px;
  align-items: center;
}

.detail-hero {
  padding: 62px 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  min-height: 440px;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--site-shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 24px;
}

.detail-meta-grid span {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.detail-tags {
  margin-top: 22px;
}

.player-section {
  padding-top: 56px;
  padding-bottom: 40px;
  background: #0f172a;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--site-shadow);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.32), rgba(2, 6, 23, 0.44));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--site-red);
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.42);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-article,
.detail-side {
  border: 1px solid var(--site-border);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.detail-side h2,
.static-article h2 {
  margin-bottom: 16px;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p,
.static-article p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  align-self: start;
  padding: 26px;
}

.detail-side dl {
  display: grid;
  gap: 13px;
}

.detail-side dt {
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-side dd {
  margin-bottom: 8px;
  color: #111827;
  font-weight: 800;
}

.big-search {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
}

.big-search input {
  padding: 0 12px;
  font-size: 18px;
}

.big-search button {
  padding: 12px 24px;
}

.narrow-page {
  max-width: 860px;
}

.static-article {
  padding: 34px;
}

.site-footer {
  padding: 54px 0 24px;
  background: #111827;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.6fr) minmax(220px, 0.6fr);
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  margin-top: 14px;
  color: #d1d5db;
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 900;
}

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

.footer-links a {
  color: #d1d5db;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}

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

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

  .hero {
    min-height: 820px;
  }
}

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

  .menu-button {
    display: flex;
    margin-left: auto;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    margin-top: -120px;
  }

  .hero-panel {
    bottom: 18px;
  }

  .hero-controls {
    bottom: 222px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-poster {
    min-height: 360px;
  }

  .section-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .site-logo {
    font-size: 18px;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
    line-height: 1.05;
  }

  .hero-panel,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    display: none;
  }

  .content-section {
    padding: 52px 0;
  }

  .small-hero,
  .ranking-hero {
    padding: 64px 0 48px;
  }

  .big-search,
  .hero-search-card form {
    flex-direction: column;
  }
}
