:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --amber-50: #fffbeb;
  --white: #ffffff;
  --shadow-lg: 0 20px 55px rgba(15, 23, 42, 0.16);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: var(--slate-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(12px);
}

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

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

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

.brand-name {
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.main-nav a {
  color: var(--slate-200);
  transition: color 0.25s ease;
}

.main-nav a:hover {
  color: var(--orange-500);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  color: var(--white);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 70vh;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 72px;
}

.hero-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  color: var(--orange-700);
  background: var(--orange-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-content .hero-kicker,
.detail-headline .hero-kicker {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(251, 146, 60, 0.4);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: var(--slate-200);
  font-size: 19px;
  line-height: 1.8;
}

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

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.28);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 36px;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  right: 32px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--orange-500);
}

.search-band {
  margin-top: -1px;
  padding: 26px 0;
  color: var(--white);
  background: var(--slate-900);
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
}

.search-band h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.search-band p {
  margin: 0;
  color: var(--slate-300);
}

.quick-search,
.filter-panel {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  color: var(--slate-900);
  background: var(--slate-50);
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
}

.filter-panel {
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  flex: 1 1 180px;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, var(--amber-50), var(--slate-50));
}

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

.section-heading-tight {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--orange-600);
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: #fed7aa;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

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

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

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-meta,
.card-line {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
}

.card-line {
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row,
.tag-cloud,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.tag-cloud a,
.detail-meta span {
  padding: 5px 9px;
  color: var(--orange-700);
  background: var(--orange-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-grid-large {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-tile {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.9), transparent 40%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile strong {
  font-size: 24px;
  margin-bottom: 8px;
}

.category-tile span {
  color: var(--slate-200);
  line-height: 1.7;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.64fr);
  gap: 32px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 46px 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-num {
  color: var(--orange-600);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-800);
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong,
.ranking-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-info em {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.movie-card-compact .card-line,
.movie-card-compact .tag-row {
  display: none;
}

.page-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  background: var(--slate-900);
  overflow: hidden;
}

.compact-hero {
  padding: 72px 0;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 35%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  filter: blur(2px);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, var(--slate-950), rgba(15, 23, 42, 0.62));
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 46px;
  color: var(--slate-300);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange-500);
}

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

.detail-cover {
  width: 240px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.detail-headline h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-headline p {
  max-width: 780px;
  margin: 0;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08), rgba(2, 6, 23, 0.58));
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
  font-size: 28px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--white);
  font-size: 14px;
}

.content-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.9;
}

.side-card {
  position: sticky;
  top: 88px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

.info-list dt {
  color: var(--slate-500);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: var(--slate-900);
}

.search-status {
  margin: 0 0 18px;
  color: var(--slate-500);
  font-weight: 700;
}

.site-footer {
  padding: 42px 0;
  color: var(--slate-300);
  background: var(--slate-900);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  max-width: 620px;
  margin: 10px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: flex-start;
}

.footer-links a:hover {
  color: var(--orange-500);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 16px 18px;
    background: var(--slate-900);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .main-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .search-band-inner,
  .two-column,
  .detail-layout,
  .detail-headline {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: 100%;
    max-width: 360px;
  }

  .side-card {
    position: static;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .hero-carousel {
    min-height: 560px;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-search,
  .filter-panel {
    flex-direction: column;
  }

  .quick-search input,
  .filter-panel input,
  .filter-panel select {
    min-height: 44px;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .section {
    padding: 48px 0;
  }

  .ranking-item {
    grid-template-columns: 38px 74px minmax(0, 1fr);
  }
}
