/* ============================================
   ANNT32 COMMISSIONS — Global Styles
   Theme: Deep purple/magenta glassmorphism, dark
   ============================================ */

:root {
  /* Color tokens */
  --bg-base: #100620;
  --bg-deep: #1a0a2e;
  --bg-mid: #2d1b4e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --surface-line: rgba(255, 255, 255, 0.12);

  --accent-primary: #c084fc; /* lavender purple */
  --accent-secondary: #f0abfc; /* magenta pink */
  --accent-tertiary: #a78bfa; /* violet */
  --accent-glow: #d8b4fe;

  --text-primary: #f5f3ff;
  --text-secondary: rgba(245, 243, 255, 0.72);
  --text-muted: rgba(245, 243, 255, 0.48);

  --status-open: #86efac;
  --status-waitlist: #fcd34d;
  --status-closed: #fca5a5;

  /* Type */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Glass */
  --glass-blur: blur(24px) saturate(140%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-base);
  cursor: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   BACKGROUND LAYERS
   ============================================ */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

/* Gallery background playlist. The script keeps at most one visible image and
   one preloaded image, then swaps them with an opacity-only transition. */
.bg-playlist {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.bg-playlist__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1100ms ease;
}

.bg-playlist__image.is-visible {
  opacity: 1;
}

/* .bg-art {
  position: absolute;
  inset: 0;
  background: url("gallery/img/127256152_p0.jpg") center/cover no-repeat;
} */

/* .bg-art {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(192, 132, 252, 0.35),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(240, 171, 252, 0.28),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(167, 139, 250, 0.18),
      transparent 70%
    ),
    linear-gradient(180deg, #1a0a2e 0%, #100620 60%, #050210 100%);
  filter: blur(0.5px);
  animation: pan-bg 40s ease-in-out infinite alternate;
} */

/* @keyframes pan-bg {
  0% {
    transform: translate(0, 0) scale(1.05);
  }
  100% {
    transform: translate(-3%, -2%) scale(1.12);
  }
} */

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(5, 2, 16, 0.7) 100%
  );
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 132, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot,
.cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  /* Keep the cursor visible above pricing alerts and option-detail modals. */
  z-index: 17000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Keep the custom dot on the browser's native cursor pipeline so page paint
   load cannot reduce its movement frame rate. The DOM layer only draws halo. */
html[data-appearance="maximal"].native-cursor-ready {
  --site-cursor-dot: url("static/cursor-dot.png") 16 16, none;
}

html[data-appearance="maximal"].native-cursor-ready body,
html[data-appearance="maximal"].native-cursor-ready body * {
  cursor: var(--site-cursor-dot) !important;
}

html[data-appearance="maximal"].native-cursor-ready .cursor-dot {
  display: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  box-shadow: 0 0 10px var(--accent-secondary);
}

.cursor-halo {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(192, 132, 252, 0.6);
  background: radial-gradient(
    circle,
    rgba(192, 132, 252, 0.18),
    transparent 70%
  );
  transition:
    transform 64ms cubic-bezier(0.22, 0.8, 0.36, 1),
    width 0.25s var(--ease-out),
    height 0.25s var(--ease-out),
    background 0.25s var(--ease-out);
}

.cursor-halo.hover {
  width: 56px;
  height: 56px;
  background: radial-gradient(
    circle,
    rgba(240, 171, 252, 0.28),
    transparent 70%
  );
  border-color: var(--accent-secondary);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  html[data-appearance="maximal"].native-cursor-ready body,
  html[data-appearance="maximal"].native-cursor-ready body * {
    cursor: auto !important;
  }
  .cursor-dot,
  .cursor-halo {
    display: none;
  }
}

/* ============================================
   NAV (top)
   ============================================ */
