
:root {
  --ls-bg: #0b0b0b;
  --ls-panel: #131313;
  --ls-panel-soft: #1a1a1a;
  --ls-border: #2a2a2a;
  --ls-text: #ffffff;
  --ls-muted: #8f8f8f;
  --ls-orange: #ff6a00;
  --ls-green: #19c37d;
  --ls-yellow: #ffcc4d;
  --ls-red: #ff5f57;
  --ls-blue: #5ca9ff;
  --ls-radius: 26px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ls-bg);
  color: var(--ls-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.ls-dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.13), transparent 25%),
    var(--ls-bg);
}

.ls-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--ls-border);
  background: rgba(11, 11, 11, 0.96);
  backdrop-filter: blur(10px);
}

.ls-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ls-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ls-orange);
  font-weight: 800;
  color: #fff;
}

.ls-brand-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.ls-brand-subtitle {
  font-size: 0.86rem;
  color: var(--ls-muted);
}

.ls-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ls-nav a {
  padding: 8px 0;
  color: #cbcbcb;
  font-size: 0.98rem;
}

.ls-nav a.is-active {
  color: #fff;
  font-weight: 700;
}

.ls-topbar-actions {
  display: flex;
  gap: 12px;
}

.ls-app-shell,
.ls-public-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px;
}

.ls-login-shell {
  min-height: calc(100vh - 1px);
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.16), transparent 30%),
    var(--ls-bg);
}

.ls-login-card,
.ls-public-card {
  width: min(100%, 560px);
  background: rgba(19, 19, 19, 0.96);
  border: 1px solid var(--ls-border);
  border-radius: 30px;
  padding: 36px;
}

.ls-login-card h1,
.ls-public-card h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.ls-login-card p,
.ls-public-card p {
  margin: 0 0 22px;
  color: #cecece;
  line-height: 1.6;
}

.ls-login-eyebrow,
.ls-eyebrow,
.ls-panel-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--ls-muted);
  font-weight: 700;
}

.ls-login-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.ls-login-form p {
  margin-bottom: 16px;
}

.ls-login-form input[type="text"],
.ls-login-form input[type="password"] {
  width: 100%;
  border: 1px solid var(--ls-border);
  background: #0f0f0f;
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
}

.ls-login-form input[type="submit"],
.ls-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--ls-orange);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ls-button--ghost,
.ls-login-form .forgetmenot + p input[type="submit"] {
  background: transparent;
  border: 1px solid var(--ls-border);
  color: #fff;
}

.ls-page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

.ls-page-head h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.ls-page-head p {
  margin: 0;
  color: #cecece;
  max-width: 860px;
  line-height: 1.6;
}

.ls-grid {
  display: grid;
  gap: 20px;
}

.ls-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ls-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ls-grid--stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ls-layout-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.9fr);
  gap: 22px;
}

.ls-stack {
  display: grid;
  gap: 20px;
}

.ls-panel {
  background: rgba(19, 19, 19, 0.96);
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  padding: 24px;
}

.ls-panel h2 {
  margin: 8px 0 12px;
  font-size: 1.7rem;
}

.ls-panel p {
  margin: 0 0 18px;
  line-height: 1.6;
  color: #cdcdcd;
}

.ls-stat-card {
  background: rgba(19, 19, 19, 0.96);
  border: 1px solid var(--ls-border);
  border-radius: 24px;
  padding: 20px;
}

.ls-stat-card__value {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 800;
}

.ls-stat-card__bar {
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
}

.ls-live-card {
  padding: 0;
  overflow: hidden;
}

.ls-live-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--ls-border);
}

.ls-live-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ls-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 12px;
}

.ls-status-ok { background: var(--ls-green); }
.ls-status-warn { background: var(--ls-yellow); }
.ls-status-error { background: var(--ls-red); }
.ls-status-blue { background: var(--ls-blue); }

.ls-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: #e8e8e8;
  font-size: 0.82rem;
  font-weight: 700;
}

