:root {
  color-scheme: light;
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1e7;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #f97316;
  --brand-deep: #e11d48;
  --brand-soft: #fed7aa;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.14);
  --radius: 22px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.25), transparent 34rem),
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.14), transparent 32rem),
    var(--page-bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(251, 146, 60, 0.18);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 74px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(127, 29, 29, 0.2);
  background: linear-gradient(135deg, #f59e0b, #f97316 48%, #e11d48);
}

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

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

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.62) 46%, rgba(17, 24, 39, 0.14) 100%),
    linear-gradient(0deg, rgba(127, 29, 29, 0.42), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
  padding: 72px 58px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.section-kicker {
  color: var(--brand);
  background: #ffedd5;
  border-color: #fed7aa;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-summary {
  max-width: 600px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-size: 17px;
}

.hero-meta,
.movie-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.pill.soft {
  color: #9a3412;
  background: #ffedd5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 26px rgba(225, 29, 72, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(225, 29, 72, 0.36);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.btn.light {
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(154, 52, 18, 0.14);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  max-width: 540px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-input,
.filter-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.hero-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 58px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.section {
  padding: 34px 0;
}

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

.section-title {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(154, 52, 18, 0.1);
  border: 1px solid rgba(254, 215, 170, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(154, 52, 18, 0.18);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fed7aa, #fb7185);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.78));
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(10px);
}

.score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.card-body {
  padding: 13px 13px 15px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  min-height: 43px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  margin-top: 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #e11d48);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #fb923c, #be123c);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -35px;
  bottom: -35px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 70px 92px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.8);
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.rank-poster {
  width: 92px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--brand-soft);
}

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

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.panel {
  border: 1px solid rgba(254, 215, 170, 0.8);
  border-radius: 28px;
  background: var(--surface-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-pad {
  padding: 24px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px;
  gap: 12px;
  margin-bottom: 22px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand);
  font-weight: 800;
}

.detail-hero {
  padding: 26px 0 44px;
}

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

.player-card,
.detail-card {
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.82);
  box-shadow: var(--shadow);
}

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

.player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.72)),
    radial-gradient(circle at center, rgba(249, 115, 22, 0.36), transparent 18rem);
}

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

.play-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 20px 42px rgba(225, 29, 72, 0.38);
  font-size: 34px;
  transform: translateZ(0);
}

.player-caption {
  padding: 20px 24px 24px;
}

.player-caption h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--brand-soft);
}

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

.detail-info {
  padding: 22px;
}

.detail-info h2,
.content-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-table {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffedd5;
}

.detail-row span:first-child {
  color: var(--muted);
}

.detail-row span:last-child {
  font-weight: 800;
  text-align: right;
}

.content-block {
  margin-top: 24px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.82);
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.08);
}

.content-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

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

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 26px;
  text-align: center;
  color: var(--muted);
}

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

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 100px;
  color: var(--muted);
}

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

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

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

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding-top: 18px;
  }

  .hero-shell {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 42px 24px 86px;
  }

  .hero-search {
    display: block;
  }

  .hero-search .btn {
    width: 100%;
    margin-top: 10px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

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

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

  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

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

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 18px;
  }

  .rank-poster {
    width: 74px;
  }

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

  .panel-pad,
  .content-block {
    padding: 18px;
  }
}
