:root {
  color-scheme: dark;
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-panel: rgba(15, 23, 42, 0.82);
  --bg-panel-strong: rgba(30, 41, 59, 0.88);
  --line: rgba(148, 163, 184, 0.22);
  --text-main: #ffffff;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --violet: #8b5cf6;
  --emerald: #10b981;
  --shadow-cyan: 0 24px 60px rgba(34, 211, 238, 0.18);
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.38);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-soft);
  background:
    radial-gradient(circle at 15% 8%, rgba(34, 211, 238, 0.13), transparent 28%),
    radial-gradient(circle at 88% 2%, rgba(59, 130, 246, 0.14), transparent 26%),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

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

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 650;
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.7);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  margin-top: 6px;
}

.home-hero {
  position: relative;
  min-height: 72vh;
  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-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.9) 42%, rgba(15, 23, 42, 0.16) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.1) 48%, rgba(2, 6, 23, 0.65) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  padding-top: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  backdrop-filter: blur(10px);
}

.eyebrow span {
  color: var(--cyan);
}

.hero-copy h1,
.page-hero-copy h1,
.detail-info h1 {
  margin: 0;
  color: var(--text-main);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(42px, 8vw, 78px);
}

.hero-copy p {
  max-width: 690px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
}

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

.hero-actions {
  margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: var(--shadow-cyan);
}

.ghost-btn {
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.18);
  background: rgba(15, 23, 42, 0.55);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn:hover {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.36);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading > span {
  width: 5px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.tone-orange > span,
.tone-orange .section-heading > span {
  background: linear-gradient(180deg, var(--orange), var(--red));
}

.tone-green > span,
.tone-green .section-heading > span {
  background: linear-gradient(180deg, var(--green), var(--emerald));
}

.tone-blue > span,
.tone-blue .section-heading > span {
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

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

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

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  color: inherit;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.56);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.56);
  box-shadow: 0 28px 66px rgba(34, 211, 238, 0.16);
}

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.movie-card-large figure {
  aspect-ratio: 16 / 10;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.35s ease;
}

.movie-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.15);
}

.movie-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 58%);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.movie-card:hover figure::after {
  opacity: 0.95;
}

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 12px;
  background: rgba(34, 211, 238, 0.86);
}

.rank-badge {
  right: 12px;
  min-width: 32px;
  background: rgba(249, 115, 22, 0.9);
}

.card-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.86);
  box-shadow: 0 20px 42px rgba(34, 211, 238, 0.28);
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.card-body {
  padding: 17px;
}

.card-body h3 {
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.movie-card:hover .card-body h3 {
  color: #67e8f9;
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.wide-strip {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.5), rgba(30, 41, 59, 0.45));
  border-block: 1px solid rgba(148, 163, 184, 0.08);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 330px);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 38px;
}

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

.list-card {
  display: grid;
  grid-template-columns: 42px 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.52);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.list-card:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(30, 41, 59, 0.75);
}

.list-card img {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.list-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--emerald));
}

.list-copy {
  min-width: 0;
}

.list-copy strong,
.list-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.list-copy strong {
  color: #ffffff;
}

.list-copy small {
  margin-top: 3px;
  color: var(--text-muted);
}

.category-mini-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-card {
  position: relative;
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.55);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.category-card img,
.category-card span {
  position: absolute;
  inset: 0;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  transition: transform 0.65s ease, opacity 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.06);
  opacity: 0.58;
}

.category-card span {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.08));
}

.category-card strong,
.category-card small {
  position: relative;
  z-index: 2;
}

.category-card strong {
  color: #ffffff;
  font-size: 22px;
}

.category-card small {
  margin-top: 8px;
  color: #dbeafe;
}

.section-more {
  margin-top: 20px;
  color: #cffafe;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.center-actions {
  justify-content: center;
  margin-top: 32px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 330px;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.page-hero-small {
  min-height: 300px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  background-size: 30px 30px;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
}

.page-hero-copy h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
}

.filter-panel-large {
  position: sticky;
  top: 82px;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.search-box {
  display: grid;
  gap: 8px;
  color: #ffffff;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  outline: none;
  background: rgba(15, 23, 42, 0.82);
}

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

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  min-height: 36px;
  padding: 0 14px;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.62);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(34, 211, 238, 0.18);
}

.empty-state {
  display: none;
  padding: 46px 20px;
  margin-top: 22px;
  color: var(--text-muted);
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 20px;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.05);
  transform: scale(1.04);
  opacity: 0.45;
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.75)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.16) 48%, rgba(2, 6, 23, 0.86) 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 56px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.45);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111827;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

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

.detail-line {
  max-width: 820px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.detail-meta span {
  padding: 8px 13px;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
}

.detail-info .primary-btn {
  margin-top: 28px;
}

.player-card {
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.76));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.player-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000000;
  cursor: pointer;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.28), rgba(2, 6, 23, 0.45) 42%, rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 48px rgba(34, 211, 238, 0.36);
}

.player-overlay strong {
  font-size: 18px;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding-bottom: 20px;
}

.content-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.52);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.content-panel {
  padding: 34px;
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: 16px;
}

.movie-article h2:not(:first-child) {
  margin-top: 28px;
}

.side-panel {
  align-self: start;
  padding: 26px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.side-panel dt {
  color: #94a3b8;
}

.side-panel dd {
  min-width: 0;
  margin: 0;
  color: #ffffff;
}

.site-footer {
  margin-top: 28px;
  padding: 54px 0 26px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 420px;
  margin: 12px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer a:not(.brand) {
  display: block;
  margin-top: 9px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:not(.brand):hover {
  color: #67e8f9;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .featured-grid,
  .compact-grid,
  .related-grid,
  .rank-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    grid-template-columns: 250px minmax(0, 1fr);
  }

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

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

  .home-hero {
    min-height: 620px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 92px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(2, 6, 23, 0.34) 100%);
  }

  .featured-grid,
  .compact-grid,
  .related-grid,
  .rank-grid,
  .category-overview-grid,
  .category-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
  }

  .detail-poster {
    width: min(280px, 78vw);
  }

  .detail-layout {
    padding-top: 0;
  }

  .content-panel,
  .side-panel {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .section-block {
    padding: 48px 0;
  }

  .featured-grid,
  .compact-grid,
  .related-grid,
  .rank-grid,
  .category-overview-grid,
  .category-mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .detail-info h1,
  .page-hero-copy h1 {
    letter-spacing: -0.03em;
  }

  .hero-copy p,
  .detail-line,
  .page-hero-copy p {
    font-size: 16px;
  }

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

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .scroll-row {
    grid-auto-columns: minmax(248px, 82vw);
  }

  .list-card {
    grid-template-columns: 34px 82px minmax(0, 1fr);
    gap: 10px;
  }

  .list-card img {
    width: 82px;
    height: 54px;
  }

  .filter-panel-large {
    position: static;
  }

  .player-card {
    padding: 6px;
    border-radius: 18px;
  }

  .player-stage {
    border-radius: 14px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
