/* ============================================================
   SAUCY JUSTIN — cinematic dark identity
   Midnight black + deep blue + crimson red + glass
   ============================================================ */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #04060c;
  --navy-900: #060b16;
  --navy-800: #081020;
  --midnight: #0a1428;
  --surface: rgba(255, 255, 255, 0.026);
  --surface-2: rgba(255, 255, 255, 0.05);
  --glass: rgba(255, 255, 255, 0.028);
  --glass-2: rgba(255, 255, 255, 0.05);
  --glass-3: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --control-bg: rgba(255, 255, 255, 0.026);
  --control-border: rgba(255, 255, 255, 0.09);
  --header-bg: rgba(4, 6, 13, 0.44);
  --header-bg-scrolled: rgba(4, 6, 13, 0.86);
  --header-shadow: 0 14px 38px rgba(0, 0, 0, 0.46);
  --alt-section: linear-gradient(180deg, rgba(7, 12, 22, 0.82), rgba(4, 7, 14, 0.88));
  --footer-bg: linear-gradient(180deg, rgba(6, 9, 16, 0.7), rgba(3, 5, 10, 0.92));
  --loader-bg:
    radial-gradient(circle at 30% 28%, rgba(200, 16, 46, 0.2), transparent 46%),
    radial-gradient(circle at 72% 68%, rgba(30, 92, 255, 0.18), transparent 48%),
    #03050b;
  --loader-logo: #eff3fa;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006));
  --lang-panel-bg: linear-gradient(165deg, rgba(12, 18, 34, 0.96), rgba(6, 10, 20, 0.98));
  --scrollbar-thumb: rgba(255, 255, 255, 0.2);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);
  --inset-line: rgba(255, 255, 255, 0.06);
  --section-rule: rgba(255, 255, 255, 0.07);
  --theme-meta: #04060c;

  /* Ambient */
  --orb-red: radial-gradient(circle, rgba(200, 16, 46, 0.32), transparent 70%);
  --orb-blue: radial-gradient(circle, rgba(30, 92, 255, 0.28), transparent 70%);
  --orb-deep: radial-gradient(circle, rgba(120, 20, 60, 0.22), transparent 72%);
  --vignette: radial-gradient(ellipse at 50% 42%, transparent 26%, rgba(2, 3, 8, 0.82) 100%);
  --orb-opacity: 0.38;
  --grain-opacity: 0.038;

  /* Brand */
  --crimson: #c8102e;
  --crimson-600: #d81b3f;
  --crimson-400: #f0435c;
  --blue: #1e5cff;
  --blue-500: #2f6bff;
  --blue-400: #5b8cff;

  --accent: var(--crimson-600);
  --accent-2: var(--blue-500);
  --live: #ff2d4b;

  /* Type */
  --text: #f3f6fb;
  --muted: #98a4b7;
  --muted-dim: #717d90;

  /* Lines + light */
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.145);
  --glow-red: rgba(216, 27, 63, 0.4);
  --glow-blue: rgba(47, 107, 255, 0.34);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.58);
  --shadow-soft: 0 18px 40px rgba(15, 30, 60, 0.08);

  /* Metrics */
  --max-width: 1200px;
  --radius: 20px;
  --radius-lg: 26px;
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms var(--ease);
  --t: 260ms var(--ease);
  --t-slow: 420ms var(--ease);
  --t-theme: 320ms var(--ease);
  --transition: var(--t);

  --font-display: "Anton", "Inter", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #eef1f6;
  --navy-900: #e8ecf4;
  --navy-800: #e2e8f2;
  --midnight: #dce4f0;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.88);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.82);
  --glass-3: rgba(255, 255, 255, 0.92);
  --glass-strong: rgba(255, 255, 255, 0.95);
  --control-bg: rgba(255, 255, 255, 0.78);
  --control-border: rgba(18, 36, 72, 0.12);
  --header-bg: rgba(255, 255, 255, 0.62);
  --header-bg-scrolled: rgba(255, 255, 255, 0.9);
  --header-shadow: 0 12px 34px rgba(28, 48, 90, 0.12);
  --alt-section: linear-gradient(180deg, rgba(236, 241, 248, 0.94), rgba(228, 234, 244, 0.98));
  --footer-bg: linear-gradient(180deg, rgba(236, 241, 249, 0.92), rgba(224, 231, 242, 0.98));
  --loader-bg:
    radial-gradient(circle at 30% 28%, rgba(200, 16, 46, 0.1), transparent 46%),
    radial-gradient(circle at 72% 68%, rgba(30, 92, 255, 0.1), transparent 48%),
    #eef1f6;
  --loader-logo: #10182a;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 253, 0.88));
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 253, 0.86));
  --lang-panel-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 251, 0.98));
  --scrollbar-thumb: rgba(28, 48, 90, 0.22);
  --scrollbar-thumb-hover: rgba(28, 48, 90, 0.34);
  --inset-line: rgba(255, 255, 255, 0.72);
  --section-rule: rgba(28, 48, 90, 0.1);
  --theme-meta: #eef1f6;

  --orb-red: radial-gradient(circle, rgba(200, 16, 46, 0.14), transparent 70%);
  --orb-blue: radial-gradient(circle, rgba(47, 107, 255, 0.14), transparent 70%);
  --orb-deep: radial-gradient(circle, rgba(120, 40, 80, 0.08), transparent 72%);
  --vignette: radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(226, 232, 242, 0.55) 100%);
  --orb-opacity: 0.55;
  --grain-opacity: 0.02;

  --text: #10182a;
  --muted: #4d5d78;
  --muted-dim: #6a7a94;

  --line: rgba(18, 36, 72, 0.1);
  --line-strong: rgba(18, 36, 72, 0.18);
  --glow-red: rgba(200, 16, 46, 0.22);
  --glow-blue: rgba(47, 107, 255, 0.18);
  --shadow: 0 18px 44px rgba(28, 48, 90, 0.1);
  --shadow-lg: 0 26px 58px rgba(28, 48, 90, 0.14);
  --shadow-soft: 0 14px 32px rgba(28, 48, 90, 0.08);
}

