:root {
  --fog-50: #f8f9fa;
  --fog-100: #f1f3f5;
  --fog-200: #e9ecef;
  --fog-300: #dee2e6;
  --fog-500: #adb5bd;
  --fog-600: #868e96;
  --fog-700: #495057;
  --fog-900: #212529;
  --steel-50: #f0f4f8;
  --steel-100: #d9e2ec;
  --steel-200: #bcccdc;
  --steel-300: #9fb3c8;
  --steel-400: #829ab1;
  --steel-500: #627d98;
  --steel-600: #486581;
  --steel-700: #334e68;
  --steel-800: #243b53;
  --moss-600: #3d663d;
  --accent-400: #fb923c;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(33, 37, 41, 0.08);
  --shadow-lg: 0 20px 50px rgba(33, 37, 41, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--fog-50);
  color: var(--fog-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

img {
  display: block;
}

.container-custom {
  width: min(100% - 32px, 1408px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--fog-200);
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fog-900);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--steel-600);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.brand:hover .logo-mark {
  transform: scale(1.05);
  stroke: var(--steel-700);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a,
.nav-menu > button {
  color: var(--fog-700);
  font-weight: 500;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-menu:hover > button {
  color: var(--steel-600);
}

.nav-menu {
  position: relative;
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 210px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--fog-200);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-menu:hover .nav-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-menu-panel a:hover {
  background: var(--fog-50);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 350px;
}

.nav-search input,
.mobile-search input,
.home-search-strip input,
.filter-panel input {
  width: 100%;
  border: 1px solid var(--fog-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--fog-900);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.home-search-strip input:focus,
.filter-panel input:focus {
  border-color: var(--steel-500);
  box-shadow: 0 0 0 3px rgba(98, 125, 152, 0.16);
}

.nav-search button,
.mobile-search button,
.home-search-strip button,
.filter-buttons button {
  border-radius: 12px;
  background: var(--steel-600);
  color: var(--white);
  padding: 12px 18px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.home-search-strip button:hover,
.filter-buttons button:hover,
.filter-buttons button.is-active {
  background: var(--steel-700);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  background: var(--fog-100);
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fog-700);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--fog-200);
  padding: 16px;
  background: var(--white);
}

.mobile-panel.is-open {
  display: block;
  animation: slideDown 0.25s ease;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-panel nav {
  display: grid;
  gap: 6px;
}

.mobile-panel nav a {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--fog-700);
}

.mobile-panel nav a:hover {
  color: var(--steel-600);
  background: var(--fog-50);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slider {
  position: relative;
  height: min(78vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--fog-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 146, 60, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(33, 37, 41, 0.96) 0%, rgba(33, 37, 41, 0.72) 48%, rgba(33, 37, 41, 0.22) 100%),
    linear-gradient(0deg, var(--fog-900) 0%, rgba(33, 37, 41, 0.2) 55%, transparent 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 92px;
}

.hero-copy {
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-400);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow.dark {
  color: var(--steel-600);
  margin-bottom: 8px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  color: var(--fog-200);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
  margin-bottom: 22px;
}

.hero-tags,
.hero-actions,
.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.hero-category-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--fog-100);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--steel-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--steel-700);
}

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 56px;
  background: var(--white);
}

.home-search-strip {
  margin-top: -34px;
  position: relative;
  z-index: 8;
}

.search-strip-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.search-strip-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.search-strip-inner p {
  color: var(--fog-600);
}

.search-strip-inner form {
  display: flex;
  gap: 10px;
}

.section-block {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.section-head > a {
  color: var(--steel-600);
  font-weight: 700;
  white-space: nowrap;
}

.section-head > a:hover {
  color: var(--steel-800);
}

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

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

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

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

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

.poster-wrap {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: var(--fog-200);
}

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

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

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(33, 37, 41, 0.72);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent-400);
  box-shadow: 0 8px 20px rgba(251, 146, 60, 0.26);
  font-weight: 800;
}

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