.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 20px;
  background: rgba(20, 10, 40, 0.55);
  /* backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); */
  border: var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.4s var(--ease-out);
}
.nav.nav--hidden {
  transform: translateX(-50%) translateY(calc(-100% - 32px));
  opacity: 0;
  pointer-events: none;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-right: 18px;
  background: linear-gradient(
    120deg,
    var(--accent-glow),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__brand span {
  opacity: 0.5;
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 2px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
  cursor: none;
}

.nav__link:hover {
  color: var(--text-primary);
  background: var(--surface-strong);
}

.nav__cta {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(
    120deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #1a0a2e;
  text-decoration: none;
  text-shadow: none;
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240, 171, 252, 0.4);
}

/* ============================================
   LANG SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: none;
  transition: all 0.18s var(--ease-out);
  font-family: var(--font-display);
}

.lang-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  color: #1a0a2e;
  background: linear-gradient(
    120deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
}

/* ============================================
   PROGRESS DOTS (left rail)
   ============================================ */
.progress {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition:
    opacity 0.36s var(--ease-out),
    transform 0.46s var(--ease-out);
}

@media (min-width: 961px) {
  body.gallery-active .progress {
    opacity: 0;
    transform: translate(-22px, -50%) scale(0.94);
    pointer-events: none;
  }
}

.progress__indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: var(--progress-indicator-width, 34px);
  height: var(--progress-indicator-height, 38px);
  border: var(--glass-border);
  border-radius: 19px;
  background: rgba(20, 10, 40, 0.72);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transform: translate3d(
      var(--progress-indicator-x, 5px),
      var(--progress-indicator-y, 5px),
      0
    )
    translate3d(-50%, -50%, 0);
  transition:
    width 0.38s var(--ease-out),
    height 0.38s var(--ease-out),
    transform 0.46s cubic-bezier(0.22, 0.8, 0.36, 1);
  will-change: transform;
}

.progress__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: none;
  text-decoration: none;
  color: var(--text-muted);
}

.progress__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s var(--ease-out);
  position: relative;
  flex-shrink: 0;
}

.progress__item.active .progress__dot {
  background: var(--accent-secondary);
  box-shadow:
    0 0 12px var(--accent-secondary),
    0 0 24px var(--accent-primary);
  width: 10px;
  height: 10px;
}

.progress__item.active .progress__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(240, 171, 252, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes loading-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.6;
  }
}

.status-banner[data-loading] .status-banner__channel-state,
.status-banner[data-loading] .status-banner__channel-slots-num,
.status-banner[data-loading] .status-banner__channel-slots-total,
.wip[data-loading] .wip__name,
.wip[data-loading] .wip__phase,
.wip[data-loading] .wip__pct,
.wip[data-loading] .wip__bar-fill {
  animation: loading-pulse 1.2s ease-in-out infinite;
}

.status-banner[data-loading] .status-banner__pulse {
  background: var(--text-muted) !important;
  box-shadow: none !important;
}
.status-banner[data-loading] .status-banner__pulse::after {
  animation: none;
}

.progress__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
  pointer-events: none;
}

.progress__item:hover .progress__label,
.progress__item.active .progress__label {
  opacity: 1;
  transform: translateX(0);
}

.progress__item.active .progress__label {
  color: var(--text-primary);
}

/* ============================================
   SECTION SCAFFOLDING + WINDOW PULL-UP TRANSITION
   ============================================ */
main {
  position: relative;
  z-index: 1;
}

.section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 80px 80px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section__panel {
  position: relative;
  width: 100%;
  max-width: 1280px;
  border-radius: 28px;
  background: rgba(20, 10, 40, 0.89);
  /* backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); */
  border: var(--glass-border);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 56px;
  opacity: 0;
  transform: translateY(80px) scale(0.94);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
}

.section.in-view .section__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.section.passed .section__panel {
  opacity: 0;
  transform: translateY(-40px) scale(0.96);
  filter: blur(6px);
}

.section__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(240, 171, 252, 0.5),
    transparent
  );
  pointer-events: none;
}

/* ============================================
   HOME SECTION
   ============================================ */
.home__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: stretch;
  min-width: 0;
}

.home__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
}

.home__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 500;
}

.home__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-secondary);
}

.home__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 24px 0 20px;
}

.home__title em {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  padding-right: 0.08em;
  padding-bottom: 0.06em;
  background: linear-gradient(
    120deg,
    var(--accent-glow),
    var(--accent-secondary),
    var(--accent-tertiary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home__lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

/* Status banner */
.status-banner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  position: relative;
  overflow: visible;
}

.status-banner::after {
  display: none;
}

.status-banner__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--status-open);
  box-shadow: 0 0 16px var(--status-open);
  position: relative;
  flex-shrink: 0;
}

.status-banner__pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--status-open);
  animation: pulse-ring 1.8s ease-out infinite;
}

.status-banner__channel-head {
  display: contents;
}

.status-banner__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-banner__channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  min-width: 0;
  min-height: 88px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(134, 239, 172, 0.25);
  position: relative;
  z-index: 1;
}