html.is-rtl {
  --font-body: "Noto Sans Arabic", "Noto Sans Hebrew", "Inter", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  --font-display: "Anton", "Noto Sans Arabic", "Noto Sans Hebrew", "Inter", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  background: var(--bg);
  transition: background-color var(--t-theme);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color var(--t-theme);
}

body.is-loading {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid rgba(120, 165, 255, 0.9);
  outline-offset: 3px;
}

.container {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 6000;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--crimson-600);
  color: #fff;
  font-weight: 700;
  transform: translate(-50%, -160%);
  transition: transform var(--t);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ============================================================
   SCROLL PROGRESS + CONNECTIVITY BANNER
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 5500;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    var(--crimson) 0%,
    #8b2bb8 48%,
    var(--blue-500) 100%
  );
  box-shadow:
    0 0 10px rgba(216, 27, 63, 0.35),
    0 0 14px rgba(47, 107, 255, 0.28);
  transition: transform 120ms linear;
  will-change: transform;
}

html[dir="rtl"] .scroll-progress-bar {
  transform-origin: left center;
}

html[data-theme="light"] .scroll-progress-bar {
  box-shadow:
    0 0 8px rgba(200, 16, 46, 0.28),
    0 0 12px rgba(47, 107, 255, 0.22);
}

.connectivity-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 5600;
  transform: translate(-50%, -140%);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--header-bg-scrolled);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms var(--ease), opacity 280ms var(--ease);
}

.connectivity-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.connectivity-banner.is-offline {
  border-color: rgba(200, 16, 46, 0.35);
  color: #e08a96;
}

.connectivity-banner.is-online {
  border-color: rgba(47, 107, 255, 0.35);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar,
  .connectivity-banner {
    transition: none;
  }
}

/* ============================================================
   AMBIENT CINEMATIC BACKGROUND
   ============================================================ */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient .orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(100px);
  opacity: var(--orb-opacity);
  will-change: transform;
  transition: opacity var(--t-theme);
}

.orb-red {
  top: -14vh;
  left: -8vw;
  width: 46vw;
  height: 46vw;
  background: var(--orb-red);
  animation: drift-a 46s ease-in-out infinite;
}

.orb-blue {
  top: 26vh;
  right: -12vw;
  width: 52vw;
  height: 52vw;
  background: var(--orb-blue);
  animation: drift-b 58s ease-in-out infinite;
}

.orb-deep {
  bottom: -18vh;
  left: 18vw;
  width: 56vw;
  height: 56vw;
  background: var(--orb-deep);
  animation: drift-c 68s ease-in-out infinite;
}

.ambient .vignette {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--vignette);
  transition: background var(--t-theme);
}

.ambient .grain {
  position: absolute;
  inset: -50%;
  display: block;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity var(--t-theme);
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-7vw, -6vh, 0) scale(0.95); }
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, -4vh, 0) scale(1.1); }
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.6rem;
  background: var(--loader-bg);
  transition: opacity 620ms var(--ease), visibility 620ms var(--ease), background var(--t-theme);
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 5.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--loader-logo);
  text-transform: uppercase;
  filter: drop-shadow(-3px 0 16px rgba(200, 16, 46, 0.5)) drop-shadow(3px 0 18px rgba(47, 107, 255, 0.42));
  animation: logo-pulse 3.2s ease-in-out infinite;
}

