:root {
  --bg-canvas: #101011;
  --bg-elevated: #161618;
  --surface-1: rgba(25, 25, 27, 0.94);
  --surface-2: #1d1d20;
  --surface-3: #232327;

  --text-strong: #f0f0f1;
  --text-body: #d2d2d6;
  --text-muted: #9f9fa8;
  --text-faint: #7f8088;

  --border-soft: #2c2c31;
  --border-strong: #3a3a40;

  --accent-red-1: #7a1b2a;
  --accent-red-2: #932033;
  --accent-red-3: #b3283f;
  --accent-red-soft: rgba(147, 32, 51, 0.24);

  --focus-ring: rgba(179, 40, 63, 0.45);
  --danger: #d65b68;

  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.22);

  --radius-sm: 8px;
  --radius-md: 12px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --top-nav-height: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text-body);
  background:
    radial-gradient(1100px 520px at 10% -15%, rgba(147, 32, 51, 0.14), transparent 58%),
    linear-gradient(180deg, #131315 0%, var(--bg-canvas) 55%, #0f0f10 100%);
  overflow-x: hidden;
  color-scheme: dark;
  padding-top: var(--top-nav-height);
  line-height: 1.45;
}


body.auth-centered {
  min-height: 100vh;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.auth-centered .page {
  width: min(460px, 92vw);
  margin: 0;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.025;
}

a {
  color: #d49ea9;
  text-decoration-color: rgba(212, 158, 169, 0.45);
  text-underline-offset: 0.18em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
  color: #efc2ca;
  text-decoration-color: rgba(239, 194, 202, 0.75);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(16, 16, 17, 0.9);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(6px);
}

.event-shell-strip {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(179, 40, 63, 0.45);
  background: linear-gradient(90deg, rgba(122, 27, 42, 0.9), rgba(147, 32, 51, 0.86));
  color: #fff;
}

.event-shell-strip-inner {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 0.86rem;
  text-align: center;
}

.event-shell-strip-inner strong {
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.03em;
}

.top-nav ul {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 0.8rem 0;
  list-style: none;
  display: flex;
  gap: 0.95rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--text-body);
  text-decoration: none;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.1rem;
}

.top-nav a:hover {
  color: var(--text-strong);
}

.auth-nav-item {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
}

.auth-nav-item span {
  color: var(--text-muted);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

.auth-nav-item button {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}

.page {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  margin: 1.1rem auto 2rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "radio"
    "chat"
    "voice";
  gap: var(--space-4);
}

.utility-page {
  width: min(900px, 92vw);
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "content";
}

.utility-hero {
  grid-area: hero;
}

.utility-shell {
  grid-area: content;
  width: min(560px, 100%);
  justify-self: center;
}

.utility-shell .radio-admin-actions a,
.utility-shell .radio-admin-actions p {
  justify-self: center;
  text-align: center;
}

.utility-shell .account-section {
  display: grid;
  gap: var(--space-2);
}

.utility-shell .account-section:first-of-type {
  margin-top: var(--space-3);
}

.utility-shell .account-section + .account-section {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-soft);
}

.utility-shell .account-section h3 {
  margin: 0;
}

.utility-shell .account-section p {
  margin-top: 0;
}

.hero {
  grid-area: hero;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  height: auto;
  min-width: 0;
}

.ascii-banner-frame {
  width: 100%;
  height: 132px;
  overflow: hidden;
  position: relative;
  border: none;
  background: transparent;
  box-shadow: none;
}

.event-hero-callout {
  margin-top: var(--space-2);
  border: 1px solid rgba(179, 40, 63, 0.5);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(147, 32, 51, 0.2), rgba(20, 20, 22, 0.84));
  padding: var(--space-2) var(--space-3);
  display: grid;
  gap: 0.12rem;
}

.event-hero-label {
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: #f0c3ca;
}

.event-hero-title {
  color: var(--text-strong);
  font-weight: 600;
}

.event-hero-time {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.event-hero-inline-message {
  margin-top: var(--space-2);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.84rem;
  color: #f2d0d6;
  border-left: 2px solid rgba(179, 40, 63, 0.58);
  padding-left: 0.6rem;
}

.ascii-banner {
  margin: 0;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 16px;
  line-height: 1;
  color: var(--text-strong);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  white-space: pre;
  display: inline-block;
  transform-origin: top left;
  will-change: transform;
}

.radio-shell {
  grid-area: radio;
  margin-top: 0;
}

.radio-card,
.content-card,
.chat-card {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.hero {
  padding-bottom: var(--space-4);
}

.radio-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.chat-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.radio-card {
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.content-card {
  padding: var(--space-4);
}

.chat-card {
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

h2 {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}

p {
  margin: 0;
}

.radio-header h2,
.chat-header h2,
.content-card h2 {
  margin: 0;
}

.radio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.event-radio-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 158, 169, 0.35);
  background: rgba(31, 31, 34, 0.78);
  color: #f2d0d6;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.02em;
}

.event-radio-pill[hidden] {
  display: none !important;
}

.event-radio-pill[data-live="1"] {
  border-color: rgba(214, 91, 104, 0.6);
  background: rgba(147, 32, 51, 0.45);
  color: #fff;
}

.event-hero-callout[hidden],
.event-shell-strip[hidden] {
  display: none !important;
}

.chat-header {
  display: grid;
  gap: 0.15rem;
}

.chat-header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-2);
}

