* {
  box-sizing: border-box;
}

:root {
  --coral-50: #fff5f2;
  --coral-100: #ffe8e1;
  --coral-200: #ffd4c7;
  --coral-400: #ff9374;
  --coral-500: #ff5533;
  --coral-600: #ed3010;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: #f4c7b8;
  --paper: #ffffff;
  --soft: #fff7f4;
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-800);
  background: linear-gradient(180deg, #fff7f4 0%, #ffffff 42%, #fffaf8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
  box-shadow: 0 10px 35px rgba(237, 48, 16, 0.22);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  color: #ffffff;
  font-size: 21px;
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  gap: 8px;
  flex-wrap: wrap;
}

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

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

.block-space {
  padding: 54px 0;
}

.hero {
  padding: 24px 0 0;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 147, 116, 0.45), transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 48%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 82px);
  bottom: clamp(54px, 12vw, 96px);
  width: min(640px, calc(100% - 48px));
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral-600);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-label {
  color: #ffe8e1;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ff9374, #ff5533);
  box-shadow: 0 14px 30px rgba(237, 48, 16, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-link {
  color: #ffffff;
  background: rgba(17, 24, 39, 0.45);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 7vw, 82px);
  bottom: 30px;
  display: flex;
  gap: 8px;
}

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

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

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

.section-head h2 {
  margin: 8px 0 0;
  color: var(--ink-900);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--ink-600);
  line-height: 1.7;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 147, 116, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 85, 51, 0.48);
  box-shadow: 0 22px 55px rgba(17, 24, 39, 0.15);
}

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

.card-compact .poster-link {
  aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 85, 51, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff9374, #ff5533);
  box-shadow: 0 10px 24px rgba(237, 48, 16, 0.25);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--coral-600);
  font-size: 13px;
  font-weight: 800;
}

.card-body h2 {
  margin: 10px 0 8px;
  color: var(--ink-900);
  font-size: 20px;
  line-height: 1.35;
}

.card-compact .card-body h2 {
  font-size: 17px;
}

.card-body p {
  min-height: 48px;
  margin: 0;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.65;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-tags span,
.detail-tags span {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--coral-50);
}

.soft-panel {
  padding: 42px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffe8e1, #fff5f2);
}

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

.category-card,
.category-overview-card {
  display: block;
  padding: 22px;
  border: 1px solid rgba(255, 147, 116, 0.32);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.13);
}

.category-card span,
.category-main-link span {
  color: var(--coral-500);
  font-weight: 900;
}

.category-card h3,
.category-overview-card h2 {
  margin: 10px 0 8px;
  color: var(--ink-900);
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.65;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  color: var(--ink-700);
  font-size: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--coral-50);
}

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

.rank-panel,
.player-card,
.story-card,
.filter-panel,
.ranking-list {
  border: 1px solid rgba(255, 147, 116, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.rank-panel {
  position: sticky;
  top: 90px;
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-head span {
  color: var(--ink-900);
  font-size: 22px;
  font-weight: 900;
}

.panel-head a {
  color: var(--coral-600);
  font-weight: 800;
}

.rank-row {
  display: grid;
  grid-template-columns: 36px 58px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--coral-50);
}

.rank-num {
  color: var(--coral-600);
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 58px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--coral-100);
}

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

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--ink-900);
}

.rank-copy em {
  color: var(--ink-500);
  font-size: 13px;
  font-style: normal;
  margin-top: 5px;
}

.rank-arrow {
  color: var(--coral-500);
  font-size: 24px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #ff5533);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32)), var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.92;
}

.small-hero {
  min-height: 260px;
}

.page-hero-inner,
.page-hero .container {
  position: relative;
  z-index: 1;
  padding: 74px 0;
}

.page-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(140px, 0.65fr)) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--ink-700);
  font-weight: 800;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 147, 116, 0.5);
  border-radius: 14px;
  color: var(--ink-800);
  background: #ffffff;
  padding: 0 12px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--coral-500);
  box-shadow: 0 0 0 4px rgba(255, 85, 51, 0.12);
}

.filter-link {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9374, #ff5533);
}

.empty-state {
  margin: 20px 0;
  color: var(--ink-600);
  text-align: center;
  padding: 28px;
  border-radius: 18px;
  background: var(--coral-50);
}

.ranking-list {
  padding: 14px;
}

.detail-hero {
  min-height: 640px;
}

.detail-bg,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-bg {
  background-size: cover;
  background-position: center;
  filter: blur(18px) scale(1.08);
  opacity: 0.75;
}

.detail-mask {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.24)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 55%);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  padding: 34px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  margin-bottom: 38px;
}

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

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

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: var(--coral-100);
}

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

.detail-copy h1 {
  margin: 14px 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.75;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.player-card {
  overflow: hidden;
  padding: 22px;
}

.player-head {
  margin-bottom: 18px;
}

.player-head h2 {
  margin: 8px 0 0;
  color: var(--ink-900);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #050505;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9374, #ff5533);
  box-shadow: 0 18px 40px rgba(237, 48, 16, 0.35);
}

.player-start strong {
  font-size: 18px;
}

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

.player-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--coral-600);
  font-weight: 700;
}

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

.story-card {
  padding: 28px;
}

.story-card h2 {
  margin: 8px 0 12px;
  color: var(--ink-900);
}

.story-card p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.9;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 147, 116, 0.3);
  background: linear-gradient(180deg, var(--coral-50), #ffffff);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-brand {
  color: var(--coral-600);
  font-size: 20px;
}

.site-footer p {
  max-width: 420px;
  color: var(--ink-600);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--ink-900);
  font-size: 18px;
}

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

.footer-links a {
  color: var(--ink-700);
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(255, 147, 116, 0.25);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: var(--ink-500);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .feature-grid,
  .compact-grid,
  .category-list,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .rank-panel {
    position: static;
  }

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

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

@media (max-width: 680px) {
  .container,
  .nav-wrap,
  .mobile-nav,
  .hero-stage,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero-control {
    display: none;
  }

  .hero-content {
    left: 20px;
    bottom: 66px;
    width: calc(100% - 40px);
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-dots {
    left: 20px;
  }

  .feature-grid,
  .compact-grid,
  .category-list,
  .search-grid,
  .category-grid,
  .category-overview-grid,
  .filter-panel,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .soft-panel {
    padding: 26px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-wrap {
    padding-bottom: 46px;
  }

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

  .player-card {
    padding: 12px;
  }
}