.loader-logo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.9) 50%, transparent 58%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: logo-sweep 2.8s ease-in-out infinite;
}

.loader-bar {
  width: min(340px, 64vw);
  height: 4px;
  border-radius: 999px;
  background: var(--glass-3);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-400) 45%, var(--blue-500));
  box-shadow: 0 0 18px rgba(216, 27, 63, 0.55);
  transition: width 200ms linear;
}

.loader-percent {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.loader.is-complete .loader-logo {
  filter: drop-shadow(-3px 0 22px rgba(216, 27, 63, 0.7)) drop-shadow(3px 0 24px rgba(75, 131, 255, 0.6));
}

@keyframes logo-sweep {
  0% { background-position: 180% 0; }
  55%, 100% { background-position: -80% 0; }
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.94; }
  50% { opacity: 1; }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid transparent;
  transition:
    background var(--t-theme),
    border-color var(--t-theme),
    box-shadow var(--t-theme),
    transform 300ms var(--ease),
    opacity 300ms var(--ease),
    visibility 300ms var(--ease);
  will-change: transform, opacity;
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--line);
  box-shadow: var(--header-shadow);
}

.site-header.header-hidden-at-bottom {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.5), rgba(47, 107, 255, 0.44), transparent);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.site-header.is-scrolled::after {
  opacity: 0.9;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-h);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex-shrink: 1;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--muted);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.04), 0 0 16px rgba(216, 27, 63, 0.05);
  transition:
    color var(--t),
    border-color var(--t),
    background var(--t-theme),
    transform var(--t),
    box-shadow var(--t);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(91, 140, 255, 0.42);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(216, 27, 63, 0.1),
    0 8px 22px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(47, 107, 255, 0.12);
}

.theme-icon {
  position: absolute;
  font-size: 0.95rem;
  line-height: 1;
  unicode-bidi: isolate;
  transition: opacity var(--t), transform var(--t), filter var(--t);
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(-40deg) scale(0.7);
  filter: blur(1px);
}

.theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(40deg) scale(0.7);
  filter: blur(1px);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  filter: none;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: filter var(--t), color var(--t-theme);
}

.brand:hover {
  filter: drop-shadow(-2px 0 10px rgba(216, 27, 63, 0.6)) drop-shadow(2px 0 10px rgba(75, 131, 255, 0.5));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  margin: 0;
  padding: 0;
}

/* Sliding active-section indicator, positioned by JS. */
.nav-links::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  height: 2px;
  width: var(--ind-w, 0px);
  transform: translateX(var(--ind-x, 0px));
  border-radius: 999px;
  background: linear-gradient(90deg, var(--crimson-400), var(--blue-400));
  box-shadow: 0 0 12px rgba(216, 27, 63, 0.55);
  opacity: var(--ind-o, 0);
  transition: transform var(--t-slow), width var(--t-slow), opacity var(--t);
  pointer-events: none;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color var(--t), text-shadow var(--t);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 16px rgba(120, 165, 255, 0.4);
}

.nav-links a.is-active {
  color: var(--text);
}

.nav-links li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2d4b;
  box-shadow: 0 0 0 0 rgba(255, 45, 75, 0.55);
  animation: pulse-dot 1.9s ease-out infinite;
  flex-shrink: 0;
}

.live-platform-chooser {
  margin-top: 0.85rem;
  width: 100%;
}

.live-platform-chooser-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-platform-chooser-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.live-chooser-link {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sound-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--muted);
  transition: color var(--t), border-color var(--t), background var(--t-theme), transform var(--t);
}

.sound-toggle:hover {
  color: var(--text);
  border-color: rgba(75, 131, 255, 0.45);
  transform: translateY(-1px);
}

.sound-toggle svg {
  width: 17px;
  height: 17px;
}

.sound-toggle .icon-off {
  display: none;
}

.sound-toggle[aria-pressed="false"] {
  color: var(--muted-dim);
}

.sound-toggle[aria-pressed="false"] .icon-on {
  display: none;
}

.sound-toggle[aria-pressed="false"] .icon-off {
  display: block;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  height: 40px;
  padding: 0 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface)),
    var(--control-bg);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.04),
    0 0 18px rgba(216, 27, 63, 0.06);
  transition:
    color var(--t),
    border-color var(--t),
    background var(--t-theme),
    transform var(--t),
    box-shadow var(--t);
}