.ls-pill--ok { background: rgba(25,195,125,.18); color: #9ef0cc; }
.ls-pill--warn { background: rgba(255,204,77,.18); color: #ffe6a1; }
.ls-pill--error { background: rgba(255,95,87,.18); color: #ffb8b2; }

.ls-live-card__body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 24px;
}

.ls-field-list,
.ls-mini-list,
.ls-log-list,
.ls-issue-list {
  display: grid;
  gap: 12px;
}

.ls-field {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--ls-panel-soft);
  border: 1px solid rgba(255,255,255,0.04);
}

.ls-field__label {
  display: block;
  margin-bottom: 7px;
  color: var(--ls-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.ls-field__value {
  font-size: 1.12rem;
  font-weight: 600;
}

.ls-check-row,
.ls-log-row,
.ls-source-row,
.ls-issue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 18px;
  background: var(--ls-panel-soft);
  border: 1px solid rgba(255,255,255,0.04);
}

.ls-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ls-row-meta {
  color: var(--ls-muted);
  font-size: 0.9rem;
}

.ls-footer {
  padding: 20px 32px 34px;
  color: var(--ls-muted);
  max-width: 1500px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .ls-grid--three,
  .ls-grid--two,
  .ls-grid--stats,
  .ls-layout-main,
  .ls-live-card__body {
    grid-template-columns: 1fr;
  }

  .ls-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .ls-app-shell,
  .ls-public-shell,
  .ls-login-shell {
    padding: 20px;
  }

  .ls-topbar {
    padding: 16px 20px;
  }

  .ls-page-head h1 {
    font-size: 2rem;
  }
}


.ls-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ls-form-field {
  display: grid;
  gap: 8px;
}

.ls-form-field span {
  font-size: 0.92rem;
  color: #d8d8d8;
}

.ls-form-field input,
.ls-form-field select {
  width: 100%;
  border: 1px solid var(--ls-border);
  background: #0f0f0f;
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
}

.ls-form-field--full {
  grid-column: 1 / -1;
}

.ls-form-actions {
  display: flex;
  justify-content: flex-start;
}

.ls-source-row--block {
  align-items: flex-start;
}

.ls-stream-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .ls-form-grid {
    grid-template-columns: 1fr;
  }

  .ls-form-field--full {
    grid-column: auto;
  }
}


.ls-field__value--small {
  font-size: 0.98rem;
  font-weight: 500;
  word-break: break-word;
}

.ls-field__value--small a {
  color: #f7c49e;
  text-decoration: underline;
}

.ls-source-row--block {
  align-items: flex-start;
}

.ls-stream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.ls-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ls-form-field {
  display: grid;
  gap: 8px;
}

.ls-form-field span,
.ls-form-check span {
  color: #d9d9d9;
  font-size: 0.92rem;
}

.ls-form-field input,
.ls-form-field select {
  width: 100%;
  border: 1px solid var(--ls-border);
  background: #0f0f0f;
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
}

.ls-form-field--full {
  grid-column: 1 / -1;
}

.ls-form-actions {
  display: flex;
  justify-content: flex-start;
}

.ls-form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ls-form-check input {
  width: 18px;
  height: 18px;
}


.ls-studio-shell {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.ls-studio-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ls-studio-toolbar__form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.ls-studio-toolbar__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ls-studio-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.9fr);
  gap: 22px;
}

.ls-studio-left,
.ls-studio-right {
  display: grid;
  gap: 20px;
}

.ls-studio-preview {
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d2330 0%, #11151d 100%);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
}

.ls-studio-preview img,
.ls-studio-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ls-studio-preview__fallback {
  width: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(255,106,0,0.18), transparent 28%),
    linear-gradient(135deg, #19202b 0%, #101318 100%);
  color: #fff;
  padding: 24px;
}

.ls-studio-preview__brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .95;
}

.ls-studio-preview__time {
  font-size: 3rem;
  font-weight: 800;
}

.ls-studio-preview__line {
  color: #d9d9d9;
  max-width: 640px;
  line-height: 1.5;
}

.ls-studio-now-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.ls-studio-now-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--ls-panel-soft);
  border: 1px solid rgba(255,255,255,0.04);
}

.ls-studio-now-card__title {
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.ls-studio-days {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}

.ls-studio-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--ls-border);
  color: #eee;
}

.ls-studio-day.is-active {
  background: rgba(255,106,0,0.18);
  border-color: rgba(255,106,0,0.45);
  color: #fff;
}

.ls-studio-schedule-list,
.ls-studio-playlist {
  display: grid;
  gap: 12px;
}

.ls-studio-slot,
.ls-studio-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--ls-panel-soft);
  border: 1px solid rgba(255,255,255,0.04);
}

.ls-studio-slot__time,
.ls-studio-item__index {
  min-width: 72px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 10px 12px;
}

.ls-studio-slot__label,
.ls-studio-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: #f2f2f2;
}

.ls-studio-slot__loop {
  color: var(--ls-muted);
  font-size: 0.9rem;
}

.ls-studio-item__body {
  display: grid;
  gap: 4px;
}

.ls-studio-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 1200px) {
  .ls-studio-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .ls-studio-now-next {
    grid-template-columns: 1fr;
  }

  .ls-studio-slot,
  .ls-studio-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .ls-studio-slot__time,
  .ls-studio-item__index {
    min-width: 0;
    width: fit-content;
  }
}