.radio-header p,
.chat-header p,
.content-card p {
  margin-top: 0.28rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.radio-content {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: var(--space-3);
}

.radio-art {
  width: 112px;
  height: 112px;
  border-radius: 0;
  border: none;
  object-fit: cover;
  background: transparent;
}

.radio-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.radio-song {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.12;
}

.radio-artist,
.radio-album,
.radio-time {
  margin: 0;
  color: var(--text-muted);
}

.radio-artist {
  line-height: 1.12;
  margin-top: 0.3rem;
}

.radio-time,
.auth-nav-item span,
.chat-line time {
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

.radio-time {
  font-size: 0.83rem;
  color: #b9b9c2;
  margin-top: 0.28rem;
}

.radio-controls {
  margin-top: var(--space-2);
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  justify-self: end;
  align-self: end;
}

.radio-volume-control {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, #2a2a2f, #1f1f24);
  overflow: hidden;
  transition: height 160ms ease, border-radius 160ms ease, padding 160ms ease, border-color 160ms ease,
    background 160ms ease;
}

.radio-volume-control:is(:hover, :focus-within) {
  height: 10rem;
  padding: 0.45rem 0.25rem 0.2rem;
  border-radius: 0.95rem;
  border-color: #4a4a55;
  background: var(--surface-2);
}

#radio-mute-button {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e6e7ed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#radio-mute-button:hover:not(:disabled) {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
}

#radio-mute-button.is-syncing {
  opacity: 0.7;
}

.radio-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.radio-icon-muted {
  display: none;
}

#radio-mute-button[data-muted="true"] .radio-icon-unmuted,
#shell-radio-mute-button[data-muted="true"] .radio-icon-unmuted {
  display: none;
}

#radio-mute-button[data-muted="true"] .radio-icon-muted,
#shell-radio-mute-button[data-muted="true"] .radio-icon-muted {
  display: block;
}

.radio-volume-popover {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 160ms ease, margin-bottom 160ms ease, opacity 120ms ease, visibility 120ms ease;
}

.radio-volume-control:is(:hover, :focus-within) .radio-volume-popover {
  max-height: 7.4rem;
  margin-bottom: 0.2rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

#radio-volume {
  width: 0.82rem;
  height: 6.9rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
}

.radio-admin {
  border-top: 1px dashed var(--border-strong);
  padding-top: var(--space-3);
}

.radio-admin > summary {
  cursor: pointer;
  font-weight: 600;
  color: #dec0c5;
  margin-bottom: var(--space-2);
}

.radio-admin-form,
.join-form,
.chat-form {
  display: grid;
  gap: var(--space-2);
}

.chat-compose-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  align-items: stretch;
}

.chat-compose-row button {
  min-width: 100px;
  min-height: 2.6rem;
  height: 2.6rem;
  padding-inline: 1rem;
}

.radio-admin-actions {
  margin-top: var(--space-1);
  display: grid;
  gap: var(--space-2);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  padding: 0.52rem 0.64rem;
  transition: border-color 120ms ease, background-color 120ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

input:focus,
textarea:focus {
  border-color: rgba(179, 40, 63, 0.62);
  background: var(--surface-3);
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.chat-compose-row textarea {
  margin: 0;
  min-height: 2.6rem;
  height: 2.6rem;
  line-height: 1.35;
  overflow-y: hidden;
  resize: none;
  border-radius: var(--radius-sm);
}

input[type="range"] {
  accent-color: var(--accent-red-2);
}

button {
  border: 1px solid var(--accent-red-2);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent-red-2), var(--accent-red-1));
  color: #fff7f8;
  padding: 0.5rem 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
}

button:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--accent-red-3), var(--accent-red-2));
  border-color: var(--accent-red-3);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.join-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
}

.chat-shell {
  grid-area: chat;
  margin-top: 0;
  padding-top: 0;
}

.chat-messages {
  margin: 0;
  padding: 0.65rem 0.95rem 0.65rem 0;
  list-style: none;
  border-bottom: 1px solid var(--border-soft);
  border-left: none;
  border-right: none;
  border-radius: 0;
  background: transparent;
  height: 320px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-red-2) rgba(255, 255, 255, 0.06);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.chat-messages::-webkit-scrollbar {
  width: 10px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-red-2), var(--accent-red-1));
  border: 2px solid rgba(16, 16, 17, 0.95);
  border-radius: 999px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-red-3), var(--accent-red-2));
}

.chat-messages::-webkit-scrollbar-corner {
  background: transparent;
}

.chat-line {
  border-bottom: 1px dashed #2e2e33;
  padding-bottom: 0.42rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-2);
  align-items: baseline;
  font-size: 0.9rem;
}

.chat-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.chat-line strong {
  color: #e5b7c0;
}