.lang-toggle:hover,
.lang-toggle:focus-visible,
.lang-toggle.is-active {
  border-color: rgba(91, 140, 255, 0.42);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(216, 27, 63, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(47, 107, 255, 0.14);
}

.lang-globe {
  font-size: 0.92rem;
  line-height: 1;
}

img.emoji {
  height: 1.15em;
  width: 1.15em;
  margin: 0 0.06em;
  vertical-align: -0.18em;
  display: inline-block;
  border: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
  pointer-events: none;
}

.lang-globe img.emoji,
.lang-flag img.emoji {
  height: 1.05em;
  width: 1.05em;
  margin: 0;
  vertical-align: -0.12em;
}

.lang-code {
  min-width: 1.7em;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.lang-open {
  overflow: hidden;
}

body.is-lang-switching main,
body.is-lang-switching .site-footer,
body.is-lang-switching .nav-links,
body.is-lang-switching .nav-button,
body.is-lang-switching .lang-code {
  opacity: 0.34;
  transition: opacity 180ms var(--ease);
}

.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 4300;
  background: rgba(2, 4, 10, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease), visibility 240ms var(--ease);
}

.lang-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lang-panel {
  position: fixed;
  z-index: 4301;
  width: min(440px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--lang-panel-bg);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(216, 27, 63, 0.08),
    0 0 48px rgba(47, 107, 255, 0.08),
    inset 0 1px 0 var(--inset-line);
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition: transform 260ms var(--ease), opacity 260ms var(--ease), background var(--t-theme), border-color var(--t-theme);
}

.lang-overlay.is-open .lang-panel {
  transform: none;
  opacity: 1;
}

.lang-panel-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 27, 63, 0.16), transparent 42%),
    radial-gradient(circle at 100% 12%, rgba(47, 107, 255, 0.14), transparent 40%);
  opacity: 0.9;
}

.lang-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 0.65rem;
}

.lang-kicker {
  margin: 0 0 0.35rem;
  color: var(--crimson-400);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lang-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lang-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  transition: border-color var(--t), transform var(--t), background var(--t);
}

.lang-close:hover,
.lang-close:focus-visible {
  border-color: rgba(91, 140, 255, 0.45);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
}

.lang-search-wrap {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 1.15rem 0.85rem;
}

.lang-search-icon {
  position: absolute;
  top: 50%;
  left: calc(1.15rem + 0.9rem);
  width: 16px;
  height: 16px;
  transform: translateY(calc(-50% - 0.1rem));
  color: var(--muted-dim);
  pointer-events: none;
}

html[dir="rtl"] .lang-search-icon {
  left: auto;
  right: calc(1.15rem + 0.9rem);
}

