/* Viper glass theme for Karaoke Eternal — injected by the Karaoke-Glass nginx proxy.
   Matches Stephen's Homepage (contour background, frosted bars/cards, Manrope).
   Mostly overrides Karaoke Eternal's own CSS variables so it survives app updates. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --hue-blue:205; --hue-pink:258;
  --acc:#7dd3fc; --acc2:#a78bfa;
  --g-card:linear-gradient(160deg,rgba(30,41,59,.62) 0%,rgba(15,23,42,.46) 100%);
  --g-edge:rgba(148,163,184,.14); --g-edge-hi:rgba(255,255,255,.07);

  --font-family:Manrope,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-family-custom:Manrope,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-weight-bold:700;

  --bg-color:#111318;
  --text-color:rgba(241,245,249,.94);
  --link-color:#7dd3fc;
  --mark-bg-color:rgba(125,211,252,.28);
  --border-radius:12px;
  --box-shadow:inset 0 1px 0 var(--g-edge-hi),0 10px 28px rgba(2,6,23,.35);
  --drop-shadow-filter:drop-shadow(0 6px 16px rgba(2,6,23,.55));
  --focus-outline:2px solid rgba(125,211,252,.55);

  --input-color:rgba(241,245,249,.94);
  --input-placeholder-color:rgba(203,213,225,.42);
  --input-bg-color:rgba(15,23,42,.72);
  --input-outline-color:rgba(125,211,252,.55);

  --btn-bg-color:rgba(56,189,248,.18);
  --btn-active-bg-color:#7dd3fc;
  --btn-active-filter:drop-shadow(0 0 8px rgba(125,211,252,.45));
  --btn-activate-filter:drop-shadow(0 0 10px rgba(125,211,252,.55)) drop-shadow(0 0 18px rgba(99,102,241,.35));
  --btn-danger-bg-color:#f0506e;
  --btn-primary-color:#fff;
  --btn-primary-bg-color:linear-gradient(135deg,rgba(56,189,248,.85),rgba(99,102,241,.85));

  --chrome-bg-color:rgba(15,23,42,.62);
  --chrome-border-color:rgba(148,163,184,.14);
  --header-notice-color:#e0f2fe;
  --header-notice-bg-color:rgba(56,189,248,.16);

  --artist-folder-color:#e0f2fe;
  --artist-folder-bg-color:rgba(56,189,248,.22);
  --artist-folder-starred-color:#0b1220;
  --artist-folder-starred-bg-color:#7dd3fc;
  --artist-name-color:rgba(241,245,249,.92);
  --song-item-btn-bg-color:rgba(56,189,248,.14);
  --song-item-btn-active-color:#0b1220;
  --alpha-picker-color:rgba(125,211,252,.55);
  --queued-item-color:#c4b5fd;
  --panel-bg-color:rgba(15,23,42,.72);

  --up-next-bg-color-from:rgba(56,189,248,.22);
  --up-next-bg-color-to:rgba(99,102,241,.14);
  --up-now-bg-color-from:rgba(62,207,142,.26);
  --up-now-bg-color-to:rgba(56,189,248,.16);

  --transport-btn-bg-color:rgba(56,189,248,.18);
  --transport-volume-track-color:rgba(255,255,255,.10);
  --transport-volume-track-active-color:#7dd3fc;

  color-scheme:dark;
}

html{background:#111318 !important}
body{background:transparent !important;font-family:var(--font-family) !important;letter-spacing:.01em}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:url('/viper-glass/homepage-bg-contour.jpg') center center/cover no-repeat,#111318}
html,body,*{scrollbar-color:rgba(148,163,184,.35) transparent}
::selection{background:rgba(125,211,252,.28)}

/* Header and footer bars: frosted like Homepage's tab row, with the accent line */
.bg-blur{
  background:rgba(15,23,42,.62) !important;
  backdrop-filter:blur(18px) saturate(140%) !important;-webkit-backdrop-filter:blur(18px) saturate(140%) !important;
  border-color:var(--g-edge) !important;
}
.bg-blur:first-child{border-bottom:1px solid var(--g-edge);box-shadow:inset 0 -1px 0 rgba(255,255,255,.03),0 8px 24px rgba(2,6,23,.30)}
.bg-blur:first-child::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,var(--acc),var(--acc2));opacity:.75;pointer-events:none}
.bg-blur:not(:first-child){border-top:1px solid var(--g-edge);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 -8px 24px rgba(2,6,23,.30)}

/* Inputs */
input,select,textarea{
  border:1px solid var(--g-edge) !important;border-radius:9px !important;
  font-family:var(--font-family) !important;
}
input:focus,select:focus,textarea:focus{outline:none !important;border-color:rgba(125,211,252,.55) !important;box-shadow:0 0 0 .2rem rgba(125,211,252,.16) !important}

/* Buttons */
button{font-family:var(--font-family) !important;font-weight:600}

/* Modals / panels */
[role="dialog"],dialog{
  background:linear-gradient(160deg,rgba(30,41,59,.92),rgba(15,23,42,.88)) !important;
  border:1px solid var(--g-edge) !important;border-radius:14px !important;color:var(--text-color);
  box-shadow:inset 0 1px 0 var(--g-edge-hi),0 16px 40px rgba(2,6,23,.5) !important;
  backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);
}
dialog::backdrop{background:rgba(3,7,18,.6)}

/* Account/admin panels (Rooms, Users, Preferences, My Account) as frosted cards.
   Structural :has() selectors first so they survive app updates; hashed classes as backup. */
div:has(> div > h1), .WUYY8MZhwwhVekAlX5_d{
  background:var(--g-card) !important;
  border:1px solid var(--g-edge) !important;border-radius:14px !important;
  box-shadow:inset 0 1px 0 var(--g-edge-hi),0 10px 28px rgba(2,6,23,.35) !important;
  backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);
}
div:has(> h1), .eP0BAX5ayTg1WGhcfd7y{
  background:rgba(255,255,255,.025) !important;background-image:none !important;
  border-bottom:1px solid var(--g-edge);color:rgba(241,245,249,.96) !important;
}
div:has(> h1) > h1{letter-spacing:.06em;font-weight:800}

/* Primary buttons (Create Room, Create User, Sign In, Save…) */
.u4HHBIWYgUhQaG3hu6kB{
  background:linear-gradient(135deg,rgba(56,189,248,.85),rgba(99,102,241,.85)) !important;
  border:1px solid rgba(125,211,252,.5) !important;color:#fff !important;text-shadow:none !important;border-radius:9px !important;
}
.u4HHBIWYgUhQaG3hu6kB:hover{box-shadow:0 0 0 1px rgba(125,211,252,.25),0 6px 20px rgba(56,189,248,.25) !important;filter:brightness(1.08)}

/* Expanded artist song list */
.Hk5Oiz4LTn0TQU1HJ_4r{background:rgba(15,23,42,.55) !important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}

/* Selects in panel headers (Open/Online filters) */
select{background-color:rgba(15,23,42,.72) !important;color:var(--text-color) !important}
/* 2026-11-17: header search/star icons + placeholder use --btn-bg-color (18% tint here) -> nearly invisible */
.bg-blur{--btn-bg-color:rgba(125,211,252,.85)}
.bg-blur input::placeholder{color:rgba(203,213,225,.55)!important}