.chat-line time {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.chat-context-menu {
  position: fixed;
  z-index: 1200;
  min-width: 120px;
  display: grid;
  gap: 0.2rem;
  padding: 0.3rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border-soft);
  background: rgba(22, 22, 27, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.chat-context-menu[hidden] {
  display: none !important;
}

.chat-context-menu-item {
  border: 0;
  background: transparent;
  color: var(--text-strong);
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.82rem;
}

.chat-context-menu-item:hover {
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
}
.chat-context-menu-note {
  padding: 0.48rem 0.58rem;
  max-width: 230px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.chat-meta {
  margin: 0;
  font-size: 0.81rem;
  color: var(--text-muted);
}

#auth-summary.chat-meta {
  margin-top: 0;
  justify-self: start;
  text-align: left;
  max-width: 48ch;
}

#chat-status {
  min-height: 1.1rem;
}

.chat-muted-manager-toggle {
  width: 1.7rem;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border-radius: 0.32rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.88rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  color: var(--text-strong);
}

.chat-muted-manager-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.chat-muted-panel {
  position: fixed;
  z-index: 1250;
  width: min(360px, calc(100vw - 1rem));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border-soft);
  background: rgba(22, 22, 27, 0.98);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.chat-muted-panel[hidden] {
  display: none !important;
}

.chat-muted-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.48rem;
  gap: 0.4rem;
}

.chat-muted-panel-title {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.chat-muted-section {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.35rem;
  margin-top: 0.35rem;
  border-top: 1px dashed var(--border-soft);
}

.chat-muted-section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.chat-muted-section-title {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.chat-muted-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0;
  border-bottom: 1px dashed #2e2e33;
}

.chat-muted-row:last-of-type {
  border-bottom: none;
}

.chat-muted-row-details {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.chat-muted-row-details strong {
  font-size: 0.83rem;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-muted-row-meta {
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-muted-action {
  font-size: 0.72rem;
  padding: 0.28rem 0.45rem;
  border-radius: 0.38rem;
}

.chat-muted-unmute-all {
  justify-self: end;
  margin-top: 0.15rem;
}

.chat-muted-empty,
.chat-muted-error {
  margin: 0;
  font-size: 0.76rem;
}

.chat-muted-empty {
  color: var(--text-muted);
}

.chat-muted-error {
  color: var(--danger);
}

.captcha-wrap {
  min-height: 66px;
}

.error {
  color: var(--danger);
}


#home-right-column {
  grid-area: right-home;
  display: grid;
  gap: var(--space-3);
}

#radio-panel {
  margin-bottom: 0;
}

#voice-home {
  margin-top: 0;
}

#voice-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-3);
  row-gap: var(--space-2);
  padding: 1rem var(--space-4) 0.72rem;
}

#voice-home .voice-home-main {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

#voice-home .voice-home-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1;
  flex-wrap: wrap;
}

#voice-status {
  margin: 0;
  min-height: 0;
}

#voice-status[hidden] {
  display: none;
}

#voice-home .voice-active-wrap[hidden] {
  display: none !important;
}

#voice-home .chat-meta {
  margin-top: 0;
  line-height: 1.2;
}

#voice-home #voice-room-action {
  margin-left: auto;
}

#voice-home .voice-controls {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
}

#voice-home .voice-controls.is-connected {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding-top: var(--space-3);
  margin-top: var(--space-1);
}

.voice-input-controls {
  display: flex;
  gap: var(--space-2);
}

.voice-input-controls[hidden] {
  display: none;
}

#voice-home .voice-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-body);
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

#voice-home .voice-control:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--text-faint);
  color: var(--text-strong);
}

#voice-home .voice-control:active:not(:disabled) {
  transform: translateY(1px);
}

#voice-home .voice-control:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 3px;
}

#voice-home #voice-microphone[aria-pressed="true"],
#voice-home .voice-session-control.is-leave {
  background: rgba(147, 32, 51, 0.14);
  border-color: rgba(214, 91, 104, 0.35);
  color: #ef9da7;
}

#voice-home .voice-session-control.is-leave:hover:not(:disabled) {
  background: var(--accent-red-soft);
  border-color: var(--danger);
}

#voice-home .voice-noise-control[aria-pressed="true"] {
  background: rgba(147, 32, 51, 0.12);
  border-color: rgba(214, 91, 104, 0.4);
  color: #ef9da7;
}

.voice-control-status {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
}

[aria-pressed="true"] > .voice-control-status {
  opacity: 1;
}

#voice-home .voice-active-wrap {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
}

.voice-capacity {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

#voice-home .voice-participants {
  height: auto;
  min-height: 0;
  border-bottom: 0;
  padding: 0;
}

.voice-participants .voice-participant {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.voice-participant strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.voice-speaking-light {
  flex: 0 0 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--text-faint);
}

.voice-mute-indicator {
  flex: 0 0 1rem;
  height: 1rem;
  color: var(--danger);
}

.voice-mute-indicator svg {
  display: block;
  width: 100%;
  height: 100%;
}

.voice-speaking-light[hidden],
.voice-mute-indicator[hidden] {
  display: none;
}

.voice-participant.is-speaking .voice-speaking-light,
.shell-voice-status-item .voice-speaking-light.is-speaking {
  background: #75dfaa;
  box-shadow: 0 0 0 3px rgba(117, 223, 170, 0.15);
}

.voice-home-heading {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-strong);
}

.voice-room-list,
.voice-participants {
  height: 170px;
}

