:root {
  --frost-50: #f0f9ff;
  --frost-100: #e0f2fe;
  --frost-500: #0ea5e9;
  --frost-600: #0284c7;
  --frost-700: #0369a1;
  --frost-800: #075985;
  --frost-900: #0c4a6e;
  --frost-950: #082f49;
  --ice-100: #cffafe;
  --ice-200: #a5f3fc;
  --ice-400: #22d3ee;
  --ice-500: #06b6d4;
  --ice-600: #0891b2;
  --ice-900: #164e63;
  --silver-50: #f8fafc;
  --silver-100: #f1f5f9;
  --silver-200: #e2e8f0;
  --silver-300: #cbd5e1;
  --silver-400: #94a3b8;
  --silver-500: #64748b;
  --silver-600: #475569;
  --silver-700: #334155;
  --silver-800: #1e293b;
  --silver-900: #0f172a;
  --yellow: #eab308;
  --white: #ffffff;
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
  --shadow-xl: 0 20px 35px -16px rgb(15 23 42 / 0.35);
  --radius-xl: 18px;
}

* {
  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;
  color: var(--silver-900);
  background: linear-gradient(180deg, var(--silver-50), #ffffff 44%, var(--frost-50));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--frost-900), var(--frost-800), var(--ice-900));
  box-shadow: 0 8px 24px rgb(2 132 199 / 0.20);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ice-400), var(--frost-600));
  box-shadow: 0 10px 24px rgb(34 211 238 / 0.35);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--white);
}

.brand-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--ice-200), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  font-weight: 650;
  color: rgb(255 255 255 / 0.86);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--ice-200);
}

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

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--silver-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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.84), rgb(0 0 0 / 0.52), rgb(0 0 0 / 0.08));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  max-width: 1180px;
}

.hero-content > * {
  max-width: 700px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-kicker span,
.hero-kicker em {
  font-style: normal;
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--white);
  background: rgb(2 132 199 / 0.72);
  backdrop-filter: blur(8px);
}

.hero-kicker em {
  background: rgb(255 255 255 / 0.14);
  color: var(--silver-200);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0 0 22px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--silver-200);
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--frost-700);
  background: var(--frost-100);
}

.hero-tags .tag,
.detail-tags .tag {
  color: var(--white);
  background: rgb(2 132 199 / 0.50);
}

.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
  box-shadow: 0 14px 30px rgb(2 132 199 / 0.35);
}

.btn.ghost {
  color: var(--white);
  background: rgb(255 255 255 / 0.14);
  backdrop-filter: blur(10px);
}

.btn.ghost.dark {
  color: var(--frost-700);
  background: var(--frost-100);
}

.btn.text {
  color: var(--ice-200);
  padding-inline: 8px;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgb(0 0 0 / 0.45);
  font-size: 2.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgb(0 0 0 / 0.70);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.50);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.search-strip {
  padding: 28px 0 0;
}

.quick-search {
  margin: -52px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(14px);
}

.quick-search label {
  font-weight: 850;
  font-size: 1.15rem;
  color: var(--silver-900);
}

.quick-search div {
  display: flex;
  gap: 12px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--silver-200);
  border-radius: 14px;
  padding: 13px 16px;
  color: var(--silver-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--frost-500);
  box-shadow: 0 0 0 4px rgb(14 165 233 / 0.12);
}

.quick-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
  cursor: pointer;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--silver-600);
}

.section-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--frost-700);
  background: var(--frost-100);
  font-weight: 800;
}

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

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

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

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--silver-200), var(--frost-100));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.75), rgb(0 0 0 / 0.12), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--frost-600);
}

.rank-badge {
  right: auto;
  left: 12px;
  background: rgb(234 179 8 / 0.94);
}

.poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-meta {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body strong {
  min-height: 2.8em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--frost-600);
}

.card-line {
  min-height: 3.2em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--silver-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--silver-500);
  font-size: 0.82rem;
}

.card-foot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-foot em {
  flex: none;
  font-style: normal;
  color: var(--frost-700);
}

.card-tags .tag {
  padding: 4px 9px;
  font-size: 0.75rem;
}

.soft-section {
  background: linear-gradient(135deg, var(--frost-50), var(--ice-100));
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--silver-900), var(--frost-950));
}