.lang-search {
  width: 100%;
  height: 44px;
  padding: 0 0.95rem 0 2.45rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

html[dir="rtl"] .lang-search {
  padding: 0 2.45rem 0 0.95rem;
}

.lang-search:focus {
  outline: none;
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.lang-list {
  position: relative;
  z-index: 1;
  padding: 0 0.75rem 0.95rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 5px;
}

.lang-empty {
  position: relative;
  z-index: 1;
  margin: 0 1.15rem 1rem;
  color: var(--muted-dim);
  font-size: 0.86rem;
}

.lang-option {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 50px;
  padding: 0.5rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: start;
  cursor: pointer;
  transition:
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.lang-option.is-current {
  background: linear-gradient(90deg, rgba(216, 27, 63, 0.12), rgba(47, 107, 255, 0.08));
  border-color: rgba(91, 140, 255, 0.28);
}

.lang-option.is-current .lang-native {
  color: #fff;
}

.lang-option.is-confirming {
  border-color: rgba(216, 27, 63, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.18), 0 0 24px rgba(216, 27, 63, 0.18);
}

.lang-flag {
  font-size: 1.12rem;
  line-height: 1;
}

.lang-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
  gap: 0.12rem;
}

.lang-native {
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-english {
  font-size: 0.72rem;
  color: var(--muted-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-code-chip {
  color: var(--muted-dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-check {
  opacity: 0;
  color: var(--crimson-400);
  font-weight: 800;
  width: 0.85rem;
}

.lang-option.is-current .lang-check {
  opacity: 1;
}

html[dir="rtl"] img,
html[dir="rtl"] svg,
html[dir="rtl"] .photo-card,
html[dir="rtl"] .loader-logo,
html[dir="rtl"] .music-artwork-link,
html[dir="rtl"] .trending-art,
html[dir="rtl"] .brand {
  transform: none;
}

@media (max-width: 720px) {
  .lang-overlay {
    background: rgba(2, 4, 10, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .lang-panel {
    position: relative;
    width: 100%;
    max-height: min(88vh, 720px);
    border-radius: 22px 22px 0 0;
    transform: translateY(28px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .lang-overlay.is-open .lang-panel {
    transform: none;
  }

  .lang-option {
    min-height: 54px;
  }
}

.loader-status {
  margin: 0;
  color: var(--muted-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.loader-bar,
.shop-bar {
  display: flex;
  justify-content: flex-start;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.88rem 1.55rem;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-align: center;
  text-wrap: balance;
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t),
    background var(--t),
    color var(--t);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button-primary {
  background: linear-gradient(135deg, var(--crimson-600), var(--crimson) 58%, #9d0c24);
  color: #fff;
  box-shadow: 0 14px 32px rgba(200, 16, 46, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 20px 46px rgba(216, 27, 63, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.button-secondary {
  background: var(--control-bg);
  border-color: var(--line-strong);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 16px 36px rgba(47, 107, 255, 0.2), inset 0 0 0 1px rgba(91, 140, 255, 0.14);
}

.small {
  padding: 0.68rem 1.15rem;
  font-size: 0.82rem;
}

.music-play {
  min-width: 5.4rem;
  padding: 0.55rem 1.2rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 26%, rgba(200, 16, 46, 0.26), transparent 44%),
    radial-gradient(circle at 84% 18%, rgba(30, 92, 255, 0.22), transparent 42%),
    linear-gradient(160deg, rgba(4, 6, 12, 0.35), rgba(4, 6, 12, 0.82));
  pointer-events: none;
  transition: opacity var(--t-theme);
}

html[data-theme="light"] .hero-bg {
  background:
    radial-gradient(circle at 16% 26%, rgba(200, 16, 46, 0.12), transparent 44%),
    radial-gradient(circle at 84% 18%, rgba(47, 107, 255, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(238, 241, 246, 0.2), rgba(226, 232, 242, 0.55));
}

/* Pointer-follow lighting, desktop only (enabled by JS). */
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.13), rgba(216, 27, 63, 0.08) 42%, transparent 68%);
  transform: translate3d(var(--mx, 50vw), var(--my, 40vh), 0);
  opacity: 0;
  transition: opacity 500ms var(--ease);
  pointer-events: none;
  will-change: transform;
}

.hero.has-pointer .hero-glow {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--crimson-400);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8.6vw, 7.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  background: linear-gradient(178deg, #ffffff 8%, #c8d3e4 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(-4px 0 22px rgba(200, 16, 46, 0.38)) drop-shadow(4px 0 24px rgba(47, 107, 255, 0.32));
}

.tagline {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 560px;
  margin: 1.1rem 0 0;
  color: rgba(243, 246, 251, 0.7);
  font-size: 1.04rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.photo-card {
  position: relative;
  width: min(100%, 452px);
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(150deg, var(--glass-3), var(--glass));
  border: 1px solid var(--glass-strong);
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-slow), box-shadow var(--t-slow), background var(--t-theme), border-color var(--t-theme);
}

/* Red/blue rim light around the portrait frame. */
.photo-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 33px;
  padding: 1px;
  background: linear-gradient(150deg, rgba(216, 27, 63, 0.55), transparent 38%, transparent 62%, rgba(91, 140, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  pointer-events: none;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 96px rgba(0, 0, 0, 0.62), 0 0 44px rgba(47, 107, 255, 0.12);
}

.photo-placeholder,
.portrait-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--navy-800);
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.portrait-placeholder {
  width: min(100%, 440px);
  aspect-ratio: 4 / 5;
  border-radius: 26px;
}

.photo-placeholder img,
.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: media-in 700ms var(--ease) both;
}

.photo-placeholder img {
  object-position: center 42%;
}

.portrait-placeholder img {
  object-position: center 38%;
}

@keyframes media-in {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* Hero entrance — plays behind the loader so content is never JS-gated. */
.hero-copy > *,
.hero-visual {
  animation: hero-in 760ms var(--ease) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 180ms; }
.hero-copy > *:nth-child(2) { animation-delay: 280ms; }
.hero-copy > *:nth-child(3) { animation-delay: 370ms; }
.hero-copy > *:nth-child(4) { animation-delay: 450ms; }
.hero-copy > *:nth-child(5) { animation-delay: 530ms; }
.hero-visual { animation-delay: 400ms; animation-duration: 900ms; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  position: relative;
  padding: clamp(76px, 8.4vw, 128px) 0;
}

/* Thin lit divider replaces large empty gaps between sections. */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max-width), 92%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--section-rule) 16%,
    rgba(216, 27, 63, 0.34) 46%,
    rgba(47, 107, 255, 0.3) 62%,
    transparent
  );
  pointer-events: none;
}

.alt-section {
  background: var(--alt-section);
  transition: background var(--t-theme);
}

.section-heading {
  margin-bottom: 2.4rem;
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.live-grid,
.music-grid {
  display: grid;
  gap: 22px;
}

/* ============================================================
   LIVE
   ============================================================ */

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

.live-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t-theme);
}

.live-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(47, 107, 255, 0.1);
}

.live-card[data-live="true"] {
  border-color: rgba(255, 45, 75, 0.34);
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.1), rgba(255, 255, 255, 0.01));
  box-shadow: 0 26px 62px rgba(200, 16, 46, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.live-card[data-live="true"]:hover {
  box-shadow: 0 32px 70px rgba(200, 16, 46, 0.24);
}

.live-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 1rem;
}

.platform-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 28px;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--t), background var(--t), border-color var(--t);
}

.status-text {
  display: inline;
  line-height: 1;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.status.online {
  background: rgba(255, 45, 75, 0.13);
  border-color: rgba(255, 45, 75, 0.3);
  color: #ff6076;
}

.status.online .status-dot {
  animation: pulse-dot 1.9s ease-out infinite;
}

.status.offline {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  color: var(--muted);
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 75, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 45, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 75, 0); }
}

/* Push the CTA down so buttons line up across cards with different copy lengths. */
.live-card p {
  flex: 1;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.live-note {
  margin: 2.4rem auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

/* ============================================================
   MUSIC
   ============================================================ */

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

.music-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 18px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t-theme);
}

.music-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(216, 27, 63, 0.1);
}

.music-artwork-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.music-artwork-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(3, 5, 11, 0.5));
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.music-card:hover .music-artwork-link::after {
  opacity: 1;
}

.music-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--navy-800);
  transition: transform var(--t-slow);
  animation: media-in 600ms var(--ease) both;
}

