: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;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --shadow-soft: 0 16px 40px rgba(28, 25, 23, 0.12);
  --shadow-strong: 0 26px 80px rgba(0, 0, 0, 0.3);
  --radius-xl: 24px;
  --radius-lg: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.65;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), #ffffff 42%, var(--stone-100));
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: rgba(41, 37, 36, 0.94);
  box-shadow: 0 12px 36px rgba(28, 25, 23, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.32);
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--amber-300);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg,
.detail-bg,
.page-hero.image-hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.04);
}

.hero-shade,
.detail-shade,
.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 30%, rgba(245, 158, 11, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.94) 0%, rgba(28, 25, 23, 0.8) 38%, rgba(28, 25, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.92), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 56px;
  padding: 76px 0 96px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-300);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber-700);
}

.hero h1,
.detail-info h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-summary,
.detail-one-line,
.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.hero-tags span,
.detail-meta span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.tag-row span {
  padding: 5px 10px;
  color: var(--amber-800);
  background: var(--amber-100);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 24px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.34);
}

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

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.42);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-400);
}

.section-block,
.category-strip,
.rank-section,
.detail-content,
.related-block {
  padding: 72px 0;
}

.soft-bg {
  background: var(--stone-100);
}

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

.section-title {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-more,
.text-link {
  color: var(--amber-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(217, 119, 6, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

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

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.045);
}

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(28, 25, 23, 0.78);
  backdrop-filter: blur(12px);
}

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

.movie-card h2,
.ranking-card h2 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card h2 a:hover,
.ranking-card h2 a:hover {
  color: var(--amber-700);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 750;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: var(--stone-900);
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.86), rgba(28, 25, 23, 0.08));
}

.category-tile span,
.category-tile strong {
  position: absolute;
  z-index: 2;
  left: 18px;
}

.category-tile span {
  bottom: 44px;
  font-size: 20px;
  font-weight: 850;
}

.category-tile strong {
  bottom: 18px;
  color: var(--amber-300);
}

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

.rank-section {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.24), transparent 30%),
    linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 42px;
}

.rank-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.rank-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
}

.rank-list {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.rank-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row span {
  color: var(--amber-300);
  font-weight: 900;
}

.rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: rgba(255, 255, 255, 0.56);
  font-style: normal;
}

.site-footer {
  padding: 54px 0;
  color: #ffffff;
  background: var(--stone-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

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

.site-footer h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 17px;
}

.sub-page {
  padding: 34px 0 74px;
}

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

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

.page-hero.compact {
  margin-bottom: 34px;
  padding: 44px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at right top, rgba(245, 158, 11, 0.22), transparent 34%),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.page-hero.compact h1 {
  color: var(--stone-900);
}

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

.page-hero.image-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: #ffffff;
  background: var(--stone-900);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 58px 0;
}

.category-content {
  padding: 56px 0 72px;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.page-link,
.page-ellipsis {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 13px;
  border: 1px solid var(--stone-200);
  color: var(--stone-700);
  background: #ffffff;
  font-weight: 800;
}

.page-link.is-active {
  border-color: var(--amber-600);
  color: #ffffff;
  background: var(--amber-600);
}

.page-link.is-disabled {
  color: var(--stone-400);
  background: var(--stone-100);
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.06);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.ranking-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--amber-600);
  font-weight: 900;
}

.search-box {
  display: flex;
  max-width: 720px;
  margin-top: 26px;
  padding: 6px;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(28, 25, 23, 0.08);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 17px;
  outline: none;
  color: var(--stone-800);
}

.search-box button {
  border: 0;
  border-radius: 13px;
  padding: 12px 22px;
  color: #ffffff;
  background: var(--amber-600);
  font-weight: 800;
  cursor: pointer;
}

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

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 42px 0 70px;
}

.detail-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.66);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info {
  padding-bottom: 16px;
}

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

.detail-tags {
  margin: 22px 0 30px;
}

.player-section {
  padding: 60px 0;
  background: var(--stone-900);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

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

.player-start span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  padding-left: 7px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 16px 44px rgba(217, 119, 6, 0.42);
  font-size: 42px;
}

.player-box.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.content-main,
.content-side {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(28, 25, 23, 0.06);
}

.content-main {
  padding: 34px;
}

.content-main h2,
.content-side h2 {
  margin: 0 0 16px;
  color: var(--stone-900);
  font-size: 25px;
}

.content-main p {
  margin: 0 0 28px;
  color: var(--stone-700);
  font-size: 17px;
}

.content-side {
  padding: 26px;
  align-self: start;
}

.content-side dl {
  margin: 0;
}

.content-side dt {
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 850;
}

.content-side dd {
  margin: 3px 0 16px;
  color: var(--stone-800);
  font-weight: 700;
}

.detail-nav {
  padding: 0 0 36px;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.prev-next a {
  flex: 1;
  padding: 16px 18px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  color: var(--stone-700);
  background: #ffffff;
  font-weight: 800;
}

.prev-next a:hover {
  border-color: var(--amber-500);
  color: var(--amber-700);
}

.empty-tip {
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
}

@media (max-width: 1180px) {
  .movie-grid,
  .list-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .hero-content {
    min-height: 640px;
  }

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

  .hero-poster {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

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

  .rank-layout,
  .footer-grid,
  .detail-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(320px, 100%);
  }
}

@media (max-width: 680px) {
  .container-custom {
    width: min(100% - 22px, 1280px);
  }

  .brand {
    font-size: 19px;
  }

  .hero,
  .hero-content {
    min-height: 590px;
  }

  .hero-content {
    padding: 56px 0 84px;
  }

  .hero-summary,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .section-block,
  .category-strip,
  .rank-section,
  .detail-content,
  .related-block {
    padding: 48px 0;
  }

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

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

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

  .movie-card h2,
  .ranking-card h2 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .page-hero.compact {
    padding: 26px;
  }

  .ranking-card {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

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

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

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

  .detail-hero-inner {
    padding: 30px 0 50px;
  }

  .content-main,
  .content-side {
    padding: 22px;
  }

  .prev-next {
    flex-direction: column;
  }
}
