:root {
  --primary: #b8915a;
  --primary-dark: #8a6538;
  --secondary: #8a5fa8;
  --accent: #d6783f;
  --ink: #1f1b17;
  --muted: #786f68;
  --line: #e8e0d8;
  --surface: #ffffff;
  --surface-soft: #fbf7f0;
  --shadow: 0 22px 60px rgba(65, 45, 25, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf3 0%, #f6f1ea 40%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(232, 224, 216, 0.8);
  background: rgba(255, 250, 243, 0.88);
  backdrop-filter: blur(20px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 30px rgba(184, 145, 90, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: #5c534b;
  font-size: 15px;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--primary-dark);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(184, 145, 90, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.header-search input,
.page-filter input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
}

.header-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 9px 16px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(33, 25, 17, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

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

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  color: #5c534b;
}

.mobile-nav.is-open {
  display: block;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4e4ca 0%, #f7edf4 48%, #fff6eb 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(184, 145, 90, 0.28), transparent 28%),
    radial-gradient(circle at 78% 14%, rgba(138, 95, 168, 0.20), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 250, 243, 0.92));
}

.hero-frame {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 46px;
  padding: 56px 0;
}

.hero-title-block {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(184, 145, 90, 0.28);
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 700;
}

.hero-title-block h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-title-block p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-slider {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  overflow: hidden;
  background: #1e1711;
  box-shadow: 0 30px 80px rgba(46, 29, 16, 0.24);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  opacity: 0.58;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 9, 5, 0.92) 0%, rgba(13, 9, 5, 0.54) 45%, rgba(13, 9, 5, 0.18) 100%),
    linear-gradient(0deg, rgba(13, 9, 5, 0.8), transparent 55%);
}

.hero-copy {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 46px;
  color: #ffffff;
}

.hero-copy .eyebrow {
  color: #ffe8bd;
  border-color: rgba(255, 232, 189, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.hero-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.hero-meta,
.detail-chips,
.movie-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta {
  margin-top: 20px;
}

.hero-meta span,
.detail-chips span,
.movie-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta span {
  color: #fff4da;
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 10px;
}

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

.btn {
  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;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 30px rgba(184, 145, 90, 0.28);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-dots {
  position: absolute;
  left: 46px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

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

.hero-dots button.is-active {
  width: 44px;
  background: #ffffff;
}

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

.section-shell.tinted {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #fff8ef, #f8edf7);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact-heading {
  margin-bottom: 18px;
}

.section-heading.with-link {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading span {
  display: block;
  color: var(--primary-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 15px 38px rgba(61, 43, 26, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 58px rgba(61, 43, 26, 0.14);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #21160d;
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.year-badge {
  left: 12px;
  background: rgba(0, 0, 0, 0.45);
}

.rank-badge {
  right: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(10px);
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-tags {
  margin-bottom: 12px;
}

.movie-tags span,
.detail-chips span,
.tag-cloud span {
  color: var(--primary-dark);
  background: #f5ead9;
  padding: 6px 9px;
}

.movie-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  border-radius: 24px;
  overflow: hidden;
  color: #ffffff;
  background: #201912;
  box-shadow: 0 18px 44px rgba(33, 24, 15, 0.12);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 7, 4, 0.88), rgba(10, 7, 4, 0.12));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 18px;
}

.category-card span {
  padding-top: 126px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.page-hero {
  position: relative;
  padding: 82px max(16px, calc((100% - 1180px) / 2));
  overflow: hidden;
}

.page-hero.soft {
  background: linear-gradient(135deg, #fff3e3, #f6edf8);
}

.page-hero.hot {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #20140c, #8a5fa8 52%, #b8915a);
}

.page-hero > div {
  max-width: 760px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.page-hero.hot p {
  color: rgba(255, 255, 255, 0.78);
}

.page-filter {
  width: min(480px, 100%);
  margin-top: 24px;
  border: 1px solid rgba(184, 145, 90, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.page-filter input {
  width: 100%;
  padding: 14px 18px;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(61, 43, 26, 0.08);
}

.category-cover {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: #201912;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.category-overview-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.preview-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #f5ead9;
  font-size: 13px;
  font-weight: 800;
}

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

.movie-card.compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

.movie-card.compact h3 {
  font-size: 17px;
}

.detail-hero {
  padding: 38px max(16px, calc((100% - 1180px) / 2)) 64px;
  background:
    radial-gradient(circle at 76% 10%, rgba(138, 95, 168, 0.16), transparent 26%),
    linear-gradient(135deg, #fff5e6, #f8edf7);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #74675d;
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--primary-dark);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  background: #201912;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-copy .lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.detail-chips {
  margin: 24px 0 28px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 74px rgba(16, 10, 6, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

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

.content-section {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  gap: 22px;
}

.story-card {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(61, 43, 26, 0.08);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.story-card p {
  margin: 0;
  color: #51463d;
  line-height: 1.95;
  font-size: 17px;
}

.tag-cloud {
  margin-top: 18px;
}

.related-section {
  padding-top: 38px;
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.76);
  background: #1c1510;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  white-space: nowrap;
  color: #ffe8bd;
}

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

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

  .nav-toggle {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

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

  .hero-frame {
    gap: 28px;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

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

  .header-search {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-frame {
    min-height: auto;
    padding: 34px 0 52px;
  }

  .hero-slider {
    min-height: 520px;
    border-radius: 26px;
  }

  .hero-slide img {
    min-height: 520px;
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    bottom: 54px;
  }

  .hero-dots {
    left: 22px;
  }

  .section-shell,
  .section-shell.tinted {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-heading.with-link,
  .footer-inner {
    display: block;
  }

  .text-link,
  .footer-links {
    display: inline-block;
    margin-top: 16px;
  }

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

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

  .detail-layout {
    gap: 24px;
  }

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

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .story-card {
    padding: 22px;
  }
}