.music-card:hover img {
  transform: scale(1.07);
}

.music-details h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.music-details p {
  margin: 0 0 1rem;
  color: var(--muted-dim);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 0.88rem 1.2rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}

.platform-link:hover,
.platform-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(91, 140, 255, 0.45);
  box-shadow: 0 16px 36px rgba(47, 107, 255, 0.18);
}

.platform-link .platform-icon {
  width: 17px;
  height: 17px;
  margin-right: 0.6rem;
  flex-shrink: 0;
  color: var(--muted);
  transition: color var(--t), transform var(--t);
}

.platform-link:hover .platform-icon,
.platform-link:focus-visible .platform-icon {
  color: var(--text);
  transform: scale(1.06);
}

/* ============================================================
   MOST TRENDING SONGS
   ============================================================ */

.eyebrow--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.eyebrow-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.trending-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: trending;
}

.trending-item {
  min-width: 0;
}

.trending-link {
  display: grid;
  grid-template-columns: 2.6rem 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-bg);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}

.trending-link:hover,
.trending-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.4);
  background: linear-gradient(180deg, rgba(216, 27, 63, 0.09), rgba(255, 255, 255, 0.012));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.46), 0 0 26px rgba(216, 27, 63, 0.1);
}

.trending-rank {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.14));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: filter var(--t);
}

/* The top three ranks pick up the brand gradient. */
.trending-item:nth-child(1) .trending-rank,
.trending-item:nth-child(2) .trending-rank,
.trending-item:nth-child(3) .trending-rank {
  background: linear-gradient(180deg, var(--crimson-400), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.trending-link:hover .trending-rank {
  filter: drop-shadow(0 0 12px rgba(216, 27, 63, 0.5));
}

.trending-art {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--navy-800);
}

.trending-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
  animation: media-in 500ms var(--ease) both;
}

.trending-link:hover .trending-art img {
  transform: scale(1.08);
}

.trending-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.trending-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-artist {
  font-size: 0.8rem;
  color: var(--muted-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-play {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--muted-dim);
  transition: color var(--t), transform var(--t);
}

.trending-link:hover .trending-play,
.trending-link:focus-visible .trending-play {
  color: var(--crimson-400);
  transform: scale(1.1);
}

/* ============================================================
   POLITICAL VIEWS
   ============================================================ */

.political-card {
  max-width: 720px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.political-intro {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.political-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.15rem;
}

.political-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 1.25rem;
}

.political-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-400), var(--blue-400));
  opacity: 0.75;
}

.political-list li::after {
  content: "";
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.political-list li:nth-child(1)::after { width: 38%; }
.political-list li:nth-child(2)::after { width: 26%; }
.political-list li:nth-child(3)::after { width: 44%; }
.political-list li:nth-child(4)::after { width: 20%; }

/* ============================================================
   SHOP
   ============================================================ */

.shop-card {
  max-width: 660px;
  padding: clamp(1.7rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.shop-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.shop-bar-fill {
  position: relative;
  display: block;
  width: 1%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-400) 46%, var(--blue-500));
  box-shadow: 0 0 20px rgba(216, 27, 63, 0.5);
  transition: width 1.15s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Light sweep so the bar reads as actively working. */
.shop-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.42) 50%, transparent 62%);
  background-size: 240% 100%;
  animation: shop-sweep 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shop-sweep {
  0% { background-position: 160% 0; }
  60%, 100% { background-position: -70% 0; }
}

