/* mona-sans-vietnamese-wght-normal */
@font-face {
  font-family: 'Mona Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/mona-sans-vietnamese-wght-normal_ec51d92c.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* mona-sans-latin-ext-wght-normal */
@font-face {
  font-family: 'Mona Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/mona-sans-latin-ext-wght-normal_6a4a4d19.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* mona-sans-latin-wght-normal */
@font-face {
  font-family: 'Mona Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/mona-sans-latin-wght-normal_0fcf8f4c.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* space-mono-vietnamese-400-normal */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/space-mono-vietnamese-400-normal_4d3a3d10.woff2) format('woff2'), url(/assets/space-mono-vietnamese-400-normal_743cca7f.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* space-mono-latin-ext-400-normal */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/space-mono-latin-ext-400-normal_d32db5b6.woff2) format('woff2'), url(/assets/space-mono-latin-ext-400-normal_f870923f.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* space-mono-latin-400-normal */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/space-mono-latin-400-normal_118384ad.woff2) format('woff2'), url(/assets/space-mono-latin-400-normal_3fdc3969.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #4a29c2;
}

@property --accent-soft {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(74, 41, 194, 0.22);
}

@property --accent-text {
  syntax: '<color>';
  inherits: true;
  initial-value: #9b82f3;
}

@property --accent-bright {
  syntax: '<color>';
  inherits: true;
  initial-value: #6d4aef;
}

@property --accent-glow {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(109, 74, 239, 0.52);
}

@property --accent-wash {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(74, 41, 194, 0.14);
}

:root {
  --bg: #030003;
  --panel: #070007;
  --panel-2: #1c2130;
  --border: rgba(33, 19, 41, 0.527);
  --text: #ffffff;
  --text-dim: #9aa2b5;
  --accent: #4a29c2;
  --accent-soft: rgba(74, 41, 194, 0.22);
  --accent-text: #9b82f3;
  --accent-bright: #6d4aef;
  --accent-glow: rgba(109, 74, 239, 0.52);
  --accent-wash: rgba(74, 41, 194, 0.14);
  --danger: #ff7c8a;
  --radius: 10px;
  --player-height: 92px;
}

* {
  box-sizing: border-box;
}

.xe_reduced-motion,
.xe_reduced-motion * {
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}

html,
body,
#root {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Mona Sans Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  user-select: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

a:not([class]) {
  color: var(--accent-text);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, opacity 120ms ease;
}

a:not([class]):hover {
  border-bottom-color: currentColor;
}

a:not([class]):focus-visible {
  outline: none;
  border-bottom-color: currentColor;
  opacity: 0.85;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--panel-2);
  border-radius: 99px;
  border: 2px solid var(--bg);
  cursor: grab;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a3145;
}

::-webkit-scrollbar-thumb:active {
  cursor: grabbing;
}

.xe_explicit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  border-radius: 3px;
  background: var(--text-dim);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

@keyframes xe_slide-up-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

img {
  -webkit-user-drag: none;
}
:root[data-theme='adaptive'] {
  --bg: color-mix(in srgb, #05070d 88%, var(--accent) 12%);
  --panel: color-mix(in srgb, #0a0d15 85%, var(--accent) 15%);
  --panel-2: color-mix(in srgb, #171d2a 74%, var(--accent) 26%);
  --border: color-mix(in srgb, #3c4658 62%, var(--accent) 38%);
  --text: #ffffff;
  --text-dim: color-mix(in srgb, #b7c0d1 76%, var(--accent) 24%);
  --danger: #ff7c8a;
}

:root[data-theme='adaptive'] .xe_xebrine {
  --bg: color-mix(in srgb, #05070d 88%, var(--accent) 12%);
  --panel: color-mix(in srgb, #0a0d15 85%, var(--accent) 15%);
  --panel-2: color-mix(in srgb, #171d2a 74%, var(--accent) 26%);
  --border: color-mix(in srgb, #3c4658 62%, var(--accent) 38%);
  --text: #ffffff;
  --text-dim: color-mix(in srgb, #b7c0d1 76%, var(--accent) 24%);
  --danger: #ff7c8a;
}

:root[data-theme='dim'] {
  --bg: #121212;
  --panel: #1a1a1a;
  --panel-2: #1f1f1f;
  --border: #333333;
  --text: #ffffff;
  --text-dim: #d0d0d0;
  --danger: #e05a5a;
}

:root[data-theme='purple'] {
  --bg: #05000b;
  --panel: #0f0a1a;
  --panel-2: #180a28;
  --border: #3a1a60;
  --text: #ffffff;
  --text-dim: #c8c0dc;
  --danger: #ff5c5c;
}

:root[data-theme='lights-out'] {
  --bg: #000000;
  --panel: #0b0b0b;
  --panel-2: #111111;
  --border: #222222;
  --text: #f1f1f1;
  --text-dim: #cfcfcf;
  --danger: #ff5c5c;
}

:root[data-theme='fullylo'] {
  --bg: #000000;
  --panel: #000000;
  --panel-2: #030202;
  --border: #222222;
  --text: #f1f1f1;
  --text-dim: #cfcfcf;
  --danger: #ff5c5c;
}

:root[data-theme='high-contrast'] {
  --bg: #000000;
  --panel: #000000;
  --panel-2: #000000;
  --border: #ffffff;
  --text: #ffffff;
  --text-dim: #ffffff;
  --danger: #ff0000;
}

:root[data-theme='light'] {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --panel-2: #f0f0f0;
  --border: #dddddd;
  --text: #111111;
  --text-dim: #4a4a4a;
  --danger: #d9534f;
}

:root[data-theme='red'] {
  --bg: #150000;
  --panel: #200000;
  --panel-2: #2a0000;
  --border: #440000;
  --text: #ffffff;
  --text-dim: #d9a9a9;
  --danger: #ff5c5c;
}

:root[data-theme='neon-purple'] {
  --bg: #0a0011;
  --panel: #1b0033;
  --panel-2: #2d0055;
  --border: #4c0080;
  --text: #ffffff;
  --text-dim: #d6a0ff;
  --danger: #ff5fbd;
}

:root[data-theme='neon-blue'] {
  --bg: #000511;
  --panel: #00152b;
  --panel-2: #001f3d;
  --border: #003366;
  --text: #ffffff;
  --text-dim: #a0c8ff;
  --danger: #ff5577;
}

:root[data-theme='green'] {
  --bg: #00140e;
  --panel: #002018;
  --panel-2: #002d22;
  --border: #004d3a;
  --text: #ffffff;
  --text-dim: #a2c4b0;
  --danger: #ff5c5c;
}

:root[data-theme='adaptive'] .xe_main {
  background: radial-gradient(ellipse 60% 48% at 18% -8%, var(--accent-wash), transparent 68%), var(--bg);
}
.xe_search-input {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 7px 12px;
  width: 240px;
  outline: none;
}

.xe_search-input:focus {
  border-color: var(--accent-bright);
}

.xe_search-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.xe_search-field svg {
  position: absolute;
  left: 10px;
  color: var(--text-dim);
  pointer-events: none;
}

.xe_search-field .xe_search-input {
  padding-left: 30px;
}

.xe_floating-input {
  --xe-input-surface: color-mix(in srgb, #050505 86%, var(--xe-active-accent, var(--accent)) 14%);
  --xe-input-border: color-mix(in srgb, #292929 88%, var(--xe-active-accent, var(--accent)) 12%);
  --xe-input-border-hover: color-mix(in srgb, #444 84%, var(--xe-active-accent, var(--accent)) 16%);
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 7px;
}

.xe_floating-input__field {
  position: relative;
  display: block;
}

.xe_floating-input__control {
  display: block;
  width: 100%;
  height: 54px;
  padding: 20px 13px 6px;
  border: 1px solid var(--xe-input-border);
  border-radius: 8px;
  outline: none;
  background: var(--xe-input-surface);
  color: #f5f5f5;
  caret-color: #fff;
  font: inherit;
  transition: background-color 600ms ease, border-color 120ms ease;
}

.xe_floating-input__control:hover:not(:disabled) {
  border-color: var(--xe-input-border-hover);
}

.xe_floating-input__control:focus {
  border-color: color-mix(in srgb, #fff 76%, var(--xe-active-accent, var(--accent)) 24%);
}

.xe_floating-input__control::placeholder {
  color: transparent;
  transition: color 120ms ease;
}

.xe_floating-input__control:focus::placeholder {
  color: #6f6f6f;
}

.xe_floating-input__label {
  position: absolute;
  top: 50%;
  left: 14px;
  overflow: hidden;
  max-width: calc(100% - 28px);
  color: #8f8f8f;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  transform-origin: left top;
  transition: color 120ms ease, font-size 120ms ease, top 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.xe_floating-input__control:focus + .xe_floating-input__label,
.xe_floating-input__control:not(:placeholder-shown) + .xe_floating-input__label,
.xe_floating-input__control:-webkit-autofill + .xe_floating-input__label {
  top: 10px;
  color: #b8b8b8;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  transform: none;
}

.xe_floating-input__control:focus + .xe_floating-input__label {
  color: #fff;
}

.xe_floating-input__control:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.xe_floating-input__control:-webkit-autofill,
.xe_floating-input__control:-webkit-autofill:hover,
.xe_floating-input__control:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f5f5;
  box-shadow: 0 0 0 1000px var(--xe-input-surface) inset;
}

.xe_floating-input__message {
  padding: 0 2px;
  color: #8f8f8f;
  font-size: 11px;
  line-height: 1.35;
}

.xe_floating-input--error .xe_floating-input__control {
  border-color: #ff6262;
}

.xe_floating-input--error .xe_floating-input__label,
.xe_floating-input--error .xe_floating-input__message {
  color: #ff7a7a;
}

.xe_sort-select {
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5 12 15.5 18 9.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 7px 30px 7px 12px;
  outline: none;
  cursor: pointer;
}

.xe_sort-select:hover {
  background-color: var(--panel-2);
}

.xe_sort-select:focus {
  border-color: var(--accent-bright);
}

.xe_sort-control {
  display: inline-flex;
  gap: 4px;
}

.xe_sort-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
}

.xe_sort-direction:hover {
  background: var(--panel-2);
  color: var(--text);
}

.xe_sort-direction:focus-visible {
  outline: none;
  border-color: var(--accent-bright);
}

.xe_btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 14px;
  color: var(--text);
  transition: background 120ms ease;
}

.xe_btn:hover:not(:disabled) {
  background: #232a3d;
}

.xe_btn--accent {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  font-weight: 650;
}

.xe_btn--accent:hover:not(:disabled) {
  background: #5b39d9;
}

.xe_btn--quiet {
  background: transparent;
  color: var(--text-dim);
}

.xe_btn--small {
  padding: 3px 10px;
  font-size: 12px;
}

.xe_btn--back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.xe_btn--back:hover:not(:disabled) {
  color: var(--text);
}

.xe_btn--armed {
  background: color-mix(in srgb, var(--danger) 28%, transparent);
  border-color: var(--danger);
  color: var(--text);
}

.xe_btn--armed:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 38%, transparent);
  border-color: var(--danger);
  color: var(--text);
}

.xe_mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

.xe_mini-btn:hover {
  background: var(--panel-2);
  color: var(--text);
}

.xe_icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 120ms ease, background 120ms ease;
}

.xe_icon-btn:hover:not(:disabled) {
  color: var(--text);
  background: var(--panel-2);
}

.xe_icon-btn--primary {
  width: 40px;
  height: 40px;
  background: var(--text);
  color: var(--bg);
}

.xe_icon-btn--primary:hover:not(:disabled) {
  background: #fff;
  color: var(--bg);
}

.xe_icon-btn--active {
  color: var(--accent-text);
}

.xe_automix-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.xe_automix-pill svg {
  flex-shrink: 0;
}

.xe_automix-pill__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.xe_automix-pill:hover {
  background: var(--panel-2);
}

.xe_automix-pill--on {
  color: var(--text);
  border-color: var(--accent);
}

.xe_automix-pill--green {
  color: #3ddc84;
  border-color: #3ddc84;
}

.xe_automix-pill--orange {
  color: #f5a623;
  border-color: #f5a623;
}

.xe_automix-pill--red {
  color: #f5524a;
  border-color: #f5524a;
}

.xe_automix-pill--busy {
  animation: xe_automix-pulse 900ms ease-in-out infinite;
}

.xe_automix-pill--mixing {
  animation: xe_automix-pulse 500ms ease-in-out infinite;
}

@keyframes xe_automix-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.xe_scrobble-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.xe_scrobble-pill svg {
  flex-shrink: 0;
}

.xe_scrobble-pill__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.xe_scrobble-pill:hover {
  background: var(--panel-2);
}

.xe_scrobble-pill--ready,
.xe_scrobble-pill--tracking {
  color: var(--text);
  border-color: var(--accent);
}

.xe_scrobble-pill--sending {
  color: var(--text);
  border-color: var(--accent-bright);
  animation: xe_automix-pulse 700ms ease-in-out infinite;
}

.xe_scrobble-pill--scrobbled {
  color: #3ddc84;
  border-color: #3ddc84;
}

.xe_scrobble-pill--queued {
  color: #f0bd5f;
  border-color: #f0bd5f;
}

.xe_scrobble-pill--failed {
  color: #f5524a;
  border-color: #f5524a;
}

.xe_sleep-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.xe_sleep-pill:hover {
  background: var(--panel-2);
}

.xe_sleep-pill--on {
  color: var(--text);
  border-color: var(--accent);
}

@keyframes xe_sleep-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes xe_sleep-panel-out {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.xe_sleep-panel {
  --xe-context-surface: color-mix(in srgb, #000 90%, var(--xe-active-accent, var(--accent)) 10%);
  position: fixed;
  z-index: 1000;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--xe-context-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transform-origin: bottom left;
  animation: xe_sleep-panel-in 130ms ease;
}

.xe_sleep-panel--closing {
  animation: xe_sleep-panel-out 120ms ease forwards;
  pointer-events: none;
}

.xe_sleep-panel .xe_btn { border-radius: 8px; }

.xe_sleep-panel__status {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.4;
  padding: 2px 3px;
}

.xe_sleep-panel__status strong {
  color: var(--text);
  
}

.xe_sleep-panel__modes {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.xe_sleep-panel__mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.xe_sleep-panel__mode:hover,
.xe_sleep-panel__mode--selected {
  border-color: var(--border);
  background: var(--panel-2);
}

.xe_sleep-panel__mode:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
  opacity: .55;
}

.xe_sleep-panel__mode small {
  color: var(--text-dim);
}

.xe_sleep-panel__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.xe_sleep-panel__configure {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xe_sleep-panel__configure label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-dim);
  font-size: 12px;
}

.xe_sleep-panel__configure input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
}

.xe_slider {
  padding: 8px 0;
  cursor: grab;
  touch-action: none;
  outline: none;
}

.xe_slider:active:not(.xe_slider--disabled) {
  cursor: grabbing;
}

.xe_slider--disabled {
  cursor: default;
  opacity: 0.5;
}

.xe_slider__track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

.xe_slider__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--text);
}

.xe_slider__mark {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 8px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--text) 45%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.xe_slider__thumb {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 12px;
  border-radius: 50px;
  background: var(--text);
  box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 150ms ease;
}

.xe_slider:hover .xe_slider__thumb,
.xe_slider:focus-visible .xe_slider__thumb,
.xe_slider:active .xe_slider__thumb {
  opacity: 1;
}

.xe_scroll-text {
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.xe_scroll-text > span {
  display: inline-block;
  will-change: transform;
}

.xe_scroll-text--clickable {
  cursor: pointer;
  border-radius: 4px;
  transition: color 120ms ease;
}

.xe_scroll-text--clickable:hover {
  color: var(--accent-text);
}
.xe_spinner {
  display: inline-block;
  flex-shrink: 0;
  color: var(--accent-text);
  vertical-align: -0.125em;
  transform-origin: center;
  will-change: transform;
}

.xe_spinner__track {
  stroke: currentColor;
  opacity: 0.16;
}

.xe_spinner__arc {
  stroke: currentColor;
  stroke-dasharray: 42 60;
}
.xe_remote {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.xe_remote__question {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 14px;
}

.xe_remote__role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.xe_remote__role {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

a.xe_remote__role {
  text-decoration: none;
}

.xe_remote__role:hover {
  border-color: var(--accent-bright);
  background: var(--accent-wash);
}

.xe_remote__role svg {
  color: var(--accent-text);
}

.xe_remote__role strong {
  font-size: 16px;
}

.xe_remote__role-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.xe_remote__role-heading svg {
  color: var(--text-dim);
}

.xe_remote__role span {
  color: var(--text-dim);
  line-height: 1.45;
}

.xe_remote__host,
.xe_remote__control {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.xe_remote__control > .xe_btn {
  align-self: flex-start;
}

.xe_remote__pin-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent-wash);
  text-align: center;
}

.xe_remote__pin-label {
  margin: 0 0 10px;
  color: var(--text-dim);
}

.xe_remote__pin {
  margin: 0;
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 700;
  letter-spacing: 0.08em;
  
  color: var(--accent-text);
  user-select: text;
}

.xe_remote__pin-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.xe_remote__pin-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.xe_remote__expiry {
  color: var(--text-dim);
}

.xe_remote__expiry--done {
  color: var(--danger);
}

.xe_remote__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xe_remote__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.xe_remote__count {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  text-align: center;
}

.xe_remote__request {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--accent-bright);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.xe_remote__request-text {
  margin: 0;
  line-height: 1.5;
}

.xe_remote__request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.xe_remote__peer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.xe_remote__peer-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.xe_remote__peer-meta {
  color: var(--text-dim);
  font-size: 13px;
}

.xe_remote__hint {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.5;
}

.xe_remote__banner {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--accent-bright);
  border-radius: var(--radius);
  background: var(--accent-soft);
  line-height: 1.5;
}

.xe_remote__footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.xe_remote__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-dim);
}

.xe_remote__status svg {
  color: var(--danger);
}

.xe_remote__status p {
  margin: 0;
  max-width: 420px;
  line-height: 1.5;
}

.xe_remote__status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.xe_remote__pin-entry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  max-width: 340px;
}

.xe_remote__pin-entry .xe_remote__pin-label {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
}

.xe_remote__pin-input {
  width: 100%;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  
  text-align: center;
  padding: 12px;
}

.xe_remote__transport {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.xe_remote__now {
  text-align: center;
}

.xe_remote__now-title {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}

.xe_remote__now-artist {
  margin: 4px 0 0;
  color: var(--accent-text);
}

.xe_remote__now-album {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 13px;
}

.xe_remote__scrubber,
.xe_remote__volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xe_remote__scrubber .xe_slider,
.xe_remote__volume .xe_slider {
  flex: 1;
}

.xe_remote__volume svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

.xe_remote__time {
  color: color-mix(in srgb, var(--text) 35%, transparent);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 40px;
  text-align: center;
  transition: color 150ms ease;
}

.xe_remote__scrubber:hover .xe_remote__time {
  color: var(--text);
}

.xe_remote__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.xe_remote__play {
  width: 56px;
  height: 56px;
}

.xe_remote__queue {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

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

.xe_remote__queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 360px;
  overflow-y: auto;
}

.xe_remote__queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius);
}

.xe_remote__queue-item:hover {
  background: var(--panel-2);
}

.xe_remote__queue-item--current {
  background: var(--accent-soft);
}

.xe_remote__queue-jump {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.xe_remote__queue-title,
.xe_remote__queue-artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xe_remote__queue-artist {
  color: var(--text-dim);
  font-size: 12px;
}

html,
body,
#app {
  height: 100%;
  margin: 0;
}

body.xe_thin {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.xe_thin__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, var(--panel) 8%);
}

.xe_thin__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
}

.xe_thin__brand img {
  border-radius: 6px;
}

.xe_thin__main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px max(20px, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.xe_thin__main > .xe_remote {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.xe_thin__panel {
  width: 100%;
}

.xe_thin__pin-entry {
  width: 100%;
  align-items: stretch;
}

.xe_thin__pin-entry .xe_remote__pin-input {
  font-size: clamp(28px, 9vw, 34px);
  padding: 16px 12px;
}

.xe_thin__submit {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 16px;
}

.xe_thin__status {
  padding-top: 32px;
}

.xe_remote__status--warn svg {
  color: var(--danger);
}

.xe_thin__control {
  gap: 16px;
}

.xe_thin__banner {
  font-size: 14px;
}

.xe_thin__transport-buttons {
  gap: 18px;
}

.xe_thin__transport-buttons .xe_icon-btn {
  min-width: 48px;
  min-height: 48px;
}

.xe_thin__transport-buttons .xe_remote__play {
  width: 64px;
  height: 64px;
}

.xe_thin__footer {
  position: sticky;
  bottom: 0;
  padding: 12px 0 4px;
  margin-top: 8px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.xe_thin__footer .xe_btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.xe_thin__waiting {
  padding: 20px 12px;
}

.xe_remote__queue-list {
  max-height: none;
}

@media (min-width: 520px) {
  .xe_thin__main {
    padding-inline: 24px;
  }
}