/* UNIVERSAL THEME — VEGAS GOLD / BLACK / CHARCOAL / GRAY */
/* No navy, blue, or blue-tinted slate. */

:root {
  color-scheme: dark;

  --bg: #0B0B0C;
  --panel: #1C1C1E;
  --panel-hover: #292929;
  --text: #F2F2F0;
  --muted: #A8A8A8;
  --accent: #C5B358;
  --gold-bright: #E0CC80;
  --line: #343434;

  --success: #22C55E;
  --danger: #EF4444;

  --radius: 14px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, sans-serif;
}

h1,h2,h3 { line-height: 1.25; }
h1 { font-size: 30px; margin: 0 0 10px; }
h2 { font-size: 20px; }

p,small,.muted,.dash-status,.dash-empty {
  color: var(--muted);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold-bright); }

button,.btn,a[href="/auth/google"] {
  display: inline-block;
  background: var(--accent);
  color: #0B0B0C;
  border: 0;
  border-radius: 9px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

button:hover,.btn:hover,a[href="/auth/google"]:hover {
  background: var(--gold-bright);
  color: #0B0B0C;
}

button:focus-visible,a:focus-visible,select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

body:not(.dashboard-page) {
  display: grid;
  place-items: center;
}

body:not(.dashboard-page) main {
  width: min(420px, calc(100% - 32px));
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}

body:not(.dashboard-page) small {
  display: block;
  margin-top: 24px;
}

body:not(.dashboard-page) a[href="/auth/google"] {
  margin-top: 18px;
}

.dashboard-page main {
  width: min(var(--max-width), calc(100% - 28px));
  margin: 24px auto;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.dash-header,.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.dash-header { margin-bottom: 22px; }
.dash-header h1 { margin: 0; }
.dash-header button { margin: 0; }

.dash-panel,.dash-stat,.panel,.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dash-panel {
  padding: 20px;
  margin-bottom: 18px;
}

.dash-panel h2 {
  font-size: 17px;
  margin: 0 0 15px;
}

.dash-player {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 560px;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  overflow: hidden;
}

.dash-player strong { font-size: 19px; }
.dash-player p { margin: 0; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin: 18px 0;
}

.dash-stat { padding: 18px; }
.dash-stat strong {
  display: block;
  color: var(--accent);
  font-size: 28px;
}

.dash-stat span {
  color: var(--muted);
  font-size: 13px;
}

input,select,textarea,.dash-select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  font: inherit;
}

.dash-select {
  max-width: 100%;
  min-width: 180px;
}

.dash-status { font-size: 14px; }
.dash-empty { padding: 20px 0; }

.dash-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #777777;
  margin-right: 7px;
}

.dash-dot.online { background: var(--success); }
.dash-dot.offline { background: var(--danger); }

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

.panel,.card { padding: 20px; }
.text-gold { color: var(--accent); }
.text-muted { color: var(--muted); }

.divider {
  border: 0;
  border-top: 1px solid var(--line);
}

@media(max-width:600px) {
  .dashboard-page main { margin: 14px auto; }
  .dash-panel { padding: 14px; }
  .dash-grid { gap: 8px; }
  .dash-stat { padding: 12px; }
  .dash-stat strong { font-size: 22px; }
  .dash-stat span { font-size: 11px; }
}

/* Universal castHD control accents */
:root {
  accent-color: #C5B358;
}

button, input, select, textarea, video {
  accent-color: #C5B358;
}

:focus-visible {
  outline: 2px solid #C5B358;
  outline-offset: 2px;
}

.dash-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0B0B0C;
}
