:root {
  --peach-50: #fff5f2;
  --peach-100: #ffe8e1;
  --peach-200: #ffd4c7;
  --peach-400: #ff9374;
  --coral-400: #ff7c64;
  --coral-500: #ff5533;
  --coral-600: #ed3010;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #ffe0d6;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(237, 48, 16, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
  box-shadow: 0 12px 30px rgba(237, 48, 16, 0.18);
}

.nav-shell {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-open,
.mobile-toggle {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-open:hover,
.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
}

.mobile-panel {
  display: none;
  padding: 14px 24px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-panel a,
.mobile-panel button {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--peach-50);
  text-align: left;
  text-decoration: none;
  border: 1px solid var(--line);
  font-weight: 700;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.48) 46%, rgba(0, 0, 0, 0.08));
}

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

.hero-category,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  background: var(--coral-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.hero-content p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

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

.primary-btn,
.ghost-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #ff9374, #ff5533);
  box-shadow: 0 14px 28px rgba(255, 85, 51, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(237, 48, 16, 0.2);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

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

.page-main,
.detail-main {
  padding-top: 30px;
}

.page-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 24px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.section-title-row h2,
.category-hero h1,
.detail-card h1,
.side-box h2 {
  margin: 12px 0 10px;
  color: #111827;
  font-weight: 900;
  line-height: 1.15;
}

.section-heading h2,
.section-title-row h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.category-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.more-link {
  color: var(--coral-600);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(237, 48, 16, 0.1);
}

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

.category-pill {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 24px;
  padding: 20px;
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(237, 48, 16, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-pill strong {
  font-size: 18px;
}

.category-pill span {
  color: var(--coral-600);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(237, 48, 16, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.movie-card.compact .poster-link {
  aspect-ratio: 4 / 3;
}

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

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

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-weight: 900;
}

.card-content {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 54px;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-content p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.65;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span,
.detail-tags a {
  color: var(--coral-600);
  background: var(--peach-100);
}

.featured-panel {
  border-radius: 34px;
  background: linear-gradient(135deg, var(--peach-100), #ffe4df);
  box-shadow: inset 0 0 0 1px rgba(255, 124, 100, 0.22);
}

.split-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.8fr);
  gap: 30px;
  align-items: start;
}

.rank-panel,
.side-box,
.detail-card {
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(237, 48, 16, 0.08);
}

.rank-list,
.rank-page-list {
  display: grid;
  gap: 14px;
}

.list-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 112px;
  border-radius: 18px;
  padding: 12px;
  background: var(--peach-50);
  border: 1px solid var(--line);
}

.rank-number {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--coral-500);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(237, 48, 16, 0.22);
}

.list-poster {
  display: block;
  overflow: hidden;
  width: 82px;
  height: 82px;
  border-radius: 16px;
  background: var(--peach-100);
}

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

.list-title {
  color: #111827;
  font-weight: 900;
  text-decoration: none;
}

.list-content p {
  display: -webkit-box;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--coral-600);
  font-size: 12px;
  font-weight: 800;
}

.category-hero {
  max-width: 1180px;
  margin: 30px auto 0;
  border-radius: 34px;
  padding: 58px 40px;
  background: linear-gradient(135deg, #fff5f2, #ffffff 50%, #ffe4df);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.category-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.category-count {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--coral-600);
  background: #ffffff;
  font-weight: 900;
  border: 1px solid var(--line);
}

.detail-main {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
  padding-top: 24px;
}

.detail-primary {
  display: grid;
  gap: 22px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.5));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  background: linear-gradient(135deg, #ff9374, #ff5533);
  box-shadow: 0 18px 40px rgba(255, 85, 51, 0.36);
  font-size: 34px;
}

.player-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-player:hover .player-controls,
.video-player:focus-within .player-controls {
  opacity: 1;
  transform: translateY(0);
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

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

.detail-card h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.detail-card h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.detail-card p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #7c2d12;
  background: var(--peach-100);
  font-size: 13px;
  font-weight: 900;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
}

.compact-list .list-card {
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 86px;
}

.compact-list .list-poster {
  width: 62px;
  height: 62px;
}

.compact-list .list-content p {
  display: none;
}

.related-block {
  padding-left: 0;
  padding-right: 0;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.search-modal.open {
  display: block;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.search-box {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 70px));
  margin: 48px auto;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.search-box h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 900;
}

.search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--coral-600);
  background: var(--peach-100);
  font-size: 24px;
  cursor: pointer;
}

.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--peach-50);
  font-size: 16px;
  outline: none;
}

.search-results {
  max-height: 520px;
  overflow: auto;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.search-result {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 10px;
  color: var(--ink);
  background: var(--peach-50);
  text-decoration: none;
  border: 1px solid var(--line);
}

.search-result img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
}

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

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
}

.footer-brand {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--coral-600);
  background: var(--peach-100);
  text-decoration: none;
  font-weight: 800;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero-content {
    left: 24px;
    bottom: 72px;
  }

  .category-grid,
  .card-grid.four,
  .card-grid.three,
  .card-grid.two,
  .split-sections,
  .player-layout,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .player-layout,
  .split-sections {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

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

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

  .search-open {
    display: none;
  }

  .hero-carousel {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

  .page-block,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-grid,
  .card-grid.four,
  .card-grid.three,
  .card-grid.two,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    display: grid;
    align-items: start;
  }

  .category-hero {
    margin-left: 16px;
    margin-right: 16px;
    padding: 36px 22px;
  }

  .list-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .list-poster {
    width: 72px;
    height: 72px;
  }

  .player-controls {
    opacity: 1;
    transform: none;
  }
}
