:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --cyan-hover: #0e7490;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-deep), #155e75);
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted-strong);
  font-size: 15px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.search-box {
  position: relative;
  width: min(340px, 100%);
}

.search-box input,
.hero-search input {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  padding: 12px 44px 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.hero-search input:focus {
  border-color: rgba(34, 211, 238, 0.74);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-submit {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: var(--cyan-deep);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  max-height: 410px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: block;
}

.search-result {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.search-result h4 {
  margin: 2px 0 5px;
  font-size: 15px;
}

.search-result p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.86);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.98);
}

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

.mobile-panel-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  display: grid;
  gap: 14px;
}

.mobile-panel a {
  padding: 11px 0;
  color: var(--muted-strong);
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 1%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 72px 0 64px;
  display: grid;
  align-items: end;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy-item {
  display: none;
}

.hero-copy-item.is-active {
  display: block;
}

.badge,
.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
}

.badge {
  margin-bottom: 18px;
  padding: 7px 13px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.75;
}

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

.meta-pill {
  padding: 8px 12px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--cyan-deep);
  box-shadow: 0 16px 40px rgba(8, 145, 178, 0.25);
}

.btn-primary:hover {
  background: var(--cyan-hover);
}

.btn-ghost {
  color: var(--text);
  background: rgba(15, 23, 42, 0.65);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(30, 41, 59, 0.85);
}

.hero-search {
  position: relative;
  margin-top: 24px;
  width: min(520px, 100%);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: max(16px, calc((100vw - 1280px) / 2));
  bottom: 44px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 44px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(203, 213, 225, 0.36);
}

.hero-dot.is-active {
  background: var(--cyan);
}

.section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-narrow {
  width: min(980px, calc(100% - 32px));
}

.section-band {
  width: 100%;
  margin: 0;
  background: rgba(15, 23, 42, 0.48);
}

.section-band .section {
  padding: 72px 0;
}

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

.section-head h2,
.page-title h1,
.detail-body h2,
.player-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 850;
}

.section-head p,
.page-title p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  min-width: max-content;
  color: var(--cyan);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.11);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--panel-strong);
}

.card-cover {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.card-cover.poster {
  aspect-ratio: 2 / 3;
}

.card-cover.wide {
  aspect-ratio: 16 / 9;
}

.card-cover.square {
  aspect-ratio: 1 / 1;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16));
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.play-chip {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-content {
  padding: 15px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  color: var(--cyan);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.tag {
  padding: 5px 9px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.7);
  font-size: 12px;
}

.category-card {
  min-height: 188px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 32%), rgba(15, 23, 42, 0.76);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

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

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

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

.category-card span {
  margin-top: 20px;
  color: var(--cyan);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 140px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  transition: background 0.22s ease, transform 0.22s ease;
}

.rank-item:hover {
  background: rgba(30, 41, 59, 0.88);
  transform: translateX(3px);
}

.rank-number {
  color: rgba(148, 163, 184, 0.55);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

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

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

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.page-title {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 28px;
}

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

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

.detail-hero {
  position: relative;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  filter: blur(1px);
  transform: scale(1.03);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.56), #020617 96%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 64px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: #111827;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-copy .lead {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.75;
}

.player-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  display: grid;
  place-items: center;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.26), rgba(2, 6, 23, 0.78));
}

.player-face {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
}

.player-face .play-big {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.96);
  box-shadow: 0 18px 44px rgba(8, 145, 178, 0.38);
  font-size: 32px;
}

.player-face strong {
  font-size: 20px;
}

.detail-body {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.article-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  padding: 24px;
}

.article-card + .article-card {
  margin-top: 20px;
}

.article-card p {
  margin: 14px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.9;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.side-link:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-link img {
  width: 68px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.side-link h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
}

.side-link p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.72);
}

.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

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

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

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

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

@media (max-width: 920px) {
  .nav-links,
  .header-actions .search-box {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

  .detail-poster {
    width: min(260px, 72vw);
  }

  .rank-item {
    grid-template-columns: 42px 110px 1fr;
  }

  .rank-meta {
    display: none;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .hero,
  .hero-content {
    min-height: 78vh;
  }

  .hero-content {
    padding: 52px 0 54px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 24px;
  }

  .section,
  .section-band .section {
    padding: 48px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-large,
  .grid-medium,
  .grid-small,
  .grid-categories,
  .grid-all {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-content {
    padding: 12px;
  }

  .rank-item {
    grid-template-columns: 34px 86px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-thumb {
    width: 86px;
    height: 56px;
  }

  .rank-number {
    font-size: 20px;
  }

  .rank-copy h3 {
    font-size: 15px;
  }

  .rank-copy p {
    display: none;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