.status-banner__channel--vgen {
  text-align: left;
}

.status-banner__channel .status-banner__pulse {
  grid-column: 1;
  grid-row: 1 / 3;
}

.status-banner__channel .status-banner__label {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.status-banner__channel-state {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--status-open);
  margin-top: 2px;
}

.status-banner__channel-slots {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  margin-top: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.status-banner__channel--vgen .status-banner__channel-slots {
  justify-content: flex-end;
}

.status-banner__channel-slots-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.status-banner__channel-slots-total {
  font-size: 18px;
  color: var(--text-muted);
}

.status-banner__slots-suffix {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 8px;
  align-self: center;
}

.status-banner[data-pixiv-open="false"] .status-banner__pixiv-state,
.status-banner[data-vgen-open="false"] .status-banner__vgen-state {
  color: var(--status-closed);
}

.status-banner[data-pixiv-open="false"] .status-banner__channel--pixiv,
.status-banner[data-vgen-open="false"] .status-banner__channel--vgen {
  border-color: rgba(252, 165, 165, 0.25);
}

.status-banner[data-pixiv-open="false"] .status-banner__pixiv-pulse,
.status-banner[data-vgen-open="false"] .status-banner__vgen-pulse {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
}

.status-banner[data-pixiv-open="false"] .status-banner__pixiv-pulse::after,
.status-banner[data-vgen-open="false"] .status-banner__vgen-pulse::after {
  border-color: #ef4444;
}

/* Right column on home */
.home__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* WIP widget */
.wip {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: var(--glass-border);
  position: relative;
  overflow: hidden;
}

.wip__thumb {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  flex-shrink: 0;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(240, 171, 252, 0.6),
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(125, 211, 252, 0.5),
      transparent 60%
    ),
    linear-gradient(135deg, #4c1d95, #831843);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wip__thumb img.wip__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.wip__thumb::after {
  content: "WIP";
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(20, 10, 40, 0.85);
}

.wip__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.wip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wip__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wip__phase {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  padding: 3px 8px;
  background: rgba(240, 171, 252, 0.12);
  border: 1px solid rgba(240, 171, 252, 0.24);
  border-radius: 999px;
}

.wip__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wip__progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wip__bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.wip__bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 999px;
  box-shadow: 0 0 8px var(--accent-primary);
  transition: width 1.2s var(--ease-out);
}

.wip__pct {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* News cards */
.news {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.news__title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.news__more {
  font-size: 11px;
  color: var(--accent-secondary);
  text-decoration: none;
}

.news__more:hover {
  color: var(--accent-glow);
}

.news__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.news-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  height: 68px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: none;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s var(--ease-out);
}

.news-card:hover {
  background: var(--surface-strong);
  border-color: rgba(240, 171, 252, 0.25);
  transform: translateX(4px);
}

.news-card.is-pinned {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.06);
}

.news-card__date {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  font-family: var(--font-display);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 12px;
}

.news-card__thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.news-card__date-day {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.news-card__date-mo {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.news-card__body {
  min-width: 0;
  flex: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 2px;
}

.news-card__pin {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
}

.news-card__unread {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.news-card__tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card__head {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__arrow {
  align-self: center;
  font-size: 18px;
  color: var(--text-muted);
  transition:
    transform 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.news-card:hover .news-card__arrow {
  transform: translateX(2px);
  color: var(--accent-secondary);
}

/* ============================================
   NEWS MODAL
   ============================================ */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.news-modal.open {
  pointer-events: all;
  opacity: 1;
}

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 10, 0.75);
}

.news-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 40px));
  height: min(800px, calc(100vh - 40px));
  background: rgba(20, 10, 40, 0.85);
  border: 1px solid rgba(240, 171, 252, 0.18);
  border-radius: 18px;
  padding: 28px 36px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(0.97);
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.25s var(--ease-out);
  opacity: 0;
}

.news-modal.open .news-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* --- Shared header --- */
.news-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.news-modal__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-modal__panel-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-modal__back {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.news-modal__back:hover {
  border-color: rgba(240, 171, 252, 0.35);
  color: var(--accent-secondary);
}

.news-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: none;
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.news-modal__close:hover {
  color: var(--text-primary);
}

/* --- View switching --- */
.nm-view {
  display: none;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
  min-height: 0;
}

.nm-view.active {
  display: flex;
}

/* --- List view --- */
.news-modal__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.nm-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  cursor: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.nm-list-item:hover {
  background: var(--surface-strong);
  border-color: rgba(240, 171, 252, 0.2);
}

.nm-list-item.is-pinned {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.05);
}