.voice-actions {
  display: inline-flex;
  gap: var(--space-2);
  margin: var(--space-2) 0;
}

.voice-active-wrap {
  display: grid;
  gap: var(--space-2);
  margin-top: 0;
}


.pictures-grid {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-2);
}

.picture-card {
  margin: 0;
  padding: 0.42rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #161619;
  display: grid;
  gap: 0.34rem;
}

.picture-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #2f2f35;
  background: #0f0f11;
}

.picture-card figcaption {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  word-break: break-word;
}

@media (min-width: 900px) {
  .page {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hero hero"
      "chat right-home";
    align-items: start;
  }

  .chat-shell {
    align-self: start;
  }

  #home-right-column {
    position: relative;
    border-left: none;
    padding-left: var(--space-4);
    align-self: stretch;
    align-content: start;
  }

  #home-right-column::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: calc(2.8rem + var(--space-2));
    width: 1px;
    background: var(--border-soft);
    pointer-events: none;
  }
}

@media (max-width: 899px) {
  #home-right-column {
    display: contents;
  }

  #radio-panel {
    grid-area: radio;
  }

  #voice-home {
    grid-area: voice;
  }
}

@media (min-width: 900px) {
  .utility-page {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "content";
    align-items: start;
  }
}
@media (max-width: 680px) {
  .radio-content {
    grid-template-columns: 1fr;
  }

  .radio-art {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .radio-controls {
    justify-self: end;
    align-self: end;
  }


  .join-row {
    grid-template-columns: 1fr;
  }

  .chat-line {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .chat-compose-row {
    grid-template-columns: 1fr;
  }

  .chat-compose-row button {
    width: 100%;
  }

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

  #home-right-column {
    border-left: none;
    padding-left: 0;
  }
}

.forum-page {
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "forum";
}

.forum-shell {
  grid-area: forum;
  display: grid;
  gap: var(--space-5);
  padding: clamp(1rem, 1.4vw, 1.4rem);
  background:
    linear-gradient(180deg, rgba(30, 30, 33, 0.9), rgba(20, 20, 23, 0.94)),
    radial-gradient(480px 220px at 100% 0%, rgba(179, 40, 63, 0.1), transparent 70%);
  border: 1px solid #313138;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.forum-shell-plain {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.forum-page-title {
  font-size: clamp(1.08rem, 1.1rem + 0.2vw, 1.25rem);
  letter-spacing: 0.01em;
}

.forum-header h2,
.forum-header h3 {
  margin: 0;
}

.forum-shell h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f3f3f5;
}

.forum-links {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
}

.forum-form {
  display: grid;
  gap: var(--space-3);
}

.editor-toolbar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.editor-toolbar button {
  min-width: 44px;
  padding: 0.35rem 0.55rem;
}

.rich-editor {
  min-height: 130px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 0.6rem;
  outline: none;
  overflow-wrap: anywhere;
}

.rich-editor:focus {
  border-color: rgba(179, 40, 63, 0.62);
  box-shadow: 0 0 0 1px var(--focus-ring);
  background: var(--surface-3);
}

