:root {
  --bg: #fffaf0;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #6b7280;
  --soft: #fef3c7;
  --line: #fde68a;
  --brand: #f59e0b;
  --brand-deep: #ea580c;
  --dark: #0f172a;
  --shadow: 0 20px 50px rgba(146, 64, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(251, 191, 36, 0.22),
      transparent 28rem
    ),
    linear-gradient(180deg, #fff7ed 0%, #fffaf0 38%, #ffffff 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(
    90deg,
    rgba(255, 251, 235, 0.96),
    rgba(255, 247, 237, 0.96),
    rgba(255, 251, 235, 0.96)
  );
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.12);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1220px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 5px;
  color: #78716c;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: #44403c;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #78350f;
  background: #fffbeb;
  font-size: 24px;
}

.nav-chips {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.nav-chips a {
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  color: #57534e;
  background: #ffffff;
  box-shadow: 0 6px 15px rgba(180, 83, 9, 0.08);
  transition: 0.2s ease;
}

.nav-chips a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.hero-slider {
  position: relative;
  max-width: 1220px;
  height: min(72vh, 720px);
  min-height: 540px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition:
    opacity 0.7s ease,
    transform 0.9s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78),
      rgba(0, 0, 0, 0.36),
      rgba(0, 0, 0, 0.05)
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 45%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 78px);
  bottom: clamp(34px, 8vw, 86px);
  width: min(680px, calc(100% - 48px));
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: linear-gradient(90deg, #fef3c7, #fed7aa);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6.2vw, 72px);
  line-height: 0.95;
  font-weight: 1000;
  letter-spacing: -0.06em;
  text-shadow: 0 15px 35px rgba(0, 0, 0, 0.48);
}

.hero-copy h2 + h2 {
  font-size: clamp(28px, 4vw, 46px);
  color: #fde68a;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

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

.primary-btn,
.ghost-btn,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn,
.quick-search button {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

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

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

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.hero-dots button.is-active {
  width: 36px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.section-wrap {
  max-width: 1220px;
  margin: 42px auto;
  padding: 0 24px;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 26px;
  align-items: center;
  padding: 28px;
  border: 1px solid #fde68a;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.search-band h2,
.section-title h2,
.ranking-panel h2,
.page-hero h1,
.detail-info h1,
.article-section h2 {
  margin: 0;
  color: #1c1917;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 1000;
  letter-spacing: -0.05em;
}

.search-band p,
.page-hero p,
.detail-info p,
.article-section p {
  color: var(--muted);
  line-height: 1.8;
}

.quick-search {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.quick-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
  color: #1c1917;
}

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

.section-title a {
  color: #c2410c;
  font-weight: 900;
}

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

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

.category-card {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card img {
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  opacity: 0.74;
  transition: 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.9;
}

.category-card span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 20px 20px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  font-size: 22px;
  font-weight: 1000;
}

.category-card em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(120, 53, 15, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(120, 53, 15, 0.18);
}

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

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

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

.poster-type,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-type {
  right: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  left: 12px;
  padding: 6px 9px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.movie-card-body {
  display: block;
  padding: 16px;
}

.movie-card-body strong,
.movie-card-body em,
.movie-meta,
.tag-row {
  display: block;
}

.movie-card-body strong {
  color: #1c1917;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.25;
}

.movie-card-body em {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  color: #57534e;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin-top: 12px;
  color: #78716c;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

.ranking-panel {
  position: sticky;
  top: 120px;
  padding: 22px;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.ranking-panel h2 {
  color: #ffffff;
  font-size: 30px;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 150px;
}

.compact-card .poster-box {
  aspect-ratio: auto;
  min-height: 150px;
}

.ranking-panel .compact-card {
  background: rgba(255, 255, 255, 0.08);
}

.ranking-panel .movie-card-body strong {
  color: #ffffff;
}

.ranking-panel .movie-card-body em,
.ranking-panel .movie-meta {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero {
  max-width: 1220px;
  margin: 28px auto 0;
  padding: clamp(44px, 7vw, 86px) 28px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(251, 191, 36, 0.35),
      transparent 28rem
    ),
    linear-gradient(135deg, #fff7ed, #fffbeb 55%, #fed7aa);
  box-shadow: var(--shadow);
}

.centered-actions {
  justify-content: center;
}

.filter-panel {
  width: min(940px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  text-align: left;
  color: #78350f;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 0 14px;
  outline: 0;
  background: #ffffff;
  color: #1c1917;
}

.detail-hero {
  max-width: 1220px;
  margin: 28px auto 0;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, #111827, #292524 55%, #78350f);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.detail-info {
  align-self: center;
  color: #ffffff;
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 64px);
}

.detail-info p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a {
  color: #fde68a;
}

.breadcrumb em {
  font-style: normal;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.detail-tags span {
  color: #fff7ed;
  background: rgba(251, 191, 36, 0.22);
}

.player-section {
  scroll-margin-top: 110px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.25));
  transition: 0.2s ease;
}

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

.play-ring {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

.player-cover strong {
  font-size: clamp(20px, 3vw, 32px);
}

.article-section article {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article-section h2 + p {
  margin-top: 12px;
}

.article-section p + h2 {
  margin-top: 28px;
}

.site-footer {
  margin-top: 60px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 54px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover {
  color: #fbbf24;
}

.copyright {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 780px) {
  .nav-wrap {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand-text strong {
    font-size: 20px;
  }

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid #fde68a;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    width: 100%;
  }

  .nav-chips {
    padding: 0 16px 12px;
  }

  .hero-slider {
    min-height: 560px;
    margin: 16px 16px 0;
    border-radius: 24px;
  }

  .hero-copy {
    left: 20px;
    bottom: 72px;
    width: calc(100% - 40px);
  }

  .hero-dots {
    left: 20px;
    right: auto;
    bottom: 28px;
  }

  .section-wrap {
    margin: 32px auto;
    padding: 0 16px;
  }

  .search-band {
    margin-left: 16px;
    margin-right: 16px;
    padding: 22px;
  }

  .quick-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .quick-search input {
    min-height: 44px;
  }

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .ranking-table,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero {
    margin: 16px;
    border-radius: 24px;
  }

  .detail-poster img {
    min-height: auto;
  }

  .compact-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .site-footer {
    margin-top: 38px;
  }
}
