:root {
  --color-coral-50: #fff3f1;
  --color-coral-100: #ffe4df;
  --color-coral-400: #ff7c64;
  --color-coral-500: #ff5533;
  --color-coral-600: #ed3010;
  --color-peach-50: #fff5f2;
  --color-peach-100: #ffe8e1;
  --color-peach-200: #ffd4c7;
  --color-peach-400: #ff9374;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #ffe0d6;
  --shadow-card: 0 18px 40px rgba(237, 48, 16, 0.12);
  --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.10);
  --gradient-sunrise: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--color-peach-50), #ffffff 42%, var(--color-peach-50));
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  font-size: 18px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.25);
}

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

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 2px;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide.is-active .hero-image {
  animation: slowZoom 7s ease forwards;
}

@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.44) 45%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: clamp(44px, 9vh, 98px);
  max-width: 760px;
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  color: #ffffff;
  background: var(--color-coral-500);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  max-width: 690px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
}

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

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

.btn-primary {
  color: #ffffff;
  background: var(--gradient-sunrise);
  box-shadow: 0 14px 28px rgba(255, 85, 51, 0.32);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.20);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 85, 51, 0.86);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

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

.main-content {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.section {
  margin: 0 0 70px;
}

.section-soft {
  padding: clamp(24px, 5vw, 48px);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--color-peach-100), var(--color-coral-100));
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--color-coral-600);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  font-weight: 900;
  color: var(--color-text);
}

.section-desc {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--color-muted);
  line-height: 1.75;
}

.more-link {
  color: var(--color-coral-600);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #111827);
}

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

.movie-card:hover .poster-frame img,
.list-card:hover .poster-frame img {
  transform: scale(1.10);
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .poster-shade,
.list-card:hover .poster-shade {
  opacity: 1;
}

.play-circle {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--color-coral-500);
  background: rgba(255, 255, 255, 0.92);
  transform: scale(0.62);
  transition: transform 0.28s ease;
}

.movie-card:hover .play-circle,
.list-card:hover .play-circle {
  transform: scale(1);
}

.duration-badge,
.card-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.duration-badge {
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.72);
}

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

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  transition: color 0.22s ease;
}

.movie-card:hover .card-title,
.list-card:hover .card-title {
  color: var(--color-coral-500);
}

.card-desc {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.58;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--color-coral-600);
  background: var(--color-peach-100);
  font-size: 12px;
  font-weight: 700;
}

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

.list-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.list-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.list-title-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(150px, 180px));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--color-coral-400);
  box-shadow: 0 0 0 4px rgba(255, 124, 100, 0.16);
}

.result-count {
  margin: -12px 0 22px;
  color: var(--color-muted);
  font-size: 14px;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 85, 51, 0.94), rgba(255, 147, 116, 0.84)), #ff7c64;
  box-shadow: var(--shadow-card);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -56px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  max-width: 520px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.category-count {
  position: relative;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.page-hero {
  padding: 70px 0 34px;
  background: radial-gradient(circle at 14% 18%, rgba(255, 147, 116, 0.35), transparent 34%), linear-gradient(180deg, var(--color-peach-50), #ffffff);
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.page-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.16;
  font-weight: 900;
}

.page-desc {
  max-width: 840px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ranking-list {
  display: grid;
  gap: 14px;
  counter-reset: rank;
}

.ranking-item {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 58px 160px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: var(--gradient-sunrise);
  font-weight: 900;
}

.ranking-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.ranking-title {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 900;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 32px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18));
  border: 0;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  background: rgba(255, 85, 51, 0.92);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.play-overlay.is-hidden {
  display: none;
}

.content-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card + .content-card {
  margin-top: 22px;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.meta-pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--color-coral-600);
  background: var(--color-peach-100);
  font-size: 13px;
  font-weight: 800;
}

.prose h2,
.side-title {
  margin: 0 0 14px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 900;
}

.prose p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.9;
}

.side-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 22px;
}

.info-table {
  display: grid;
  gap: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  color: #374151;
  font-size: 14px;
}

.info-row strong {
  color: var(--color-muted);
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.related-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.related-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.74);
}

.footer-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.footer-text,
.footer-links a {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.empty-state {
  padding: 48px;
  border-radius: 24px;
  text-align: center;
  color: var(--color-muted);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

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

  .side-panel {
    position: static;
  }

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .hero {
    height: 66vh;
    min-height: 500px;
  }

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

  .hero-control {
    display: none;
  }

  .main-content {
    padding-top: 34px;
  }

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

  .card-grid,
  .card-grid.three,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .list-card,
  .ranking-item {
    grid-template-columns: 1fr;
  }

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

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