:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #10b981;
  --accent-2: #34d399;
  --purple: #a855f7;
  --blue: #3b82f6;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  font-size: 22px;
  white-space: nowrap;
}

.brand:hover,
.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.text-link:hover,
.card-meta a:hover,
.movie-card h2 a:hover,
.movie-card h3 a:hover,
.rank-row h2 a:hover,
.wide-card h3 a:hover {
  color: var(--accent-2);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: white;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-nav input,
.big-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 230px;
}

.nav-search input:focus,
.mobile-nav input:focus,
.big-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  background: rgba(15, 23, 42, 0.96);
}

.nav-search button,
.mobile-nav button,
.big-search button,
.filter-panel button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-search button,
.mobile-nav button,
.big-search button,
.filter-panel button,
.primary-btn {
  background: var(--accent);
  color: white;
  padding: 11px 18px;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.24);
}

.nav-search button:hover,
.mobile-nav button:hover,
.big-search button:hover,
.filter-panel button:hover,
.primary-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

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

.mobile-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
}

.mobile-nav a,
.mobile-nav form {
  display: flex;
  margin: 12px 0;
}

.mobile-nav form {
  gap: 8px;
}

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

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) blur(6px);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.86) 35%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero-text {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta,
.wide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--subtle);
}

.hero-meta {
  margin-top: 24px;
}

.hero-meta span:first-child,
.detail-meta span:first-child,
.card-meta span:first-child,
.rank-meta span:first-child,
.wide-meta span:first-child {
  color: var(--yellow);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  background: rgba(15, 23, 42, 0.35);
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 36px;
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.section-block,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.page-main {
  padding-top: 32px;
}

.intro-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}

.section-heading h2,
.section-title-row h2,
.rank-panel h2,
.player-section h2,
.article-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-heading p:last-child,
.page-hero p,
.article-section p,
.detail-one-line {
  color: var(--muted);
  line-height: 1.8;
}

.quick-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-actions a {
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: var(--accent-2);
  font-weight: 800;
}

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

.section-title-row > a,
.text-link {
  color: var(--accent-2);
  font-weight: 800;
}

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

.category-tile {
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.category-tile:after {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 70%);
}

.category-tile span,
.category-tile strong,
.category-tile em {
  display: block;
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  margin: 12px 0;
  color: var(--accent-2);
}

.category-tile em {
  color: var(--subtle);
  font-style: normal;
  line-height: 1.6;
}

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

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

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

.movie-card {
  min-width: 0;
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.32);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame img,
.wide-card:hover img,
.category-cover-stack:hover img,
.rank-cover:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.65);
  color: white;
}

.card-badge {
  left: 10px;
  background: var(--accent);
}

.card-duration {
  right: 10px;
}

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card h2,
.movie-card h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

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

.card-meta {
  font-size: 13px;
}

.band-section {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.78));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.wide-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.wide-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
}

.wide-cover img,
.rank-cover img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wide-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.9);
}

.wide-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.wide-card p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--subtle);
  line-height: 1.65;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
}

.rank-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow);
}

.rank-panel ol,
.rank-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.rank-panel li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.rank-panel li span,
.rank-number {
  color: var(--accent-2);
  font-weight: 900;
}

.rank-panel li em {
  color: var(--yellow);
  font-style: normal;
}

.page-hero {
  padding: 72px 32px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(2, 6, 23, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--subtle);
  margin-bottom: 22px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

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

.category-overview-card p {
  color: var(--subtle);
  line-height: 1.7;
}

.filter-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel label span {
  display: block;
  margin: 0 0 8px;
  color: var(--subtle);
  font-size: 13px;
}

.filter-panel button {
  align-self: end;
  min-height: 42px;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--subtle);
  border: 1px dashed var(--line);
  border-radius: 20px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.rank-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-row p {
  margin: 0 0 12px;
  color: var(--subtle);
  line-height: 1.6;
}

.big-search {
  display: flex;
  max-width: 720px;
  gap: 12px;
  margin-top: 28px;
}

.big-search input {
  min-height: 54px;
  font-size: 16px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 14% 20%, rgba(16, 185, 129, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(2, 6, 23, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.detail-one-line {
  margin: 18px 0 20px;
  font-size: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--accent-2);
  border: 1px solid rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 700;
  font-size: 13px;
}

.player-section {
  margin-top: 36px;
}

.video-shell {
  position: relative;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  background: black;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-size: 36px;
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.55);
}

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

.article-section {
  color: var(--muted);
}

.article-section h2 {
  margin-top: 26px;
  font-size: 28px;
  color: var(--text);
}

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

.info-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.info-list dt {
  color: var(--subtle);
  font-size: 13px;
  margin-bottom: 6px;
}

.info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), #020617);
  margin-top: 44px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: white;
  font-size: 20px;
}

.footer-inner p {
  color: var(--subtle);
  max-width: 620px;
  line-height: 1.7;
}

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

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

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

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

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .hero-content {
    padding-top: 56px;
  }

  .hero-control {
    display: none;
  }

  .section-block,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .wide-card,
  .category-overview-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .wide-cover,
  .rank-cover {
    max-width: 220px;
  }

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

  .big-search {
    flex-direction: column;
  }

  .footer-inner,
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-poster {
    max-width: 260px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-wrap {
    height: 62px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 76vh;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .page-hero,
  .detail-hero {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .movie-grid,
  .compact-grid,
  .category-movie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

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

  .video-shell {
    border-radius: 18px;
  }
}
