* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #ffedd5;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.14);
  --shadow-soft: 0 12px 30px rgba(124, 45, 18, 0.1);
  --radius: 24px;
}

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, #f9fafb 0%, rgba(255, 237, 213, 0.45) 48%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 146, 60, 0.24);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #111827;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.logo-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-dark);
  border-radius: 999px;
}

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

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  transform: scale(1.03);
}

.hero-shade {
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.74) 48%, rgba(17, 24, 39, 0.35) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.08) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 70px 0 98px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  color: #fed7aa;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 44px);
  color: #ffedd5;
}

.hero-copy p {
  max-width: 690px;
  margin: 0 0 24px;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.34);
}

.btn-glass {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  color: #fed7aa;
  border-color: rgba(254, 215, 170, 0.36);
}

.btn-soft {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: white;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  font-size: 30px;
  line-height: 1;
}

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

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

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

.quick-search-section {
  margin-top: -36px;
  position: relative;
  z-index: 6;
}

.quick-search,
.filter-panel {
  padding: 20px;
  border: 1px solid rgba(251, 146, 60, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.quick-search label,
.filter-search label {
  display: block;
  margin-bottom: 10px;
  color: #374151;
  font-weight: 800;
}

.quick-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: #1f2937;
  background: white;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

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

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

.section-heading.align-left {
  align-items: center;
}

.section-heading h2,
.ranking-panel-head h2,
.detail-content h2,
.side-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading a,
.ranking-panel-head a {
  color: var(--brand-dark);
  font-weight: 800;
}

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

.category-chip {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.category-chip:hover,
.movie-card:hover,
.category-overview-card:hover,
.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-chip span {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-chip small {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.05;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #431407);
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.95);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

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

.movie-meta-line,
.movie-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-line a {
  color: var(--brand-dark);
  font-weight: 800;
}

.movie-card h3 {
  min-height: 54px;
  margin: 10px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--brand-dark);
}

.movie-card p {
  min-height: 66px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.feature-split {
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.52), rgba(255, 255, 255, 0));
}

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

.ranking-panel,
.side-card {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.ranking-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.rank-item:hover {
  background: #fff7ed;
}

.rank-number {
  color: var(--brand-dark);
  font-weight: 900;
}

.rank-item img {
  width: 56px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-heat {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.36), transparent 30%),
    linear-gradient(135deg, #7c2d12 0%, #111827 56%, #431407 100%);
}

.page-hero h1 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.85;
}

.breadcrumb-link,
.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.page-hero .breadcrumb-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #fed7aa;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
}

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

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-overview-body p {
  color: var(--muted);
  line-height: 1.8;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.mini-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
}

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

.filter-selects select {
  min-width: 160px;
}

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

.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.ranking-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
}

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

.ranking-index {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  font-weight: 900;
  text-align: center;
}

.ranking-content h2 {
  margin: 10px 0;
  font-size: 24px;
}

.ranking-content p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.heat-badge {
  min-width: 90px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  text-align: center;
  font-weight: 900;
}

.detail-shell {
  padding: 34px 0 36px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.72)),
    rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.4);
  font-size: 34px;
  text-indent: 4px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(20px, 4vw, 34px);
  text-align: center;
}

.detail-content,
.side-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead-text {
  color: #374151;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.85;
}

.detail-meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta-box span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-content h2 {
  margin: 26px 0 10px;
  font-size: 26px;
}

.detail-content p {
  color: #4b5563;
  line-height: 1.92;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #fed7aa;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
  text-align: right;
}

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

.site-footer {
  margin-top: 40px;
  padding: 38px 0;
  color: #ffedd5;
  background: #111827;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #d1d5db;
}

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

.footer-links a {
  color: #fed7aa;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero-content,
  .split-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .ranking-panel,
  .side-card {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 52px;
  }

  .quick-search-row,
  .filter-panel,
  .category-overview-card,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .section-block {
    padding: 48px 0;
  }

  .section-heading,
  .footer-inner,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-cover {
    min-height: 180px;
  }

  .heat-badge {
    width: fit-content;
  }
}

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

  .hero-copy p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

  .rank-heat {
    display: none;
  }
}
