:root {
  color-scheme: light;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-850: #24201d;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-50: #fff7ed;
  --cyan-50: #ecfeff;
  --blue-50: #eff6ff;
  --white: #ffffff;
  --shadow-md: 0 10px 25px rgba(28, 25, 23, 0.12);
  --shadow-xl: 0 24px 60px rgba(28, 25, 23, 0.22);
  --radius: 18px;
  --radius-lg: 28px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--stone-50), var(--stone-100));
  color: var(--stone-800);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--stone-800), var(--stone-700), var(--stone-800));
  color: var(--white);
  box-shadow: 0 12px 40px rgba(12, 10, 9, 0.18);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--amber-600);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-tagline {
  margin-top: 3px;
  font-size: 12px;
  color: var(--stone-300);
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 15px;
  color: var(--stone-200);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: var(--amber-600);
  color: var(--white);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-link {
  display: block;
  padding: 12px 16px;
  margin-top: 6px;
  color: var(--stone-200);
}

.mobile-link:hover,
.mobile-link.active {
  background: var(--amber-600);
  color: var(--white);
}

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

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
}

.hero-slide.is-active {
  display: block;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.62;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 32%, rgba(245, 158, 11, 0.3), transparent 34%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.58) 48%, rgba(28, 25, 23, 0.25));
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 56px;
  padding-bottom: 88px;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.25);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 14px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(42px, 8vw, 76px);
}

.hero-title-line {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
}

.hero-desc {
  max-width: 700px;
  margin: 0 0 24px;
  color: var(--stone-200);
  font-size: 18px;
}

.hero-meta,
.movie-meta-row,
.detail-meta,
.tag-list,
.nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.tag-list span,
.movie-meta-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--stone-100);
  padding: 6px 10px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 26px;
  background: var(--amber-600);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

.primary-btn:hover,
.hero-search button:hover,
.section-more:hover {
  transform: translateY(-2px);
  background: var(--amber-500);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone-800);
  box-shadow: var(--shadow-xl);
  transform: rotate(1.5deg);
}

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

.hero-poster span {
  display: block;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--amber-500);
  width: 28px;
  border-radius: 999px;
}

.search-band {
  background: var(--stone-900);
  color: var(--white);
  padding: 28px 0;
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 24px;
  align-items: center;
}

.search-band h2,
.search-band p {
  margin: 0;
}

.search-band p {
  color: var(--stone-300);
}

.hero-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-inner input,
.filter-inner select {
  width: 100%;
  border: 1px solid var(--stone-200);
  outline: none;
  border-radius: 14px;
  background: var(--white);
  color: var(--stone-800);
}

.hero-search input {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
}

.hero-search button {
  border: 0;
  min-width: 98px;
  padding: 0 20px;
  background: var(--amber-600);
  color: var(--white);
  cursor: pointer;
}

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

.section-white {
  background: var(--white);
}

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

.section-heading h2,
.page-hero h1,
.content-card h2 {
  margin: 0 0 8px;
  color: var(--stone-800);
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.content-card p,
.category-tile p {
  margin: 0;
  color: var(--stone-600);
}

.section-more {
  min-width: max-content;
  min-height: 42px;
  padding: 0 16px;
  color: var(--amber-700);
}

.section-more.light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover-wrap {
  position: relative;
  overflow: hidden;
  background: var(--stone-800);
  aspect-ratio: 16 / 10;
}

.movie-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.movie-card-link:hover .movie-cover {
  transform: scale(1.09);
  opacity: 0.88;
}

.movie-duration,
.movie-category,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 9px;
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.movie-duration {
  right: 10px;
  top: 10px;
  padding: 5px 8px;
  background: rgba(28, 25, 23, 0.76);
}

.movie-category {
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  background: var(--amber-600);
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 6, 0.95);
  font-size: 16px;
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0;
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-link:hover h3 {
  color: var(--amber-700);
}

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

.movie-meta-row {
  margin-top: auto;
  justify-content: space-between;
  gap: 6px;
}

.movie-meta-row span {
  background: var(--stone-100);
  color: var(--stone-600);
}

.ranking-band {
  background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.light-heading h2,
.light-heading p {
  color: var(--white);
}

.light-heading p {
  color: var(--stone-300);
}

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

.ranking-list .movie-card-link {
  flex-direction: row;
}

.ranking-list .movie-cover-wrap {
  width: 220px;
  max-width: 40%;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
}

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

.page-main {
  min-height: 60vh;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
  color: var(--white);
}

.compact-hero {
  padding: 72px 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 62px);
}

.page-hero p {
  max-width: 760px;
  color: var(--stone-200);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--stone-300);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.filter-panel {
  position: sticky;
  top: 64px;
  z-index: 30;
  padding: 18px 0;
  background: rgba(250, 250, 249, 0.92);
  border-bottom: 1px solid var(--stone-200);
  backdrop-filter: blur(18px);
}

.filter-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px;
  gap: 14px;
  align-items: center;
}

.filter-inner input,
.filter-inner select {
  min-height: 46px;
  padding: 0 14px;
}

.filter-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--white);
  color: var(--stone-700);
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--amber-600);
  color: var(--white);
  transform: translateY(-1px);
}

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

.category-tile {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.category-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--stone-900);
}

.category-images img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  opacity: 0.88;
}

.category-tile-body {
  padding: 20px;
}

.category-tile-body span {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.category-tile h2 {
  margin: 4px 0 10px;
  font-size: 22px;
}

.detail-hero {
  min-height: 620px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.98), rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.88));
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--stone-800);
  box-shadow: var(--shadow-xl);
}

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

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 64px);
}

.detail-one-line {
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 20px;
}

.detail-meta {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--stone-100);
}

.detail-meta strong {
  color: var(--amber-400);
}

.detail-copy .tag-list {
  margin-bottom: 28px;
}

.player-section {
  padding: 56px 0 18px;
  background: var(--stone-950);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.86), rgba(12, 10, 9, 0.32));
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-600);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.45);
}

.play-ring span {
  margin-left: 5px;
  font-size: 34px;
}

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

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

.content-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.content-card p {
  font-size: 17px;
}

.nearby-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-700);
  font-weight: 700;
}

.nearby-links a:hover {
  background: var(--amber-600);
  color: var(--white);
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--stone-800), var(--stone-900));
  color: var(--stone-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
  padding: 52px 0;
}

.footer-brand p {
  max-width: 540px;
  color: var(--stone-400);
}

.footer-brand-link {
  color: var(--white);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--stone-500);
  font-size: 14px;
}

.movie-card.is-hidden {
  display: none;
}

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

  .hero-content {
    grid-template-columns: 1fr 280px;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-carousel {
    min-height: 760px;
    height: auto;
  }

  .hero-slide {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 80px;
  }

  .hero-poster {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .search-band-inner,
  .detail-grid,
  .detail-content-grid,
  .footer-grid,
  .filter-inner {
    grid-template-columns: 1fr;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .category-grid,
  .ranking-list,
  .full-ranking {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ranking-list .movie-card-link {
    flex-direction: column;
  }

  .ranking-list .movie-cover-wrap {
    width: 100%;
    max-width: none;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-tagline {
    display: none;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-search {
    flex-direction: column;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .category-grid,
  .ranking-list,
  .full-ranking {
    grid-template-columns: 1fr;
  }

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

  .compact-hero {
    padding: 52px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