.nm-list-item__img {
  width: 188px;
  height: 175px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.nm-list-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nm-list-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nm-list-item__pin {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}

.nm-list-item__unread {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.nm-list-item__tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(216, 180, 254, 0.1);
  padding: 2px 7px;
  border-radius: 20px;
}

.nm-list-item__date {
  font-size: 11px;
  color: var(--text-muted);
}

.nm-list-item__head {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.nm-list-item__excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nm-list-item__arrow {
  align-self: center;
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
  transition:
    transform 0.2s,
    color 0.2s;
}

.nm-list-item:hover .nm-list-item__arrow {
  transform: translateX(2px);
  color: var(--accent-secondary);
}

.news-modal__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.news-modal__page-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.news-modal__page-btn:hover:not(:disabled) {
  border-color: rgba(240, 171, 252, 0.35);
  color: var(--accent-secondary);
}

.news-modal__page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.news-modal__page-info {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* --- Detail view --- */
.news-modal__detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.news-modal__tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(216, 180, 254, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.news-modal__date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.news-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 16px;
  flex-shrink: 0;
}

.news-modal__detail-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  margin-bottom: 16px;
}

.news-modal__cover-frame {
  width: 100%;
  max-width: 100%;
  max-height: 360px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.news-modal__cover-frame.hidden {
  display: none;
}

.news-modal__img {
  position: static;
  width: 100%;
  height: auto;
  max-height: 360px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
}

/* Landscape image: hiện thị trên đầu, full-width */
.news-modal__img.landscape {
  position: static;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  height: auto;
  object-fit: cover;
  object-position: center center;
  align-self: auto;
  flex-shrink: 0;
  margin-bottom: 12px;
}

/* Đổi hướng layout khi có ảnh ngang */
.news-modal__detail-body.has-landscape {
  flex-direction: column;
}

.news-modal__cover-frame .news-modal__img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  transform-origin: center;
}

.news-modal__img.hidden {
  display: none;
}

.news-modal__body-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0;
}

.news-modal__body-text p {
  margin: 0 0 10px;
}

.news-modal__body-text p:last-of-type {
  margin-bottom: 0;
}

.news-modal__body-text h2,
.news-modal__body-text h3 {
  margin: 0 0 10px;
  color: var(--text-primary);
  line-height: 1.35;
}

.news-modal__body-text h2 {
  font-size: 18px;
}

.news-modal__body-text h3 {
  font-size: 16px;
}

.news-modal__body-text a {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-modal__body-text ul,
.news-modal__body-text ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.news-modal__body-text li {
  margin: 0 0 6px;
}

.news-modal__body-text blockquote {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 3px solid rgba(240, 171, 252, 0.5);
  color: var(--text-secondary);
}

.news-modal__body-text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.news-modal__body-text table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.news-modal__body-text th,
.news-modal__body-text td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
  vertical-align: top;
}

.news-modal__body-text th {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  font-weight: 600;
}

/* Hide scrollbars inside news modal */
.news-modal__items,
.news-modal__detail-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.news-modal__items::-webkit-scrollbar,
.news-modal__detail-body::-webkit-scrollbar {
  display: none;
}

/* --- Platform link pills --- */
.nm-platform-links,
.nm-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nm-platform-links__title {
  width: 100%;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nm-platform-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nm-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  cursor: none;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}

.nm-detail-link:hover {
  background: rgba(216, 180, 254, 0.1);
  border-color: rgba(240, 171, 252, 0.35);
  color: var(--text-primary);
}

.nm-detail-link__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nm-detail-link__icon svg {
  width: 14px;
  height: 14px;
  color: var(--accent-secondary);
}

.news-modal__detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.news-modal__nav-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.news-modal__nav-btn:hover:not(:disabled) {
  border-color: rgba(240, 171, 252, 0.35);
  color: var(--accent-secondary);
}

.news-modal__nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ============================================
   MUSIC PLAYER (bottom-right)
   ============================================ */
.music {
  position: fixed;
  bottom: 24px;
  right: 72px;
  z-index: 95;
}

/* Main pill bar */
.music__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(20, 10, 40, 0.7);
  /* backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); */
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  min-width: 400px;
  overflow: hidden;
  transition:
    padding 0.4s var(--ease-out),
    gap 0.4s var(--ease-out),
    min-width 0.4s var(--ease-out),
    width 0.4s var(--ease-out);
}

