:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(245, 158, 11, 0.16);
  --line-soft: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-2: #fb923c;
  --accent-3: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.22), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  box-shadow: 0 14px 38px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 20px;
}

.desktop-nav,
.footer-links,
.mobile-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.desktop-nav a,
.footer-links a,
.mobile-nav a {
  color: var(--muted-strong);
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-nav a:hover {
  color: var(--accent-3);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
}

.header-search input,
.hero-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.hero-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.header-search button,
.hero-search button,
.big-search button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.big-search button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(245, 158, 11, 0.34);
}

.btn.ghost {
  color: var(--text);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.32);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.76);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 14px 24px 20px;
}

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

main {
  position: relative;
  z-index: 1;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 55%, rgba(2, 6, 23, 0.52) 100%);
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 48px));
  padding: 170px 0 80px;
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

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

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

.hero-bottom {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(280px, 640px) auto;
  gap: 22px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
}

.hero-search,
.big-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

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

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

.content-section,
.page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.content-section {
  padding: 70px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-main h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.detail-line,
.category-card-large p,
.site-footer p,
.detail-content p {
  color: var(--muted-strong);
  line-height: 1.85;
}

.section-more,
.text-link {
  color: var(--accent-3);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.46);
  box-shadow: 0 26px 66px rgba(0, 0, 0, 0.38);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.compact .poster-link {
  aspect-ratio: 3 / 4;
}

.poster-link img,
.featured-poster img,
.rank-poster img,
.detail-poster img,
.category-cover-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img,
.featured-poster:hover img,
.category-cover-row:hover img {
  transform: scale(1.07);
  filter: brightness(1.08);
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  color: #111827;
  background: var(--accent-3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 18px;
}

.card-meta,
.rank-meta,
.detail-meta {
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3,
.rank-info h3,
.category-card-large h2 {
  margin: 8px 0 10px;
  font-size: 20px;
  line-height: 1.28;
}

.movie-card p,
.rank-info p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.featured-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  width: min(1280px, calc(100% - 48px));
  margin: 76px auto 0;
  padding: 34px;
  background:
    radial-gradient(circle at 82% 10%, rgba(251, 191, 36, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.74));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.featured-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.featured-copy p {
  color: var(--muted-strong);
  line-height: 1.9;
}

.featured-poster {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.category-tile,
.category-card-large {
  display: grid;
  gap: 18px;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.48);
}

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

.category-tile strong {
  color: var(--muted-strong);
  font-weight: 600;
  line-height: 1.7;
}

.tile-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tile-posters img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.page-shell {
  padding: 42px 0 80px;
}

.page-hero {
  position: relative;
  margin-bottom: 34px;
  padding: 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(245, 158, 11, 0.24), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.64));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 260px;
  display: grid;
  align-content: center;
}

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

.category-card-large {
  grid-template-columns: 240px 1fr;
  min-height: 0;
}

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

.category-cover-row img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent-3);
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 30px;
  padding: 30px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-main h1 {
  margin-bottom: 16px;
}

.detail-line {
  font-size: 18px;
  margin-bottom: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 999px;
}

.player-card {
  margin-bottom: 34px;
  padding: 16px;
  background: #020617;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.76));
  border: 0;
  cursor: pointer;
}

.video-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  border-radius: 999px;
  font-size: 38px;
  box-shadow: 0 22px 66px rgba(245, 158, 11, 0.36);
}

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

.detail-content article {
  padding: 28px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
}

.detail-content h2,
.rank-sidebar h2,
.result-heading h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
}

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

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

.rank-no {
  color: var(--accent-3);
  font-size: 24px;
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.rank-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
}

.sidebar-grid {
  display: grid;
  gap: 16px;
}

.search-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.big-search {
  border-radius: 28px;
}

.big-search input {
  border-radius: 22px;
}

.search-filters {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 76px;
  padding: 44px 0;
  border-top: 1px solid var(--line-soft);
  background: rgba(2, 6, 23, 0.8);
}

.footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.footer-brand {
  color: var(--accent-3);
  font-size: 22px;
}

.is-filtered-out {
  display: none;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .header-search {
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .movie-grid,
  .movie-grid.four-col,
  .compact-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-band,
  .rank-layout,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
    grid-template-columns: 1fr auto;
  }

  .brand-text {
    font-size: 18px;
  }

  .header-search {
    display: none;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-stage {
    min-height: 650px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-top: 138px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    bottom: 20px;
    width: calc(100% - 32px);
  }

  .hero-search,
  .big-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-dots {
    justify-content: flex-start;
  }

  .content-section,
  .page-shell,
  .featured-band {
    width: calc(100% - 32px);
  }

  .section-heading,
  .result-heading {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.four-col,
  .compact-grid,
  .category-grid,
  .category-large-grid,
  .detail-hero,
  .filter-bar,
  .search-filters {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .featured-band,
  .detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .rank-item {
    grid-template-columns: 52px 96px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .rank-info p {
    display: none;
  }
}