.forum-upload-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.forum-post-list,
.forum-replies {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.forum-post-card,
.forum-thread-post,
.forum-reply-card {
  border: 1px solid #33333a;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(28, 28, 31, 0.88), rgba(22, 22, 25, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.forum-post-card:hover,
.forum-thread-post:hover,
.forum-reply-card:hover {
  border-color: #454551;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.forum-post-title {
  display: inline-block;
  margin-bottom: 0.32rem;
  font-size: 1.07rem;
  color: #f5f5f6;
  text-decoration: none;
  font-weight: 600;
}

.forum-post-title:hover {
  text-decoration: underline;
}

.forum-post-meta {
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.77rem;
  letter-spacing: 0.01em;
  color: #a7a7b4;
}

.forum-post-excerpt {
  margin-top: 0.45rem;
  color: #d7d7dc;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forum-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

#forum-list-status {
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
  color: #b7b8c4;
  border: 1px solid #363640;
  background: rgba(22, 22, 25, 0.76);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.forum-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-3);
}

.forum-pagination a {
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  text-decoration: none;
  border: 1px solid #373740;
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
  color: #d8d8de;
  background: rgba(25, 25, 29, 0.78);
}

.forum-pagination a:hover {
  border-color: #4b4b57;
  color: #f2f2f6;
}

.forum-body {
  margin-top: var(--space-2);
}

.forum-body img,
.forum-inline-image {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  margin-top: var(--space-2);
}

.forum-actions {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.forum-edited-indicator {
  color: #b7b8c4;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

.forum-reply-target {
  border: 1px solid #3d3d47;
  background: rgba(26, 26, 31, 0.82);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
}

.forum-reply-target.is-hidden {
  display: none;
}

.forum-reply-target-body {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  color: #d8d8de;
  white-space: pre-wrap;
}

.forum-reply-quote {
  margin-top: var(--space-2);
  border-left: 3px solid #444552;
  padding-left: var(--space-3);
  color: #d1d2da;
}

.forum-reply-quote p {
  margin: 0;
}

.forum-reply-quote p + p {
  margin-top: var(--space-2);
}

.forum-new-post-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-red-2);
  border-radius: 10px;
  background: linear-gradient(180deg, #b02f46, #7d1d2d);
  color: #fff7f8;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.56rem 0.9rem;
  box-shadow: 0 8px 18px rgba(123, 32, 48, 0.28);
  transition: transform 100ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.forum-new-post-button:hover {
  background: linear-gradient(180deg, #bd324d, #8d2235);
  border-color: #c13752;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(123, 32, 48, 0.34);
}

.forum-new-post-button.is-disabled,
.top-nav a.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  text-decoration: none;
}


@media (max-width: 680px) {
  .forum-shell {
    gap: var(--space-4);
    padding: 0.9rem;
  }

  .forum-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-pagination {
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .forum-page {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "forum";
  }
}

body.in-shell-frame {
  padding-top: 0;
}

body.in-shell-frame .top-nav {
  display: none;
}

.app-shell-body {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell-nav {
  z-index: 10;
}

.shell-nav .shell-nav-inner {
  width: min(1400px, 96vw);
  margin: 0 auto;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  min-height: 64px;
}

.shell-nav .shell-nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: auto;
  min-width: 0;
  flex-wrap: nowrap;
  flex: 1 1 auto;
}

.shell-nav-menu-button {
  display: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(30, 30, 33, 0.92);
  color: var(--text-body);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1;
  padding: 0.48rem 0.58rem;
  min-height: 32px;
  cursor: pointer;
}

.shell-nav-menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  width: 1rem;
  height: 1rem;
}

.shell-nav-menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.top-nav a.is-active {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: rgba(240, 240, 241, 0.7);
}

.shell-voice-status-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
  color: var(--text-body);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.76rem;
}

.shell-nav .shell-voice-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.4rem;
  color: var(--text-body);
  font-size: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.shell-voice-presence {
  position: relative;
  display: inline-flex;
}

.shell-voice-presence .voice-speaking-light {
  position: absolute;
  width: 0.55rem;
  right: -3px;
  bottom: -2px;
  border: 2px solid var(--bg-canvas);
}

.voice-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell-voice-feedback {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  overflow-wrap: anywhere;
  color: var(--text-body);
}

.shell-voice-feedback:empty {
  display: none;
}

.shell-voice-actions {
  display: flex;
  gap: 0.25rem;
}

.shell-voice-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  color: var(--text-body);
}

.shell-voice-actions button[aria-pressed="true"] {
  border-color: var(--text-muted);
  background: var(--surface-3);
}

.shell-voice-actions button:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

#shell-voice-leave-button {
  color: var(--danger);
}

.voice-mic-off,
[aria-pressed="true"] > .voice-mic-on {
  display: none;
}

[aria-pressed="true"] > .voice-mic-off {
  display: block;
}

.shell-voice-home-link:focus-visible,
.shell-voice-actions button:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 2px;
}

.shell-voice-status-item[hidden],
.shell-home-route .shell-voice-status-item {
  display: none;
}

.shell-login-item {
  margin-left: auto;
}

.shell-mobile-auth-only {
  display: none;
}

.shell-nav-separator {
  padding: 0;
  margin: 0;
  height: 0;
  border-top: 1px solid var(--border-strong);
}

.shell-mobile-auth-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-body);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  text-align: left;
  padding: 0.38rem 0.44rem;
  cursor: pointer;
}

.shell-mobile-auth-button:hover {
  color: var(--text-strong);
  background: rgba(147, 32, 51, 0.18);
}

.shell-auth-menu-item {
  margin-left: auto;
  position: relative;
}

.shell-auth-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  padding: 0.38rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(30, 30, 33, 0.92);
  color: var(--text-body);
  cursor: pointer;
}

.shell-auth-menu-button:hover {
  color: var(--text-strong);
  border-color: #4a4a55;
}

.shell-auth-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 140px;
  display: grid;
  gap: 0.2rem;
  padding: 0.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(20, 20, 22, 0.98);
  box-shadow: var(--shadow-soft);
  z-index: 25;
}

.shell-auth-menu-dropdown[hidden] {
  display: none;
}

.shell-auth-menu-dropdown .shell-auth-menu-action {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-body);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  text-align: left;
  padding: 0.45rem 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

a.shell-auth-menu-action {
  text-decoration: none;
}

.shell-auth-menu-dropdown .shell-auth-menu-action:hover {
  color: var(--text-strong);
  background: rgba(147, 32, 51, 0.18);
}

.shell-radio-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: min(42vw, 360px);
  max-width: min(48vw, 430px);
}

.shell-radio-art {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  object-fit: cover;
  background: rgba(22, 22, 24, 0.95);
}

.shell-radio-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.shell-radio-text {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.02rem;
}

.shell-radio-meta p {
  margin: 0;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  line-height: 1.2;
}

