/* Mosher TV — paleta logo: cian #00AEEF, rojo #FF0000, rojo sombra #B30000 */

:root {
  --bg-deep: #06080c;
  --bg-panel: #0c1018;
  --bg-elevated: #121820;
  --border: rgba(0, 174, 239, 0.14);
  --text: #f4f8fc;
  --text-muted: #8fa3b0;
  --cyan: #00aeef;
  --cyan-glow: rgba(0, 174, 239, 0.42);
  --cyan-muted: #0095cc;
  --red: #ff0000;
  --red-deep: #b30000;
  --red-glow: rgba(255, 0, 0, 0.42);
  /* Compat: antes --gold era acento; ahora acento = cian del logo */
  --gold: var(--cyan);
  --gold-dim: var(--cyan-muted);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --transition: 0.2s ease;
  /* Fondo hero (estadio / marca) */
  --bg-image: url("https://moshertv.online/images/mosher-bg.jpg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -18%, rgba(255, 0, 0, 0.14), transparent 52%),
    radial-gradient(ellipse 85% 55% at 100% 45%, rgba(0, 174, 239, 0.1), transparent 48%),
    radial-gradient(ellipse 70% 40% at 0% 80%, rgba(0, 174, 239, 0.05), transparent 45%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.9) 0%, rgba(6, 8, 12, 0.35) 42%, rgba(6, 8, 12, 0.88) 100%),
    var(--bg-image);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Toasts */
.toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(30, 24, 28, 0.98), rgba(18, 16, 22, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 0, 0, 0.12);
  font-size: 0.9rem;
  animation: toast-in 0.35s ease;
}

.toast--error {
  border-color: rgba(255, 0, 0, 0.45);
  color: #ffc9c9;
}

.toast--success {
  border-color: rgba(0, 174, 239, 0.45);
  color: #e8f7fd;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ocultar pantallas con atributo hidden (evita que CSS display:flex deje el login encima) */
.screen-login[hidden],
.screen-app[hidden] {
  display: none !important;
}

/* Login */
.screen-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(255, 0, 0, 0.12), transparent 42%),
    radial-gradient(circle at 72% 78%, rgba(0, 174, 239, 0.1), transparent 42%);
  pointer-events: none;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem;
  background: linear-gradient(160deg, rgba(22, 20, 26, 0.95), rgba(10, 10, 14, 0.98));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow), 0 0 80px var(--red-glow);
}

.login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-mark {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, var(--cyan), #ffffff, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 174, 239, 0.35));
}

.login-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  margin-top: 0.65rem;
}

.field-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field-input:focus {
  border-color: rgba(0, 174, 239, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

.form-error {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #ffb4b4;
  font-size: 0.88rem;
}

.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 8px 28px var(--red-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 36px rgba(255, 0, 0, 0.45);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-block {
  width: 100%;
}

.topbar-actions a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-ghost {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 174, 239, 0.4);
}

.btn-ghost:hover {
  background: rgba(0, 174, 239, 0.08);
}

.login-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* App layout: altura fija al viewport para que el reproductor llene el hueco bajo la topbar */
.screen-app {
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 1.25rem;
  background: rgba(10, 10, 14, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 200px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--red) 55%, var(--red-deep));
  box-shadow: 0 0 22px rgba(0, 174, 239, 0.25), 0 0 18px var(--red-glow);
  position: relative;
}

.brand-icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  opacity: 0.55;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
}

.topbar-search {
  flex: 1;
  min-width: 180px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.session-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.1);
  border: 1px solid rgba(0, 174, 239, 0.25);
  color: var(--gold);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-tabs {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1rem 0.65rem;
  background: rgba(8, 8, 12, 0.95);
  border-bottom: 1px solid var(--border);
}

.app-tab {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.app-tab:hover {
  color: var(--text);
  border-color: rgba(0, 174, 239, 0.25);
}

.app-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.35), rgba(30, 20, 24, 0.9));
  border-color: rgba(255, 0, 0, 0.55);
  color: var(--text);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.sidebar-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-list-head .sidebar-heading {
  margin: 0 0 0 0.35rem;
}

.series-back-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 174, 239, 0.4);
  background: rgba(0, 174, 239, 0.08);
  color: var(--gold);
  cursor: pointer;
}

.series-back-btn:hover {
  background: rgba(0, 174, 239, 0.15);
}

.app-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sidebar {
  width: 300px;
  min-width: 240px;
  max-width: 340px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-section {
  padding: 0.85rem 0.75rem;
}

.sidebar-section--grow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-heading {
  margin: 0 0 0.5rem 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 600;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 28vh;
  overflow-y: auto;
  padding-right: 4px;
}

.category-btn {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.category-btn.is-active {
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.2), transparent);
  border-color: rgba(255, 0, 0, 0.35);
  color: var(--text);
  font-weight: 600;
}