.music.collapsed .music__bar {
  min-width: 0;
  gap: 0;
  padding: 6px;
}

/* Controls group: prev + play + next */
.music__controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

/* Base control button */
.music__ctrl {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  flex-shrink: 0;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    max-width 0.4s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.music__ctrl:hover {
  color: var(--text-primary);
  background: var(--surface-strong);
}

.music__ctrl svg {
  width: 13px;
  height: 13px;
}

/* Primary play/pause button */
.music__ctrl--play {
  width: 38px;
  height: 38px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #1a0a2e;
}

.music__ctrl--play svg {
  width: 14px;
  height: 14px;
}

.music__ctrl--play:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(240, 171, 252, 0.5);
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #1a0a2e;
}

/* Prev / Next — collapse to zero width */
.music__ctrl--prev,
.music__ctrl--next {
  max-width: 30px;
}

.music.collapsed .music__ctrl--prev,
.music.collapsed .music__ctrl--next {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
}

/* Active state for list toggle */
.music__ctrl--list.active {
  background: rgba(192, 132, 252, 0.15);
  color: var(--accent-primary);
}

/* Track info */
.music__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  max-width: 180px;
  transition:
    max-width 0.4s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.music.collapsed .music__info {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.music__label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

.music__track {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

/* Visualizer */
.music__viz {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 20px;
  flex-shrink: 0;
  max-width: 60px;
  transition:
    max-width 0.4s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.music.collapsed .music__viz {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.music__viz span {
  width: 3px;
  background: linear-gradient(
    to top,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 2px;
  height: 30%;
  transition: height 0.15s ease-out;
}

.music.playing .music__viz span {
  animation: viz 0.9s ease-in-out infinite;
}

.music__viz span:nth-child(1) {
  animation-delay: -0.1s;
}
.music__viz span:nth-child(2) {
  animation-delay: -0.4s;
}
.music__viz span:nth-child(3) {
  animation-delay: -0.2s;
}
.music__viz span:nth-child(4) {
  animation-delay: -0.5s;
}

@keyframes viz {
  0%,
  100% {
    height: 30%;
  }
  50% {
    height: 95%;
  }
}

/* Extras: volume + playlist toggle */
.music__extras {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  max-width: 130px;
  transition:
    max-width 0.4s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.music.collapsed .music__extras {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Volume control */
.music__vol {
  display: flex;
  align-items: center;
  gap: 6px;
}

.music__vol-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.music__vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  cursor: none;
  outline: none;
  flex-shrink: 0;
}

.music__vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: none;
  box-shadow: 0 0 6px var(--accent-glow);
}

.music__vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--accent-primary);
  cursor: none;
  box-shadow: 0 0 6px var(--accent-glow);
}

/* Playlist panel — floats above the bar */
.music__playlist {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 300px;
  background: rgba(16, 6, 32, 0.96);
  /* backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); */
  border: var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.music.playlist-open:not(.collapsed) .music__playlist {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.music__playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--surface-line);
  flex-shrink: 0;
}

.music__playlist-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.music__playlist-count {
  font-size: 11px;
  color: var(--text-muted);
}

.music__playlist-body {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 132, 252, 0.3) transparent;
  padding: 6px 0;
}

.music__playlist-body::-webkit-scrollbar {
  width: 4px;
}
.music__playlist-body::-webkit-scrollbar-track {
  background: transparent;
}
.music__playlist-body::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.3);
  border-radius: 2px;
}

.music__playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  cursor: none;
  transition: background 0.15s var(--ease-out);
}

.music__playlist-item:hover {
  background: var(--surface);
}

.music__playlist-item.active {
  background: rgba(192, 132, 252, 0.1);
}

.music__playlist-item-num {
  font-size: 10px;
  color: var(--text-muted);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.music__playlist-item.active .music__playlist-item-num {
  color: var(--accent-secondary);
}

.music__playlist-item-name {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.music__playlist-item.active .music__playlist-item-name {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================
   PLACEHOLDER SECTIONS
   ============================================ */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 60px 20px;
}

.placeholder__num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--accent-secondary);
}

