:root {
  --night-950: #0a1929;
  --night-900: #102a43;
  --night-850: #16324f;
  --night-800: #243b53;
  --night-700: #334e68;
  --night-600: #486581;
  --harbor-300: #5ee2dc;
  --harbor-400: #26b3af;
  --harbor-500: #1a9995;
  --harbor-600: #157f7b;
  --amber-400: #ffd166;
  --amber-500: #ffc107;
  --text-main: #ffffff;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 0%, rgba(38, 179, 175, 0.18), transparent 26rem),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-950) 38%, #061321 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 42, 67, 0.94);
  border-bottom: 1px solid rgba(72, 101, 129, 0.45);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--harbor-400), var(--harbor-600));
  box-shadow: 0 0 28px rgba(38, 179, 175, 0.38);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-soft);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(72, 101, 129, 0.72);
  border-radius: 999px;
  background: rgba(10, 25, 41, 0.62);
}

.header-search input {
  width: 190px;
  padding: 9px 14px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  color: #ffffff;
  background: var(--harbor-600);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(72, 101, 129, 0.7);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(36, 59, 83, 0.65);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(72, 101, 129, 0.42);
  background: rgba(10, 25, 41, 0.98);
}

.mobile-panel nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mobile-panel a {
  padding: 12px;
  border-radius: 10px;
  color: var(--text-soft);
  background: rgba(36, 59, 83, 0.45);
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--night-950);
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 25, 41, 0.96) 0%, rgba(10, 25, 41, 0.78) 40%, rgba(10, 25, 41, 0.2) 100%),
    linear-gradient(0deg, var(--night-950) 0%, transparent 42%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  right: 32px;
  bottom: 78px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--harbor-300);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1,
.section-heading h2,
.intro-panel h2 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  line-height: 1.16;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  max-width: 780px;
  text-shadow: 0 10px 42px rgba(0, 0, 0, 0.36);
}

.hero-desc {
  margin: 0;
  max-width: 620px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions,
.section-heading,
.filter-bar,
.hero-dots,
.category-chip-row,
.detail-tags,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--harbor-400), var(--harbor-600));
  box-shadow: 0 18px 36px rgba(21, 127, 123, 0.28);
}

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

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(16, 42, 67, 0.5);
  backdrop-filter: blur(8px);
}

.primary-button.full {
  width: 100%;
}

.hero-dots {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 42px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--harbor-400);
}

.intro-panel {
  margin-top: -38px;
  position: relative;
  z-index: 2;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 28px;
  border: 1px solid rgba(72, 101, 129, 0.52);
  border-radius: 24px;
  background: rgba(16, 42, 67, 0.9);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

.intro-panel h2 {
  margin-top: 8px;
  font-size: clamp(26px, 4vw, 40px);
}

.intro-panel p:not(.eyebrow) {
  color: var(--text-soft);
  line-height: 1.8;
}

.category-chip,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--harbor-300);
  border: 1px solid rgba(38, 179, 175, 0.28);
  background: rgba(6, 49, 45, 0.36);
  font-size: 13px;
}

.section-block,
.ranking-section,
.page-main,
.detail-main {
  padding-top: 72px;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 4px solid var(--harbor-500);
}

.section-heading.amber {
  border-left-color: var(--amber-500);
}

.section-heading h2 {
  flex-basis: 100%;
  font-size: 30px;
}

.section-heading a {
  color: var(--harbor-300);
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(72, 101, 129, 0.38);
  border-radius: var(--radius-lg);
  background: rgba(36, 59, 83, 0.52);
  box-shadow: 0 18px 48px 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(-5px);
  border-color: rgba(38, 179, 175, 0.55);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--night-800), var(--night-950));
}

.poster-link img,
.slim-card img,
.rank-item img,
.text-list-item img,
.detail-poster,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .poster-link img,
.slim-card:hover img,
.text-list-item:hover img {
  transform: scale(1.08);
}

.type-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(21, 127, 123, 0.86);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h2,
.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.movie-card h2 a:hover,
.movie-card h3 a:hover,
.slim-card a:hover,
.rank-item a:hover {
  color: var(--harbor-300);
}

.movie-meta,
.movie-desc,
.slim-card p,
.text-list-item em,
.page-hero p,
.detail-copy p,
.side-meta span,
.footer-inner p {
  color: var(--text-soft);
}

.movie-meta {
  margin: 0 0 10px;
  font-size: 13px;
}

.movie-desc {
  margin: 0 0 14px;
  min-height: 44px;
  line-height: 1.65;
  font-size: 14px;
}

