:root {
  --color-primary: 15 23 42;
  --color-primary-light: 30 41 59;
  --color-secondary: 8 51 68;
  --color-accent: 6 182 212;
  --color-highlight: 251 146 60;
  --color-bg-dark: 3 7 18;
  --color-bg-darker: 0 0 0;
  --color-text-primary: 248 250 252;
  --color-text-secondary: 203 213 225;
  --color-text-muted: 148 163 184;
  --color-border: 30 41 59;
  --color-card-bg: 15 23 42;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: rgb(2 6 23);
  color: rgb(var(--color-text-primary));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.glass-effect {
  border-bottom: 1px solid rgb(30 41 59 / 0.5);
  background: rgb(15 23 42 / 0.82);
  backdrop-filter: blur(12px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  box-shadow: 0 0 32px rgb(6 182 212 / 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-weight: 800;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-subtitle {
  color: rgb(var(--color-text-muted));
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgb(var(--color-text-secondary));
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #22d3ee;
  transition: width 0.25s ease;
}

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

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(51 65 85);
  border-radius: 12px;
  background: rgb(15 23 42 / 0.8);
  color: #ffffff;
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #cbd5e1;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgb(30 41 59 / 0.55);
  padding: 12px 16px 18px;
  background: rgb(2 6 23 / 0.96);
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: rgb(var(--color-text-secondary));
  font-weight: 700;
}

.mobile-nav.open {
  display: block;
}

.site-main {
  padding-top: 76px;
}

.hero-carousel {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 38%, rgb(6 182 212 / 0.18), transparent 30%), linear-gradient(90deg, rgb(2 6 23 / 0.96), rgb(2 6 23 / 0.70) 46%, rgb(2 6 23 / 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgb(34 211 238 / 0.22);
  border-radius: 999px;
  background: rgb(34 211 238 / 0.10);
  color: #67e8f9;
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-content p {
  margin: 0;
  max-width: 680px;
  color: rgb(203 213 225);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgb(15 23 42 / 0.78);
  border: 1px solid rgb(51 65 85 / 0.8);
  color: rgb(226 232 240);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: #0891b2;
  color: #ffffff;
  box-shadow: 0 15px 28px rgb(6 182 212 / 0.20);
}

.btn-primary:hover {
  background: #0e7490;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgb(51 65 85);
  background: rgb(15 23 42 / 0.70);
  color: rgb(226 232 240);
}

.btn-secondary:hover {
  border-color: rgb(6 182 212 / 0.60);
  color: #67e8f9;
  transform: translateY(-2px);
}

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

.hero-dots button {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgb(148 163 184 / 0.38);
  padding: 0;
}

.hero-dots button.active {
  background: #22d3ee;
}

.hero-side-card {
  position: absolute;
  right: max(32px, calc((100vw - 1280px) / 2));
  bottom: 80px;
  z-index: 2;
  width: min(360px, 32vw);
  padding: 18px;
  border: 1px solid rgb(30 41 59 / 0.75);
  border-radius: 22px;
  background: rgb(15 23 42 / 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.30);
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.section {
  padding: 64px 0;
  background: #020617;
}

.section.alt {
  background: linear-gradient(180deg, #020617, #0f172a);
}

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

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

.section-heading p {
  margin: 12px 0 0;
  color: rgb(var(--color-text-muted));
  max-width: 760px;
}

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

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

.card {
  overflow: hidden;
  border: 1px solid rgb(var(--color-border));
  border-radius: 18px;
  background: rgb(var(--color-card-bg));
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgb(8 145 178 / 0.75);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgb(22 78 99 / 0.20);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card:hover .video-card-thumb {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(2 6 23 / 0.82), rgb(2 6 23 / 0.06));
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
  opacity: 0.88;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0891b2;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgb(2 6 23 / 0.82);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

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

.card-body strong {
  color: rgb(var(--color-text-primary));
  font-size: 18px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.25s ease;
}

.card:hover .card-body strong {
  color: #67e8f9;
}

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

.card-desc {
  color: rgb(var(--color-text-muted));
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgb(100 116 139);
  font-size: 13px;
}

.card-wide {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.card-wide .poster-frame {
  aspect-ratio: auto;
  min-height: 188px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 150px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgb(30 41 59);
  border-radius: 18px;
  background: rgb(15 23 42 / 0.72);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
  border-color: rgb(6 182 212 / 0.58);
  transform: translateX(4px);
}

.rank-num {
  font-size: 24px;
  font-weight: 900;
  color: #22d3ee;
}

.rank-item img {
  width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.rank-title span {
  color: rgb(var(--color-text-muted));
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
  margin: 24px 0 30px;
  padding: 16px;
  border: 1px solid rgb(30 41 59);
  border-radius: 18px;
  background: rgb(15 23 42 / 0.72);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgb(51 65 85);
  border-radius: 12px;
  background: rgb(2 6 23);
  color: rgb(var(--color-text-primary));
  padding: 0 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgb(8 145 178 / 0.18);
}

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

.category-card {
  padding: 24px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgb(30 41 59);
  border-radius: 22px;
  background: radial-gradient(circle at 80% 20%, rgb(6 182 212 / 0.20), transparent 30%), linear-gradient(135deg, rgb(15 23 42), rgb(2 6 23));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgb(6 182 212 / 0.58);
}

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

.category-card p {
  color: rgb(var(--color-text-muted));
  margin: 0;
}

.detail-hero {
  position: relative;
  padding: 70px 0 40px;
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(2 6 23 / 0.98), rgb(2 6 23 / 0.76), rgb(2 6 23 / 0.38));
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-cover {
  border: 1px solid rgb(30 41 59);
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 5.8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-copy p {
  color: rgb(203 213 225);
  font-size: 18px;
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgb(var(--color-text-muted));
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(30 41 59);
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.28);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgb(2 6 23 / 0.72), rgb(2 6 23 / 0.30));
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  z-index: 3;
}

.play-layer span {
  display: inline-grid;
  place-items: center;
  min-width: 132px;
  height: 132px;
  border-radius: 999px;
  background: rgb(8 145 178 / 0.92);
  box-shadow: 0 0 50px rgb(6 182 212 / 0.42);
}

.play-layer.is-hidden {
  display: none;
}

.content-block {
  border: 1px solid rgb(30 41 59);
  border-radius: 22px;
  padding: 26px;
  background: rgb(15 23 42 / 0.72);
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-block p {
  margin: 0;
  color: rgb(203 213 225);
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgb(30 41 59 / 0.75);
  padding-bottom: 12px;
  color: rgb(203 213 225);
}

.info-list span:first-child {
  color: rgb(var(--color-text-muted));
}

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

.empty-state {
  display: none;
  border: 1px dashed rgb(51 65 85);
  border-radius: 18px;
  padding: 28px;
  color: rgb(var(--color-text-muted));
  text-align: center;
}

.empty-state.show {
  display: block;
}

.site-footer {
  border-top: 1px solid rgb(30 41 59);
  background: #020617;
  padding: 44px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 620px;
  color: rgb(var(--color-text-muted));
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  color: rgb(var(--color-text-secondary));
  font-weight: 700;
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgb(30 41 59 / 0.6);
  color: rgb(100 116 139);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .card-grid,
  .card-grid.compact,
  .feature-grid,
  .category-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-side-card {
    display: none;
  }

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

  .detail-cover {
    max-width: 520px;
  }
}

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

  .menu-button {
    display: block;
  }

  .brand-subtitle {
    display: none;
  }

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

  .hero-slide::before {
    background: linear-gradient(0deg, rgb(2 6 23 / 0.98), rgb(2 6 23 / 0.70));
  }

  .section {
    padding: 44px 0;
  }

  .card-grid,
  .card-grid.compact,
  .feature-grid,
  .category-panel {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 44px 96px 1fr;
  }

  .rank-item .btn-secondary {
    grid-column: 1 / -1;
  }

  .rank-item img {
    width: 96px;
  }

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