:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff3df;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --primary: #f97316;
  --primary-dark: #c2410c;
  --accent: #f59e0b;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.13);
  --shadow-strong: 0 26px 70px rgba(124, 45, 18, 0.22);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 8px 30px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max);
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(5deg);
}

.brand-name {
  font-size: 22px;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  border-radius: 14px;
  color: #4b5563;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link {
  padding: 10px 13px;
  font-size: 15px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffedd5;
  color: var(--primary-dark);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-link {
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.68);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(249, 115, 22, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.78) 40%, rgba(17, 24, 39, 0.28) 100%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.1) 0%, rgba(17, 24, 39, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  min-height: 650px;
  margin: 0 auto;
  padding: 108px 24px 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.light-title .eyebrow,
.ranking-strip .eyebrow {
  color: #fed7aa;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

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

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.hero-actions,
.footer-links,
.section-title-row {
  display: flex;
  align-items: center;
}

.hero-actions {
  margin-top: 34px;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  border: 0;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button,
.home-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.28);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.home-search button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.36);
  backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: transparent;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

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

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

.search-band {
  margin-top: -46px;
  position: relative;
  z-index: 8;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 24px;
  align-items: center;
  padding-top: 0;
}

.search-panel > div,
.home-search,
.search-filter-panel,
.story-card,
.rank-card,
.movie-card,
.category-chip {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.search-panel > div {
  padding: 28px;
  border-radius: var(--radius);
}

.search-panel h2,
.section-title-row h2,
.page-hero h1,
.detail-info h1,
.story-card h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

.search-panel h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.search-panel p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
}

.home-search input,
.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.home-search input {
  min-height: 48px;
  padding: 0 12px;
}

.section-block {
  padding-top: 74px;
  padding-bottom: 74px;
}

.section-title-row {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title-row h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.text-link {
  color: var(--primary-dark);
  font-weight: 800;
}

.text-link.light,
.light-title h2 {
  color: #ffffff;
}

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

.category-chip {
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 146, 60, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.category-chip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

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

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

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #f97316);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.year-badge,
.type-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.66);
  backdrop-filter: blur(12px);
}

.year-badge {
  left: 12px;
}

.type-badge {
  right: 12px;
  background: rgba(249, 115, 22, 0.86);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.movie-card h2,
.movie-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card .tag-row {
  margin-top: 12px;
}

.ranking-strip {
  padding: 78px 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(253, 186, 116, 0.3), transparent 32%),
    linear-gradient(135deg, #111827 0%, #7c2d12 52%, #f97316 100%);
}

.rank-grid,
.rank-page-list {
  display: grid;
  gap: 16px;
}

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

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

.rank-card {
  border-radius: 20px;
  overflow: hidden;
}

.rank-card a {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 116px;
  padding: 14px;
}

.rank-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.rank-card img {
  width: 92px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.rank-card span:last-child {
  display: inline-block;
  margin-top: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.horizontal-list .movie-card {
  scroll-snap-align: start;
}

.page-hero {
  color: #ffffff;
  padding: 86px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #f97316 0%, #c2410c 58%, #111827 100%);
}

.compact-hero,
.category-hero,
.ranking-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.search-filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: var(--radius);
}

.slim-panel {
  max-width: 720px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.search-field span {
  color: var(--primary);
  font-weight: 900;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-1px);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero-section {
  padding: 48px 0 72px;
  background:
    radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.14), transparent 26%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-cover {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, #fdba74, #f97316);
}

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

.detail-info h1 {
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.06;
}

.detail-line {
  max-width: 720px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid span {
  font-weight: 800;
}

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

.player-section {
  padding-top: 38px;
  padding-bottom: 38px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(249, 115, 22, 0.22), transparent 28%),
    rgba(17, 24, 39, 0.48);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: #ffffff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 24px 50px rgba(249, 115, 22, 0.36);
}

.player-cover span:last-child {
  font-size: 20px;
  font-weight: 900;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 30px;
  border-radius: var(--radius);
}

.story-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
}

.site-footer {
  padding: 54px 0;
  color: #ffedd5;
  background: #111827;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 14px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 237, 213, 0.78);
  line-height: 1.8;
}

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

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

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

  .three-cols,
  .rank-grid,
  .rank-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .brand-name {
    font-size: 19px;
  }

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

  .hero-content {
    padding-top: 90px;
    padding-bottom: 105px;
  }

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

  .search-band {
    margin-top: -28px;
  }

  .category-chip-grid,
  .four-cols,
  .three-cols,
  .rank-grid,
  .rank-page-list {
    grid-template-columns: 1fr;
  }

  .rank-card a {
    grid-template-columns: auto 82px 1fr;
  }

  .detail-cover {
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .mobile-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-summary,
  .page-hero p:not(.eyebrow),
  .detail-line {
    font-size: 16px;
  }

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

  .section-title-row,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-card a {
    grid-template-columns: 1fr;
  }

  .rank-card img {
    width: 100%;
    height: 160px;
  }

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

  .player-shell {
    border-radius: 20px;
  }

  .play-circle {
    width: 66px;
    height: 66px;
  }
}
