:root {
  --accent: #f97316;
  --accent-2: #f59e0b;
  --accent-3: #facc15;
  --ink: #172033;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --panel: #ffffff;
  --dark: #111827;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.logo-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.logo-title {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ea580c, #b45309);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-weight: 700;
}

.primary-nav a {
  padding: 9px 2px;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: #334155;
  background: #f8fafc;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #fff7ed;
  color: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 48%, #facc15 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.75;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.26), transparent 28%), rgba(0, 0, 0, 0.08);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  padding: 70px 0 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 44px;
}

.hero-slide.is-active {
  display: grid;
  animation: fade-in 0.52s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-shadow: 0 14px 44px rgba(120, 53, 15, 0.25);
}

.hero-movie-title {
  margin: 18px 0 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.detail-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #9a3412;
  background: #fff;
  box-shadow: 0 18px 40px rgba(154, 52, 18, 0.18);
}

.button-dark {
  color: #fff;
  background: linear-gradient(135deg, #111827, #334155);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

.button-soft {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.hero-cover {
  position: relative;
  display: block;
  justify-self: end;
  width: min(360px, 100%);
  padding: 14px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 34px 80px rgba(120, 53, 15, 0.28);
  backdrop-filter: blur(10px);
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-cover-badge {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-tools {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.hero-search,
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 52px rgba(154, 52, 18, 0.16);
}

.hero-search input,
.search-box input,
.search-box select {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: #1f2937;
  background: transparent;
}

.hero-search button,
.search-box button {
  min-width: 96px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-weight: 900;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.hero-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.stat-card strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.stat-card span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 12%, rgba(249, 115, 22, 0.45), transparent 28%), radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.26), transparent 34%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 950;
}

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

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

.section-full {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-title {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 950;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fed7aa;
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.14);
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-ribbon {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.76);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-score {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #78350f;
  background: #fde68a;
  font-size: 12px;
  font-weight: 950;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f8fafc;
}

.card-text {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

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

.category-panel {
  min-height: 178px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  border: 1px solid rgba(254, 215, 170, 0.88);
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.13);
}

.category-panel strong {
  font-size: 28px;
  font-weight: 950;
}

.category-panel span {
  color: #c2410c;
  font-weight: 900;
}

.category-panel p {
  margin: 12px 0 0;
  color: #64748b;
  line-height: 1.65;
  font-size: 14px;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 26px;
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 800;
}

.catalog-chip.is-active,
.catalog-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 90px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-size: 22px;
  font-weight: 950;
}

.rank-row img {
  width: 90px;
  height: 118px;
  object-fit: cover;
  border-radius: 16px;
  background: #fff7ed;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-row p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.rank-metrics {
  min-width: 142px;
  text-align: right;
  color: #64748b;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.28;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78), rgba(249, 115, 22, 0.38));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: #fff7ed;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.detail-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 800px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
}

.detail-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 26px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.32), rgba(3, 7, 18, 0.12));
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: #ea580c;
  background: #fff;
  font-size: 36px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.movie-player.is-ready .play-overlay {
  display: none;
}

.content-card {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto;
  padding: 34px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto -28px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 800;
}

.site-footer {
  margin-top: 58px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.footer-brand h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.footer-brand p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.75;
}

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

.footer-links a {
  color: #e2e8f0;
  font-weight: 700;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

  .hero-inner {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    justify-self: start;
    width: min(300px, 100%);
  }

  .hero-tools,
  .catalog-tools,
  .footer-inner,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }

  .rank-row {
    grid-template-columns: 54px 76px minmax(0, 1fr);
  }

  .rank-metrics {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 66px;
  }

  .logo-subtitle {
    display: none;
  }

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

  .hero-search,
  .search-box {
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search button,
  .search-box button {
    width: 100%;
  }

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

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

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

  .content-card {
    padding: 24px;
  }
}