.shop-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.shop-percent {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.shop-status {
  margin: 0;
  color: var(--muted-dim);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-align: right;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-image {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Ambient light behind the portrait, not on top of it. */
.about-image::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(ellipse at 40% 40%, rgba(200, 16, 46, 0.2), transparent 62%),
    radial-gradient(ellipse at 70% 70%, rgba(47, 107, 255, 0.16), transparent 60%);
  filter: blur(34px);
  z-index: -1;
  pointer-events: none;
}

.about-copy {
  max-width: 620px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy p:first-of-type {
  color: rgba(243, 246, 251, 0.86);
  font-size: 1.14rem;
}

/* ============================================================
   SOCIAL / CONNECT
   ============================================================ */

.social-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* Each feed sits inside its own framed panel. */
.social-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}

.social-column:hover {
  border-color: var(--line-strong);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 68px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}

.social-link:hover,
.social-link:focus-visible {
  background: linear-gradient(180deg, rgba(216, 27, 63, 0.14), rgba(47, 107, 255, 0.06));
  box-shadow: inset 0 -1px 0 rgba(91, 140, 255, 0.32);
}

.social-link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform var(--t);
}

.social-link:hover .social-link-icon {
  transform: scale(1.12);
}

/* Fixed height keeps the three columns level; each one scrolls its own overflow. */
.social-preview {
  height: clamp(520px, 68vh, 860px);
  padding: 14px 8px 14px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.social-preview::-webkit-scrollbar {
  width: 6px;
}

.social-preview::-webkit-scrollbar-track {
  background: transparent;
}

.social-preview::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--scrollbar-thumb);
}

.social-preview::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.social-preview-grid {
  display: grid;
  gap: 9px;
}

.social-preview-grid--instagram,
.social-preview-grid--reels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.social-preview-label {
  margin: 1.1rem 0 0.6rem;
  color: var(--muted-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-preview-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), opacity var(--t);
}

.social-preview-card.is-new,
.social-preview-tweet.is-new {
  animation: social-new-in 420ms var(--ease) both;
}

@keyframes social-new-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.social-preview-card:hover,
.social-preview-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.social-preview-grid--tiktok .social-preview-card,
.social-preview-grid--reels .social-preview-card {
  aspect-ratio: 9 / 16;
}

.social-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: media-in 500ms var(--ease) both;
}

.social-preview-card--reel::after {
  content: "▶";
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  color: #fff;
  background: rgba(3, 5, 11, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.social-preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  text-align: center;
  color: var(--muted-dim);
  font-size: 0.8rem;
  line-height: 1.4;
}

.social-preview-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.social-preview-tweet {
  display: block;
  flex-shrink: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}

.social-preview-tweet:hover,
.social-preview-tweet:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(91, 140, 255, 0.36);
  background: rgba(255, 255, 255, 0.032);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.social-preview-tweet p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(243, 246, 251, 0.88);
}

.social-preview-tweet-media {
  position: relative;
  margin-top: 0.65rem;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.tweet-head + .social-preview-tweet-media {
  margin-top: 0;
}

.social-preview-tweet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: media-in 500ms var(--ease) both;
}

.social-preview-tweet-media--video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
  background: rgba(3, 5, 11, 0.3);
  pointer-events: none;
}

.tweet-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.tweet-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.tweet-avatar--empty {
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.tweet-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.tweet-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tweet-handle {
  font-size: 0.76rem;
  color: var(--muted-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tweet-logo {
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted-dim);
}

.social-preview-empty {
  margin: 0;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  color: var(--muted-dim);
  font-size: 0.88rem;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  padding: 2.4rem 0 1.2rem;
  transition: background var(--t-theme), border-color var(--t-theme);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max-width), 92%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 27, 63, 0.32), rgba(47, 107, 255, 0.28), transparent);
}

.footer-inner,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-inner {
  padding-bottom: 1.5rem;
}

.footer-brand {
  font-size: 1.05rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a,
.footer-social a {
  transition: color var(--t), text-shadow var(--t);
}

.footer-links a:hover,
.footer-social a:hover,
.footer-links a:focus-visible,
.footer-social a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 14px rgba(120, 165, 255, 0.35);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  color: var(--muted-dim);
  font-size: 0.86rem;
}

