:root {
  --warm-50: #faf8f4;
  --warm-100: #f5efe5;
  --warm-200: #eadfce;
  --warm-300: #d6c7b2;
  --warm-600: #7c6f64;
  --warm-700: #57504a;
  --warm-800: #38332f;
  --warm-900: #1f1c19;
  --sky-50: #eff8ff;
  --sky-100: #dff0ff;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --white: #ffffff;
  --shadow-soft: 0 10px 25px rgba(31, 28, 25, 0.08);
  --shadow-strong: 0 18px 38px rgba(31, 28, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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: 100;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(31, 28, 25, 0.08);
  backdrop-filter: blur(12px);
}

.nav-bar {
  min-height: 64px;
  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(--warm-900);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
  font-size: 14px;
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--warm-700);
  font-weight: 650;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sky-600);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--warm-100);
  color: var(--warm-900);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  background: var(--warm-900);
  overflow: hidden;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 25%, rgba(2, 132, 199, 0.35), transparent 36%),
    linear-gradient(90deg, rgba(31, 28, 25, 0.94) 0%, rgba(31, 28, 25, 0.72) 45%, rgba(31, 28, 25, 0.16) 100%);
}

.hero-inner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

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

.hero-kicker,
.page-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--amber-400);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  max-width: 60ch;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta span,
.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.hero-search {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 30px 0 24px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-search input {
  border: 0;
  min-width: 0;
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--warm-900);
  background: var(--white);
  outline: none;
}

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

.hero-search button,
.primary-button {
  border: 0;
  padding: 13px 20px;
  background: var(--sky-600);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.3);
}

.hero-search button:hover,
.primary-button:hover {
  background: var(--sky-700);
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-button {
  padding: 12px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

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

.hero-dot {
  width: 46px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--sky-600);
}

.content-section {
  padding: 72px 0;
}

.soft-bg {
  background: linear-gradient(135deg, var(--sky-50), var(--warm-50));
}

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

.section-head h2,
.category-band h2 {
  margin: 0;
  color: var(--warm-900);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
}

.section-action {
  color: var(--sky-600);
  padding: 10px 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.section-action:hover {
  color: var(--sky-700);
  transform: translateY(-1px);
}

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

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

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

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--warm-200), var(--sky-100));
}

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

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

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(31, 28, 25, 0.82), rgba(31, 28, 25, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  font-size: 13px;
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.card-body {
  display: block;
  padding: 14px;
}

.card-title {
  display: block;
  margin: 0 0 8px;
  color: var(--warm-900);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  color: var(--warm-600);
  font-size: 12px;
  gap: 8px;
}

.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.card-tags span,
.tag-cloud span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--sky-50);
  color: var(--sky-700);
  font-size: 12px;
  font-weight: 700;
}

.category-stack {
  display: grid;
  gap: 44px;
}

.category-row {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.category-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.category-row-head h3,
.category-row-head p {
  margin: 0;
}

.category-row-head h3 {
  font-size: 24px;
}

.category-row-head p {
  color: var(--warm-600);
}

.category-row-head a {
  color: var(--sky-600);
  font-weight: 800;
}

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

.movie-card-small .card-body {
  padding: 12px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--amber-500);
  color: var(--white);
  font-weight: 900;
}

.category-band {
  padding: 74px 0;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  color: var(--white);
}

.category-band h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 34px;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.category-icon {
  font-size: 34px;
}

.category-title {
  font-size: 20px;
  font-weight: 900;
}

.category-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.page-hero {
  padding: 72px 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(251, 191, 36, 0.22), transparent 32%),
    linear-gradient(135deg, var(--sky-600), var(--sky-800));
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.page-hero p:not(.page-kicker) {
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  font-size: 18px;
}

.category-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  background: var(--warm-200);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(31, 28, 25, 0.88), rgba(31, 28, 25, 0.16));
}

.category-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  color: var(--white);
  display: grid;
  gap: 8px;
}

.category-card-title {
  font-size: 24px;
  font-weight: 900;
}

.category-card-text {
  color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel-wide {
  grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--warm-200);
  border-radius: 14px;
  background: var(--warm-50);
  color: var(--warm-900);
  padding: 12px 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sky-600);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.filter-empty {
  display: none;
  margin: 40px 0 0;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  background: var(--white);
  color: var(--warm-600);
  box-shadow: var(--shadow-soft);
}

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

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 56px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.rank-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-100);
  color: var(--sky-700);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--warm-100);
}

.rank-info {
  display: grid;
  gap: 6px;
}

.rank-title {
  font-size: 20px;
  font-weight: 900;
}

.rank-meta,
.rank-text {
  color: var(--warm-600);
}

.rank-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-action {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--sky-600);
  color: var(--white);
  font-weight: 800;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 18px;
  font-size: 14px;
}

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25), rgba(0, 0, 0, 0.55));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  font-weight: 900;
}

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

.play-round {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-600);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.36);
  font-size: 28px;
  padding-left: 4px;
}

.detail-section {
  padding-top: 44px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.detail-main,
.related-panel {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.detail-main {
  padding: 32px;
}

.detail-main h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-main .detail-meta {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--warm-200);
}

.detail-main .detail-meta span {
  background: var(--warm-100);
  color: var(--warm-700);
}

.detail-block {
  margin-top: 30px;
}

.detail-block h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.lead-text {
  font-weight: 800;
  color: var(--warm-800);
  font-size: 18px;
}

.detail-block p {
  color: var(--warm-700);
}

.review-box {
  padding: 22px;
  border-radius: 18px;
  background: var(--warm-50);
}

.related-panel {
  position: sticky;
  top: 90px;
  padding: 22px;
}

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

.related-list .movie-card {
  display: grid;
  grid-template-columns: 98px 1fr;
}

.related-list .card-poster {
  aspect-ratio: 3 / 4;
}

.related-list .card-overlay,
.related-list .card-tags {
  display: none;
}

.site-footer {
  background: var(--warm-900);
  color: var(--warm-100);
  padding-top: 54px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 34px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: 18px;
}

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

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

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

.footer-brand {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-bottom {
  margin-top: 42px;
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.is-hidden-card {
  display: none !important;
}

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

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

  .filter-panel,
  .filter-panel-wide {
    grid-template-columns: 1fr 1fr;
  }

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: var(--white);
    border-top: 1px solid var(--warm-200);
    box-shadow: 0 14px 22px rgba(31, 28, 25, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 4px;
  }

  .hero-slider,
  .hero-inner {
    min-height: 76vh;
  }

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

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

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

  .content-section {
    padding: 48px 0;
  }

  .rank-row {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-row img {
    width: 72px;
    height: 96px;
  }

  .rank-action {
    display: none;
  }

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

  .filter-panel,
  .filter-panel-wide {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .hero-meta span {
    font-size: 12px;
  }

  .category-tile-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .category-row {
    padding: 16px;
  }

  .detail-main {
    padding: 22px;
  }

  .player-shell {
    border-radius: 18px 18px 0 0;
  }

  .play-round {
    width: 68px;
    height: 68px;
  }
}
