:root {
  color-scheme: light;
  --page-bg: #fff8f4;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --peach-50: #fff5f0;
  --peach-100: #ffe9dd;
  --peach-200: #ffd3bb;
  --peach-400: #ffa777;
  --peach-500: #ff9155;
  --peach-600: #ff7b44;
  --coral-50: #fff0ee;
  --coral-400: #ff7d6d;
  --coral-500: #ff6450;
  --ring: rgba(255, 145, 85, 0.28);
  --shadow: 0 18px 50px rgba(255, 145, 85, 0.18);
  --shadow-soft: 0 8px 28px rgba(255, 145, 85, 0.12);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 167, 119, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff8f4 0%, #ffffff 42%, #fffaf7 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 211, 187, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(255, 145, 85, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, var(--peach-400), var(--coral-500));
  box-shadow: 0 10px 28px rgba(255, 100, 80, 0.32);
}

.brand-text,
.gradient-text {
  font-family: Lexend, Inter, system-ui, sans-serif;
  font-weight: 800;
  background: linear-gradient(90deg, var(--peach-600), var(--coral-500), var(--peach-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 10px 14px;
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--peach-600);
  background: var(--peach-50);
  transform: translateY(-1px);
}

.search-bar {
  position: relative;
  flex: 0 1 270px;
}

.search-bar input,
.inline-filter input {
  width: 100%;
  border: 1px solid var(--peach-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 18px;
  color: var(--ink);
  outline: none;
  box-shadow: 0 8px 20px rgba(255, 145, 85, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input:focus,
.inline-filter input:focus {
  border-color: var(--peach-500);
  box-shadow: 0 0 0 5px var(--ring);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--peach-50);
  color: var(--peach-600);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--peach-100);
  background: #fff;
}

.mobile-nav-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: grid;
  gap: 12px;
}

.page-main {
  min-height: 60vh;
}

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

.section {
  padding: 56px 0;
}

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

.section-title h1,
.section-title h2 {
  font-family: Lexend, Inter, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 8px;
  font-weight: 800;
  color: #111827;
}

.section-title p {
  max-width: 740px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 145, 85, 0.38), transparent 28rem),
    radial-gradient(circle at 88% 15%, rgba(255, 100, 80, 0.22), transparent 28rem),
    linear-gradient(180deg, rgba(255, 245, 240, 0.72), rgba(255, 255, 255, 0.82));
  z-index: -3;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08);
  z-index: -2;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.62) 44%, rgba(17, 24, 39, 0.16) 100%),
    linear-gradient(0deg, rgba(255, 248, 244, 0.98) 0%, rgba(255, 248, 244, 0) 24%);
  z-index: -1;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.64fr);
  align-items: center;
  gap: 34px;
  padding: 84px 0 70px;
}

.hero-copy {
  color: #fff;
  max-width: 780px;
}

.hero-copy h1,
.hero-copy h2 {
  font-family: Lexend, Inter, system-ui, sans-serif;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 18px 0 20px;
  font-weight: 900;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.9;
  margin: 0 0 26px;
}

.hero-meta,
.meta-row,
.tag-row,
.card-meta,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.pill,
.tag,
.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.pill {
  color: #fff;
  background: rgba(255, 145, 85, 0.86);
  box-shadow: 0 10px 28px rgba(255, 100, 80, 0.22);
}

.tag,
.meta-chip {
  color: var(--peach-600);
  background: var(--peach-50);
  border: 1px solid var(--peach-100);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 20px;
  min-height: 48px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
  box-shadow: 0 14px 34px rgba(255, 100, 80, 0.34);
}

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

.btn-light {
  color: var(--peach-600);
  background: #fff;
  border: 1px solid var(--peach-100);
  box-shadow: var(--shadow-soft);
}

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

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

.hero-side-card {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(16px);
  padding: 18px;
  color: #fff;
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero-side-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

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

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

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

.quick-search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 8;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--peach-100);
  border-radius: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.quick-search input {
  border-radius: 999px;
  border: 1px solid var(--peach-100);
  padding: 15px 20px;
  outline: none;
  font-size: 16px;
  background: var(--peach-50);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid rgba(255, 211, 187, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--peach-100), var(--coral-50));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-type,
.card-rating {
  position: absolute;
  top: 12px;
  z-index: 3;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.card-type {
  left: 12px;
}

.card-rating {
  right: 12px;
  background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  font-size: 17px;
  font-weight: 850;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 9px;
}

.card-title:hover {
  color: var(--peach-600);
}

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

.card-meta {
  color: #6b7280;
  font-size: 13px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 182px;
  border-radius: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 100, 80, 0.28), transparent 12rem),
    linear-gradient(135deg, #fff, var(--peach-50));
  border: 1px solid var(--peach-100);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 850;
  color: #111827;
}

.category-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--peach-100);
  box-shadow: var(--shadow-soft);
}

.rank-index {
  font-family: Lexend, Inter, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--peach-500);
}

.rank-poster img {
  width: 76px;
  height: 108px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--peach-50);
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 850;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-score {
  font-size: 22px;
  font-weight: 900;
  color: var(--coral-500);
}

.page-hero {
  padding: 68px 0 34px;
}

.page-hero-panel,
.detail-hero {
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 167, 119, 0.25), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 240, 0.94));
  border: 1px solid var(--peach-100);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--peach-600);
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 36px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.22);
  background: var(--peach-50);
}

.detail-copy h1 {
  font-family: Lexend, Inter, system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  color: #111827;
  font-weight: 900;
}

.detail-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  margin: 18px 0 0;
}

.player-section {
  padding: 38px 0 20px;
}

.player-shell {
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  text-align: center;
  background: rgba(17, 24, 39, 0.38);
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  z-index: -2;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(255, 145, 85, 0.18), transparent 18rem),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.26));
}

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
  box-shadow: 0 14px 42px rgba(255, 100, 80, 0.4);
  font-size: 34px;
  padding-left: 5px;
}

.player-cover strong {
  display: block;
  font-size: clamp(22px, 4vw, 34px);
  margin-bottom: 8px;
}

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

.content-card,
.side-card {
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--peach-100);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  font-size: 24px;
  margin: 0 0 16px;
  font-weight: 850;
  color: #111827;
}

.content-card p {
  color: #4b5563;
  line-height: 1.95;
  margin: 0 0 20px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 74px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--peach-50);
}

.compact-card strong {
  display: block;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 7px;
}

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

.inline-filter {
  max-width: 520px;
  margin: 0 0 28px;
}

.no-result {
  display: none;
  border-radius: 22px;
  padding: 28px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--peach-100);
}

.has-empty .no-result {
  display: block;
}

.is-hidden {
  display: none !important;
}

.site-footer {
  margin-top: 46px;
  border-top: 1px solid var(--peach-100);
  background: linear-gradient(135deg, var(--peach-50), var(--coral-50));
}

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

.footer-inner p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  color: var(--peach-600);
}

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
  }

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

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

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

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero,
  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 70px;
  }

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

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

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

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

  .ranking-row {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    font-size: 18px;
  }

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

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

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

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

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

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

  .content-card,
  .side-card {
    padding: 20px;
  }
}
