
:root {
  --bg: #070b15;
  --bg-soft: #0d1324;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --accent: #f59e0b;
  --accent-2: #fb7185;
  --accent-3: #38bdf8;
  --success: #22c55e;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.22);
  --container: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 36%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 30%),
    linear-gradient(180deg, #060913 0%, #090f1d 50%, #05070d 100%);
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(7, 11, 21, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  background: rgba(7, 11, 21, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 80px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.95), rgba(251, 113, 133, 0.95));
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.24);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}

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

.nav-link {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-search {
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 270px;
}

.header-search input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
}

.header-search input::placeholder {
  color: rgba(226, 232, 240, 0.72);
}

.icon-btn,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.icon-btn:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.13);
}

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

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel-inner {
  padding: 18px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.85);
  border-radius: 0 0 24px 24px;
}

.mobile-panel .nav-link {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.mobile-search input::placeholder {
  color: rgba(226, 232, 240, 0.72);
}

.hero {
  position: relative;
  padding: 28px 0 22px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.28), transparent 20%),
    radial-gradient(circle at 84% 22%, rgba(56, 189, 248, 0.16), transparent 18%),
    linear-gradient(135deg, rgba(12, 17, 32, 0.96), rgba(10, 14, 24, 0.88));
  box-shadow: var(--shadow);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.14), transparent 34%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  padding: 28px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 16px 4px 20px 12px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #fde68a;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-copy p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #fb7185);
  color: #fff;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.metric {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 0.86rem;
}

.hero-carousel {
  position: relative;
  min-height: 540px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 21, 0.12) 60%, rgba(7, 11, 21, 0.62) 100%);
}

.hero-detail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(10, 14, 24, 0.88));
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.hero-detail h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.hero-detail p {
  margin: 0;
  color: var(--muted);
}

.hero-detail .card-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slide-nav {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slide-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.slide-dots {
  position: absolute;
  right: 18px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

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

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

.section {
  padding: 18px 0 8px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--subtle);
  max-width: 65ch;
}

.section-link {
  color: #fde68a;
  font-weight: 700;
  white-space: nowrap;
}

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

.quick-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 168px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: var(--shadow-soft);
  transition: 0.24s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35);
}

.quick-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.quick-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-card .thumb-stack {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: end;
}

.thumb-stack img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.section-banner {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 20%, rgba(245, 158, 11, 0.16), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(12, 17, 31, 0.95), rgba(7, 11, 22, 0.9));
  margin-top: 18px;
  box-shadow: var(--shadow-soft);
}

.section-banner-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.section-banner .banner-copy h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.section-banner .banner-copy p {
  margin: 0;
  color: var(--muted);
}

.banner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.banner-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
}

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

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

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

.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-soft);
  transition: 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.28);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #111827;
  overflow: hidden;
}

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

.card:hover .poster img {
  transform: scale(1.05);
}

.poster .poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 1;
}

.poster .year-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  z-index: 1;
}

.card-body {
  padding: 14px 14px 16px;
}

.card-body h3,
.rank-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.meta-line {
  color: var(--subtle);
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.7);
}

.summary {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 10px 0 0;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  transition: 0.22s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.28);
}

.rank-no {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fb7185);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.rank-card .poster {
  border-radius: 18px;
}

.rank-detail {
  padding: 4px 6px 4px 0;
}

.rank-detail .meta-line {
  margin-top: 8px;
}

.page-banner {
  margin: 26px 0 18px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(245,158,11,0.18), transparent 24%),
    linear-gradient(135deg, rgba(13, 18, 32, 0.96), rgba(8, 12, 22, 0.92));
  box-shadow: var(--shadow-soft);
}

.page-banner-inner {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.page-banner h1,
.detail-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}

.page-banner p,
.page-banner .lead {
  margin: 10px 0 0;
  max-width: 70ch;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #fde68a;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 18px 0 18px;
}

.filter-bar input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
}

.filter-bar input::placeholder {
  color: rgba(226,232,240,0.72);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-tag {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-weight: 600;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
}

.section-shell {
  padding-bottom: 26px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.detail-card,
.info-card,
.player-card,
.side-card,
.panel {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 18px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.detail-poster {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111827;
}

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

.detail-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.detail-meta h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
}

.detail-meta .meta-line {
  margin-top: 10px;
  gap: 10px;
}

.detail-meta .summary {
  font-size: 0.98rem;
  line-height: 1.8;
}

.detail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-card {
  margin-top: 18px;
}

.player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.player-head h2,
.panel h2 {
  margin: 0;
  font-size: 1.18rem;
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-note {
  padding: 0 18px 18px;
  color: var(--subtle);
  font-size: 0.92rem;
}

.side-stack {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 102px;
}

.info-card {
  padding: 18px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-row strong {
  color: #fcd34d;
}

.story {
  margin: 0;
  color: var(--muted);
}

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

.related-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  transition: 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.28);
}

.related-card .poster {
  border-radius: 14px;
}

.related-card h3 {
  margin-bottom: 6px;
  font-size: 0.94rem;
}

.related-card p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.82rem;
}

.panel {
  padding: 18px;
}

.panel .grid-4 {
  margin-top: 14px;
}

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

.search-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 20%, rgba(245,158,11,0.18), transparent 24%),
    linear-gradient(135deg, rgba(13,18,32,0.96), rgba(8,12,22,0.92));
  box-shadow: var(--shadow-soft);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
}

.search-form input::placeholder {
  color: rgba(226,232,240,0.72);
}

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

.search-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-count {
  color: var(--subtle);
}

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

.empty-state {
  padding: 34px;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

.footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.88);
}

.footer-inner {
  padding: 30px 0 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.footer-bottom {
  padding: 16px 0 24px;
  color: var(--subtle);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

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

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

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

  .hero-grid,
  .section-banner-inner,
  .detail-layout,
  .page-banner-inner,
  .search-hero {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 500px;
  }

  .quick-grid,
  .grid-4,
  .grid-5,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .side-stack {
    position: static;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .hero-grid,
  .section-banner-inner,
  .page-banner-inner {
    padding: 18px;
  }

  .hero-carousel {
    min-height: 420px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 220px;
  }

  .hero-detail {
    padding: 18px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .grid-4,
  .grid-5,
  .grid-6,
  .catalog-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
    margin: 0 auto;
  }

  .rank-card {
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .brand-text span {
    font-size: 0.76rem;
  }

  .hero-copy h1,
  .page-banner h1,
  .detail-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .btn,
  .filter-tag,
  .banner-pill {
    width: 100%;
  }

  .quick-grid,
  .grid-4,
  .grid-5,
  .grid-6,
  .catalog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .hero-detail h2 {
    font-size: 1.5rem;
  }

  .search-form,
  .filter-bar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .slide-nav {
    left: 12px;
    bottom: 12px;
  }

  .slide-dots {
    right: 12px;
    bottom: 18px;
  }
}
