:root {
  --peach-50: #fff5f2;
  --peach-100: #ffe8e1;
  --peach-200: #ffd4c7;
  --peach-300: #ffbdaa;
  --peach-400: #ff9374;
  --coral-500: #ff5533;
  --coral-600: #ef3f1f;
  --ink-900: #191211;
  --ink-700: #4b3a36;
  --ink-500: #7b6a66;
  --line: rgba(255, 147, 116, 0.22);
  --shadow: 0 24px 70px rgba(255, 85, 51, 0.18);
  --soft-shadow: 0 16px 36px rgba(25, 18, 17, 0.08);
  --sunrise-gradient: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink-900);
  background: linear-gradient(180deg, var(--peach-50) 0%, #ffffff 34%, #ffffff 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-image: var(--sunrise-gradient);
  box-shadow: 0 14px 36px rgba(255, 85, 51, 0.24);
}

.nav-wrap {
  max-width: 1280px;
  height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.22s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

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

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

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.46);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink-700);
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--coral-600);
  background: var(--peach-100);
}

.hero-slider {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #160b08;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.58s ease, transform 0.58s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.1);
  transform: scale(1.12);
  opacity: 0.58;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 212, 199, 0.36), transparent 30%),
    linear-gradient(90deg, rgba(25, 18, 17, 0.95) 0%, rgba(25, 18, 17, 0.72) 44%, rgba(25, 18, 17, 0.28) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 110px 24px 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--coral-600);
  background: rgba(255, 232, 225, 0.94);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(255, 85, 51, 0.16);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  font-size: clamp(32px, 4.5vw, 58px);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.hero-tags,
.mini-tags,
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.mini-tags span,
.feature-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--coral-600);
  background: var(--peach-100);
  font-size: 13px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--coral-500);
  box-shadow: 0 18px 36px rgba(255, 85, 51, 0.34);
}

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

.ghost-button.dark {
  color: var(--coral-600);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--peach-200);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(100%, 390px);
  aspect-ratio: 3 / 4.2;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  justify-self: end;
  border: 8px solid rgba(255, 255, 255, 0.18);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.52));
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--coral-600);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  font-size: 25px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 86px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-controls div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  opacity: 0.55;
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  opacity: 1;
  background: #ffffff;
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  width: min(92vw, 920px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-thumb.is-active {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.58);
}

.hero-thumb img {
  width: 44px;
  height: 58px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.hero-thumb span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.content-section,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.section-heading h2,
.detail-text h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--ink-500);
  line-height: 1.8;
}

.section-link {
  color: var(--coral-600);
  background: var(--peach-100);
  white-space: nowrap;
}

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

.category-tile,
.category-panel,
.movie-card,
.filter-panel,
.player-shell,
.detail-text,
.ranking-hero-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.category-tile {
  padding: 16px;
  border-radius: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.ranking-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-mosaic {
  height: 180px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.category-mosaic img,
.category-preview img {
  border-radius: 18px;
  background: var(--peach-100);
}

.category-mosaic img:first-child {
  grid-row: span 2;
}

.category-tile strong,
.card-title,
.footer-brand {
  color: var(--ink-900);
  font-size: 18px;
  font-weight: 900;
}

.category-tile span {
  display: block;
  margin-top: 8px;
  color: var(--ink-500);
  line-height: 1.7;
}

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

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

.movie-card {
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: var(--peach-100);
}

.poster-link img {
  transition: transform 0.28s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.58));
  opacity: 0.78;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--coral-600);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.rank-badge {
  right: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--coral-500);
  box-shadow: 0 8px 18px rgba(255, 85, 51, 0.34);
}

.card-body {
  padding: 16px 16px 18px;
}

.card-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title:hover {
  color: var(--coral-600);
}

.card-meta {
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-500);
  font-size: 13px;
}

.card-desc {
  min-height: 48px;
  margin: 10px 0 12px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-tags {
  gap: 6px;
}

.mini-tags span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 12px;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 26px;
  display: grid;
  gap: 16px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--ink-700);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--peach-200);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--ink-900);
  background: #ffffff;
  outline: none;
}

.search-box input:focus {
  border-color: var(--peach-400);
  box-shadow: 0 0 0 4px rgba(255, 147, 116, 0.18);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-700);
  background: var(--peach-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
  color: #ffffff;
  background: var(--coral-500);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border-radius: 20px;
  color: var(--ink-500);
  background: var(--peach-50);
  text-align: center;
  font-weight: 800;
}

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

.page-hero,
.detail-hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 36px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  gap: 34px;
  align-items: center;
}

.page-hero > div:first-child,
.detail-copy {
  padding: 40px;
  border-radius: 34px;
  background: var(--sunrise-gradient);
  box-shadow: var(--shadow);
}

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

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.category-panels {
  display: grid;
  gap: 24px;
}

.category-panel {
  border-radius: 32px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) 1.25fr;
  gap: 24px;
}

.category-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-panel p {
  color: var(--ink-500);
  line-height: 1.8;
}

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

.category-preview a {
  display: grid;
  gap: 8px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 800;
}

.category-preview img {
  aspect-ratio: 3 / 4.1;
}

.category-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-pills {
  margin-top: 22px;
}

.ranking-hero {
  align-items: stretch;
}

.ranking-lead {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ranking-hero-card {
  min-width: 0;
  border-radius: 26px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-hero-card img {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
}

.ranking-hero-card strong,
.ranking-hero-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-hero-card strong {
  margin-top: 10px;
  font-size: 16px;
}

.ranking-hero-card span {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 13px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.detail-poster {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--peach-100);
}

.detail-copy {
  color: #ffffff;
}

.detail-copy p {
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

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

.detail-meta-grid span {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.detail-meta-grid b {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.player-section {
  padding-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-600);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 22px;
}

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

.detail-text {
  border-radius: 32px;
  padding: 36px;
}

.detail-text h2 {
  margin: 0 0 14px;
}

.detail-text h2 + p {
  margin-top: 0;
}

.detail-text p {
  color: var(--ink-700);
  line-height: 2;
  font-size: 17px;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--peach-50), #ffffff);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-grid p {
  color: var(--ink-500);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink-700);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--coral-600);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 34px;
  color: var(--ink-500);
  font-size: 14px;
}

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

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

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

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

  .nav-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 820px;
  }

  .hero-content,
  .page-hero,
  .detail-hero,
  .category-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 92px;
    gap: 28px;
  }

  .hero-poster {
    width: min(70vw, 320px);
    justify-self: start;
  }

  .hero-thumbs {
    grid-template-columns: repeat(5, 160px);
    overflow-x: auto;
    justify-content: start;
    padding-bottom: 4px;
  }

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

@media (max-width: 640px) {
  .nav-wrap {
    padding: 0 16px;
  }

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

  .hero-slider {
    min-height: 790px;
  }

  .hero-content {
    padding: 82px 16px 152px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 92px;
  }

  .hero-thumb span {
    display: none;
  }

  .hero-thumb {
    justify-content: center;
  }

  .content-section,
  .player-section,
  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

  .page-hero > div:first-child,
  .detail-copy,
  .detail-text {
    padding: 24px;
    border-radius: 26px;
  }

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

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

  .footer-grid {
    padding: 38px 16px;
  }
}
