* {
  box-sizing: border-box;
}

:root {
  --color-night-darker: #0a0e1a;
  --color-night-dark: #0f1420;
  --color-night-medium: #1a1f2e;
  --color-night-light: #252b3d;
  --color-accent-blue: #3b82f6;
  --color-accent-cyan: #06b6d4;
  --color-accent-teal: #14b8a6;
  --color-text-primary: #e5e7eb;
  --color-text-secondary: #9ca3af;
  --color-text-muted: #6b7280;
  --border-soft: rgba(255, 255, 255, 0.1);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(15, 20, 32, 0.9);
  --shadow-cyan: 0 25px 50px -12px rgba(6, 182, 212, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 30rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--color-night-darker), #070a12 70%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

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

.glass-effect {
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gradient-text {
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-cyan);
  border-color: rgba(34, 211, 238, 0.35);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.36);
}

.btn-secondary {
  color: #dff9ff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.btn-ghost {
  color: var(--color-text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover,
.btn-ghost.is-active {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(6, 182, 212, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.78);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #001018;
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
}

.desktop-nav,
.mobile-panel nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #67e8f9;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input,
.inline-search input,
.inline-search select {
  width: 230px;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.inline-search input:focus,
.inline-search select:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 26, 0.96), rgba(10, 14, 26, 0.58), rgba(10, 14, 26, 0.2)),
    linear-gradient(0deg, rgba(10, 14, 26, 1), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(760px, 100%);
  padding-top: 46px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 700px;
  color: #d1d5db;
  font-size: clamp(17px, 2.4vw, 21px);
}

.hero-meta,
.detail-meta,
.card-meta,
.category-pills,
.tag-list,
.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin: 24px 0;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.25);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
  width: 62px;
  background: #22d3ee;
}

.main-content {
  padding: 52px 0 68px;
}

.section-block {
  margin-bottom: 58px;
}

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

.section-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 900;
}

.section-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--color-text-secondary);
}

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

.movie-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(10, 14, 26, 0.88), transparent);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
  background: rgba(10, 14, 26, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.card-meta {
  gap: 7px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 750;
}

.card-text {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: #aeb8c8;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.card-tags span {
  color: #9ee8f4;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.055);
}

.category-tile h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 64px 92px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 124px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.rank-number {
  color: #67e8f9;
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-thumb {
  width: 92px;
  height: 100px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.rank-info h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.rank-info p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.page-hero {
  padding: 64px 0 34px;
}

.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: #b9c2d0;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #93c5fd;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.inline-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-search input {
  width: min(420px, 72vw);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.filter-button.is-active,
.filter-button:hover {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(6, 182, 212, 0.13);
}

.no-results {
  display: none;
  padding: 26px;
  border-radius: 20px;
  color: #cbd5e1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.no-results.is-visible {
  display: block;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.player-area {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-area video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  transition: opacity 0.25s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.25));
}

.player-trigger {
  position: relative;
  z-index: 4;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #001018;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.12), 0 24px 50px rgba(0, 0, 0, 0.35);
  font-size: 32px;
}

.player-title-bar {
  padding: 20px 22px 24px;
}

.player-title-bar h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 950;
}

.detail-card {
  margin-top: 22px;
  padding: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.detail-card p {
  margin: 0 0 16px;
  color: #cbd5e1;
}

.side-card {
  padding: 18px;
}

.side-poster {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-meta-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.side-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.side-meta-list span {
  color: #93c5fd;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0;
  color: #93a4b8;
  background: rgba(3, 7, 18, 0.54);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: #67e8f9;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-inner > .search-form {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

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

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

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

  .side-card {
    max-width: 420px;
  }
}

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

  .header-inner {
    min-height: 64px;
  }

  .logo {
    font-size: 19px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

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

  .hero-content {
    padding: 78px 0 94px;
  }

  .hero-copy {
    padding-top: 0;
  }

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

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }

  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .ranking-item a {
    grid-template-columns: 48px 82px 1fr;
  }

  .rank-thumb {
    width: 82px;
    height: 96px;
  }

  .inline-search,
  .inline-search input,
  .inline-search select {
    width: 100%;
  }

  .page-hero {
    padding-top: 42px;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .ranking-list {
    grid-template-columns: 1fr;
  }
}
