:root {
  color-scheme: dark;
  --deepblue-950: #03111f;
  --deepblue-900: #061a2f;
  --deepblue-850: #09213a;
  --deepblue-800: #0d2843;
  --deepblue-700: #123558;
  --ocean-500: #06b6d4;
  --ocean-400: #22d3ee;
  --ocean-300: #67e8f9;
  --teal-500: #14b8a6;
  --text-main: #f8fbff;
  --text-muted: #9ed7e5;
  --text-soft: #6fb8ca;
  --shadow-ocean: 0 18px 55px rgba(6, 182, 212, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--deepblue-950) 0%, var(--deepblue-900) 42%, var(--deepblue-950) 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(6, 26, 47, 0.96), rgba(13, 40, 67, 0.96), rgba(6, 91, 111, 0.94));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--ocean-400), var(--teal-500));
  box-shadow: var(--shadow-ocean);
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.logo-text strong {
  display: block;
  font-size: 23px;
  letter-spacing: 0.04em;
}

.logo-text small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #d8f7ff;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ocean-400), var(--teal-500));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 22px;
}

.main-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 540px;
  height: 70vh;
  overflow: hidden;
  background: var(--deepblue-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.32), transparent 28%), var(--deepblue-800);
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide::before {
  background: linear-gradient(90deg, rgba(3, 17, 31, 0.98), rgba(6, 26, 47, 0.86) 38%, rgba(6, 26, 47, 0.28) 78%, rgba(3, 17, 31, 0.1));
}

.hero-slide::after {
  background: linear-gradient(0deg, var(--deepblue-950), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-top: 88px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ocean-300);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 26px;
  color: #d7f6ff;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.14);
  color: var(--ocean-300);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.secondary-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 50px;
  padding: 0 28px;
  background: linear-gradient(90deg, var(--ocean-500), var(--teal-500));
  color: #ffffff;
  box-shadow: var(--shadow-ocean);
}

.secondary-btn {
  min-height: 50px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5fbff;
}

.small-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--ocean-300);
}

.primary-btn:hover,
.secondary-btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-ocean);
}

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

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

.hero-dot.is-active {
  width: 46px;
  background: var(--ocean-400);
}

.section {
  padding: 74px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(9, 33, 58, 0.92), rgba(13, 40, 67, 0.9));
}

.section-heading {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.14);
  color: var(--ocean-300);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
}

.section-link {
  color: var(--ocean-300);
  font-weight: 800;
}

.horizontal-scroll {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 16px;
}

.horizontal-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 18px;
}

.movie-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.09);
  border-radius: 22px;
  background: rgba(13, 40, 67, 0.82);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(34, 211, 238, 0.26), transparent 30%), var(--deepblue-800);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
}

.cover-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.cover-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.88);
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--ocean-300);
}

.movie-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--ocean-300);
  font-size: 12px;
  font-weight: 700;
}

.category-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  border: 1px solid rgba(103, 232, 249, 0.12);
  background: linear-gradient(145deg, rgba(13, 40, 67, 0.98), rgba(6, 26, 47, 0.92));
  padding: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.category-covers img {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: var(--deepblue-700);
}

.page-hero {
  padding: 138px 0 56px;
  background: radial-gradient(circle at 18% 12%, rgba(6, 182, 212, 0.24), transparent 28%), linear-gradient(180deg, var(--deepblue-900), var(--deepblue-950));
}

.page-hero-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.85;
}

.filter-panel {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 26px;
  display: flex;
  gap: 14px;
}

.filter-panel input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 16px;
  background: rgba(13, 40, 67, 0.92);
  color: #ffffff;
  outline: none;
  padding: 0 18px;
}

.filter-panel input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: var(--shadow-ocean);
}

.ranking-list {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 72px 90px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(103, 232, 249, 0.1);
  border-radius: 20px;
  background: rgba(13, 40, 67, 0.78);
  padding: 12px 16px;
}

.ranking-number {
  color: var(--ocean-300);
  font-size: 30px;
  font-weight: 900;
}

.ranking-item img {
  width: 82px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: var(--deepblue-700);
}

.ranking-item h2,
.ranking-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 20px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--ocean-300);
}

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

.video-panel {
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.13);
  border-radius: 28px;
  background: #020913;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.1));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.video-play-mark {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-500), var(--teal-500));
  box-shadow: var(--shadow-ocean);
  font-size: 32px;
}

.detail-info {
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 28px;
  background: rgba(13, 40, 67, 0.78);
  padding: 26px;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.detail-info .lead {
  margin: 18px 0 0;
  color: #d9f8ff;
  line-height: 1.85;
  font-size: 17px;
}

.article-block {
  width: min(1220px, calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
}

.content-card {
  border: 1px solid rgba(103, 232, 249, 0.1);
  border-radius: 26px;
  background: rgba(13, 40, 67, 0.72);
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 25px;
}

.content-card p {
  margin: 0;
  color: #d1f1fb;
  line-height: 1.95;
}

.content-card p + p {
  margin-top: 18px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(103, 232, 249, 0.08);
  border-radius: 18px;
  background: rgba(6, 26, 47, 0.74);
  padding: 10px;
}

.side-link img {
  width: 68px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: var(--deepblue-700);
}

.side-link strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.side-link span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.search-results-empty {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid rgba(103, 232, 249, 0.1);
  border-radius: 20px;
  background: rgba(13, 40, 67, 0.7);
  padding: 32px;
  color: var(--text-muted);
  text-align: center;
}

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

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

  .player-layout,
  .article-block {
    grid-template-columns: 1fr;
  }
}

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

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

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(103, 232, 249, 0.12);
    border-radius: 20px;
    background: rgba(6, 26, 47, 0.98);
    padding: 14px;
  }

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

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

  .nav-links a:hover {
    background: rgba(6, 182, 212, 0.12);
  }

  .nav-links a::after {
    display: none;
  }

  .logo-text small {
    display: none;
  }

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

  .hero-content {
    padding-top: 116px;
    padding-bottom: 86px;
  }

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

  .horizontal-track {
    grid-auto-columns: 220px;
  }

  .ranking-item {
    grid-template-columns: 44px 68px 1fr;
  }

  .ranking-item .small-btn {
    grid-column: 2 / 4;
  }
}

@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .filter-panel {
    flex-direction: column;
  }

  .detail-wrap {
    padding-top: 96px;
  }

  .detail-info,
  .content-card {
    padding: 20px;
  }
}