.shell-radio-song {
  color: var(--text-strong);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-radio-artist,
.shell-radio-time {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.shell-radio-time {
  white-space: nowrap;
  align-self: center;
  margin-left: auto;
  padding-right: 0.15rem;
}

.shell-radio-controls {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex: 0 0 32px;
}

.shell-radio-volume-control {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform-origin: top center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(32, 32, 36, 0.92);
  overflow: hidden;
  transition: height 170ms ease, border-radius 170ms ease, padding 170ms ease, background 170ms ease,
    border-color 170ms ease;
}

.shell-radio-volume-control:is(:hover, :focus-within) {
  height: 132px;
  padding: 0 0 0.45rem;
  border-radius: 11px;
  border-color: #4a4a55;
  background: rgba(26, 26, 29, 0.98);
}

#shell-radio-mute-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

#shell-radio-volume {
  display: block;
  width: 0.8rem;
  height: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  cursor: pointer;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  transition: height 160ms ease, opacity 120ms ease;
}

.shell-radio-volume-control:is(:hover, :focus-within) #shell-radio-volume {
  display: block;
  height: 5.8rem;
  opacity: 1;
  pointer-events: auto;
}

.shell-home-route .shell-radio-time,
.shell-home-route .shell-radio-artist,
.shell-home-route #shell-radio-volume {
  display: none;
}

.shell-home-route .shell-radio-volume-control,
.shell-home-route .shell-radio-volume-control:is(:hover, :focus-within) {
  height: 32px;
  padding: 0;
  border-radius: 8px;
}

.app-shell-body .shell-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100vh - var(--top-nav-height));
}

.app-shell-body.has-event-shell-strip .shell-main {
  height: calc(100vh - var(--top-nav-height) - 34px);
}

.app-shell-body .app-content-frame {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

@media (max-width: 900px) {
  .app-shell-body {
    --top-nav-height: 60px;
  }

  .shell-nav .shell-nav-inner {
    min-height: 60px;
    padding: 0.4rem 0.5rem;
    gap: 0.48rem;
  }

  .shell-nav-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .shell-nav .shell-nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.38rem);
    left: 0;
    width: min(230px, 82vw);
    padding: 0.35rem;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: rgba(20, 20, 22, 0.98);
    box-shadow: var(--shadow-soft);
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0.12rem;
  }

  .shell-nav .shell-nav-links.is-open {
    display: flex;
  }

  .shell-nav-link-item {
    width: 100%;
  }

  .shell-nav-link-item a {
    display: block;
    width: 100%;
    border-radius: 6px;
    padding: 0.38rem 0.44rem;
  }

  .shell-login-item {
    margin-left: 0;
  }

  .shell-auth-menu-item {
    margin-left: 0;
    display: none;
  }

  .shell-auth-menu-button {
    width: 100%;
    justify-content: flex-start;
    border-radius: 6px;
    padding: 0.38rem 0.44rem;
  }

  .shell-auth-menu-dropdown {
    position: static;
    margin-top: 0.22rem;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border-radius: 8px;
  }

  .shell-mobile-auth-only {
    display: block;
  }

  .shell-mobile-auth-only[hidden] {
    display: none;
  }

  .shell-nav-separator {
    margin: 0.24rem 0 0.2rem;
  }

  .shell-radio-item {
    position: static;
    left: auto;
    transform: none;
    width: auto;
    min-width: 0;
    max-width: calc(100% - 4.2rem);
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.7rem;
  }

  .shell-voice-status-item {
    order: 2;
  }

  .shell-voice-status-item:not([hidden]) ~ .shell-radio-item {
    order: 1;
  }

  .app-shell-body:not(.shell-home-route) .shell-voice-status-item:not([hidden]) ~ .shell-radio-item {
    flex: 1 1 auto;
    max-width: none;
  }

  .shell-radio-art {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .shell-radio-meta {
    align-items: center;
    gap: 0.55rem;
  }

  .shell-radio-text {
    display: grid;
    align-items: start;
    min-width: 0;
    gap: 0.05rem;
  }

  .shell-radio-song {
    max-width: min(36vw, 180px);
  }

  .shell-radio-artist,
  .shell-home-route .shell-radio-artist {
    display: block;
    white-space: nowrap;
  }

  .shell-radio-time,
  .shell-home-route .shell-radio-time {
    display: block;
    position: static;
    transform: none;
    align-self: center;
    margin-left: auto;
    padding-right: 0.1rem;
  }

  .shell-radio-controls,
  .shell-home-route .shell-radio-volume-control,
  .shell-home-route .shell-radio-volume-control:is(:hover, :focus-within),
  .shell-radio-volume-control,
  .shell-radio-volume-control:is(:hover, :focus-within) {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
  }

  #shell-radio-mute-button {
    width: 32px;
    height: 32px;
  }

  .shell-radio-volume-control #shell-radio-volume,
  .shell-radio-volume-control:is(:hover, :focus-within) #shell-radio-volume,
  .shell-home-route #shell-radio-volume {
    display: none;
  }

  .app-shell-body .shell-main {
    height: calc(100vh - var(--top-nav-height));
  }

  .app-shell-body.has-event-shell-strip .shell-main {
    height: calc(100vh - var(--top-nav-height) - 32px);
  }
}

@media (max-width: 1100px) {
  .shell-voice-connected-label {
    display: none;
  }
}

@media (max-width: 560px) {
  .shell-voice-label {
    display: none;
  }

  .shell-nav .shell-voice-home-link {
    justify-content: center;
  }

  .app-shell-body:not(.shell-home-route) .shell-voice-status-item:not([hidden]) ~ .shell-radio-item .shell-radio-art,
  .app-shell-body:not(.shell-home-route) .shell-voice-status-item:not([hidden]) ~ .shell-radio-item .shell-radio-time {
    display: none;
  }
}

