:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --bronze-100: #f2e8e5;
  --bronze-400: #d2bab0;
  --bronze-600: #a18072;
  --bronze-700: #977669;
  --bronze-800: #846358;
  --heritage-50: #f7f7f6;
  --heritage-100: #e4e4e1;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.14), 0 8px 10px -6px rgb(0 0 0 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--stone-50);
  color: var(--stone-900);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(28 25 23 / 0.96);
  color: var(--stone-100);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bronze-400), var(--bronze-800));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 30px rgb(161 128 114 / 0.35);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand-text small {
  display: block;
  color: var(--stone-400);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--stone-300);
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  color: var(--bronze-400);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.06);
  color: white;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding: 14px 24px 22px;
}

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

.hero-slider {
  position: relative;
  height: 68vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--stone-950), rgb(12 10 9 / 0.64), rgb(12 10 9 / 0.06));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  transform: translateX(-50%);
  padding: 0 0 78px;
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bronze-400);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 800px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--stone-200);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-meta span,
.tag-cloud span {
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  padding: 6px 12px;
  color: var(--stone-100);
  font-size: 13px;
}

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

.primary-btn,
.secondary-btn,
.section-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  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 28px;
  background: var(--bronze-600);
  color: white;
  box-shadow: 0 14px 26px rgb(161 128 114 / 0.32);
}

.primary-btn:hover {
  background: var(--bronze-700);
  transform: translateY(-1px);
}

.secondary-btn {
  min-height: 48px;
  padding: 0 22px;
  background: rgb(255 255 255 / 0.12);
  color: white;
  border: 1px solid rgb(255 255 255 / 0.18);
}

.secondary-btn:hover {
  background: rgb(255 255 255 / 0.2);
  transform: translateY(-1px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgb(12 10 9 / 0.52);
  color: white;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--bronze-400);
}

.page-flow {
  display: grid;
  gap: 70px;
  padding: 56px 0 82px;
}

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

.section-heading h2,
.filter-copy h2,
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.filter-copy p {
  margin: 10px 0 0;
  color: var(--stone-600);
}

.section-link,
.text-link {
  color: var(--bronze-700);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-md);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: var(--stone-50);
  padding: 0 14px;
  color: var(--stone-800);
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--bronze-600);
  box-shadow: 0 0 0 4px rgb(161 128 114 / 0.15);
}

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

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 190px;
  background: var(--stone-900);
  color: white;
  box-shadow: var(--shadow-md);
}

.category-tile img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.category-tile span,
.category-tile small,
.category-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile span {
  bottom: 62px;
  font-size: 20px;
  font-weight: 800;
}

.category-tile small {
  bottom: 20px;
  color: var(--stone-200);
  font-size: 13px;
  line-height: 1.45;
}

.category-card div {
  bottom: 22px;
}

.category-card h2 {
  margin: 0 0 10px;
}

.category-card p {
  max-width: 520px;
  margin: 0 0 14px;
  color: var(--stone-200);
}

.category-card span {
  color: var(--bronze-400);
  font-weight: 700;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-link img,
.row-cover img,
.mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img,
.row-card:hover .row-cover img,
.mini-poster:hover img {
  transform: scale(1.08);
}

.region-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: var(--bronze-600);
  padding: 5px 12px;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card h3,
.row-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a,
.row-card h3 a {
  transition: color 0.2s ease;
}

.movie-card:hover h3 a,
.row-card:hover h3 a {
  color: var(--bronze-700);
}

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

.movie-meta {
  align-items: center;
  justify-content: space-between;
  color: var(--stone-500);
  font-size: 12px;
}

.bronze-section {
  margin-inline: -18px;
  padding: 38px 18px;
  border-radius: 28px;
  background: var(--heritage-100);
}

.horizontal-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x proximity;
}

.horizontal-scroller .movie-card {
  width: 285px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

.region-column {
  padding: 22px;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-md);
}

.region-column h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.region-column h3 span {
  width: 4px;
  height: 24px;
  border-radius: 99px;
  background: var(--bronze-600);
}

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

.mini-poster {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--stone-900);
  color: white;
}

.mini-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgb(12 10 9 / 0.82), transparent 70%);
}

.mini-poster span,
.mini-poster small {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 2;
}