.placeholder__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.placeholder__title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(
    120deg,
    var(--accent-glow),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.placeholder__sub {
  color: var(--text-secondary);
  max-width: 540px;
  font-size: 16px;
}

.placeholder__chips {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.placeholder__chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.placeholder__chip.muted {
  opacity: 0.5;
  border-style: dashed;
}

/* ============================================
   SECTION-SPECIFIC HEIGHT OVERRIDES
   ============================================ */
#home .section__panel,
#tos .section__panel,
#reviews .section__panel,
#contact .section__panel {
  padding-top: 40px;
  padding-bottom: 40px;
}

#schedule {
  align-items: flex-start;
  padding-top: 72px;
  padding-bottom: 20px;
}
#schedule .section__panel {
  padding-top: 36px;
  padding-bottom: 28px;
  height: min(840px, calc(100vh - 92px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .section {
    padding: 100px 20px 60px;
  }
  .section__panel {
    padding: 32px 24px;
    border-radius: 20px;
  }

  #schedule .section__panel {
    height: auto;
    overflow: visible;
  }
  .home__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .progress {
    left: 12px;
  }
  .progress__indicator {
    display: none;
  }
  .progress__label {
    display: none;
  }
  .nav {
    padding: 6px 6px 6px 14px;
    gap: 2px;
  }
  .nav__brand {
    margin-right: 8px;
    font-size: 13px;
  }
  .nav__link {
    padding: 6px 10px;
    font-size: 12px;
  }
  .nav__links {
    display: none;
  }
  .music {
    left: auto;
    right: 72px;
    min-width: auto;
    max-width: calc(100vw - 96px);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 108px 14px 72px;
  }

  .section__panel {
    max-width: 100%;
    padding: 28px 24px;
    border-radius: 18px;
  }

  #home .section__panel {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .nav {
    left: 14px;
    right: 14px;
    max-width: none;
    transform: none;
    justify-content: space-between;
    padding: 6px 8px 6px 14px;
    gap: 6px;
  }

  .nav.nav--hidden {
    transform: translateY(calc(-100% - 32px));
  }

  .nav__brand,
  .lang-switcher {
    flex-shrink: 0;
  }

  .nav__brand {
    margin-right: 0;
  }

  .lang-btn {
    padding-inline: 7px;
  }

  .nav__cta {
    margin-left: 0;
    padding-inline: 10px;
    font-size: 11px;
  }

  .home__layout {
    gap: 22px;
  }

  .home__intro {
    gap: 24px;
  }

  .home__eyebrow {
    max-width: 100%;
    gap: 8px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home__eyebrow::before {
    width: 22px;
    flex-shrink: 0;
  }

  .home__title {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 1;
    margin: 18px 0 18px;
  }

  .home__lede {
    max-width: 100%;
    font-size: 16px;
  }

  .status-banner {
    grid-template-columns: 1fr;
  }

  .status-banner__channel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px 16px;
  }

  .status-banner__channel .status-banner__pulse {
    grid-row: 1 / 3;
  }

  .status-banner__channel-slots {
    grid-column: 3;
    grid-row: 1 / 3;
    justify-self: end;
    margin-top: 0;
  }

  .wip {
    flex-direction: column;
  }

  .wip__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news__head {
    align-items: center;
    gap: 12px;
  }

  .news__more {
    flex-shrink: 0;
  }

  .music {
    left: auto;
    right: 62px;
    max-width: calc(100vw - 86px);
  }

  .music__bar {
    min-width: 0;
    width: min(330px, calc(100vw - 86px));
    max-width: 100%;
  }

  .music.collapsed .music__bar {
    width: 52px;
  }

  .music__info {
    max-width: 150px;
  }

  .music__viz {
    display: none;
  }

  .music__extras {
    max-width: 96px;
  }

  .music__vol-slider {
    width: 42px;
  }

  .music__playlist {
    position: fixed;
    right: auto;
    bottom: calc(24px + 54px + 10px);
    left: 50%;
    width: min(320px, calc(100vw - 28px));
    transform: translateX(-50%) translateY(8px) scale(0.97);
  }

  .music.playlist-open:not(.collapsed) .music__playlist {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Pause continuous animations while any modal is open */
body.modal-active .status-banner__pulse::after,
body.modal-active .progress__item.active .progress__dot::after {
  animation-play-state: paused;
}

body.modal-active .music__viz span {
  animation-play-state: paused;
}

body.gallery-active .music {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

/* Temporary public Firebase read meter */
#public-read-meter {
  display: none;
}

body.gallery-active .bg-vignette {
  background: radial-gradient(
    ellipse at center,
    transparent 35%,
    rgba(5, 2, 16, 0.38) 100%
  );
}

body.gallery-active #gallery .section__panel {
  background: rgba(10, 6, 20, 0.38);
}

