:root {
  color-scheme: dark;
  --bg: #111827;
  --panel: rgba(31, 41, 55, 0.62);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --muted: #a7b0c0;
  --gold: #facc15;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #60a5fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 58, 237, 0.28), transparent 34rem),
    radial-gradient(circle at 85% 0%, rgba(236, 72, 153, 0.22), transparent 32rem),
    linear-gradient(180deg, #0b1020 0%, #111827 45%, #080b12 100%);
  color: #f9fafb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #312e81 0%, #581c87 50%, #831843 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-symbol {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #f472b6);
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.26);
  font-size: 0.9rem;
}

.logo-text {
  background: linear-gradient(90deg, #fde047, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  white-space: nowrap;
}

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: #fde047;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.inline-search input,
.inline-search select {
  min-width: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  outline: none;
}

.header-search input {
  width: 12rem;
  padding: 0.62rem 0.95rem;
  border-radius: 999px 0 0 999px;
}

.header-search button,
.mobile-search button,
.inline-search button,
.primary-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, #eab308, #ec4899);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 0.68rem 1rem;
  border-radius: 0 999px 999px 0;
}

.header-search button:hover,
.mobile-search button:hover,
.inline-search button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 1.75rem;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mobile-nav-link {
  display: block;
  padding: 0.65rem 0;
}

.mobile-search input {
  flex: 1;
  padding: 0.7rem 0.95rem;
  border-radius: 999px 0 0 999px;
}

.mobile-search button {
  padding: 0.76rem 1rem;
  border-radius: 0 999px 999px 0;
}

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

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.78) 36%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem) 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #facc15;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 1.3rem;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.45rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  width: 0.72rem;
  height: 0.72rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 2.2rem;
  background: linear-gradient(90deg, #fde047, #ec4899);
}

.section,
.page-main {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.6rem) clamp(1rem, 3vw, 2rem);
}

.band-section {
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.28), rgba(22, 78, 99, 0.28));
}

.band-section.red {
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.28), rgba(124, 45, 18, 0.28));
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-heading a {
  color: #facc15;
  font-size: 0.95rem;
}

.page-title {
  margin-bottom: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(88, 28, 135, 0.72), rgba(131, 24, 67, 0.58)),
    rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.page-title p {
  max-width: 780px;
  margin: 0.75rem 0 0;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.movie-card,
.wide-card,
.category-card,
.rank-item {
  background: rgba(31, 41, 55, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.wide-card:hover,
.category-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  background: rgba(31, 41, 55, 0.92);
  box-shadow: 0 22px 48px rgba(139, 92, 246, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.movie-poster img,
.wide-image img,
.scroll-image img,
.detail-cover img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
  opacity: 0.82;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  color: #111827;
  background: rgba(250, 204, 21, 0.95);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  left: 0.55rem;
  min-width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, #fde047, #fb7185);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.movie-info {
  padding: 0.9rem;
}

.movie-info h3,
.wide-content h3,
.scroll-content h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p,
.wide-content p,
.scroll-content p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: #d1d5db;
  font-size: 0.78rem;
}

.meta-row span,
.tag-list span {
  padding: 0.25rem 0.5rem;
  border-radius: 0.45rem;
  background: rgba(139, 92, 246, 0.18);
  color: #d8b4fe;
}

.scroller {
  overflow-x: auto;
  padding-bottom: 0.65rem;
  scrollbar-width: thin;
}

.scroll-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.scroll-card {
  width: 20rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(31, 41, 55, 0.58);
}

.scroll-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.scroll-content {
  padding: 1rem;
}

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

.category-card {
  padding: 1.3rem;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 10rem),
    rgba(31, 41, 55, 0.58);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.category-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 11rem 1fr;
}

.wide-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.wide-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inline-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.inline-search input,
.inline-search select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
}

.inline-search button {
  padding: 0.85rem 1.2rem;
  border-radius: 0.9rem;
}

.filter-empty {
  display: none;
  padding: 2rem;
  text-align: center;
  color: #d1d5db;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
}

.detail-hero {
  position: relative;
  min-height: 56vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #111827;
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) saturate(1.05);
  opacity: 0.5;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.24) 100%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.82), transparent 66%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 4rem clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: 2rem;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: 1.1rem;
  aspect-ratio: 2 / 3;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-info h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
}

.detail-info p {
  max-width: 780px;
  margin: 0 0 1rem;
  color: #d1d5db;
  line-height: 1.8;
}

.breadcrumb {
  margin-bottom: 1rem;
  color: #facc15;
  font-size: 0.92rem;
}

.player-section {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem) 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
  z-index: 2;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.play-ring {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: clamp(4.5rem, 10vw, 7.2rem);
  height: clamp(4.5rem, 10vw, 7.2rem);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #ec4899);
  box-shadow: 0 16px 42px rgba(236, 72, 153, 0.36);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

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

.detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2rem);
}

.content-panel,
.side-panel {
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border-radius: 1.25rem;
  background: rgba(31, 41, 55, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.content-panel p {
  margin: 0 0 1rem;
  color: #d1d5db;
  line-height: 1.9;
}

.side-list {
  display: grid;
  gap: 0.85rem;
}

.side-link {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}

.side-link img {
  width: 4.5rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.55rem;
}

.side-link h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-link span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  margin-top: 3rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), #020617);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 3rem clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 1rem;
}

.footer-inner p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #facc15;
}

.footer-bottom {
  padding: 1.2rem;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

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

@media (max-width: 760px) {
  .header-inner {
    padding: 0.85rem 1rem;
  }

  .hero-slider {
    min-height: 72vh;
  }

  .hero-content {
    padding-bottom: 4.2rem;
  }

  .movie-grid,
  .feature-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .wide-card {
    grid-template-columns: 8.2rem 1fr;
  }

  .inline-search {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .detail-cover {
    width: 12rem;
  }

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

  .scroll-card {
    width: 17rem;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .feature-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

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