/* web/styles.css — Aether Live interim theme (Anthony 2026-06-02).
   Light = bright & cheerful; Dark = moody & mysterious. Familiar social-app feel. */

:root {
  --grad: linear-gradient(135deg, #ff6a3d 0%, #ff2d76 45%, #b829ea 100%);
  --radius: 16px;
  --maxw: 1040px;
}

/* DARK — moody & mysterious */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0118;
  --bg2: #160430;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-solid: #1a0a33;
  --border: rgba(168, 85, 247, 0.22);
  --text: #ece8ff;
  --muted: #9a8cc0;
  --accent: #c879ff;
  --glow: radial-gradient(60% 50% at 50% 0%, rgba(184, 41, 234, 0.35), transparent 70%);
}
/* LIGHT — bright & cheerful */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff7f3;
  --bg2: #ffeef6;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --border: rgba(255, 45, 118, 0.18);
  --text: #2a1626;
  --muted: #9a6b86;
  --accent: #ff2d76;
  --glow: radial-gradient(60% 50% at 50% 0%, rgba(255, 106, 61, 0.25), transparent 70%);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100%;
}

/* App bar */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px;
  backdrop-filter: blur(14px);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 800; font-size: 18px; }
.logo { font-size: 22px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brandname b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tab {
  background: transparent; border: 0; color: var(--muted); font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.tab.active { color: #fff; background-image: var(--grad); }
.icon-btn {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer; font-size: 16px;
}

/* Views */
.view { display: none; max-width: var(--maxw); margin: 0 auto; padding: 24px 18px 60px; }
.view.show { display: block; }

/* Hero / landing */
.hero { position: relative; text-align: center; padding: 70px 16px 40px; }
.hero-glow { position: absolute; inset: -40px 0 auto 0; height: 320px; background: var(--glow); pointer-events: none; }
.hero h1 { font-size: clamp(38px, 8vw, 76px); margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); font-size: 18px; max-width: 520px; margin: 16px auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.signin { margin-top: 26px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.signin input { max-width: 280px; }

/* Buttons + inputs */
.btn { border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn.primary { background-image: var(--grad); color: #fff; }
.btn.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.danger { background: #ef4444; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input {
  background: var(--panel-solid); border: 1px solid var(--border); color: var(--text);
  padding: 11px 16px; border-radius: 12px; font-size: 15px; flex: 1; min-width: 160px; outline: none;
}
input:focus { border-color: var(--accent); }

/* Feed */
.feed-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.feed-head h2 { margin: 0; font-size: 24px; }
.pill-live { font-size: 13px; font-weight: 700; color: #fff; background: #ef4444; padding: 3px 12px; border-radius: 999px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.scard {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.scard:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(184, 41, 234, .18); }
.scard .thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.scard video { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-badge { position: absolute; top: 10px; left: 10px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 6px; letter-spacing: .04em; }
.viewers-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 6px; }
.scard .info { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.scard .av { width: 36px; height: 36px; border-radius: 999px; background-image: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; flex: 0 0 auto; }
.scard .meta { min-width: 0; }
.scard .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .stats { color: var(--muted); font-size: 13px; }

/* Cards / profile */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card.narrow { max-width: 560px; margin: 0 auto; }
.card h2 { margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.ingest-box { font-family: ui-monospace, monospace; font-size: 13px; background: var(--panel-solid); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-top: 12px; word-break: break-all; color: var(--accent); }
.notice { margin-top: 16px; font-size: 13px; color: var(--muted); background: var(--panel-solid); border: 1px dashed var(--border); border-radius: 12px; padding: 12px; }
.empty { color: var(--muted); text-align: center; padding: 40px; }

.profile { text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 999px; background-image: var(--grad); display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 800; margin: 0 auto 12px; }
.my-streams { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

/* Fullscreen viewer */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(5,0,12,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.viewer video { width: min(100%, 1000px); max-height: 78vh; border-radius: 14px; background: #000; }
.viewer-meta { display: flex; gap: 14px; align-items: center; margin-top: 14px; color: #fff; }
.viewer-close { position: absolute; top: 18px; right: 20px; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 999px; font-size: 18px; cursor: pointer; }

@media (max-width: 560px) {
  .tabs { gap: 0; }
  .tab { padding: 8px 10px; }
  .brandname { display: none; }
}