.card-topline,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--fog-600);
  font-size: 13px;
}

.card-topline {
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-kicker {
  display: inline-flex;
  width: fit-content;
  color: var(--steel-600);
  background: var(--steel-50);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-kicker.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--fog-900);
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--fog-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 178px;
}

.poster-horizontal {
  height: 100%;
}

.movie-card-large {
  min-height: 430px;
}

.poster-large {
  height: 430px;
}

.large-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
}

.large-card-overlay h3,
.large-card-overlay p,
.card-meta.light {
  color: var(--white);
}

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

.category-tile,
.category-card-detail {
  display: block;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--steel-50), var(--white));
  border: 1px solid var(--fog-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card-detail:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-tile span,
.category-card-detail h2 {
  display: block;
  margin-bottom: 10px;
  color: var(--fog-900);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.category-tile p,
.category-card-detail p {
  color: var(--fog-600);
  line-height: 1.7;
}

.category-card-detail ul {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.category-card-detail li a {
  color: var(--steel-600);
  font-weight: 600;
}

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

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

.page-hero {
  padding: 64px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(251, 146, 60, 0.18), transparent 28%),
    linear-gradient(135deg, var(--steel-600), var(--steel-800));
}

.page-hero-dark {
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.2), transparent 24%),
    linear-gradient(135deg, var(--fog-900), var(--steel-800));
}

.page-hero h1 {
  margin: 12px 0 16px;
  color: var(--white);
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 820px;
  color: var(--steel-100);
  font-size: 18px;
  line-height: 1.75;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.crumbs a:hover {
  color: var(--white);
}

.crumbs > * + *::before {
  content: "/";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.42);
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--fog-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-panel-wide {
  position: sticky;
  top: 92px;
  z-index: 30;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  background: var(--fog-100);
  color: var(--fog-700);
}

.filter-buttons button:hover,
.filter-buttons button.is-active {
  color: var(--white);
  background: var(--steel-600);
}

.detail-crumb-band {
  background: var(--fog-900);
  padding: 24px 0;
}

.crumbs-dark {
  color: var(--fog-300);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.92fr);
  gap: 36px;
  padding-top: 42px;
  padding-bottom: 72px;
}

.detail-main {
  min-width: 0;
}

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

.player-card video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--white);
  background: #000000;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: var(--fog-900);
  background: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.detail-panel {
  margin-top: 24px;
  padding: 30px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.055em;
}

.detail-panel h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.detail-panel p {
  color: var(--fog-700);
  line-height: 1.86;
  margin-bottom: 16px;
}

.lead-text {
  font-weight: 700;
  color: var(--fog-900) !important;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--fog-200);
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--fog-700);
  background: var(--fog-100);
  font-size: 14px;
}

.review-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 18px;
  background: var(--fog-50);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--fog-200);
}

.tag-cloud span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--fog-700);
  background: var(--fog-100);
  font-size: 14px;
}

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

.side-list {
  display: grid;
  gap: 16px;
}

.site-footer {
  margin-top: 40px;
  background: var(--fog-900);
  color: var(--fog-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-top: 52px;
  padding-bottom: 46px;
}

.brand-footer {
  color: var(--fog-100);
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 560px;
  color: var(--fog-400);
  line-height: 1.72;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--fog-100);
  font-size: 18px;
}

.site-footer ul {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fog-500);
  text-align: center;
}

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slider {
    min-height: 620px;
    height: 76vh;
  }

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

  .search-strip-inner {
    grid-template-columns: 1fr;
  }

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

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

  .detail-side {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container-custom {
    width: min(100% - 24px, 1408px);
  }

  .brand {
    font-size: 20px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero-slider {
    min-height: 640px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .search-strip-inner form,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .movie-card-horizontal {
    grid-template-columns: 118px 1fr;
    min-height: 150px;
  }

  .poster-wrap {
    height: 280px;
  }

  .poster-horizontal {
    height: 100%;
  }

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

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

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

  .detail-panel {
    padding: 22px;
  }

  .player-play {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
}
