:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --green: #16a34a;
  --amber: #d97706;
  --rose: #e11d48;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.10);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.32);
}

.brand-text {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
  background: #fff7ed;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 18px 18px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(10, 12, 22, 0.92) 0%, rgba(10, 12, 22, 0.72) 48%, rgba(10, 12, 22, 0.22) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 170px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--orange);
  background: #fff7ed;
}

.hero-content h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 650;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.35);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.outline-link:hover {
  transform: translateY(-2px);
}

.hero-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 2rem;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 82px;
  width: min(780px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input,
.inline-search,
.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #111827;
  padding: 0 16px;
  outline: none;
}

.hero-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 0 24px;
  font-weight: 800;
}

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

.gradient-blue,
.gradient-amber {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
}

.gradient-blue {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.gradient-amber {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-more,
.outline-link {
  color: var(--orange);
  border: 1px solid #fed7aa;
  background: #fff;
}

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

.feature-grid .movie-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

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

.movie-card,
.category-card,
.category-overview-card,
.rank-row,
.text-panel,
.related-panel {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.feature-grid .movie-card:first-child .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-wrap img,
.category-card img,
.category-cover-strip img,
.mini-card img,
.rank-row img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.top-badge {
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.score-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.meta-line span {
  color: var(--muted);
  background: #f1f5f9;
}

.category-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.18));
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.category-card span,
.category-overview-copy span {
  color: #fed7aa;
  font-weight: 800;
}

.category-card h2,
.category-overview-copy h2 {
  margin: 8px 0;
  font-size: 1.55rem;
}

.category-card p,
.category-overview-copy p {
  margin: 0;
  line-height: 1.7;
}

.page-main {
  background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 320px);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 42px;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #475569;
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  overflow: hidden;
  border-radius: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 220px;
  overflow: hidden;
}

.category-overview-copy {
  padding: 26px 26px 26px 0;
  align-self: center;
}

.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.filters input {
  max-width: 520px;
}

.filters select {
  width: 180px;
}

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

.rank-list.compact-list {
  max-width: 980px;
  margin: 0 auto;
}

.rank-row {
  display: grid;
  grid-template-columns: 74px 92px 1fr 82px;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 14px;
  border-radius: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.rank-number {
  color: var(--amber);
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 92px;
  height: 104px;
  border-radius: 16px;
}

.rank-copy h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

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

.rank-score {
  justify-self: end;
  color: var(--orange);
  font-size: 1.4rem;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  filter: blur(3px);
  transform: scale(1.03);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72)), linear-gradient(0deg, rgba(17, 24, 39, 1), transparent 45%);
}

.detail-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
}

.detail-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.detail-copy .lead {
  max-width: 840px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-section {
  padding-top: 42px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.22), rgba(2, 6, 23, 0.62));
}

.play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.44);
  font-size: 2.3rem;
}

.player-box.is-playing .play-overlay {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  margin-top: 34px;
}

.text-panel,
.related-panel {
  border-radius: 26px;
  padding: 28px;
}

.text-panel h2,
.related-panel h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.text-panel p {
  margin: 0 0 26px;
  color: #334155;
  line-height: 2;
  font-size: 1.03rem;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
}

.mini-card img {
  height: 104px;
  border-radius: 14px;
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.4;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  margin-top: 38px;
  color: #cbd5e1;
  background: #111827;
}

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

.footer-brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

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

.footer-links a:hover {
  color: #fed7aa;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 20px 16px;
  text-align: center;
  color: #94a3b8;
}

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

@media (max-width: 1040px) {
  .feature-grid,
  .movie-grid,
  .large-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

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

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

  .hero-content {
    padding-bottom: 190px;
  }

  .hero-nav {
    display: none;
  }

  .section-head,
  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .filters input,
  .filters select,
  .inline-search {
    max-width: none;
    width: 100%;
  }

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

  .feature-grid .movie-card:first-child {
    grid-column: span 2;
  }

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

  .category-overview-copy {
    padding: 0 22px 24px;
  }

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

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

  .rank-row {
    grid-template-columns: 48px 74px 1fr;
  }

  .rank-row img {
    width: 74px;
    height: 92px;
  }

  .rank-score {
    display: none;
  }

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

@media (max-width: 560px) {
  .hero-carousel,
  .hero-content {
    min-height: 600px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-search {
    flex-direction: column;
    bottom: 70px;
  }

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

  .feature-grid .movie-card:first-child {
    grid-column: auto;
  }

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

  .rank-row img {
    display: none;
  }

  .detail-content {
    padding-top: 24px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
    font-size: 1.8rem;
  }

  .text-panel,
  .related-panel {
    padding: 22px;
  }
}
