/* SuperLive unified visual system */
:root {
  --sl-bg: #f3f6fc;
  --sl-surface: #ffffff;
  --sl-ink: #182235;
  --sl-muted: #66748a;
  --sl-blue: #3268ed;
  --sl-blue-hover: #2454cf;
  --sl-line: #e1e7f0;
  --sl-header: #172236;
  --sl-radius: 14px;
  --sl-shadow: 0 4px 18px rgba(24, 34, 53, .055);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  background: var(--sl-bg) !important;
  color: var(--sl-ink) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 14px;
  line-height: 1.55;
}
h1, h2, h3, h4, h5 {
  color: var(--sl-ink);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(23px, 3vw, 30px); }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { line-height: 1.6; }
a { color: var(--sl-blue); }
header {
  background: var(--sl-header) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 2px 12px rgba(12, 22, 40, .12);
}
header h1, header h2, header h3, header strong,
header .brand, header .logo { color: #fff !important; }
header a {
  text-decoration: none;
}
header nav, header .header-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
header nav a, header .header-links a,
header a.logout, header a.link, header a.back {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: #e8edf7 !important;
  background: transparent;
  border: 1px solid #46536a;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
header nav a:hover, header .header-links a:hover,
header a.logout:hover, header a.link:hover, header a.back:hover {
  background: #2b3951 !important;
}
main, .container, .container-fluid, .page, .page-content,
.content, .main-content, .wrap, .wrapper, .dashboard,
.settings-container, .admin-container {
  color: var(--sl-ink);
}
.card, .panel, .slot, .queue, .empty,
.stat-card, .channel-card, .settings-card, .section-card,
form.card, section.card {
  background: var(--sl-surface);
  border: 1px solid var(--sl-line) !important;
  border-radius: var(--sl-radius) !important;
  box-shadow: var(--sl-shadow);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select, textarea {
  max-width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  color: var(--sl-ink);
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 9px;
  font: inherit;
}
textarea { min-height: 96px; }
input::placeholder, textarea::placeholder { color: #8a96a9; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sl-blue);
  box-shadow: 0 0 0 3px rgba(50, 104, 237, .12);
}
button, input[type="submit"], input[type="button"],
.button, .btn {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:disabled, .btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(50, 104, 237, .65);
  outline-offset: 2px;
}
.channel-search { width: 100%; }
.channel-search input { display: block; width: 100%; }
#channelGrid .card[hidden] { display: none !important; }
table { max-width: 100%; }
th { font-weight: 700; }
img { max-width: 100%; }
@media (max-width: 700px) {
  body { font-size: 14px; }
  header { padding-left: 14px; padding-right: 14px; }
  header .header-inner, header .head {
    align-items: flex-start;
    gap: 10px;
  }
  header nav, header .header-links { gap: 6px; }
  header nav a, header .header-links a,
  header a.logout, header a.link, header a.back {
    min-height: 35px;
    padding: 7px 9px;
    font-size: 12px;
  }
  main, .container, .container-fluid, .page, .page-content,
  .content, .main-content, .wrap, .wrapper, .dashboard {
    max-width: 100%;
  }
  .card, .panel, .slot, .queue, .stat-card, .channel-card {
    border-radius: 12px !important;
  }
  table { display: block; overflow-x: auto; }
}


/* Cross-page layout alignment override */
:root { --sl-layout-width: 1280px; }

body > header + main,
body > header + .container,
body > header + .container-fluid,
body > header + .page,
body > header + .page-content,
body > header + .content,
body > header + .main-content,
body > header + .wrapper,
body > header + .wrap,
body > header + div {
  width: min(var(--sl-layout-width), calc(100% - 48px)) !important;
  max-width: var(--sl-layout-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 28px;
  padding-bottom: 36px;
}

header > div,
header .header-inner,
header .head {
  width: min(var(--sl-layout-width), calc(100% - 48px)) !important;
  max-width: var(--sl-layout-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 700px) {
  body > header + main,
  body > header + .container,
  body > header + .container-fluid,
  body > header + .page,
  body > header + .page-content,
  body > header + .content,
  body > header + .main-content,
  body > header + .wrapper,
  body > header + .wrap,
  body > header + div {
    width: calc(100% - 28px) !important;
    max-width: none !important;
    padding-top: 20px;
  }

  header > div,
  header .header-inner,
  header .head {
    width: calc(100% - 28px) !important;
  }
}

/* Clickable SuperLive brand: return to Dashboard */
.sl-brand-link {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}
.sl-brand-link:hover {
  color: #dbeafe !important;
  text-decoration: none !important;
}
.sl-brand-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Final shared SuperLive header and brand */
header .sl-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}
header .sl-brand-link:hover { color: #dbeafe !important; }
header .sl-brand-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 4px;
  border-radius: 4px;
}