/* ============================================================
   MOBILE NAV TOGGLE
   ============================================================ */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  padding: 0.68rem 0.62rem;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
  transition: transform var(--t), opacity var(--t);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   SCROLL REVEALS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease), filter 780ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.live-grid .reveal:nth-child(2),
.music-grid .reveal:nth-child(2),
.social-columns .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.live-grid .reveal:nth-child(3),
.music-grid .reveal:nth-child(3),
.social-columns .reveal:nth-child(3) {
  transition-delay: 180ms;
}

.live-grid .reveal:nth-child(4) {
  transition-delay: 270ms;
}

.music-grid .reveal:nth-child(4) { transition-delay: 90ms; }
.music-grid .reveal:nth-child(5) { transition-delay: 180ms; }
.music-grid .reveal:nth-child(6) { transition-delay: 270ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .music-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-columns {
    gap: 16px;
  }
}

@media (max-width: 1000px) {
  .hero-inner,
  .about-grid,
  .trending-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 84px;
    gap: 40px;
  }

  .about-grid {
    gap: 40px;
  }

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

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

  .social-preview {
    height: clamp(460px, 62vh, 640px);
  }

  .social-preview-grid--instagram,
  .social-preview-grid--reels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

/* The full link set needs more room, so the nav collapses before the page layout does. */
@media (max-width: 940px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--header-shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  /* The sliding indicator only makes sense on the horizontal nav. */
  .nav-links::after {
    display: none;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .nav-links a.is-active {
    color: var(--crimson-400);
  }

  .nav-actions {
    justify-content: space-between;
  }

  .nav-button {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .live-grid,
  .music-grid {
    grid-template-columns: 1fr;
  }

  .music-card {
    grid-template-columns: 104px 1fr;
  }

  .social-preview-grid--instagram,
  .social-preview-grid--reels,
  .social-preview-grid--tiktok {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-link {
    min-width: 100%;
  }

  .trending-link {
    grid-template-columns: 2rem 46px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 0.6rem 0.75rem;
  }

  .trending-art {
    width: 46px;
    height: 46px;
  }

  .trending-rank {
    font-size: 1.25rem;
  }

  .trending-play {
    width: 26px;
    height: 26px;
  }

  .shop-readout {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .shop-status {
    text-align: left;
  }

  .footer-inner,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .social-preview-grid--tiktok {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .music-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Touch devices: never depend on hover. */
@media (hover: none) {
  .hero-glow {
    display: none;
  }
}

/* ============================================================
   PAGE END SENTINEL + LIGHT THEME POLISH
   ============================================================ */

#page-end-sentinel {
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

html[data-theme="light"] .lang-search,
html[data-theme="light"] .lang-close,
html[data-theme="light"] .lang-option,
html[data-theme="light"] .status.offline,
html[data-theme="light"] .social-column,
html[data-theme="light"] .trending-item,
html[data-theme="light"] .shop-panel,
html[data-theme="light"] .about-copy,
html[data-theme="light"] .political-card,
html[data-theme="light"] .social-preview-card,
html[data-theme="light"] .social-preview-tweet {
  border-color: var(--line);
}

html[data-theme="light"] .lang-search {
  background: var(--glass-2);
  color: var(--text);
}

html[data-theme="light"] .lang-option:hover,
html[data-theme="light"] .lang-option:focus-visible {
  background: rgba(47, 107, 255, 0.08);
}

html[data-theme="light"] .lang-option.is-current {
  background: rgba(200, 16, 46, 0.08);
}

html[data-theme="light"] .photo-card:hover {
  box-shadow: var(--shadow-lg), 0 0 36px rgba(47, 107, 255, 0.12);
}

html[data-theme="light"] .brand:hover {
  filter: drop-shadow(-2px 0 8px rgba(200, 16, 46, 0.35)) drop-shadow(2px 0 8px rgba(47, 107, 255, 0.3));
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a:focus-visible {
  text-shadow: 0 0 12px rgba(47, 107, 255, 0.25);
}

html[data-theme="light"] .music-artwork-link::after {
  background: linear-gradient(180deg, transparent 52%, rgba(16, 24, 42, 0.28));
}

html[data-theme="light"] .section::before {
  opacity: 0.9;
}

html[data-theme="light"] .live-card[data-live="true"] {
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.08), rgba(255, 255, 255, 0.75));
}

html[data-theme="light"] .lang-overlay {
  background: rgba(226, 232, 242, 0.55);
}

@media (max-width: 720px) {
  html[data-theme="light"] .lang-overlay {
    background: rgba(226, 232, 242, 0.72);
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero-copy > *,
  .hero-visual {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .ambient .orb {
    animation: none;
  }

  .hero-glow {
    display: none;
  }
}
