:root {
  --site-red: #ef4444;
  --site-red-dark: #dc2626;
  --site-orange: #f97316;
  --site-yellow: #f59e0b;
  --site-dark: #111827;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-soft: #f9fafb;
  --site-card: #ffffff;
  --site-border: #e5e7eb;
  --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --site-radius: 22px;
}

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

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

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

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--site-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-orange));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
  font-size: 15px;
}

.brand-name {
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-weight: 650;
  color: #4b5563;
  transition: color 0.25s ease;
}

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

.header-search {
  width: min(320px, 28vw);
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.filter-search {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 14px;
  color: var(--site-dark);
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-orange));
  font-weight: 700;
}

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

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--site-dark);
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 700;
}

.mobile-search {
  display: flex;
  margin: 12px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

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

.hero-slides {
  min-height: 620px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 88px max(24px, calc((100vw - 1280px) / 2 + 24px)) 92px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.78) 44%, rgba(17, 24, 39, 0.42) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-copy {
  color: #ffffff;
  max-width: 720px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--site-red);
  background: rgba(239, 68, 68, 0.11);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #fecaca;
  background: rgba(255, 255, 255, 0.12);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-desc {
  margin-top: 22px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

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

.primary-button,
.ghost-button,
.card-action,
.rank-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.card-action,
.rank-watch {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-orange));
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.25);
}

.primary-button {
  padding: 14px 26px;
}

.ghost-button {
  padding: 13px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

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

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

.hero-poster {
  display: block;
  height: min(520px, 64vh);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

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

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

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

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-lift {
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

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

.section-head.centered {
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  color: var(--site-dark);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 42px);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--site-radius);
  background: var(--site-card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px 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 {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

.poster-link img {
  transition: transform 0.45s ease, opacity 0.35s ease;
}

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

.poster-type,
.poster-year {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
  backdrop-filter: blur(10px);
}

.poster-type {
  left: 12px;
  background: rgba(239, 68, 68, 0.85);
}

.poster-year {
  right: 12px;
  background: rgba(17, 24, 39, 0.65);
}

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

.movie-kicker,
.rank-meta {
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card-title {
  margin-top: 8px;
  color: var(--site-dark);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.35;
}

.movie-card-title a:hover,
.rank-info h2 a:hover,
.side-link:hover span {
  color: var(--site-red);
}

.movie-card-desc {
  margin: 10px 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-action {
  margin-top: 16px;
  padding: 10px 15px;
  font-size: 14px;
}

.category-section {
  max-width: none;
  background: linear-gradient(135deg, #fff7ed, #fef2f2 55%, #ffffff);
}

.category-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(254, 202, 202, 0.7);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(239, 68, 68, 0.14);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-orange));
  font-weight: 900;
}

.category-card strong {
  color: var(--site-dark);
  font-size: 21px;
  font-weight: 900;
}

.category-card span:last-child {
  color: var(--site-muted);
  line-height: 1.75;
  font-size: 14px;
}

.page-hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 64px 24px;
  border-radius: 0 0 36px 36px;
}

.simple-hero,
.channel-hero,
.ranking-hero,
.search-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.75), transparent 35%), linear-gradient(135deg, #111827, #1f2937 55%, #7f1d1d);
}

.page-hero h1 {
  margin-top: 14px;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 56px);
}

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

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--site-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-search-wrap {
  flex: 1 1 auto;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 0 6px;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-selects select {
  min-height: 42px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  padding: 0 14px;
  outline: none;
}

.filter-empty {
  padding: 28px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: #ffffff;
  color: var(--site-muted);
  text-align: center;
  font-weight: 700;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-orange));
  font-weight: 900;
}

.rank-thumb {
  display: block;
  width: 96px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.rank-info h2 {
  color: var(--site-dark);
  font-size: 20px;
  font-weight: 850;
}

.rank-info p:last-child {
  margin-top: 7px;
  color: #4b5563;
  line-height: 1.7;
}

.rank-watch {
  padding: 10px 18px;
  white-space: nowrap;
}

.breadcrumb {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--site-muted);
  font-weight: 700;
}

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

.detail-layout {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-info,
.side-card {
  background: #ffffff;
  border: 1px solid var(--site-border);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.video-box video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  background: #000000;
  cursor: pointer;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-orange));
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.38);
  font-size: 32px;
  padding-left: 5px;
}

.video-box.is-playing .player-cover {
  display: none;
}

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

.detail-info h1 {
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;
}

.detail-lead {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.8;
  color: #374151;
}

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

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.meta-pills span {
  border-radius: 14px;
  padding: 10px 12px;
  color: #7f1d1d;
  background: #fef2f2;
  font-weight: 800;
}

.detail-info h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--site-dark);
  font-size: 24px;
  font-weight: 900;
}

.detail-info p:not(.section-kicker):not(.detail-lead) {
  color: #374151;
  line-height: 2;
  font-size: 17px;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin-bottom: 14px;
  color: var(--site-dark);
  font-size: 21px;
  font-weight: 900;
}

.side-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 800;
  color: #374151;
}

.side-link:last-child {
  border-bottom: 0;
}

.side-link img {
  width: 58px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: #111827;
}

.category-side a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-weight: 800;
}

.category-side a:hover {
  color: var(--site-red);
}

.related-section {
  padding-top: 44px;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  margin-top: 18px;
  line-height: 1.8;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-content: start;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  color: #9ca3af;
  text-align: center;
}

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

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

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

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

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

  .hero,
  .hero-slides {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 64px;
  }

  .hero-poster {
    height: 360px;
    max-width: 300px;
    transform: rotate(0deg);
  }

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero,
  .hero-slides {
    min-height: 720px;
  }

  .hero-slide {
    padding: 46px 18px 82px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .section,
  .page-hero,
  .detail-layout,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .filter-bar,
  .page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-selects {
    width: 100%;
  }

  .filter-selects select {
    flex: 1 1 140px;
  }

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

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

  .movie-card-title {
    font-size: 17px;
  }

  .rank-item {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .rank-thumb {
    width: 70px;
  }

  .rank-watch {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .detail-info {
    padding: 22px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .catalog-grid,
  .small-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