@media (max-width: 960px) {
  body.gallery-active .nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - 32px));
  }
}

/* ============================================
   FIX — TOS fixed scroll panel
   ============================================ */

#tos .section__panel {
  height: calc(100vh - 180px);
  max-height: 820px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#tos .sec-head {
  flex-shrink: 0;
}

#tos .tos {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

#tos .tos__body {
  max-width: none;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 171, 252, 0.35) transparent;
  overscroll-behavior: contain;
}

#tos .tos__body::-webkit-scrollbar,
#tos .tos__toc::-webkit-scrollbar {
  width: 8px;
}

#tos .tos__body::-webkit-scrollbar-thumb,
#tos .tos__toc::-webkit-scrollbar-thumb {
  background: rgba(240, 171, 252, 0.32);
  border-radius: 999px;
}

#tos .tos__body::-webkit-scrollbar-track,
#tos .tos__toc::-webkit-scrollbar-track {
  background: transparent;
}

#tos .tos__body table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

/* ============================================
   PUBLIC GUIDE MODAL
   ============================================ */
.public-guide-launcher {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 12001;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #1a0a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  box-shadow:
    0 0 0 1px rgba(240, 171, 252, 0.55),
    0 0 0 5px rgba(8, 4, 15, 0.9),
    0 8px 24px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.public-guide-launcher[hidden] {
  display: none;
}

.public-guide-launcher svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.public-guide-launcher:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 1px rgba(240, 171, 252, 0.8),
    0 0 0 6px rgba(8, 4, 15, 0.9),
    0 8px 28px rgba(240, 171, 252, 0.35);
}

.public-guide {
  position: fixed;
  inset: 0;
  z-index: 13020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s var(--ease-out);
}

.public-guide.open {
  pointer-events: auto;
  opacity: 1;
}

.public-guide__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 10, 0.78);
  backdrop-filter: blur(12px);
}

.public-guide__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(980px, calc(100vw - 40px));
  max-height: min(820px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(15, 23, 42, 0.96), rgba(35, 18, 52, 0.94)),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s var(--ease-out);
}

.public-guide.open .public-guide__panel {
  transform: translateY(0) scale(1);
}

.public-guide__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.public-guide__heading {
  min-width: 0;
}

.public-guide__eyebrow,
.public-guide__page {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 8px 12px 0;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-guide__eyebrow {
  background: rgba(147, 197, 253, 0.12);
  color: #bfdbfe;
}

.public-guide__page {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.public-guide__title {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.public-guide__intro {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.public-guide__close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.public-guide__close:hover {
  border-color: rgba(252, 165, 165, 0.55);
  background: rgba(252, 165, 165, 0.12);
  color: #fecaca;
}

.public-guide__body-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.public-guide__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 30px 28px;
  scrollbar-width: none;
}

.public-guide__body::-webkit-scrollbar {
  display: none;
}

.public-guide__scrollbar {
  position: absolute;
  top: 6px;
  right: 4px;
  bottom: 6px;
  z-index: 2;
  width: 8px;
  border-radius: 999px;
  touch-action: none;
}

.public-guide__scrollbar[hidden] {
  display: none;
}

.public-guide__scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 1px;
  width: 6px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.45);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  touch-action: none;
}

.public-guide__scrollbar:hover .public-guide__scrollbar-thumb,
.public-guide__scrollbar.is-dragging .public-guide__scrollbar-thumb {
  background: rgba(147, 197, 253, 0.72);
}

.public-guide__h1,
.public-guide__h2,
.public-guide__h3 {
  margin: 0 0 12px;
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: 0;
}

.public-guide__h1 {
  font-size: 28px;
}

.public-guide__h2 {
  margin-top: 22px;
  font-size: 22px;
}

.public-guide__h3 {
  margin-top: 18px;
  font-size: 18px;
}

.public-guide__paragraph {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
}

.public-guide__paragraph strong {
  color: var(--text-primary);
  font-weight: 700;
}

.public-guide__paragraph a {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.public-guide__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 18px 0 20px;
  color: var(--text-secondary);
  font-weight: 800;
  text-align: center;
}

.public-guide__divider::before,
.public-guide__divider::after {
  content: "";
  flex: 1 1 auto;
  min-width: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.public-guide__divider-text {
  max-width: min(72%, 640px);
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
}

.public-guide__figure {
  max-width: 100%;
  margin: 18px 0 22px;
}

.public-guide__image-frame {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  max-width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.public-guide__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.public-guide__caption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.public-guide__media-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 1fr);
  gap: 18px;
  align-items: start;
  margin: 18px 0 22px;
}

.public-guide__media-row[data-text-side="left"] {
  grid-template-columns: minmax(220px, 1fr) minmax(0, auto);
}

.public-guide__media-row .public-guide__figure,
.public-guide__media-row .public-guide__paragraph {
  margin-top: 0;
  margin-bottom: 0;
}

.public-guide__media-row[data-text-side="left"] .public-guide__paragraph {
  order: 1;
}

.public-guide__media-row[data-text-side="left"] .public-guide__figure {
  order: 2;
}

.public-guide__table-wrap {
  max-width: 100%;
  margin: 16px 0 22px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.public-guide__table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  color: var(--text-secondary);
  font-size: 13px;
}

.public-guide__table th,
.public-guide__table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.public-guide__table tr:last-child td {
  border-bottom: 0;
}

.public-guide__table th {
  background: rgba(147, 197, 253, 0.1);
  color: var(--text-primary);
  font-weight: 700;
}

.public-guide__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 30px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.public-guide__check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: none;
}