.admin-radio-shell {
  width: min(980px, 100%);
}

.admin-radio-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.admin-radio-nav {
  border-right: 1px solid var(--border-soft);
  padding-right: var(--space-3);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.admin-radio-nav-group {
  display: grid;
  gap: var(--space-2);
}

.admin-radio-nav-group + .admin-radio-nav-group {
  border-top: 1px solid var(--border-soft);
  margin-top: var(--space-1);
  padding-top: var(--space-2);
}

.admin-radio-nav h3 {
  margin: 0 0 var(--space-2);
  color: var(--text-strong);
  font-size: 0.95rem;
}

.admin-radio-tablist {
  display: grid;
  gap: var(--space-2);
}

.admin-radio-tab {
  text-align: left;
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text-body);
}

.admin-radio-tab.is-active {
  border-color: var(--accent-red-3);
  background: linear-gradient(180deg, var(--accent-red-2), var(--accent-red-1));
  color: #fff;
}

.admin-radio-content {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.admin-radio-panel {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.admin-radio-panel[hidden] {
  display: none !important;
}

.radio-fadeout-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--text-strong);
}

.radio-fadeout-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.admin-mod-tablist {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.admin-mod-tab {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text-body);
}

.admin-mod-tab.is-active {
  border-color: var(--accent-red-3);
  background: linear-gradient(180deg, var(--accent-red-2), var(--accent-red-1));
  color: #fff;
}

.admin-mod-panel {
  display: grid;
  gap: var(--space-3);
}

.admin-mod-panel[hidden] {
  display: none !important;
}

.admin-mod-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.admin-radio-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.admin-radio-panel-header h3 {
  margin: 0;
  color: var(--text-strong);
}

.admin-radio-inline-actions {
  display: inline-flex;
  gap: var(--space-2);
}

.admin-now-playing {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(24, 24, 26, 0.86);
  padding: var(--space-3);
  display: grid;
  gap: var(--space-1);
}

