:root {
  --peach-50: #fff5f0;
  --peach-100: #ffe9dd;
  --peach-200: #ffd3bb;
  --peach-400: #ffa777;
  --peach-500: #ff9155;
  --peach-600: #ff7b44;
  --peach-700: #e8622d;
  --coral-500: #ff6450;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: #f2d9cb;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(255, 145, 85, 0.18);
  --soft-shadow: 0 4px 20px rgba(255, 145, 85, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--peach-50) 0%, #ffffff 46%, #fff0ee 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.gradient-text {
  background: linear-gradient(90deg, var(--peach-600), var(--coral-500), var(--peach-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-shadow {
  box-shadow: var(--soft-shadow);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.13);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 211, 187, 0.72);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--peach-600), var(--coral-500));
  box-shadow: 0 12px 30px rgba(255, 100, 80, 0.25);
}

.brand-text {
  font-size: 1.35rem;
}

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

.nav-link,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-600);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
  color: var(--peach-700);
  background: var(--peach-100);
}

.header-search {
  display: flex;
  align-items: center;
  width: 286px;
  padding: 5px;
  border: 1px solid var(--peach-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
  color: var(--ink-700);
}

.header-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--peach-600), var(--coral-500));
  box-shadow: 0 12px 26px rgba(255, 100, 80, 0.24);
}

.header-search button {
  padding: 8px 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
}

.secondary-button {
  color: var(--peach-700);
  background: rgba(255, 255, 255, 0.88);
}

.primary-button:hover,
.secondary-button:hover,
.header-search button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--peach-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 10px;
  background: var(--peach-700);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 620px;
  margin-top: -1px;
  overflow: hidden;
  background: #16110f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(16, 12, 10, 0.92), rgba(20, 12, 10, 0.58), rgba(20, 12, 10, 0.2)), var(--hero-bg);
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, var(--peach-50), rgba(255, 245, 240, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--peach-600);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--peach-200);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.meta-list span,
.category-list a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

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

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

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-card-body {
  padding: 18px;
  color: #ffffff;
}

.hero-card-body strong {
  display: block;
  font-size: 1.1rem;
}

.hero-card-body span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
}

.hero-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 34px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

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

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.page-section:last-child {
  padding-bottom: 72px;
}

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

.section-head h2,
.page-title-row h1,
.detail-title h1 {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-more {
  color: var(--peach-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 211, 187, 0.66);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--peach-100);
}

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

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

.card-badge,
.card-score {
  position: absolute;
  top: 10px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 850;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 10px;
}

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

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--peach-700);
}

.card-meta,
.card-desc,
.result-desc,
.detail-summary p,
.detail-review p,
.footer-inner p {
  color: var(--ink-600);
  line-height: 1.7;
}

.card-meta {
  margin: 7px 0 0;
  font-size: 0.82rem;
}

.card-desc {
  margin: 9px 0 0;
  font-size: 0.9rem;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.meta-list span,
.category-list a {
  padding: 6px 9px;
  color: var(--peach-700);
  background: var(--peach-100);
  font-size: 0.76rem;
}

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

.feature-card {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: #16110f;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.22));
}

.feature-content {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
}

.feature-content h3 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.1;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 211, 187, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

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

.rank-number {
  color: var(--ink-500);
  font-size: 1.35rem;
  font-weight: 900;
}

.rank-row.top .rank-number {
  color: var(--peach-700);
}

.rank-main {
  min-width: 0;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main em {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.84rem;
  font-style: normal;
}

.rank-score {
  justify-self: end;
  color: var(--peach-700);
  font-weight: 900;
}

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

.category-tile {
  min-height: 128px;
  padding: 22px;
  border: 1px solid rgba(255, 211, 187, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.category-tile strong {
  display: block;
  font-size: 1.25rem;
}

.category-tile span {
  display: block;
  margin-top: 10px;
  color: var(--ink-500);
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  padding: 34px;
  border: 1px solid rgba(255, 211, 187, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.page-hero p,
.page-title-row p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ink-600);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink-500);
  font-size: 0.92rem;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-600);
  font-weight: 800;
}

.pagination strong,
.pagination a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--peach-600), var(--coral-500));
}

.detail-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-title h1 {
  margin-bottom: 14px;
}

.meta-list {
  margin: 18px 0 0;
}

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

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

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(255, 100, 80, 0.30), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

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

.play-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--peach-600), var(--coral-500));
  box-shadow: 0 18px 48px rgba(255, 100, 80, 0.35);
  font-size: 2.4rem;
}

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

.detail-panel,
.side-panel,
.search-panel {
  padding: 26px;
  border: 1px solid rgba(255, 211, 187, 0.70);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.detail-panel + .detail-panel {
  margin-top: 22px;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.detail-panel p {
  margin: 0;
}

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

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

.related-item img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong,
.related-item span {
  display: block;
}

.related-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-item span {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 0.84rem;
}

.search-panel {
  margin-bottom: 24px;
}

.search-box-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-box-large input {
  width: 100%;
  border: 1px solid var(--peach-200);
  border-radius: 16px;
  outline: 0;
  padding: 14px 16px;
  background: #ffffff;
}

.search-box-large button {
  border: 0;
}

.search-count {
  margin-top: 12px;
  color: var(--ink-500);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(255, 211, 187, 0.70);
  background: rgba(255, 255, 255, 0.72);
}

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

.footer-brand {
  color: var(--peach-700);
  font-size: 1.25rem;
}

.footer-inner p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--peach-700);
  background: var(--peach-100);
  font-weight: 700;
}

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

  .hero-inner,
  .split-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 560px;
  }

  .hero-inner {
    gap: 0;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero-controls {
    bottom: 22px;
  }

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

  .section-head,
  .page-title-row,
  .footer-inner {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

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

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 64px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 610px;
  }

  .hero-actions,
  .search-box-large {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .search-box-large button {
    width: 100%;
  }

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

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

  .rank-score {
    display: none;
  }

  .page-hero,
  .detail-hero,
  .detail-panel,
  .side-panel,
  .search-panel {
    padding: 22px;
    border-radius: 22px;
  }
}
