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

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

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--site-red);
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-red-dark));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.32);
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.nav-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.nav-search input {
  width: 210px;
  padding: 10px 12px 10px 16px;
  outline: none;
  color: #111827;
}

.nav-search button {
  width: 44px;
  align-self: stretch;
  color: var(--site-red);
  font-size: 20px;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #374151;
  font-size: 26px;
}

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

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-inner {
  display: grid;
  gap: 14px;
  padding: 18px 0;
}

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

.mobile-search input,
.filter-bar input,
.filter-bar select,
.quick-search-panel input {
  width: 100%;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.mobile-search button,
.quick-search-panel button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--site-red);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 22px;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.26);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.quick-search-panel button:hover,
.mobile-search button:hover {
  background: var(--site-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(220, 38, 38, 0.3);
}

.primary-btn.full {
  width: 100%;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.28), transparent 28%), linear-gradient(135deg, #111827, #1f2937 45%, #0f172a);
  color: #ffffff;
}

.hero-slide {
  position: relative;
  display: none;
  min-height: 620px;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 0.55s ease both;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-position: center;
  background-size: cover;
  filter: blur(2px) saturate(1.15);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72), rgba(127, 29, 29, 0.58));
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 420px);
  align-items: center;
  gap: 56px;
  min-height: 620px;
  padding: 60px 0 88px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 14px;
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.25);
}

.section-kicker {
  margin-bottom: 10px;
  background: #fee2e2;
  color: #b91c1c;
  box-shadow: none;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h3 {
  margin-bottom: 18px;
  color: #fde68a;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 850;
}

.hero-copy p {
  max-width: 720px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.detail-tags span,
.tag-pill {
  background: #fee2e2;
  color: #b91c1c;
}

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

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.025);
}

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

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 28px;
  transition: background 0.2s ease;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.quick-search-panel form {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 22px;
  align-items: center;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
  padding: 26px;
}

.quick-search-panel strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 22px;
}

.quick-search-panel p {
  color: var(--site-muted);
}

.quick-search-panel label {
  display: flex;
  gap: 12px;
}

.page-stack {
  display: grid;
  gap: 56px;
  padding: 56px 0;
}

.content-section {
  margin: 34px auto;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2 {
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-heading p:not(.section-kicker) {
  margin-top: 8px;
  color: var(--site-muted);
  line-height: 1.7;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--site-red);
  font-weight: 800;
  white-space: nowrap;
}

.section-more span {
  font-size: 24px;
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(3px);
}

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

.all-movie-grid {
  align-items: start;
}

.movie-card {
  min-width: 0;
}

.movie-card.is-hidden {
  display: none;
}

.movie-card-link {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--site-card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.12) 42%, rgba(0, 0, 0, 0.78));
}

.region-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.region-badge {
  left: 10px;
  background: var(--site-red);
  color: #ffffff;
}

.year-badge {
  right: 10px;
  background: var(--site-yellow);
  color: #111827;
}

.rank-badge {
  left: 10px;
  top: 44px;
  background: rgba(17, 24, 39, 0.86);
  color: #ffffff;
}

.play-bubble {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--site-red);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

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

.poster-info {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 14px;
}

.poster-info h3 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-info p {
  margin-top: 4px;
  color: #d1d5db;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-tile,
.category-card a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 190px;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.3s ease;
}

.category-tile:hover img,
.category-card a:hover img {
  transform: scale(1.06);
}

.category-tile::after,
.category-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(127, 29, 29, 0.88));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
  color: #ffffff;
}

.category-tile span {
  padding: 96px 18px 8px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  padding: 0 18px 18px;
  color: #fee2e2;
  font-size: 13px;
  line-height: 1.55;
}

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

.category-card a {
  min-height: 260px;
  background: #ffffff;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 150px;
  overflow: hidden;
}

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

.category-card-body {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.category-card-body h2 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.category-card-body p {
  margin: 8px 0 16px;
  color: #fee2e2;
  line-height: 1.7;
}

.category-card-body span {
  color: #ffffff;
  font-weight: 850;
}

.rank-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rank-panel,
.detail-info-card,
.side-poster-card,
.side-rank-card,
.player-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.rank-panel {
  padding: 26px;
}

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

.rank-list a,
.side-rank-card a {
  display: grid;
  grid-template-columns: 32px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  transition: background 0.2s ease;
}

.rank-list a:hover,
.side-rank-card a:hover {
  background: #fef2f2;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--site-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.rank-list img,
.side-rank-card img {
  width: 54px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.rank-list strong,
.side-rank-card span {
  display: block;
  min-width: 0;
  color: #111827;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list em,
.side-rank-card em {
  display: block;
  margin-top: 3px;
  color: var(--site-muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  background: radial-gradient(circle at 85% 15%, rgba(220, 38, 38, 0.24), transparent 28%), linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
}

.small-hero .container {
  padding: 72px 0;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p:not(.section-kicker) {
  max-width: 760px;
  margin-top: 16px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.75;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  padding: 18px;
}

.detail-page {
  padding: 32px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--site-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--site-red);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(0, 0, 0, 0.72));
}

.player-start {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--site-red);
  color: #ffffff;
  font-size: 38px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .player-start {
  background: var(--site-red-dark);
  transform: scale(1.06);
}

.detail-info-card {
  padding: 28px;
}

.detail-info-card h1 {
  margin-top: 18px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lead-text {
  margin-top: 16px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--site-border);
}

.detail-block h2,
.side-poster-card h2,
.side-rank-card h2 {
  margin-bottom: 12px;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
}

.detail-block p {
  color: #374151;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 92px;
}

.side-poster-card,
.side-rank-card {
  padding: 18px;
}

.side-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  object-fit: cover;
}

.side-poster-card h2 {
  margin-top: 18px;
}

.side-poster-card p {
  margin-bottom: 18px;
  color: var(--site-muted);
}

.side-rank-card a {
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 10px 0;
}

.related-section {
  margin-top: 42px;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .rank-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
    grid-template-columns: 280px 1fr;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding: 52px 0 92px;
  }

  .hero-poster {
    width: min(320px, 78vw);
    margin: 0 auto;
  }

  .quick-search-panel form,
  .filter-bar,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .quick-search-panel label {
    flex-direction: column;
  }

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

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

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

  .header-inner {
    min-height: 64px;
  }

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

  .hero-slide {
    min-height: auto;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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

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

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

  .poster-info {
    padding: 14px 10px;
  }

  .poster-info h3 {
    font-size: 14px;
  }

  .small-hero .container {
    padding: 52px 0;
  }

  .detail-info-card {
    padding: 22px;
  }

  .player-start {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
