:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;
  --rose-600: #e11d48;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 45px rgba(120, 53, 15, 0.14);
  --shadow-card: 0 14px 30px rgba(31, 41, 55, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 34%, var(--orange-50));
  font-family: ui-sans-serif, 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,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.10);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--amber-700);
}

.brand-text {
  font-size: clamp(20px, 2.6vw, 28px);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-600));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gray-700);
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--amber-700);
  border-color: var(--amber-600);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--gray-700);
  background: var(--amber-100);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--gray-700);
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: var(--orange-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 86px max(24px, calc((100vw - 1180px) / 2)) 92px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1.1s ease;
}

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

.hero-content {
  max-width: 760px;
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.sub-hero .eyebrow {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

.hero p {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--amber-100);
  font-size: clamp(17px, 2.1vw, 23px);
}

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

.hero-tags {
  margin: 26px 0 0;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.13);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  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(--amber-500), var(--orange-600));
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.34);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  align-self: center;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 72px rgba(0, 0, 0, 0.32);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  font-weight: 800;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 76px;
  z-index: 6;
  width: min(720px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-600));
  font-weight: 800;
}

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

.intro-band,
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: -44px;
  border-radius: 34px;
  padding: 42px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 8;
}

.intro-band h2,
.section-heading h2,
.sub-hero h1,
.cta-band h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.intro-band p,
.section-heading p,
.sub-hero p,
.cta-band p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--gray-600);
  font-size: 17px;
}

.text-link {
  color: var(--amber-700);
  background: var(--amber-100);
  white-space: nowrap;
}

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

.compact-heading {
  align-items: center;
  margin-bottom: 20px;
}

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 50px rgba(120, 53, 15, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62));
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(217, 119, 6, 0.92);
  backdrop-filter: blur(8px);
}

.year-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: rgba(225, 29, 72, 0.92);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}

.card-body strong {
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.28;
}

.card-meta,
.card-line {
  color: var(--gray-600);
  font-size: 14px;
}

.card-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--amber-700);
  background: var(--amber-100);
}

.compact-card {
  flex-direction: row;
  border-radius: 20px;
}

.compact-card .poster-wrap {
  width: 104px;
  flex: 0 0 104px;
}

.compact-card .poster-wrap img {
  height: 100%;
  aspect-ratio: auto;
}

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

.compact-card .card-body strong {
  font-size: 16px;
}

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

.category-zone {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

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

.category-card,
.category-overview-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card span,
.category-main-link span {
  display: inline-flex;
  width: fit-content;
  border-radius: 16px;
  padding: 9px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.category-card strong,
.category-main-link h2 {
  margin: 16px 0 8px;
  color: var(--gray-900);
  font-size: 24px;
  font-weight: 900;
}

.category-card em,
.category-main-link p,
.category-samples a {
  color: var(--gray-600);
  font-style: normal;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.ranking-block,
.detail-article article {
  border-radius: 30px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 13px;
  background: var(--amber-50);
}

.rank-list span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-600));
  font-weight: 900;
}

.rank-list strong {
  display: block;
  overflow: hidden;
  color: var(--gray-900);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list em {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.cta-band {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 86px;
  flex-direction: column;
  text-align: center;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-800));
}

.cta-band h2,
.cta-band p {
  color: #ffffff;
}

.sub-hero {
  padding: 86px max(24px, calc((100vw - 1180px) / 2));
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(252, 211, 77, 0.35), transparent 30%), linear-gradient(135deg, var(--amber-700), var(--orange-900));
}

.sub-hero h1,
.sub-hero p {
  color: #ffffff;
}

.category-overview-card {
  min-height: 280px;
}

.category-main-link em {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-style: normal;
  font-weight: 800;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--amber-100);
}

.category-samples a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  border: 1px solid var(--amber-200);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--gray-800);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-hero {
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 40px;
  color: var(--amber-100);
  font-weight: 700;
}

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

.detail-main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
  margin: 0;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--amber-100);
  font-size: 20px;
}

.detail-meta {
  margin: 24px 0 0;
}

.detail-info .tag-row {
  margin-top: 16px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.30);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-600));
  box-shadow: 0 20px 48px rgba(225, 29, 72, 0.34);
  font-size: 34px;
  text-indent: 5px;
}

.player-cover strong {
  font-size: 22px;
}

.detail-article {
  padding-top: 0;
}

.detail-article article {
  max-width: 920px;
}

.detail-article h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.detail-article h2:not(:first-child) {
  margin-top: 34px;
}

.detail-article p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-list div {
  border-radius: 18px;
  padding: 16px;
  background: var(--amber-50);
}

.info-list dt {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
}

.info-list dd {
  margin: 6px 0 0;
  color: var(--gray-800);
  font-weight: 700;
}

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

.detail-tags span {
  color: var(--amber-700);
  background: var(--amber-100);
}

.ranking-page {
  display: grid;
  gap: 34px;
}

[hidden] {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }

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

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

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

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

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 72px;
    padding-bottom: 150px;
  }

  .hero-poster {
    width: min(240px, 70vw);
    justify-self: start;
  }

  .intro-band,
  .section-heading,
  .split-section,
  .detail-main,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .intro-band,
  .section-heading,
  .cta-band {
    align-items: start;
    flex-direction: column;
  }

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

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

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

@media (max-width: 640px) {
  .nav-shell {
    height: 66px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-slide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1,
  .hero h2,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero-search {
    bottom: 64px;
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 46px;
  }

  .page-section {
    padding: 52px 0;
  }

  .intro-band,
  .ranking-panel,
  .ranking-block,
  .detail-article article {
    padding: 22px;
    border-radius: 24px;
  }

  .movie-grid,
  .feature-grid,
  .mini-grid,
  .ranking-grid,
  .category-grid,
  .category-overview-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .compact-card .poster-wrap {
    width: 92px;
    flex-basis: 92px;
  }

  .filter-selects {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-shell {
    padding-bottom: 54px;
  }

  .play-circle {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
