:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.08);
  --orange: #f97316;
  --pink: #ec4899;
  --red: #ef4444;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 30rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: #4b5563;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #ffffff;
  border-radius: 12px;
  font-size: 22px;
  width: 42px;
  height: 42px;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #111827;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 28px;
  padding: 64px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.64) 54%, rgba(17, 24, 39, 0.3) 100%),
    var(--hero-image) center / cover no-repeat;
  z-index: -2;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(249, 115, 22, 0.55), transparent 24rem),
    radial-gradient(circle at 80% 68%, rgba(236, 72, 153, 0.38), transparent 22rem);
  z-index: -1;
}

.hero-content {
  color: #ffffff;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-content h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 14px;
  color: #fed7aa;
  font-size: clamp(24px, 3vw, 38px);
}

.hero-content p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.34);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

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

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

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.15);
}

.tag-row span,
.meta-pill {
  color: #9a3412;
  background: #ffedd5;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(16px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  padding: 0;
  opacity: 0.55;
}

.hero-dot.active {
  width: 26px;
  border-radius: 999px;
  opacity: 1;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.section-block {
  margin-top: 42px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more,
.text-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.22);
}

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

.movie-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  border-color: rgba(249, 115, 22, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #111827, #7c2d12);
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-badge,
.rank-num {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
  color: #ffffff;
}

.poster-badge {
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
}

.rank-num {
  left: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: block;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 12px;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  padding: 24px;
  border-radius: 26px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: var(--shadow);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #fb7185, #f97316);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.search-panel {
  margin: 22px 0;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.movie-search {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  outline: 0;
  border-radius: 18px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--text);
  background: #ffffff;
}

.movie-search:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #7c2d12;
  border: 1px solid rgba(249, 115, 22, 0.22);
  font-weight: 800;
}

.chip:hover,
.chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.page-hero {
  padding: 56px;
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 18rem),
    linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  font-size: 18px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 88px 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.ranking-cover {
  border-radius: 16px;
  overflow: hidden;
}

.ranking-cover img {
  width: 88px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ranking-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
}

.ranking-copy a {
  font-size: 18px;
  font-weight: 900;
}

.ranking-copy p {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.6;
}

.ranking-copy span {
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  min-height: 520px;
  padding: 44px;
  border-radius: 34px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow);
  background: #111827;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.86)),
    var(--cover-image) center / cover no-repeat;
  filter: saturate(1.15);
  z-index: 0;
}

.detail-hero > * {
  position: relative;
  z-index: 1;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  font-size: 17px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.player-section,
.story-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 150px;
  height: 150px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.38);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-overlay:hover {
  transform: scale(1.05);
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 24px;
}

.story-card {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.hidden {
  display: none !important;
}

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

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--text);
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    justify-content: flex-start;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-slider {
    min-height: 700px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 38px 26px 90px;
  }

  .hero-poster {
    max-width: 250px;
    transform: rotate(0);
  }

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

  .page-hero,
  .detail-hero {
    padding: 32px 24px;
  }

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

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

  .ranking-row {
    grid-template-columns: 72px 42px 1fr;
  }

  .ranking-cover img {
    width: 72px;
  }

  .ranking-row .text-button {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  main {
    padding: 20px 14px 44px;
  }

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

  .hero-slider {
    min-height: 720px;
    border-radius: 24px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .text-button {
    width: 100%;
  }

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

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

  .player-overlay {
    width: 112px;
    height: 112px;
    font-size: 17px;
  }
}
