:root {
  --coral: #ff5533;
  --coral-dark: #ed3010;
  --peach: #fff5f2;
  --peach-strong: #ffe4df;
  --ink: #111827;
  --muted: #6b7280;
  --line: #ffd4c7;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(255, 85, 51, 0.16);
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
  box-shadow: 0 12px 36px rgba(255, 85, 51, 0.24);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--coral);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

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

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links .is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 72vh;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 85, 51, 0.42), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.2));
}

.hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: 24px;
  bottom: 12vh;
  z-index: 2;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.hero-copy h1 {
  font-size: clamp(26px, 4.8vw, 60px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-copy h2 {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
}

.hero-copy p {
  max-width: 680px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #ffd4c7, #ff7c64, #ff5533);
  box-shadow: 0 16px 32px rgba(255, 85, 51, 0.32);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

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

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

.narrow-wrap {
  width: min(900px, calc(100% - 32px));
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.small-hero h1,
.detail-copy h1,
.detail-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.15;
}

.section-head a,
.summary-link {
  color: var(--coral-dark);
  font-weight: 800;
  text-decoration: none;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--peach-strong), var(--coral));
}

.card-cover img,
.wide-cover img,
.detail-cover img,
.rank-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img,
.wide-card:hover .wide-cover img {
  transform: scale(1.08);
}

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

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

.card-type {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-title,
.wide-title {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}

.card-title:hover,
.wide-title:hover {
  color: var(--coral-dark);
}

.card-body p,
.wide-body p,
.small-hero p,
.detail-content p,
.footer-inner p {
  color: var(--muted);
  line-height: 1.8;
}

.card-body p {
  display: -webkit-box;
  min-height: 50px;
  margin: 10px 0 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.detail-meta,
.wide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span,
.detail-meta span,
.wide-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--peach);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--coral-dark);
  background: #fff1ed;
  font-size: 12px;
  font-weight: 750;
}

.tag-list.large span {
  font-size: 14px;
}

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

.category-tile,
.category-summary {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #fff3f1);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 85, 51, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-summary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span,
.summary-name {
  color: var(--coral-dark);
  font-size: 22px;
  font-weight: 900;
}

.category-tile small,
.summary-text {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.sunrise-panel {
  width: min(1180px, calc(100% - 32px));
  margin-top: 32px;
  padding: 38px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff5f2, #ffe4df);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.stack-list {
  display: grid;
  gap: 16px;
}

.wide-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.wide-cover {
  display: block;
  min-height: 128px;
  overflow: hidden;
  background: var(--peach-strong);
}

.wide-body {
  padding: 18px 18px 18px 0;
}

.wide-body p {
  display: -webkit-box;
  margin: 8px 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.small-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 24px;
}

.small-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 18px;
}

.filter-bar {
  max-width: 660px;
  margin-top: 24px;
}

.filter-bar input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(255, 85, 51, 0.08);
  outline: none;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

.rank-num {
  color: var(--coral-dark);
  font-size: 24px;
  font-weight: 900;
}

.rank-row img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--peach-strong);
}

.rank-title {
  font-weight: 850;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 106px 0 42px;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 10;
  background: var(--peach-strong);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--coral-dark);
  text-decoration: none;
  font-weight: 800;
}

.lead-text {
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.96);
  font-size: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

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

.detail-content {
  color: var(--ink);
}

.detail-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 28px;
}

.detail-content p {
  margin: 0 0 16px;
  font-size: 17px;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 22px;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 36px;
}

.footer-brand {
  color: var(--coral-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
    gap: 14px;
  }

  .nav-links a {
    color: var(--ink);
  }

  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .category-grid,
  .category-summary-grid,
  .split-section,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero {
    align-items: start;
  }

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

  .rank-meta {
    grid-column: 3;
  }
}

@media (max-width: 680px) {
  .site-nav {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-slide img {
    min-height: 78vh;
  }

  .hero-copy {
    left: 18px;
    bottom: 10vh;
  }

  .hero-arrow {
    display: none;
  }

  .section-wrap,
  .small-hero,
  .detail-hero,
  .player-section,
  .footer-inner,
  .copyright {
    width: calc(100% - 24px);
  }

  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .category-grid,
  .category-summary-grid,
  .split-section,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .wide-cover {
    aspect-ratio: 16 / 9;
  }

  .wide-body {
    padding: 18px;
  }

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

  .rank-title {
    font-size: 15px;
  }

  .rank-meta {
    grid-column: 1 / -1;
  }
}
