:root {
  --peach-50: #fff5f2;
  --peach-100: #ffe8e1;
  --peach-200: #ffd4c7;
  --peach-400: #ff9374;
  --coral-400: #ff7c64;
  --coral-500: #ff5533;
  --coral-600: #ed3010;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: rgba(255, 212, 199, 0.9);
  --shadow: 0 18px 45px rgba(80, 31, 19, 0.12);
  --shadow-strong: 0 28px 70px rgba(80, 31, 19, 0.22);
  --radius: 22px;
  --max: 1280px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--peach-50), #ffffff 36%, var(--peach-50));
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.bg-sunrise-gradient {
  background-image: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 85, 51, 0.22);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  height: 66px;
  padding: 0 22px;
  margin: 0 auto;
}

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

.brand {
  flex: 0 0 auto;
  font-size: 22px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a {
  font-size: 14px;
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.header-search input {
  width: 160px;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.92);
}

.header-search button,
.mobile-toggle {
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
}

.header-search button {
  padding: 8px 12px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  font-size: 25px;
}

.mobile-nav {
  display: none;
  padding: 14px 22px 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-800);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 212, 199, 0.6);
}

.mobile-nav.open {
  display: block;
}

main {
  overflow: hidden;
}

.hero-section {
  position: relative;
  height: 72vh;
  min-height: 600px;
  margin-top: 66px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.72s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.52), rgba(255, 85, 51, 0.18)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 48px 22px;
  margin: 0 auto;
  color: #ffffff;
  transform: translateX(-245px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow {
  color: #ffe8e1;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(46px, 7vw, 92px);
}

.hero-copy h2 {
  max-width: 720px;
  margin-top: 12px;
  font-size: clamp(28px, 4.5vw, 58px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-cloud span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--coral-500), #ff7a47);
  box-shadow: 0 16px 35px rgba(255, 85, 51, 0.36);
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.section-shell {
  max-width: var(--max);
  padding: 70px 22px 0;
  margin: 0 auto;
}

.page-main {
  padding-top: 66px;
}

.intro-section {
  padding-top: 64px;
}

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

.section-heading.centered {
  display: block;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-600);
}

.section-heading > a,
.category-preview .section-heading > a,
.player-section .section-heading > a {
  flex: 0 0 auto;
  color: var(--coral-600);
  font-weight: 800;
}

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

.category-card,
.content-card,
.info-card,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.category-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.category-card > a {
  display: block;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, var(--peach-50));
}

.category-card span {
  display: block;
  color: var(--ink-900);
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--ink-600);
  font-size: 14px;
}

.category-links {
  display: grid;
  gap: 0;
  padding: 0 18px 18px;
}

.category-links a {
  padding: 10px 0;
  color: var(--ink-700);
  font-size: 14px;
  border-top: 1px solid rgba(255, 212, 199, 0.65);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.82));
  opacity: 0.72;
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--coral-500);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-time,
.poster-badge {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-time {
  left: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.poster-badge {
  right: 12px;
  background: var(--coral-500);
}

.card-body {
  padding: 17px;
}

.movie-card.compact .card-body {
  padding: 14px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-body h2 a:hover {
  color: var(--coral-500);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-500);
  font-size: 13px;
}

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

.rank-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 86px 120px minmax(140px, 220px);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(80, 31, 19, 0.08);
}

.rank-row a {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row a:hover {
  color: var(--coral-500);
}

.rank-row span:not(.rank-number) {
  color: var(--ink-500);
  font-size: 14px;
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 34px;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral-500), #ff7a47);
  font-weight: 900;
}

.page-hero {
  max-width: var(--max);
  padding: 86px 22px 34px;
  margin: 0 auto;
}

.soft-hero {
  position: relative;
}

.soft-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.category-preview {
  max-width: var(--max);
  padding: 52px 22px 0;
  margin: 0 auto;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 14px;
  max-width: var(--max);
  padding: 18px;
  margin: 8px auto 0;
}

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

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

.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);
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--ink-600);
}

.empty-state.show {
  display: block;
}

.detail-main {
  padding-top: 66px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background-image: var(--cover-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.88)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.12));
  backdrop-filter: blur(2px);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  width: 100%;
  max-width: var(--max);
  padding: 84px 22px 58px;
  margin: 0 auto;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-copy {
  color: #ffffff;
}

.detail-copy h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-meta {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.detail-one-line {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

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

.player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  color: var(--coral-500);
  background: rgba(255, 255, 255, 0.94);
  font-size: 38px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
  font-size: 18px;
}

.player.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.content-card,
.info-card {
  padding: 26px;
}

.content-card h2,
.info-card h2 {
  margin: 0 0 14px;
  color: var(--ink-900);
  font-size: 24px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 17px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.info-card dt {
  color: var(--ink-500);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: var(--ink-800);
}

.pager-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.pager-links a {
  padding: 12px;
  border-radius: 14px;
  background: var(--peach-50);
  color: var(--coral-600);
  font-weight: 800;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 28px;
  max-width: var(--max);
  padding: 46px 22px 28px;
  margin: 0 auto;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: var(--ink-600);
  font-size: 14px;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--coral-600);
  font-size: 22px;
}

.footer-brand .brand-mark {
  color: #ffffff;
  background: linear-gradient(135deg, var(--coral-500), #ff7a47);
}

.copyright {
  max-width: var(--max);
  padding: 20px 22px 34px;
  margin: 0 auto;
  color: var(--ink-500);
  font-size: 13px;
  border-top: 1px solid rgba(255, 212, 199, 0.8);
}

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

  .mobile-toggle {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

  .hero-copy {
    transform: none;
    max-width: var(--max);
  }

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

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

@media (max-width: 860px) {
  .nav-shell {
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-search input {
    width: 120px;
  }

  .hero-section {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 72px;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading > a {
    display: inline-block;
    margin-top: 12px;
  }

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

  .rank-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .rank-row span:not(.rank-number):not(:first-child) {
    display: none;
  }

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

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

@media (max-width: 560px) {
  .header-search {
    display: none;
  }

  .hero-section {
    height: auto;
    min-height: 620px;
  }

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

  .hero-copy h2 {
    font-size: 30px;
  }

  .hero-dots {
    right: 18px;
    bottom: 18px;
  }

  .section-shell,
  .page-hero,
  .category-preview {
    padding-right: 16px;
    padding-left: 16px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .detail-hero-inner {
    padding-top: 52px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
