:root {
  --bg: #fff7ed;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --text: #24120a;
  --muted: #765240;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #ffedd5;
  --rose: #fb7185;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 7%, rgba(251, 113, 133, 0.13), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 36%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 237, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ea580c 55%, #e11d48);
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.28);
}

.logo-title {
  display: block;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #b45309, #ea580c, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  display: block;
  margin-top: 2px;
  color: #8a5a44;
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: #60402f;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a {
  padding: 8px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff3e3;
  color: #7c2d12;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: #60402f;
  font-weight: 800;
}

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

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 52%, #fb7185 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.34), transparent 22rem),
    radial-gradient(circle at 78% 4%, rgba(255, 255, 255, 0.22), transparent 26rem),
    linear-gradient(90deg, rgba(34, 12, 6, 0.88), rgba(80, 25, 12, 0.58), rgba(185, 28, 28, 0.22));
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(36, 14, 7, 0.94) 0%, rgba(36, 14, 7, 0.58) 42%, rgba(36, 14, 7, 0.16) 100%),
    var(--poster);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 96px;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
  gap: 38px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.hero-text {
  max-width: 690px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 0.82rem;
  font-weight: 800;
}

.tag.dark {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #7c2d12;
  background: #fff7ed;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.btn.brand {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c, #e11d48);
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.26);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn.light {
  color: #7c2d12;
  background: #fff7ed;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 410px;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(36, 14, 7, 0.78)), var(--poster);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.hero-panel-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.hero-panel-title {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 950;
}

.hero-panel-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 30px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.hero-search {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: -60px auto 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr auto;
  gap: 12px;
}

.input,
.select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 18px;
  background: #fff;
  color: #432212;
  padding: 0 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.select:focus {
  border-color: rgba(234, 88, 12, 0.58);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.main {
  padding: 86px 0 0;
}

.section {
  margin: 0 auto 72px;
}

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

.eyebrow {
  color: var(--brand);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section h2,
.page-title h1 {
  margin: 5px 0 8px;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.section-lead,
.page-title p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: 0 14px 32px rgba(154, 52, 18, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(234, 88, 12, 0.36);
  box-shadow: 0 24px 52px rgba(154, 52, 18, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(67, 20, 7, 0.78)),
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.42), transparent 16rem),
    var(--poster),
    linear-gradient(135deg, #fbbf24, #f97316 55%, #fb7185);
  background-size: cover;
  background-position: center;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(36, 14, 7, 0.78));
}

.poster-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(124, 45, 18, 0.82);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 950;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.28;
}

.movie-grid.compact .card-title {
  font-size: 0.98rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: #8a5a44;
  font-size: 0.82rem;
  font-weight: 800;
}

.card-text {
  margin: 0;
  color: #765240;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c 58%, #e11d48);
  box-shadow: 0 18px 42px rgba(154, 52, 18, 0.16);
}

.category-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -58px;
  top: -52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 1.38rem;
  font-weight: 950;
}

.category-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(154, 52, 18, 0.07);
}

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

.rank-title {
  margin: 0 0 4px;
  font-weight: 950;
  font-size: 1.05rem;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
}

.filters {
  margin: 0 0 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(154, 52, 18, 0.08);
}

.page-hero {
  padding: 64px 0 32px;
}

.page-title {
  padding: 38px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c 58%, #e11d48);
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-hero {
  padding: 42px 0 0;
}

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

.detail-cover {
  border-radius: 32px;
  min-height: 560px;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(36, 14, 7, 0.7)),
    var(--poster),
    linear-gradient(135deg, #fbbf24, #f97316 55%, #fb7185);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 58px rgba(154, 52, 18, 0.18);
}

.detail-info {
  padding: 34px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 850;
  font-size: 0.85rem;
}

.detail-lead {
  margin: 0 0 20px;
  color: #5f3a28;
  font-size: 1.12rem;
  font-weight: 700;
}

.content-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 146, 60, 0.2);
}

.content-block h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 950;
}

.content-block p {
  margin: 0;
  color: #68422f;
}

.player-section {
  margin: 42px 0 72px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #140804;
  box-shadow: 0 24px 60px rgba(36, 14, 7, 0.28);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #140804;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(20, 8, 4, 0.74)),
    var(--poster),
    linear-gradient(135deg, #f59e0b, #ea580c 60%, #e11d48);
  background-size: cover;
  background-position: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7c2d12;
  background: rgba(255, 247, 237, 0.94);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.play-triangle {
  display: block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 27px solid currentColor;
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.75), rgba(255, 247, 237, 0.96));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #765240;
  font-weight: 700;
}

.hidden-card {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 24px;
  background: #fff7ed;
  color: #765240;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

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

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

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

  .hero-panel {
    min-height: 360px;
  }

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

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

  .menu-button {
    display: grid;
    place-items: center;
  }

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

  .logo-subtitle {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 82px 0 100px;
  }

  .hero-panel {
    min-height: 300px;
  }

  .hero-search,
  .filters {
    grid-template-columns: 1fr;
  }

  .main {
    padding-top: 72px;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .rank-item {
    grid-template-columns: 48px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .detail-cover {
    min-height: 430px;
  }

  .detail-info {
    padding: 24px;
  }
}

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

  .hero h1 {
    font-size: 2.4rem;
  }

  .page-title {
    padding: 26px;
  }

  .play-button {
    width: 74px;
    height: 74px;
  }
}
