:root {
  --peach-50: #fff7ed;
  --peach-100: #ffedd5;
  --peach-200: #fed7aa;
  --coral-400: #fb7185;
  --coral-500: #f9735b;
  --coral-600: #ea580c;
  --rose-500: #f43f5e;
  --ink-950: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: rgba(249, 115, 91, 0.18);
  --glass: rgba(255, 255, 255, 0.82);
  --sunrise: linear-gradient(135deg, #fb7185 0%, #f97316 52%, #f59e0b 100%);
  --soft: linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #fff7ed 100%);
  --shadow: 0 18px 46px rgba(127, 29, 29, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-800);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--sunrise);
  box-shadow: 0 12px 34px rgba(190, 66, 44, 0.28);
}

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

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

.site-logo {
  color: #fff;
  font-size: 21px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: #fff7ed;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.mobile-panel a {
  display: block;
  padding: 12px 22px;
  color: var(--ink-700);
  font-weight: 700;
}

.mobile-panel a:hover {
  color: var(--coral-600);
}

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

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 91, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58) 46%, rgba(17, 24, 39, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
}

.hero-cover {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 70px;
  z-index: 2;
  color: #fff;
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 91, 0.92);
  box-shadow: 0 12px 26px rgba(249, 115, 91, 0.28);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 28px;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--coral-600);
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary {
  background: var(--sunrise);
  color: #fff;
}

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

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--peach-100);
  color: var(--coral-600);
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.36);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #fff;
}

.main-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 72px;
}

.page-hero {
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 113, 133, 0.18), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fff7ed 100%);
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.page-hero h1 {
  margin: 0 0 12px;
  color: var(--ink-950);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-hero p {
  margin: 0;
  color: var(--ink-600);
  max-width: 780px;
  font-size: 18px;
}

.content-section {
  margin-bottom: 62px;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  color: var(--ink-950);
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--ink-500);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 44px rgba(127, 29, 29, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--peach-100);
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.03);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 58%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.type-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--coral-600);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--coral-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-info {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--ink-950);
  font-size: 18px;
  line-height: 1.32;
}

.compact-title {
  font-size: 16px;
}

.card-title a:hover,
.wide-info a:hover,
.rank-title:hover {
  color: var(--coral-600);
}

.card-desc {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--ink-600);
  font-size: 14px;
}

.card-meta,
.wide-meta,
.detail-meta,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-500);
  font-size: 13px;
}

.card-meta span,
.wide-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

.feature-block {
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffedd5 0%, #ffe4e6 100%);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 91, 0.12);
}

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

.wide-card {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.08);
}

.wide-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
}

.wide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-info h3 {
  margin: 0 0 8px;
  color: var(--ink-950);
  font-size: 20px;
}

.wide-info p {
  margin: 0 0 10px;
  color: var(--ink-600);
}

.wide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sunrise);
  color: #fff;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: var(--ink-950);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.06);
  opacity: 0.74;
}

.category-card .category-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.rank-list {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 46px 72px 1fr minmax(120px, 210px) 90px;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 10px 12px;
  border-radius: 18px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.rank-row:hover {
  background: var(--peach-50);
  transform: translateX(4px);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: var(--sunrise);
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  color: var(--ink-950);
  font-weight: 800;
}

.rank-meta,
.rank-heat {
  color: var(--ink-500);
  font-size: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px 140px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select,
.search-panel button {
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--ink-700);
  background: #fff;
  outline: none;
}

.search-panel button {
  border: 0;
  color: #fff;
  background: var(--sunrise);
  font-weight: 800;
  cursor: pointer;
}

.search-empty {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink-600);
  text-align: center;
  box-shadow: var(--shadow);
}

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

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

.breadcrumbs {
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--coral-600);
  font-weight: 700;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card,
.content-card,
.side-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--coral-600);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  font-size: 30px;
}

.video-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.content-card {
  padding: 26px;
}

.content-card h1 {
  margin: 0 0 14px;
  color: var(--ink-950);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.detail-tags span {
  padding: 7px 11px;
  font-size: 14px;
}

.prose h2 {
  margin: 26px 0 10px;
  color: var(--ink-950);
  font-size: 24px;
}

.prose p {
  margin: 0 0 16px;
  color: var(--ink-700);
  font-size: 16px;
}

.side-card {
  padding: 18px;
}

.side-card h2,
.side-card h3 {
  margin: 0 0 14px;
  color: var(--ink-950);
}

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-card img {
  width: 74px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card strong {
  display: block;
  color: var(--ink-950);
  line-height: 1.35;
}

.mini-card span {
  color: var(--ink-500);
  font-size: 13px;
}

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

.site-footer {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
}

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

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

.footer-brand p {
  margin: 14px 0 0;
  color: var(--ink-600);
  max-width: 390px;
}

.footer-column h3 {
  margin: 0 0 14px;
  color: var(--ink-950);
  font-size: 16px;
}

.footer-column a {
  display: block;
  margin: 8px 0;
  color: var(--ink-600);
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero {
    min-height: 74vh;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 58px;
  }

  .hero-arrow {
    display: none;
  }

  .main-shell,
  .page-shell,
  .detail-wrap {
    width: min(100% - 24px, 1180px);
  }

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

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

  .wide-action {
    grid-column: 1 / -1;
  }

  .rank-row {
    grid-template-columns: 40px 62px 1fr;
  }

  .rank-meta,
  .rank-heat {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-logo {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .page-hero {
    padding: 24px;
  }

  .movie-grid,
  .movie-grid.three,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
