:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
  color: #f4f5fa;
  background: #101116;
  --panel: #191b23;
  --border: #333642;
  --muted: #aeafbb;
  --accent: #fc6374;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 50% 3rem, #211722, transparent 36rem);
}

h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); letter-spacing: -.05em; line-height: 1.12; }
h2 { font-size: 1.1rem; }
button, input { font: inherit; }

.topbar {
  background: #13141a;
  border-bottom: 1px solid var(--border);
}

.topbar-inner, .workspace {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.topbar-inner {
  min-height: 4.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.025em;
}

.play {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .6rem;
  background: #38232e;
  color: #ff8996;
}

.play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: .15rem;
  border-top: .31rem solid transparent;
  border-bottom: .31rem solid transparent;
  border-left: .48rem solid currentColor;
}

.login {
  display: grid;
  place-items: start center;
  padding: clamp(2.7rem, 13vh, 8rem) 1.25rem 2rem;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: 0 20px 64px #08090d50;
}

.login-panel {
  width: min(100%, 26rem);
  padding: clamp(1.35rem, 5vw, 2rem);
}

.login-panel form {
  display: grid;
  margin-top: 1.65rem;
}

label {
  margin-bottom: .43rem;
  color: #e0e1e9;
  font-size: .92rem;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 3rem;
  margin-bottom: 1.05rem;
  padding: .65rem .8rem;
  color: #f4f5fa;
  background: #111219;
  border: 1px solid #424551;
  border-radius: .55rem;
}

button {
  min-height: 2.75rem;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  cursor: pointer;
  font-weight: 650;
}

.primary { margin-top: .35rem; background: var(--accent); color: #230e13; }
.primary:hover { background: #ff8895; }
.secondary { color: #eeeef5; background: #22242d; border-color: var(--border); }
.secondary:hover { background: #30323e; }

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

.error {
  padding: .7rem;
  margin-bottom: .7rem;
  border-radius: .5rem;
  color: #ffadb8;
  background: #39232d;
  font-size: .92rem;
}

.workspace { padding-block: 3rem; }
.videos { margin-top: 1.5rem; padding: clamp(1rem, 4vw, 1.6rem); }

.empty-state {
  display: grid;
  justify-items: center;
  place-content: center;
  gap: .8rem;
  min-height: 13rem;
  margin-top: 1rem;
  background: #14151c;
  border: 1px dashed #3b3d4c;
  border-radius: .7rem;
  color: var(--muted);
}

.empty-icon { width: 2.7rem; height: 2.7rem; }