.mini-poster span {
  bottom: 34px;
  display: -webkit-box;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-poster small {
  bottom: 12px;
  color: var(--stone-300);
}

.dark-section {
  margin-inline: -18px;
  padding: 40px 18px;
  border-radius: 28px;
  background: var(--stone-900);
  color: white;
}

.dark-section .section-heading p,
.dark-section .movie-meta,
.dark-section small {
  color: var(--stone-400);
}

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

.time-grid h3 {
  margin: 0 0 18px;
  color: var(--bronze-400);
  font-size: 24px;
}

.poster-style .mini-poster {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

.row-list,
.ranking-list {
  display: grid;
  gap: 16px;
}

.row-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s ease;
}

.ranking-list .row-card {
  grid-template-columns: 58px 120px 1fr;
}

.row-card:hover {
  box-shadow: var(--shadow-xl);
}

.row-cover {
  display: block;
  height: 92px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--stone-200);
}

.rank-num {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--bronze-100);
  color: var(--bronze-800);
  font-weight: 900;
}

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

.page-hero {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--bronze-600), var(--bronze-800));
  color: white;
}

.list-hero {
  background: linear-gradient(135deg, var(--stone-900), var(--bronze-800));
}

.page-hero p {
  max-width: 760px;
  color: var(--stone-100);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--stone-200);
  font-size: 14px;
}

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

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 18px;
  background: white;
  color: var(--stone-600);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.detail-top {
  background: var(--stone-900);
  padding: 22px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 30px;
  padding: 34px 0 72px;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--stone-950);
  box-shadow: var(--shadow-2xl);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--stone-950);
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--stone-950);
  padding: 0;
  color: white;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

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

.play-circle {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: var(--bronze-600);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.4);
  font-size: 34px;
  line-height: 1;
  padding-left: 6px;
}

.player-bar {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.player-shell:hover .player-bar,
.player-shell.is-playing .player-bar {
  opacity: 1;
}

.player-bar button {
  border: 0;
  border-radius: 999px;
  background: rgb(12 10 9 / 0.72);
  padding: 10px 16px;
  color: white;
  font-weight: 700;
}

.player-bar button:hover {
  color: var(--bronze-400);
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: rgb(12 10 9 / 0.86);
  padding: 14px 18px;
  color: white;
}

.player-message.is-visible {
  display: block;
}

.detail-card,
.info-panel {
  border-radius: 20px;
  background: white;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-meta span {
  background: var(--bronze-100);
  color: var(--bronze-800);
}

.lead-text {
  margin: 22px 0;
  color: var(--stone-700);
  font-size: 18px;
  line-height: 1.8;
}

.content-block {
  border-top: 1px solid var(--stone-200);
  padding-top: 24px;
  margin-top: 24px;
}

.content-block h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: var(--stone-700);
  line-height: 2;
}

.review-block {
  border-radius: 18px;
  border: 0;
  background: var(--heritage-50);
  padding: 24px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 100px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.info-panel dt {
  color: var(--stone-500);
}

.info-panel dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--stone-200);
}

.tag-cloud span {
  background: var(--bronze-100);
  color: var(--bronze-800);
}

.related-section {
  padding: 0 0 90px;
}

.site-footer {
  background: var(--stone-900);
  color: var(--stone-300);
}

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

.footer-brand {
  color: var(--stone-100);
  font-size: 20px;
}

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

.site-footer p,
.site-footer a {
  color: var(--stone-400);
  font-size: 14px;
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding: 22px 0;
  color: var(--stone-500);
  text-align: center;
}

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

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

  .menu-toggle {
    display: block;
  }

  .filter-panel,
  .detail-layout,
  .time-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-side {
    position: static;
  }
}

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

  .header-inner {
    min-height: 66px;
  }

  .brand-text small {
    display: none;
  }

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

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

  .hero-slider {
    min-height: 540px;
    height: 74vh;
  }

  .hero-content {
    padding-bottom: 88px;
  }

  .hero-control {
    display: none;
  }

  .category-grid,
  .three-col,
  .four-col,
  .region-columns,
  .category-grid.wide,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .row-card,
  .ranking-list .row-card {
    grid-template-columns: 86px 1fr;
  }

  .ranking-list .rank-num {
    grid-column: 1 / -1;
  }

  .row-cover {
    height: 86px;
  }

  .player-bar {
    opacity: 1;
  }

  .player-bar button {
    padding: 8px 12px;
    font-size: 13px;
  }

  .detail-card,
  .info-panel,
  .filter-panel {
    padding: 20px;
  }
}
