:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --accent-50: #fef3c7;
  --accent-400: #f59e0b;
  --accent-600: #d97706;
  --white: #ffffff;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 12px 24px rgba(15, 23, 42, 0.12);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-900);
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-400));
  color: var(--white);
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.24);
}

.brand-name {
  font-size: 22px;
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: var(--secondary-700);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 13px;
  white-space: nowrap;
}

.nav-link:hover,
.mobile-nav-link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 290px;
}

.header-search input,
.page-filter input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--secondary-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--secondary-900);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  height: 42px;
  padding: 0 14px;
}

.header-search input:focus,
.page-filter input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.header-search button,
.search-panel button {
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--primary-600);
  color: var(--white);
  font-weight: 700;
}

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

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--secondary-800);
  border-radius: 20px;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, 1280px);
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

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

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

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

.hero-copy {
  max-width: 780px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--accent-400);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.65;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-tags span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 14px;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  background: var(--primary-600);
  color: var(--white);
  box-shadow: 0 14px 24px rgba(2, 132, 199, 0.28);
}

.primary-button:hover,
.movie-card:hover,
.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
}

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

.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

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

.section-block {
  padding: 56px 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--secondary-900);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--secondary-600);
}

.section-more,
.text-link {
  color: var(--primary-700);
}

.category-grid,
.category-page-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-tile,
.category-card,
.movie-card,
.text-panel,
.detail-sidebar,
.search-status {
  background: var(--white);
  border: 1px solid var(--secondary-200);
  box-shadow: var(--shadow-soft);
}

.category-tile {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-label {
  color: var(--secondary-900);
  font-size: 20px;
  font-weight: 900;
}

.category-desc {
  margin-top: 12px;
  color: var(--secondary-600);
  font-size: 14px;
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-card);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-800), var(--primary-700));
}

.wide-cover {
  aspect-ratio: 16 / 9;
}

.movie-cover img,
.category-card-cover img,
.detail-poster img,
.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-cover img {
  transition: transform 0.5s ease;
}

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

.movie-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.movie-type {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-400), var(--primary-600));
}

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

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: var(--secondary-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--primary-700);
}

.movie-line {
  display: -webkit-box;
  min-height: 45px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--secondary-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--secondary-500);
  font-size: 13px;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--secondary-100);
  color: var(--secondary-700);
  font-size: 12px;
  font-weight: 700;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.page-hero {
  position: relative;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.35), transparent 40%), linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.compact-hero {
  padding: 72px 0 58px;
}

.dark-compact {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 42%), linear-gradient(135deg, #020617, var(--secondary-900));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
}

.page-filter,
.search-panel {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
}

.page-filter input,
.search-panel input,
.search-panel select {
  min-height: 48px;
  padding: 0 15px;
}

.search-panel select {
  max-width: 180px;
}

.search-status {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  color: var(--secondary-700);
  font-weight: 700;
}

.category-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-card);
}

.category-card-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 180px;
  background: var(--secondary-900);
}

.category-card-cover img {
  min-width: 0;
}

.category-card-body {
  padding: 24px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card-body p {
  margin: 0 0 18px;
  color: var(--secondary-600);
  line-height: 1.7;
}

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

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

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72));
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: #cbd5e1;
  font-size: 14px;
}

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

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

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 68px);
}

.detail-one-line {
  max-width: 840px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 48px 0 72px;
}

.player-section {
  margin-bottom: 26px;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.24);
}

.video-player video {
  position: absolute;
  inset: 0;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.18));
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-600);
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.35);
  font-size: 28px;
}

.text-panel,
.detail-sidebar {
  border-radius: 22px;
  padding: 26px;
}

.text-panel + .text-panel {
  margin-top: 24px;
}

.text-panel h2,
.detail-sidebar h2 {
  margin: 0 0 16px;
  color: var(--secondary-900);
  font-size: 24px;
  font-weight: 900;
}

.text-panel p {
  margin: 0;
  color: var(--secondary-700);
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.accent-panel {
  border-left: 5px solid var(--primary-600);
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

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

.sidebar-list .movie-card {
  border-radius: 16px;
}

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

.sidebar-list .movie-title {
  min-height: auto;
  font-size: 15px;
}

.sidebar-list .movie-line {
  min-height: auto;
  margin: 8px 0;
  font-size: 13px;
}

.content-page {
  max-width: 920px;
  padding: 48px 0 72px;
}

.site-footer {
  margin-top: 56px;
  background: var(--secondary-900);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 38px;
  padding: 48px 0;
}

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

.footer-about p {
  max-width: 560px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-weight: 900;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--secondary-800);
  padding: 22px 16px;
  color: #94a3b8;
  text-align: center;
}

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

  .header-search {
    flex: 1 1 auto;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

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

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 66px;
  }

  .header-search {
    display: none;
  }

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

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

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

  .category-grid,
  .category-page-grid,
  .movie-grid,
  .wide-grid,
  .footer-grid,
  .detail-layout,
  .category-card,
  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .category-card-cover {
    min-height: 150px;
  }

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

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

  .search-panel select {
    max-width: none;
  }
}

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

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

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.02em;
  }

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

  .hero-controls {
    width: calc(100% - 24px);
    justify-content: space-between;
  }

  .movie-grid {
    gap: 16px;
  }

  .text-panel,
  .detail-sidebar {
    padding: 20px;
  }
}
