:root {
  --dawn-50: #fff9f0;
  --dawn-200: #ffe4b8;
  --dawn-500: #ffb347;
  --dawn-600: #ff9f24;
  --morning-500: #0d96f8;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--soft);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dawn-600);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--dawn-500), var(--morning-500));
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

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

.site-nav a,
.category-strip a,
.footer-links a {
  color: var(--ink-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.category-strip a:hover,
.footer-links a:hover {
  color: var(--dawn-600);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.big-search input,
.inline-filter input {
  width: 240px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink-700);
  background: white;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.big-search input:focus,
.inline-filter input:focus {
  border-color: var(--dawn-500);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.22);
}

.header-search button,
.big-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.big-search button,
.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--dawn-500), var(--morning-500));
  box-shadow: var(--shadow-card);
}

.ghost-btn {
  color: white;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(4px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink-700);
  font-size: 24px;
}

.category-strip {
  border-top: 1px solid rgba(229, 231, 235, 0.7);
  overflow-x: auto;
}

.category-strip-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 22px;
  padding: 10px 0;
  white-space: nowrap;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--ink-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img,
.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.08));
}

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

.hero-content h1,
.sub-hero h1,
.detail-title-row h1 {
  margin: 12px 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p,
.sub-hero p,
.detail-title-row p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--dawn-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.detail-title-row .eyebrow,
.sub-hero .eyebrow {
  color: var(--dawn-500);
}

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

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: #92400e;
  background: var(--dawn-50);
}

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

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

.hero-dots button {
  width: 32px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: white;
}

.quick-search-panel,
.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -40px;
  padding: 28px;
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
}

.quick-search-panel h2,
.intro-panel h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.big-search {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.big-search input {
  width: min(440px, 100%);
}

.section-block {
  padding: 56px 0 0;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.16;
}

.section-more {
  color: var(--dawn-600);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f4f6;
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent);
}

.play-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.56);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--dawn-500), var(--morning-500));
  border-radius: 999px;
  font-size: 13px;
}

.movie-card-body {
  padding: 14px;
}

.movie-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--dawn-600);
}

.card-meta {
  margin: 6px 0;
  color: var(--ink-500);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card .card-desc {
  display: none;
}

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

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

.category-card {
  min-height: 150px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink-900);
  background:
    linear-gradient(135deg, rgba(255, 179, 71, 0.14), rgba(13, 150, 248, 0.12)),
    white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span {
  color: var(--dawn-600);
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 500;
}

.sub-hero {
  color: white;
  background:
    radial-gradient(circle at top left, rgba(255, 179, 71, 0.55), transparent 32%),
    linear-gradient(135deg, #111827, #1f2937 55%, #0d96f8);
  padding: 72px 0;
}

.sub-hero h1 {
  margin-bottom: 12px;
}

.inline-filter {
  margin-top: 24px;
}

.inline-filter input {
  width: min(520px, 100%);
}

.detail-hero {
  position: relative;
  min-height: 54vh;
  overflow: hidden;
  color: white;
  background: var(--ink-900);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 44px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.detail-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  padding-top: 34px;
}

.player-card,
.content-card,
.side-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.play-overlay[hidden] {
  display: none;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--dawn-500), var(--morning-500));
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
  font-size: 32px;
}

.content-card,
.side-card {
  margin-top: 22px;
  padding: 24px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p,
.side-card p {
  margin: 0;
  color: var(--ink-700);
}

.poster-side {
  margin-top: 0;
}

.poster-side img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f3f4f6;
}

.poster-side h2 {
  margin-top: 16px;
}

.detail-tags {
  margin-top: 14px;
}

.info-list {
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--ink-500);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: var(--ink-900);
  font-weight: 700;
  text-align: right;
}

.info-list a {
  color: var(--dawn-600);
}

.intro-panel {
  margin-top: 56px;
  margin-bottom: 56px;
}

.intro-panel p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink-700);
}

.site-footer {
  margin-top: 70px;
  padding: 40px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #d1d5db;
}

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

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

@media (max-width: 820px) {
  .header-inner {
    gap: 12px;
  }

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

  .site-nav {
    position: fixed;
    top: 64px;
    right: 16px;
    width: 220px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
  }

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

  .site-nav a {
    padding: 10px 12px;
  }

  .header-search {
    display: none;
  }

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

  .quick-search-panel,
  .intro-panel,
  .detail-title-row,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .big-search {
    width: 100%;
    flex-direction: column;
  }

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

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

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .category-strip-inner,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .hero-content h1,
  .sub-hero h1,
  .detail-title-row h1 {
    font-size: 38px;
  }

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

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

  .movie-card-body {
    padding: 11px;
  }

  .card-desc,
  .tag-row {
    display: none;
  }

  .play-overlay span {
    width: 66px;
    height: 66px;
  }
}
