:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.74);
  --card: #1e293b;
  --card-soft: rgba(30, 41, 59, 0.58);
  --line: #1f2937;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #ffffff;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-deep: #d97706;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.10), transparent 28rem), var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--amber-bright);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.nav-link {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--amber-bright);
}

.header-search,
.mobile-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search input,
.inline-filter input {
  min-width: 220px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--white);
  outline: none;
  background: rgba(30, 41, 59, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.inline-filter input:focus {
  border-color: var(--amber-bright);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.page-search button,
.inline-filter button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--amber);
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover,
.inline-filter button:hover,
.primary-btn:hover {
  background: var(--amber-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.mobile-link {
  color: #cbd5e1;
  padding: 8px 0;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: -18px;
  background-position: center;
  background-size: cover;
  filter: blur(8px) brightness(0.42);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.80) 48%, #020617 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  margin-bottom: 18px;
  color: var(--amber-bright);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 800px;
  margin: 24px auto 0;
  color: #e2e8f0;
  font-size: clamp(18px, 2.5vw, 26px);
}

.hero-summary {
  max-width: 820px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-tags,
.tag-row,
.tag-cloud {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.tag-cloud a {
  border-radius: 999px;
  padding: 6px 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
}

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

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--amber);
}

.secondary-btn {
  color: var(--white);
  background: rgba(30, 41, 59, 0.82);
}

.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
  color: var(--white);
  background: rgba(245, 158, 11, 0.22);
}

.ghost-btn {
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  color: var(--white);
  background: rgba(15, 23, 42, 0.70);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 24px;
}

.hero-controls div {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.45;
}

.hero-dot.is-active {
  width: 24px;
  opacity: 1;
  background: var(--amber-bright);
}

.home-search-band,
.content-section,
.category-section,
.tag-cloud-section,
.split-section,
.page-section,
.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px;
  margin-top: -44px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
}

.home-search-band h2,
.content-section h2,
.category-section h2,
.tag-cloud-section h2,
.split-section h2,
.detail-panel h2,
.aside-card h2 {
  margin: 0;
  color: var(--white);
}

.home-search-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.home-search-band form,
.page-search {
  justify-content: flex-end;
}

.home-search-band input,
.page-search input,
.inline-filter input {
  width: 100%;
}

.content-section,
.category-section,
.tag-cloud-section,
.split-section {
  padding: 70px 0 0;
}

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

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
}

.section-more {
  color: var(--amber-bright);
  font-weight: 700;
}

.feature-grid,
.movie-grid,
.category-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.feature-card,
.movie-card,
.list-card,
.category-tile,
.aside-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.22);
}

.feature-link,
.movie-link {
  display: block;
  height: 100%;
}

.feature-card {
  position: relative;
  min-height: 320px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.movie-card:hover,
.list-card:hover,
.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

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

.feature-card:hover img,
.movie-card:hover img,
.list-card:hover img,
.rank-item:hover img {
  transform: scale(1.06);
}

.feature-shade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92));
}

.feature-shade h3,
.movie-info h3,
.list-card h3 {
  margin: 8px 0;
  color: var(--white);
  line-height: 1.35;
}

.feature-shade p,
.movie-info p,
.list-card p {
  margin: 0;
  color: var(--muted);
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(251, 191, 36, 0.72);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

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

.play-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--white);
  font-size: 13px;
  background: rgba(245, 158, 11, 0.92);
}

.movie-info {
  padding: 16px;
}

.movie-info h3,
.list-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info p,
.list-card p,
.rank-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-category {
  color: var(--amber-bright);
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  justify-content: flex-start;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  color: #cbd5e1;
  font-size: 12px;
  background: rgba(51, 65, 85, 0.78);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 28px;
}

.ranking-panel,
.latest-panel {
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(15, 23, 42, 0.74);
}

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

.rank-list.large {
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 52px 120px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 16px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.48);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(30, 41, 59, 0.92);
  transform: translateY(-2px);
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
}

.rank-item img {
  width: 120px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.rank-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}

.rank-item p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.rank-item span:last-child {
  color: #64748b;
  font-size: 13px;
}

.list-card a {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 12px;
}

.list-card img {
  width: 130px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

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

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

.category-tile {
  padding: 24px;
  min-height: 150px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
}

.category-tile:hover {
  border-color: rgba(251, 191, 36, 0.64);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.tag-cloud-section {
  padding-bottom: 70px;
}

.tag-cloud-section h2 {
  margin-bottom: 24px;
  font-size: 32px;
}

.tag-cloud {
  justify-content: flex-start;
}

.tag-cloud a {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.82);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tag-cloud a:hover {
  color: var(--white);
  background: var(--amber);
  transform: translateY(-2px);
}

.tag-cloud.small a {
  padding: 6px 10px;
  font-size: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 1));
}

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

.slim-hero p,
.category-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.category-hero .page-search,
.category-hero .inline-filter {
  max-width: 640px;
  margin-top: 28px;
}

.page-section {
  padding-top: 54px;
}

.search-section {
  min-height: 420px;
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-results .list-card {
  background: rgba(15, 23, 42, 0.92);
}

.empty-state {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  padding: 52px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
}

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

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
  padding-bottom: 70px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #000;
  z-index: 3;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover-bg,
.player-cover-shade {
  position: absolute;
  inset: 0;
}

.player-cover-bg {
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.player-cover-shade {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.20), rgba(0, 0, 0, 0.52));
}

.player-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 6px;
  font-size: 34px;
  background: rgba(245, 158, 11, 0.94);
  box-shadow: 0 18px 54px rgba(245, 158, 11, 0.34);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .player-button {
  transform: scale(1.06);
  background: var(--amber-deep);
}

.detail-header {
  padding: 26px 0 18px;
}

.detail-header h1 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #94a3b8;
}

.detail-meta a,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(30, 41, 59, 0.86);
}

.detail-meta a {
  color: var(--amber-bright);
}

.detail-panel,
.aside-card {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.detail-panel p {
  margin: 12px 0 0;
  color: #cbd5e1;
}

.detail-panel .lead-text {
  color: #e2e8f0;
  font-size: 18px;
}

.detail-aside {
  position: sticky;
  top: 92px;
}

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

.aside-card p {
  color: var(--muted);
}

.related-card .list-card {
  border: 0;
  background: rgba(30, 41, 59, 0.50);
}

.related-card .list-card a {
  grid-template-columns: 100px 1fr;
}

.related-card .list-card img {
  width: 100px;
  height: 66px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: #0f172a;
}

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

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-links h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  padding: 18px;
  text-align: center;
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .split-section,
  .detail-grid,
  .home-search-band {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .mobile-panel,
  .home-search-band,
  .content-section,
  .category-section,
  .tag-cloud-section,
  .split-section,
  .page-section,
  .detail-shell,
  .page-hero > div,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .hero {
    min-height: 76vh;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-grid,
  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .home-search-band,
  .ranking-panel,
  .latest-panel,
  .detail-panel,
  .aside-card {
    padding: 20px;
  }

  .rank-item {
    grid-template-columns: 42px 94px 1fr;
    gap: 10px;
  }

  .rank-item img {
    width: 94px;
    height: 62px;
  }

  .list-card a,
  .related-card .list-card a {
    grid-template-columns: 104px 1fr;
  }

  .list-card img,
  .related-card .list-card img {
    width: 104px;
    height: 70px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