.wide-panel {
  margin-top: 72px;
  padding: 52px 0;
  border-top: 1px solid rgba(72, 101, 129, 0.36);
  border-bottom: 1px solid rgba(72, 101, 129, 0.36);
  background: rgba(36, 59, 83, 0.33);
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 285px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.slim-card {
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(10, 25, 41, 0.48);
  border: 1px solid rgba(72, 101, 129, 0.38);
}

.slim-card a {
  display: grid;
  gap: 12px;
  color: #ffffff;
  font-weight: 700;
}

.slim-card img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.slim-card p {
  margin: 8px 0 0;
  font-size: 13px;
}

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

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

.rank-item a {
  display: grid;
  grid-template-columns: 52px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(72, 101, 129, 0.35);
  border-radius: 15px;
  background: rgba(36, 59, 83, 0.42);
}

.rank-number {
  color: var(--amber-400);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.rank-item img {
  height: 54px;
  border-radius: 10px;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.rank-meta {
  color: var(--text-muted);
  font-size: 13px;
}

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

.text-list-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(36, 59, 83, 0.36);
  border: 1px solid rgba(72, 101, 129, 0.32);
}

.text-list-item img {
  height: 78px;
  border-radius: 12px;
}

.text-list-item strong,
.text-list-item em {
  display: block;
}

.text-list-item strong {
  margin-bottom: 6px;
}

.text-list-item em {
  overflow: hidden;
  font-size: 14px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px;
  border: 1px solid rgba(72, 101, 129, 0.48);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(38, 179, 175, 0.22), transparent 23rem),
    linear-gradient(135deg, rgba(16, 42, 67, 0.92), rgba(10, 25, 41, 0.96));
  box-shadow: var(--shadow-strong);
}

.compact-hero {
  padding: 44px;
}

.page-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(34px, 5vw, 54px);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  line-height: 1.9;
}

.category-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(72, 101, 129, 0.38);
  background: rgba(36, 59, 83, 0.44);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 179, 175, 0.5);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 138px;
  overflow: hidden;
}

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

.category-card h2 {
  margin: 0 0 10px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.7;
}

.category-card span {
  color: var(--harbor-300);
  font-weight: 700;
}

.filter-bar {
  margin: 32px 0;
  padding: 16px;
  border: 1px solid rgba(72, 101, 129, 0.42);
  border-radius: 18px;
  background: rgba(36, 59, 83, 0.42);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(72, 101, 129, 0.64);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(10, 25, 41, 0.7);
  outline: 0;
}

.filter-bar input {
  flex: 1 1 320px;
}

.filter-bar select {
  flex: 0 0 180px;
}

.breadcrumb {
  margin: 26px 0 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

.detail-primary,
.detail-info,
.detail-side {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  border: 1px solid rgba(72, 101, 129, 0.46);
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--harbor-400), var(--harbor-600));
  box-shadow: 0 20px 45px rgba(21, 127, 123, 0.38);
  font-size: 28px;
}

.detail-info {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid rgba(72, 101, 129, 0.38);
  border-radius: 22px;
  background: rgba(36, 59, 83, 0.42);
}

.detail-info h1 {
  margin: 10px 0 16px;
  font-size: clamp(32px, 5vw, 52px);
}

.lead-text {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.detail-copy {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(72, 101, 129, 0.38);
}

.detail-copy h2 {
  margin: 0 0 12px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 24px;
}

.detail-copy p {
  margin: 0 0 22px;
  line-height: 2;
}

.detail-side {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(72, 101, 129, 0.38);
  background: rgba(36, 59, 83, 0.42);
}

.detail-poster {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: var(--night-900);
}

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

.side-meta p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(72, 101, 129, 0.34);
}

.side-meta strong {
  color: #ffffff;
}

.related-section {
  padding-top: 58px;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(72, 101, 129, 0.36);
  background: rgba(6, 19, 33, 0.88);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 36px;
}

.footer-inner h2 {
  margin: 0 0 16px;
  font-size: 17px;
}

.footer-inner p {
  margin: 12px 0 0;
  line-height: 1.8;
  font-size: 14px;
}

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

.footer-links a {
  color: var(--text-soft);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--harbor-300);
}

.footer-bottom {
  padding: 18px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(72, 101, 129, 0.26);
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

  .detail-layout,
  .intro-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.menu-open .mobile-panel {
    display: block;
  }

  .header-inner {
    height: 62px;
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    min-height: 560px;
    height: 76vh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 25, 41, 0.42) 0%, rgba(10, 25, 41, 0.96) 70%),
      linear-gradient(0deg, var(--night-950) 0%, transparent 44%);
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 82px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-dots {
    left: 20px;
    right: auto;
    bottom: 36px;
  }

  .intro-panel {
    width: min(100% - 24px, 1180px);
    padding: 22px;
  }

  .section-block,
  .ranking-section,
  .page-main,
  .detail-main {
    padding-top: 48px;
  }

  .movie-grid,
  .catalog-grid,
  .special-grid,
  .rank-list,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-item a {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }

  .page-hero,
  .compact-hero,
  .detail-info {
    padding: 24px;
  }

  .filter-bar select {
    flex: 1 1 100%;
  }

  .text-list-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .text-list-item img {
    height: 64px;
  }
}
