:root {
  color-scheme: light;
  --bg: #f4efe4;
  --panel: rgba(255, 252, 245, 0.92);
  --panel-strong: #fffaf0;
  --ink: #1c1814;
  --muted: #6c6257;
  --accent: #aa3a2a;
  --accent-dark: #832719;
  --border: rgba(28, 24, 20, 0.12);
  --shadow: 0 24px 60px rgba(60, 33, 7, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(170, 58, 42, 0.18), transparent 34%),
    radial-gradient(circle at right center, rgba(214, 176, 92, 0.25), transparent 28%),
    linear-gradient(180deg, #fff8eb 0%, var(--bg) 100%);
}

.auth-shell,
.watch-shell {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card,
.watch-layout {
  width: min(100%, 960px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card {
  max-width: 460px;
  padding: 40px 32px;
}

.watch-layout {
  padding: 28px;
}

.watch-header,
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.player-panel {
  margin-top: 24px;
}

.video-frame {
  background: #0e0c0a;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

video {
  width: 100%;
  height: 100%;
  background: #000;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--muted);
}

.lede {
  color: var(--muted);
  margin-top: 0;
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

button {
  margin-top: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(170, 58, 42, 0.12);
}

.notice.error {
  color: #8f2417;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.viewer-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(214, 176, 92, 0.18);
}

.secondary-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.quality-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.quality-picker select {
  min-width: 130px;
}

@media (max-width: 720px) {
  .watch-layout,
  .auth-card {
    padding: 22px;
  }

  .watch-header,
  .player-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: space-between;
  }
}
