:root {
  color-scheme: light;
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf4;
  --surface-strong: #ffedd5;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-strong: #4b5563;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #f97316;
  --brand-deep: #ea580c;
  --brand-dark: #9a3412;
  --amber: #f59e0b;
  --rose: #fb7185;
  --shadow: 0 20px 45px rgba(154, 52, 18, 0.12);
  --shadow-soft: 0 10px 24px rgba(154, 52, 18, 0.10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1200px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(251, 146, 60, 0.28), transparent 32rem),
    radial-gradient(circle at 95% 10%, rgba(245, 158, 11, 0.22), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff7ed 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #f97316 0%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.24);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.logo-text {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

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

.primary-nav a {
  opacity: 0.92;
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
  opacity: 1;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  display: flex;
  width: min(34vw, 360px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
  color: #ffffff;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.header-search button,
.nav-toggle {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.header-search button {
  padding: 0 15px;
  font-weight: 900;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(124, 45, 18, 0.98), rgba(249, 115, 22, 0.92) 50%, rgba(245, 158, 11, 0.92)),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.22), transparent 24rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.14), transparent 22rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.18) 58%, rgba(17, 24, 39, 0.46));
  pointer-events: none;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 620px;
}

.hero-slide.is-active {
  display: block;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-position: center;
  background-size: cover;
  filter: saturate(1.12) blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 42px;
  padding: 56px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-title {
  max-width: 760px;
  margin: 18px 0 14px;
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.hero-desc {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

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

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

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

.btn-primary {
  background: #ffffff;
  color: var(--brand-deep);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

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

.hero-poster-card {
  position: relative;
  width: min(100%, 420px);
  margin-left: auto;
  border-radius: 36px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

.hero-mini-rank {
  position: absolute;
  left: -26px;
  bottom: 32px;
  width: 220px;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 22px 44px rgba(124, 45, 18, 0.20);
}

.hero-mini-rank strong {
  display: block;
  color: var(--brand-deep);
  font-size: 1.1rem;
}

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

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

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

.section {
  padding: 58px 0;
}

.section-tight {
  padding: 34px 0;
}

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

.section-kicker {
  color: var(--brand-deep);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-title {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-desc {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #ffedd5, #fdba74);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(249, 115, 22, 0.92);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.card-score {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.74);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 950;
}

.card-title a {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.9em;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 0.9rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 10rem),
    linear-gradient(135deg, #fff7ed 0%, #ffedd5 42%, #ffffff 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 190ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-count {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  padding: 7px 12px;
  background: #ffffff;
  color: var(--brand-deep);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 22px;
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 950;
}

.rank-cover {
  overflow: hidden;
  width: 92px;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #ffedd5;
}

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

.rank-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 950;
}

.rank-desc {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.breadcrumb {
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-hero {
  padding: 34px 0 48px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  background: #ffedd5;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy {
  min-width: 0;
}

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.detail-intro {
  margin: 18px 0 20px;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.meta-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.meta-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.meta-row span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.meta-row strong {
  display: block;
  margin-top: 4px;
  font-weight: 950;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  border-radius: 999px;
  padding: 7px 11px;
  background: #ffedd5;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.player-section {
  padding: 0 0 46px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.18), transparent 18rem),
    rgba(17, 24, 39, 0.46);
  color: #ffffff;
  cursor: pointer;
}

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

.play-button-core {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.38);
  font-size: 2.2rem;
  font-weight: 950;
}

.content-card {
  border-radius: 28px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card + .content-card {
  margin-top: 18px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  color: var(--muted-strong);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.toolbar input,
.toolbar select,
.search-panel input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  outline: 0;
  background: #fffaf4;
}

.toolbar input:focus,
.toolbar select:focus,
.search-panel input:focus {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.10);
}

.search-panel {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-panel form {
  display: flex;
  gap: 12px;
}

.search-panel input {
  flex: 1;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

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

.pagination-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #431407, #9a3412 48%, #ea580c);
  color: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 120px;
}

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

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

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

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

  .hero-poster-card {
    margin: 0;
  }

  .detail-panel {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .primary-nav,
  .header-search {
    display: none;
  }

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

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

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

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

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

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .hero,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 44px 0 76px;
  }

  .hero-title {
    font-size: clamp(2.25rem, 15vw, 4.2rem);
  }

  .hero-mini-rank {
    position: static;
    width: auto;
    margin-top: 14px;
  }

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

  .section {
    padding: 42px 0;
  }

  .section-heading {
    display: block;
  }

  .meta-table {
    grid-template-columns: 1fr;
  }

  .meta-row:nth-child(odd) {
    border-right: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .search-panel form {
    display: grid;
  }
}