.dark-section .section-heading p {
  color: var(--silver-300);
}

.dark-section .section-more {
  color: var(--ice-200);
  background: rgb(255 255 255 / 0.10);
}

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

.category-chip,
.category-overview-card {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
  color: var(--silver-900);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.category-chip strong,
.category-overview-card strong {
  font-size: 1.18rem;
  color: var(--frost-700);
}

.category-chip span,
.category-overview-card p {
  margin: 0;
  color: var(--silver-600);
  line-height: 1.65;
}

.category-overview-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-overview-card div span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--silver-600);
  background: var(--silver-100);
  font-size: 0.82rem;
}

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

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

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

.dark-section .wide-row {
  background: rgb(255 255 255 / 0.08);
  backdrop-filter: blur(12px);
}

.wide-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-xl);
}

.row-rank {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
}

.wide-thumb {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: var(--silver-200);
}

.wide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-content {
  display: grid;
  gap: 8px;
}

.wide-content strong {
  font-size: 1.1rem;
}

.wide-content span {
  color: var(--silver-600);
  line-height: 1.55;
}

.dark-section .wide-content span,
.dark-section .wide-content em {
  color: var(--silver-300);
}

.wide-content em {
  color: var(--silver-500);
  font-style: normal;
  font-size: 0.9rem;
}

.page-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  background: radial-gradient(circle at 20% 10%, rgb(34 211 238 / 0.28), transparent 32%), linear-gradient(135deg, var(--silver-900), var(--frost-950));
}

.small-hero {
  padding: 92px 0;
}

.ranking-hero {
  padding: 110px 0;
  background: radial-gradient(circle at 80% 0%, rgb(234 179 8 / 0.20), transparent 28%), linear-gradient(135deg, var(--silver-900), var(--frost-950));
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--ice-200);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-line {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--silver-200);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.link-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-panel a {
  padding: 14px 18px;
  border-radius: 16px;
  color: var(--frost-700);
  font-weight: 800;
  background: var(--frost-100);
}

.detail-hero {
  padding: 52px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.72fr);
  gap: 32px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.player-card {
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 25px 55px rgb(0 0 0 / 0.40);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.play-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgb(0 0 0 / 0.68), rgb(0 0 0 / 0.16));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-panel.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
  box-shadow: 0 16px 36px rgb(34 211 238 / 0.36);
}

.play-panel > span:last-child {
  font-size: 1.1rem;
  font-weight: 900;
}

.detail-info {
  display: grid;
  gap: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--silver-300);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--ice-200);
}

.breadcrumb em {
  font-style: normal;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--silver-100);
  background: rgb(255 255 255 / 0.12);
}

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

.text-panel {
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.text-panel h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
}

.text-panel h2 + p {
  margin-top: 0;
}

.text-panel p {
  color: var(--silver-700);
  line-height: 1.9;
}

.main-text h2:not(:first-child) {
  margin-top: 30px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.side-panel dt {
  color: var(--silver-500);
}

.side-panel dd {
  margin: 0;
  color: var(--silver-800);
  font-weight: 700;
}

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.prev-next a {
  color: var(--frost-700);
  line-height: 1.5;
}

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

.site-footer {
  color: var(--silver-200);
  background: linear-gradient(135deg, var(--silver-900), #020617);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: var(--white);
}

.footer-inner p {
  margin: 0;
  color: var(--silver-400);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--ice-200);
  font-weight: 800;
}

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

@media (max-width: 1024px) {
  .movie-grid,
  .catalog-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .compact-list {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-layer {
    background: linear-gradient(0deg, rgb(0 0 0 / 0.88), rgb(0 0 0 / 0.45), rgb(0 0 0 / 0.20));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search div,
  .section-heading,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .catalog-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-chip-grid,
  .category-overview-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .wide-row {
    grid-template-columns: auto 92px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .wide-content span {
    display: none;
  }

  .row-rank {
    width: 34px;
    height: 34px;
  }

  .small-hero,
  .ranking-hero {
    padding: 68px 0;
  }
}

@media (max-width: 480px) {
  .section-wrap,
  .header-inner,
  .mobile-nav,
  .page-hero-content {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid,
  .catalog-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-line,
  .card-tags,
  .card-foot em {
    display: none;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