.channel-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 4px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.channel-card:hover {
  border-color: rgba(0, 174, 239, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.channel-card.is-active {
  border-color: rgba(255, 0, 0, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.35), 0 8px 24px rgba(255, 0, 0, 0.15);
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.12), var(--bg-elevated));
}

.channel-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2a32, #1a1a20);
  object-fit: cover;
  flex-shrink: 0;
}

.channel-thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-dim);
}

.channel-meta {
  flex: 1;
  min-width: 0;
}

.channel-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.player-area {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.player-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Panel compatibilidad audio / contenedor (estilo aviso streaming) */
.playback-compat-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.playback-compat-panel[hidden] {
  display: none !important;
}

.playback-compat-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: auto;
  cursor: pointer;
}

.playback-compat-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  pointer-events: auto;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(165deg, rgba(28, 24, 30, 0.98), rgba(12, 11, 16, 0.99));
  border: 1px solid rgba(0, 174, 239, 0.22);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 0, 0, 0.12);
}

.playback-compat-close {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playback-compat-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.playback-compat-brand {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
}

.playback-compat-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.playback-compat-body {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(244, 241, 234, 0.88);
}

.playback-compat-format {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.playback-compat-format[hidden] {
  display: none !important;
}

.playback-compat-extra {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.playback-compat-extra[hidden] {
  display: none !important;
}

.playback-compat-extra-lead {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  font-weight: 600;
}

.playback-compat-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.85);
}

.playback-compat-steps li {
  margin-bottom: 0.35rem;
}

.playback-compat-fallback-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.playback-compat-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-compat {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-compat-primary {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.95), rgba(179, 0, 0, 0.98));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-compat-primary:hover {
  filter: brightness(1.06);
}

.btn-compat-secondary {
  background: rgba(0, 174, 239, 0.12);
  color: var(--gold);
  border-color: rgba(0, 174, 239, 0.35);
}

.btn-compat-secondary:hover {
  background: rgba(0, 174, 239, 0.18);
}

.btn-compat-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-compat-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-compat[hidden] {
  display: none !important;
}

.playback-compat-foot {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.playback-compat-foot[hidden] {
  display: none !important;
}

/* Llena todo el shell; letterboxing solo dentro del propio video (object-fit) */
.video-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.player-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  z-index: 2;
  padding: 1rem 1.25rem 1.25rem;
  background: linear-gradient(rgba(0, 0, 0, 0.88), transparent);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.now-playing {
  pointer-events: none;
}

.now-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
}

.now-title {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.now-status {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.now-status.is-live {
  color: #7dffb3;
}

.now-status.is-error {
  color: #ff8a8a;
}

.now-status.is-loading {
  color: #ffd88a;
}

.now-status.is-retry {
  color: #4dd2f5;
}

.audio-track-bar {
  pointer-events: auto;
  width: 100%;
  max-width: 36rem;
}

.audio-track-bar[hidden] {
  display: none !important;
}

.vod-seek-pref-wrap {
  pointer-events: auto;
  width: 100%;
  max-width: 36rem;
}

.vod-seek-pref-wrap[hidden] {
  display: none !important;
}

.vod-seek-pref-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
  cursor: pointer;
}

.vod-seek-pref-check {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.audio-track-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.audio-track-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
  font-weight: 600;
}

.audio-track-multi-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  width: 100%;
}

.audio-track-multi-wrap[hidden] {
  display: none !important;
}

.audio-track-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.audio-track-select {
  font-size: 0.8rem;
  font-family: var(--font);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(20, 20, 26, 0.95);
  color: var(--text);
  min-width: 12rem;
  max-width: 100%;
  cursor: pointer;
  flex: 1 1 auto;
}

.audio-track-select:focus {
  outline: 2px solid rgba(0, 174, 239, 0.45);
  outline-offset: 2px;
}

.audio-track-single-msg {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
  max-width: 32rem;
}

.audio-track-single-msg[hidden] {
  display: none !important;
}

.player-retry-btn {
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid rgba(0, 174, 239, 0.45);
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.2), rgba(255, 0, 0, 0.15));
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  transition: var(--transition);
}

.player-retry-btn:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.3), rgba(255, 0, 0, 0.22));
}

/* Scrollbars */
.category-list::-webkit-scrollbar,
.channel-list::-webkit-scrollbar {
  width: 6px;
}

.category-list::-webkit-scrollbar-thumb,
.channel-list::-webkit-scrollbar-thumb {
  background: rgba(0, 174, 239, 0.25);
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .app-body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-width: none;
    max-height: 45vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .category-list {
    max-height: 120px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category-btn {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .topbar {
    padding: 0.5rem 0.75rem;
  }

  .topbar-brand {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem 1.25rem;
  }

  .session-pill {
    display: none;
  }
}