:root {
  --color-bg-dark: #020617;
  --color-bg-darker: #000000;
  --color-card: #0f172a;
  --color-card-soft: rgba(15, 23, 42, 0.82);
  --color-card-strong: rgba(15, 23, 42, 0.94);
  --color-border: rgba(30, 41, 59, 0.72);
  --color-border-soft: rgba(34, 211, 238, 0.2);
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-accent: #06b6d4;
  --color-accent-strong: #0891b2;
  --color-highlight: #fb923c;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-cyan: 0 18px 45px rgba(6, 182, 212, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.11), transparent 28rem),
    var(--color-bg-dark);
  color: var(--color-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.container-custom {
  width: min(1280px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.page-main {
  min-height: 100vh;
  padding-top: 76px;
}

.glass-effect {
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--color-accent);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.25);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.04);
}

.brand-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 12px;
}

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

.main-nav a,
.mobile-nav a {
  color: var(--color-text-secondary);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--color-accent);
}

.nav-link {
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  font-size: 26px;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid var(--color-border);
}

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

.mobile-nav a {
  border-radius: 12px;
  padding: 10px 14px;
}

.mobile-nav a:hover {
  background: rgba(30, 41, 59, 0.72);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: #ffffff;
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.72);
  border-color: var(--color-border-soft);
  color: var(--color-text-primary);
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}

.hero::before,
.hero::after {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  content: "";
  filter: blur(16px);
  opacity: 0.48;
  pointer-events: none;
}

.hero::before {
  top: 8%;
  right: 7%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 65%);
}

.hero::after {
  bottom: -16%;
  left: 4%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.17), transparent 65%);
}

.hero-track {
  position: relative;
  z-index: 2;
}

.hero-slide {
  display: none;
  min-height: calc(100vh - 76px);
  align-items: center;
  padding: 64px 0;
}

.hero-slide.is-active {
  display: flex;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--color-text-secondary);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-text-secondary);
  padding: 3px 10px;
  font-size: 13px;
}

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

.hero-search-form {
  display: flex;
  max-width: 660px;
  gap: 10px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.68);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.hero-search-form input,
.filter-control input,
.filter-control select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  outline: 0;
  background: rgba(15, 23, 42, 0.78);
  color: var(--color-text-primary);
  padding: 11px 14px;
}

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

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.94));
  box-shadow: var(--shadow-card);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(251, 146, 60, 0.08));
}

.hero-card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 58px 22px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), transparent);
}

.hero-card-body strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.hero-card-body span {
  color: var(--color-text-secondary);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: var(--color-accent);
}

.section {
  padding: 72px 0;
}

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

.section-title {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-desc {
  max-width: 760px;
  margin: 12px 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;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.86);
  border-radius: 20px;
  background: var(--color-card-soft);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: var(--shadow-cyan);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(15, 23, 42, 0.9));
}

.video-card-thumb,
.movie-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.92);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.28);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--color-text-primary);
  font-size: 18px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title a:hover {
  color: var(--color-accent);
}

.movie-desc {
  display: -webkit-box;
  min-height: 67px;
  margin: 12px 0 14px;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hot-score {
  color: #fbbf24;
  font-weight: 800;
}

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

.category-card,
.feature-card,
.rank-card,
.detail-panel,
.filter-panel {
  border: 1px solid rgba(30, 41, 59, 0.82);
  border-radius: 22px;
  background: var(--color-card-soft);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.category-card,
.feature-card {
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-card h2,
.category-card h3,
.feature-card h3 {
  margin: 0 0 10px;
}

.category-card p,
.feature-card p {
  color: var(--color-text-secondary);
  margin: 0 0 18px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--color-accent);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 72px 168px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 900;
}

.rank-poster img {
  width: 168px;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(15, 23, 42, 0.9));
}

.rank-body h2,
.rank-body h3 {
  margin: 0 0 8px;
}

.rank-body p {
  margin: 10px 0 14px;
  color: var(--color-text-secondary);
}

.page-hero {
  padding: 64px 0 34px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.58);
  background: radial-gradient(circle at 85% 0%, rgba(34, 211, 238, 0.12), transparent 32rem);
}

.page-hero h1 {
  max-width: 900px;
  margin: 12px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  color: var(--color-text-secondary);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
}

.filter-empty {
  display: none;
  padding: 36px;
  border: 1px solid rgba(30, 41, 59, 0.82);
  border-radius: 22px;
  color: var(--color-text-secondary);
  text-align: center;
}

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

.detail-hero {
  padding: 46px 0 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--color-text-muted);
  font-size: 14px;
}

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

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

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(2, 6, 23, 0.42));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.92);
  color: #ffffff;
  cursor: pointer;
  font-size: 32px;
  box-shadow: 0 18px 60px rgba(8, 145, 178, 0.34);
}

.detail-panel {
  padding: 24px;
}

.detail-panel h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.82);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(15, 23, 42, 0.9));
}

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

.detail-info h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-info p {
  margin: 0;
  color: var(--color-text-secondary);
}

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

.footer {
  border-top: 1px solid rgba(30, 41, 59, 0.72);
  background: rgba(0, 0, 0, 0.18);
  padding: 38px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
}

.footer p,
.footer a {
  color: var(--color-text-muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

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

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

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

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

  .hero-visual {
    max-width: 560px;
  }
}

@media (max-width: 820px) {
  .page-main {
    padding-top: 68px;
  }

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

  .brand-subtitle,
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-slide {
    min-height: auto;
    padding: 42px 0 58px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-search-form {
    flex-direction: column;
  }

  .section-header {
    display: block;
  }

  .section-actions {
    margin-top: 18px;
  }

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

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

  .rank-card {
    grid-template-columns: 52px 108px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
  }

  .rank-poster img {
    width: 108px;
  }

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

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

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

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

  .hero-card {
    border-radius: 22px;
  }

  .detail-panel {
    padding: 18px;
  }

  .player-start {
    width: 72px;
    height: 72px;
  }
}