.public-guide__check input {
  width: 16px;
  height: 16px;
  accent-color: #93c5fd;
  cursor: none;
}

.public-guide__confirm {
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 8px;
  padding: 10px 16px;
  background: rgba(147, 197, 253, 0.14);
  color: var(--text-primary);
  font-weight: 700;
  cursor: none;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s,
    border-color 0.2s;
}

.public-guide__confirm:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.65);
  background: rgba(147, 197, 253, 0.22);
}

/* Ownership notice displayed after the final page section. */
.site-footer {
  padding: 28px 24px 120px;
  border-top: 1px solid var(--surface-line);
  text-align: center;
}

.site-footer__ownership {
  max-width: 880px;
  margin: 0 auto;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

@media (max-width: 720px) {
  .public-guide {
    padding: 12px;
  }

  .public-guide-launcher {
    left: 18px;
    bottom: 24px;
    width: 38px;
    height: 38px;
  }

  .public-guide-launcher svg {
    width: 16px;
    height: 16px;
  }

  .public-guide__panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .public-guide__header,
  .public-guide__body,
  .public-guide__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .public-guide__title {
    font-size: 28px;
  }

  .public-guide__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .public-guide__confirm {
    width: 100%;
  }

  .public-guide__media-row,
  .public-guide__media-row[data-text-side="left"] {
    grid-template-columns: 1fr;
  }

  .public-guide__media-row[data-text-side="left"] .public-guide__paragraph,
  .public-guide__media-row[data-text-side="left"] .public-guide__figure {
    order: initial;
  }
}

#tos .tos__toc {
  max-height: 100%;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

/* Mobile */
@media (max-width: 920px) {
  #tos .section__panel {
    height: calc(100vh - 150px);
    max-height: none;
  }

  #tos .tos__body {
    padding-right: 8px;
  }
}

@media (max-width: 640px) {
  #tos .section__panel {
    height: calc(100vh - 120px);
    padding: 32px 22px;
  }

  #tos .tos__body p,
  #tos .tos__body li {
    font-size: 13px;
  }
}

/* ============================================
   FIX — TOS local scroll + exact anchor
   ============================================ */

#tos .section__panel {
  height: calc(100vh - 180px);
  max-height: 820px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#tos .sec-head {
  flex-shrink: 0;
}

#tos .tos {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

#tos .tos__body {
  max-width: none;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 171, 252, 0.35) transparent;
  overscroll-behavior: contain;
}

#tos .tos__section {
  padding-top: 1px;
}

#tos .tos__section + .tos__section {
  margin-top: 28px;
}

#tos .tos__body h3 {
  margin-top: 0;
  scroll-margin-top: 0;
}

#tos .tos__toc {
  position: relative;
  top: auto;
  max-height: 100%;
  overflow-y: auto;
  align-self: stretch;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 171, 252, 0.35) transparent;
}

#tos .tos__toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#tos .tos__toc a {
  line-height: 1.35;
}

#tos .tos__body table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
