
:root {
  --bg: #060b16;
  --panel: rgba(10, 18, 33, 0.82);
  --panel-strong: rgba(13, 23, 42, 0.95);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --stroke: rgba(129, 167, 255, 0.16);
  --stroke-strong: rgba(129, 167, 255, 0.28);
  --text: #f5f8ff;
  --muted: #9fb0d1;
  --blue: #64a5ff;
  --cyan: #6ef2e3;
  --violet: #9f8cff;
  --danger: #ffcc8a;
  --success: #8cffc4;
  --shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); }
body { position: relative; }
.app-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(100,165,255,0.28), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(110,242,227,0.18), transparent 22%),
    radial-gradient(circle at 60% 82%, rgba(159,140,255,0.18), transparent 24%),
    linear-gradient(180deg, #050914 0%, #08101d 40%, #050914 100%);
}
.noise {
  position: fixed; inset: 0; z-index: 0; opacity: .055; pointer-events: none;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 18px 18px;
}
.topbar, .shell { position: relative; z-index: 1; }
.topbar {
  max-width: 1560px; margin: 0 auto; padding: 28px 24px 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.brand-cluster { display: flex; align-items: center; gap: 16px; }
.brand-mark {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(100,165,255,.28), rgba(110,242,227,.18));
  border: 1px solid var(--stroke-strong); font-weight: 800; letter-spacing: .04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 40px rgba(100,165,255,.15);
}
.eyebrow { margin: 0 0 6px; color: var(--cyan); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; }
h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.85rem); }
h2, h3 { margin: 0; }
.subtext { margin: 8px 0 0; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-pill, .meta-pill, .provider-chip {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04); padding: 12px 14px; border-radius: 999px; color: var(--text);
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px rgba(140,255,196,.14); }
.glass-btn {
  border: 1px solid var(--stroke); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color: var(--text); border-radius: 14px; padding: 12px 16px; font-weight: 600; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.glass-btn:hover { transform: translateY(-1px); border-color: var(--stroke-strong); }
.glass-btn.small { padding: 10px 14px; border-radius: 12px; }
.shell {
  max-width: 1560px; margin: 0 auto; padding: 10px 24px 28px;
  display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 20px;
}
.glass-card {
  background: linear-gradient(180deg, rgba(15,24,43,.88), rgba(10,18,33,.8));
  border: 1px solid var(--stroke); border-radius: var(--radius-xl); box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.sidebar { padding: 18px; display: flex; flex-direction: column; gap: 16px; min-height: calc(100vh - 120px); }
.quick-card, .inset-card {
  background: var(--panel-soft); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 16px;
}
.hero-card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stats-grid div {
  padding: 14px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
}
.stats-grid span { color: var(--muted); font-size: .82rem; }
.stats-grid strong { display: block; margin-top: 6px; font-size: 1.45rem; }
.filters-card { display: flex; flex-direction: column; gap: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group.full { width: 100%; }
label { color: var(--muted); font-size: .84rem; }
input, select {
  width: 100%; background: rgba(5,10,20,.72); color: var(--text); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 13px 14px; outline: none;
}
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(100,165,255,.12); }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; }
.section-head small { color: var(--muted); }
.list-card { min-height: 250px; display: flex; flex-direction: column; }
.recording-list { display: flex; flex-direction: column; gap: 10px; max-height: 48vh; overflow: auto; padding-right: 2px; }
.recording-item {
  width: 100%; text-align: left; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px; padding: 14px; color: var(--text); display: flex; justify-content: space-between; gap: 14px; cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.recording-item:hover { transform: translateY(-1px); border-color: var(--stroke-strong); }
.recording-item.active {
  border-color: rgba(100,165,255,.5);
  background: linear-gradient(135deg, rgba(100,165,255,.14), rgba(110,242,227,.08));
}
.item-topline { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: .8rem; }
.item-title { font-size: 1rem; margin-bottom: 6px; }
.item-meta { margin: 0; color: var(--muted); font-size: .88rem; }
.item-arrow { color: var(--cyan); align-self: center; font-size: 1.15rem; }
.content-column { display: grid; grid-template-rows: auto auto; gap: 20px; }
.spotlight-card { padding: 20px; }
.spotlight-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.provider-chip { min-width: 112px; justify-content: center; font-weight: 700; letter-spacing: .05em; }
.player-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.player-shell {
  position: relative; min-height: 500px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(4,8,16,.78), rgba(9,15,28,.95)); border: 1px solid rgba(255,255,255,.07);
}
.hero-empty { display: grid; place-items: center; }
.empty-player { text-align: center; max-width: 430px; padding: 30px; }
.empty-icon {
  width: 82px; height: 82px; border-radius: 24px; display: grid; place-items: center; margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(100,165,255,.18), rgba(159,140,255,.18)); border: 1px solid rgba(255,255,255,.08); font-size: 1.8rem;
}
.video-frame, video { width: 100%; aspect-ratio: 16/9; border: 0; background: #02050c; }
.notes-grid { margin-top: 16px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.notes-card .label { margin: 0 0 10px; color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.notes-card p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-card { padding: 18px; }
.feature-list, .workflow-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.85; }
.message-box {
  display: grid; place-items: center; min-height: 100%; padding: 40px; color: var(--text);
}
.message-inner { max-width: 580px; text-align: center; }
.message-inner p { color: var(--muted); line-height: 1.7; }
.message-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.anchor-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 14px;
  text-decoration: none; font-weight: 700; color: #05101e; background: linear-gradient(135deg, var(--cyan), #c7fff7);
}
.ghost-link {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 14px;
  text-decoration: none; font-weight: 700; color: var(--text); border: 1px solid var(--stroke);
}
.compact .recording-item { padding: 10px 12px; border-radius: 14px; }
.compact .item-title { font-size: .95rem; }
.empty-state { padding: 20px; border: 1px dashed rgba(255,255,255,.12); border-radius: 16px; text-align: center; color: var(--muted); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; }
@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .recording-list { max-height: 380px; }
}
@media (max-width: 800px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .field-row, .notes-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .spotlight-head { flex-direction: column; }
  .player-shell { min-height: 320px; }
}

.live-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.live-feed-pill {
  white-space: nowrap;
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid rgba(110,242,227,.28);
  background: rgba(110,242,227,.08);
  color: var(--cyan);
  font-weight: 700;
}
.data-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.data-columns span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  font-size: .85rem;
}
.panel-copy {
  color: var(--muted);
  line-height: 1.7;
}
.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}
.empty-state p { margin: 0; }
@media (max-width: 800px) {
  .live-card { flex-direction: column; align-items: flex-start; }
}
