:root {
  color-scheme: light;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-soft: #ffedd5;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --dark: #111827;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #d97706 0%, #ea580c 48%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 10px 35px rgba(127, 29, 29, 0.18);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-text {
  font-size: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
}

.nav-link,
.mobile-link {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fde68a;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  background: rgba(154, 52, 18, 0.94);
}

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

.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.quick-nav {
  background: rgba(17, 24, 39, 0.12);
}

.quick-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  font-size: 14px;
  white-space: nowrap;
}

.quick-nav a:hover {
  color: #fffbeb;
}

.hero {
  position: relative;
  height: min(78vh, 680px);
  min-height: 520px;
  overflow: hidden;
  background: #000000;
}

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

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

.hero-image {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.18) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.05) 55%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 88px;
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fed7aa;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
  max-width: 660px;
}

.hero-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-tags,
.tag-list,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.tag-list span {
  background: var(--accent-soft);
  color: #9a3412;
}

.detail-tags span {
  background: #fff7ed;
  color: #9a3412;
}

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

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

.primary-button {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.primary-button.small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--accent);
}

.search-strip,
.page-shell,
.content-section,
.split-section {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.search-strip {
  margin-top: -34px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 24px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-strip h2,
.section-heading h2,
.ranking-box h2,
.article-section h2,
.player-copy h2 {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.search-strip p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-box,
.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.search-box input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.content-section {
  padding-top: 58px;
  padding-bottom: 10px;
}

.content-section.no-top {
  padding-top: 22px;
}

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

.section-more {
  min-height: 38px;
  padding: 0 14px;
  background: #fff7ed;
  color: var(--accent-dark);
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.16);
}

.card-link {
  display: block;
  height: 100%;
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #1f2937, #431407);
}

.movie-card.wide .card-cover {
  aspect-ratio: 16 / 10;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 2;
}

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

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-body p {
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.category-section {
  max-width: none;
  background: linear-gradient(90deg, #fff7ed 0%, #fef2f2 100%);
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

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

.category-panel,
.category-overview-card {
  border-radius: 22px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(154, 52, 18, 0.09);
}

.category-panel h2,
.category-overview-card h2 {
  margin: 14px 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-panel p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.category-thumbs img {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
  background: #1f2937;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 310px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
  scroll-snap-align: start;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding-top: 50px;
  padding-bottom: 66px;
}

.ranking-box {
  align-self: start;
  position: sticky;
  top: 118px;
  border-radius: 24px;
  padding: 22px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-box ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.rank-link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rank-link strong {
  color: #fdba74;
}

.rank-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-link em {
  color: #cbd5e1;
  font-style: normal;
}

.page-shell {
  padding-top: 28px;
  padding-bottom: 60px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 56px;
  background: linear-gradient(135deg, #111827 0%, #7c2d12 55%, #dc2626 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.page-hero.slim {
  padding: 46px;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

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

.filter-panel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 16px;
  align-items: end;
  border-radius: 22px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.search-page-filter {
  grid-template-columns: minmax(320px, 1fr) 190px 190px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.category-overview-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: #f8fafc;
}

.compact-card:hover {
  background: #fff7ed;
}

.compact-card img {
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: #1f2937;
}

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

.compact-card strong {
  line-height: 1.35;
  font-size: 14px;
  font-weight: 900;
}

.compact-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.rank-card a {
  display: grid;
  grid-template-columns: 58px 92px 1fr;
  gap: 16px;
  align-items: center;
  border-radius: 20px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-card strong {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.rank-card img {
  height: 122px;
  border-radius: 14px;
  object-fit: cover;
  background: #1f2937;
}

.rank-card b,
.rank-card em,
.rank-card i {
  display: block;
}

.rank-card b {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.rank-card em,
.rank-card i {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.detail-shell {
  display: block;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: end;
  border-radius: 28px;
  padding: 30px;
  background: radial-gradient(circle at 15% 10%, rgba(234, 88, 12, 0.22), transparent 35%), linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  background: #0f172a;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-info .lead {
  margin: 0 0 20px;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.detail-info .primary-button {
  margin-top: 24px;
}

.player-card {
  margin-top: 30px;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
  color: #ffffff;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 20px 40px rgba(234, 88, 12, 0.36);
  font-size: 34px;
}

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

.player-copy {
  padding: 24px;
  color: #ffffff;
}

.player-copy p {
  margin: 10px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

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

.article-section p {
  margin: 14px 0 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  background: linear-gradient(90deg, #111827 0%, #1f2937 50%, #111827 100%);
  color: #cbd5e1;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 36px;
}

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

.site-footer p {
  margin: 14px 0 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

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

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

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

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

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

  .ranking-box {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .brand-text {
    font-size: 21px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 78px;
  }

  .hero-control {
    display: none;
  }

  .search-strip,
  .filter-panel,
  .search-page-filter,
  .detail-hero,
  .footer-grid,
  .category-overview-top {
    grid-template-columns: 1fr;
  }

  .search-strip {
    margin-top: 0;
    border-radius: 0;
  }

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

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

  .detail-hero {
    padding: 20px;
  }

  .detail-cover {
    max-width: 280px;
  }

  .rank-card a {
    grid-template-columns: 44px 76px 1fr;
  }

  .rank-card img {
    height: 100px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .quick-nav-inner,
  .search-strip,
  .page-shell,
  .content-section,
  .split-section,
  .footer-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 34px;
  }

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

  .movie-grid,
  .catalog-grid,
  .latest-grid,
  .related-grid,
  .category-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .card-body p {
    min-height: auto;
  }

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

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

  .rank-card img {
    width: 120px;
    height: 160px;
  }

  .player-overlay span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
