/* Promoter-like public shell for KOCC TV pages — clear readable type */
:root {
  --bg: #16082a;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --green-ink: #166534;
  --gold: #ca8a04;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(8, 4, 24, 0.45);
  --font-body: "Outfit", "DM Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body.kocc-tv-shell {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  /* Solid deep purple — no fade / no washed gradient */
  background: #16082a;
  background-attachment: fixed;
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.kocc-tv-shell .wrap { max-width: 1100px; margin: 0 auto; }
.kocc-tv-shell .topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.kocc-tv-shell .brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; font-size: 0.88rem; color: #f0fdfa;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.kocc-tv-shell .brand img { width: 36px; height: 36px; }
.kocc-tv-shell .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kocc-tv-shell .btn {
  appearance: none; border: 0; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-weight: 700; padding: 11px 16px;
  background: var(--blue); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.9rem; min-height: 44px;
}
.kocc-tv-shell .btn:hover { background: var(--blue-deep); }
.kocc-tv-shell .btn.ghost {
  background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid rgba(255,255,255,.55);
}
.kocc-tv-shell .btn.danger { background: #dc2626; color: #fff; }
.kocc-tv-shell .btn.green { background: var(--green); }
.kocc-tv-shell .btn[hidden] { display: none !important; }
.kocc-tv-shell .session-pill {
  background: var(--green-soft); color: var(--green-ink);
  border: 1px solid #86efac; border-radius: 999px;
  padding: 8px 14px; font-size: 0.82rem; font-weight: 700;
}
.kocc-tv-shell .session-pill[hidden] { display: none !important; }
.kocc-tv-shell .card {
  background: var(--card); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow); margin-bottom: 16px; color: var(--ink);
  border: 1px solid rgba(255,255,255,.5);
}
.kocc-tv-shell .card h1,
.kocc-tv-shell .card h2 {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; color: var(--ink);
  letter-spacing: -0.025em; line-height: 1.2; font-size: 1.2rem;
}
.kocc-tv-shell .muted { color: var(--muted); font-size: 0.95rem; font-weight: 500; line-height: 1.55; }
.kocc-tv-shell label {
  display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin: 10px 0 5px;
}
.kocc-tv-shell input, .kocc-tv-shell select, .kocc-tv-shell textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font: inherit; color: var(--ink); background: #fff;
}
.kocc-tv-shell .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #dc2626; color: #fff; font-weight: 800;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 8px;
}
.kocc-tv-shell .pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: koccPulse 1.2s infinite;
}
@keyframes koccPulse { 50% { opacity: .35; } }
.kocc-tv-shell .stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
}
.kocc-tv-shell .stat {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.kocc-tv-shell .stat p { margin: 0; font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.kocc-tv-shell .stat h3 { margin: 6px 0 0; font-size: 1.35rem; font-weight: 800; color: var(--blue); font-family: var(--font-display); }
.kocc-tv-shell .login-panel[hidden] { display: none !important; }
.kocc-hd-broadcast {
  filter: contrast(1.15) brightness(1.08) saturate(1.1);
  image-rendering: optimizeQuality;
}
@media (max-width: 720px) {
  .kocc-tv-shell .actions { width: 100%; }
  .kocc-tv-shell .actions .btn { flex: 1 1 42%; }
}