.admin-now-playing-label {
  color: #e1b7bf;
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

.admin-now-playing-title {
  color: var(--text-strong);
  font-weight: 600;
}

.admin-now-playing-meta {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.admin-upcoming-queue {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.admin-upcoming-queue.is-drag-active .admin-queue-item {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.admin-queue-item.admin-track-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 0.65rem;
}

.admin-queue-item.admin-track-row .admin-queue-actions {
  justify-self: end;
  align-self: center;
  margin-left: 0;
}

.admin-queue-item.admin-track-row.is-inactive {
  opacity: 0.8;
  border-style: dashed;
}

.admin-queue-item.admin-track-row.is-inactive .admin-queue-title {
  color: #d6ccd0;
}
.admin-track-art {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.28);
}
.admin-queue-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  background: rgba(24, 24, 26, 0.85);
  position: relative;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.admin-queue-item.is-dragging {
  opacity: 0.5;
  transform: scale(0.985);
}

.admin-queue-item.is-drop-target {
  border-color: var(--border-soft);
}

.admin-queue-item.is-drop-before::before,
.admin-queue-item.is-drop-after::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.admin-queue-item.is-drop-before::before {
  top: calc(var(--space-2) * -0.5);
}

.admin-queue-item.is-drop-after::after {
  bottom: calc(var(--space-2) * -0.5);
}

.admin-queue-handle {
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  color: var(--text-muted);
  cursor: grab;
  user-select: none;
}

.admin-queue-meta {
  min-width: 0;
}

.admin-queue-title {
  margin: 0;
  color: var(--text-strong);
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.admin-queue-sub {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-queue-actions {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-self: end;
  margin-left: auto;
}

.admin-queue-actions button {
  padding: 0.35rem 0.6rem;
  min-width: 56px;
}

.admin-events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

.admin-event-item.is-active {
  border-color: var(--accent-red-3);
  box-shadow: 0 0 0 1px rgba(179, 40, 63, 0.45);
}

.admin-events-groups {
  display: grid;
  gap: var(--space-3);
}

.admin-events-group {
  display: grid;
  gap: var(--space-2);
}

.admin-events-group h4 {
  margin: 0;
  color: var(--text-strong);
}

.radio-admin-checkboxes {
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.radio-admin-checkboxes legend {
  color: var(--text-strong);
  font-weight: 600;
  padding: 0 var(--space-1);
}

.radio-admin-checkboxes label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.88rem;
  color: var(--text-body);
}

.radio-admin-checkbox-option {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  white-space: nowrap;
  width: max-content;
}

.radio-admin-checkbox-option span {
  display: inline-block;
  white-space: nowrap;
}

.admin-event-time-helper {
  margin-top: calc(var(--space-2) * -0.4);
}

.admin-events-playlist-section {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  display: grid;
  gap: var(--space-2);
}

.admin-events-playlist-section h4 {
  margin: 0;
  color: var(--text-strong);
}

.admin-events-playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.admin-events-upload-block {
  border-top: 1px solid var(--border-soft);
  padding-top: var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.admin-events-playlist-builder {
  display: grid;
  gap: var(--space-2);
}

.admin-events-playlist-selected .admin-queue-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-events-playlist-selected .admin-queue-actions {
  justify-self: end;
  margin-left: 0;
}

.admin-events-track-badge {
  display: inline-block;
  margin-left: 0.45rem;
  border: 1px solid rgba(179, 40, 63, 0.45);
  border-radius: 999px;
  padding: 0.06rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffd9df;
  background: rgba(179, 40, 63, 0.18);
  vertical-align: middle;
}

.admin-events-playlist-adders {
  display: grid;
  gap: var(--space-2);
}

.admin-events-playlist-adder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
}

.admin-events-playlist-adder-row select {
  min-width: 0;
}

.admin-events-upload-block h4 {
  margin: 0;
  color: var(--text-strong);
}

.admin-next-dialog.admin-events-dialog {
  width: min(980px, 95vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.admin-next-dialog.admin-events-dialog > .admin-next-header {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-soft);
}

.admin-next-dialog.admin-events-dialog > .admin-events-layout {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.admin-switch-field {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--text-body);
  font-size: 0.82rem;
}

.admin-switch-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-switch-control input {
  position: absolute;
  inset: 0;
  width: 38px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-switch-slider {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.admin-switch-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f4f1f2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 140ms ease;
}

.admin-switch-control input:checked + .admin-switch-slider {
  background: linear-gradient(180deg, var(--accent-red-2), var(--accent-red-1));
  border-color: var(--accent-red-2);
}

.admin-switch-control input:checked + .admin-switch-slider::after {
  transform: translateX(16px);
}

.admin-switch-control input:focus-visible + .admin-switch-slider {
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.admin-switch-control input:disabled {
  cursor: not-allowed;
}

.admin-switch-control input:disabled + .admin-switch-slider {
  opacity: 0.55;
}

.admin-switch-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-queue-actions .admin-switch-field {
  margin-right: 0.45rem;
}

.radio-admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-body);
  font-size: 0.9rem;
}

.radio-admin-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.admin-queue-empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  color: var(--text-muted);
}

.admin-next-options {
  display: grid;
  gap: var(--space-2);
  max-height: 300px;
  overflow-y: auto;
}

.admin-next-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  background: var(--surface-2);
}

.admin-next-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.admin-next-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.admin-next-dialog {
  position: relative;
  width: min(680px, 92vw);
  margin: 10vh auto 0;
  padding: var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-3);
}

.admin-next-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.admin-next-header h3 {
  margin: 0;
  color: var(--text-strong);
}

.admin-next-close {
  min-width: 76px;
}

@media (max-width: 900px) {
  .admin-radio-layout {
    grid-template-columns: 1fr;
  }

  .admin-events-layout {
    grid-template-columns: 1fr;
  }

  .admin-radio-nav {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding-right: 0;
    padding-bottom: var(--space-3);
  }

  .admin-radio-nav-group + .admin-radio-nav-group {
    margin-top: var(--space-2);
  }

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

@media (max-width: 560px) {
  .admin-queue-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-queue-actions {
    justify-content: flex-end;
  }

  .admin-next-dialog {
    margin-top: 8vh;
    width: min(94vw, 680px);
  }
}



















.gallery-page {
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "forum";
}

.gallery-shell {
  grid-area: forum;
  display: grid;
  gap: var(--space-4);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.gallery-header-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.gallery-count {
  white-space: nowrap;
}

.gallery-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}

.gallery-item {
  display: grid;
  gap: 0.45rem;
}

.gallery-item-button {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0;
  background: rgba(19, 19, 21, 0.86);
  cursor: pointer;
  overflow: hidden;
}

.gallery-item-button:hover {
  border-color: var(--border-strong);
}

.gallery-item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.gallery-item-meta {
  margin: 0;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
}

.gallery-view-dialog {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 0;
  overflow: auto;
  background: #141418;
  border: 1px solid #373743;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: var(--space-3);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.44);
}

#gallery-view-modal:not([hidden]) {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gallery-view-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(13, 13, 16, 0.92);
}

.gallery-description {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-main);
}

.gallery-view-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.gallery-view-actions .chat-meta {
  margin: 0;
}

.gallery-delete-button {
  border: 1px solid #6b2a35;
  background: #3a151d;
  color: #ffdbe2;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

.gallery-delete-button:hover {
  background: #4a1a25;
}

.gallery-delete-button:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 680px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}




.radio-delete-dialog {
  width: min(460px, 92vw);
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
}

.radio-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.radio-delete-actions button {
  min-height: 2rem;
  min-width: 128px;
  padding: 0.35rem 0.7rem;
}

.radio-delete-cancel {
  border-color: #ccd2db;
  background: linear-gradient(180deg, #f4f7fb, #dfe5ee);
  color: #22252b;
}

.radio-delete-cancel:hover:not(:disabled) {
  border-color: #d7dee8;
  background: linear-gradient(180deg, #ffffff, #e9eef5);
}

.radio-delete-confirm {
  border-color: var(--accent-red-2);
  background: linear-gradient(180deg, var(--accent-red-2), var(--accent-red-1));
  color: #fff7f8;
}

