:root {
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  background: #f5f5f7;
  color: #1a1a1a;
}

.navbar {
  box-shadow: 0 1px 0 #e8e8e8;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.navbar-brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #1a1a1a !important;
}

.card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.btn-dark {
  border-radius: 8px;
  font-weight: 600;
  background: #1a1a1a;
  border-color: #1a1a1a;
  letter-spacing: -.01em;
}
.btn-dark:hover { background: #333; border-color: #333; }
.btn-outline-secondary { border-radius: 6px; font-size: .8rem; }

audio { border-radius: 6px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::before { content: "+ "; }
details[open] > summary::before { content: "- "; }
pre { font-size: .78rem; border-radius: 6px; }
.badge { font-weight: 500; font-size: .75rem; }

/* ── Login split-panel ── */
.login-wrap {
  display: flex;
  min-height: 100vh;
}
.login-dark {
  flex: 1;
  background: linear-gradient(160deg, #0d0d18 0%, #110a20 55%, #0a0a0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}
.login-dark-inner {
  width: 100%;
  max-width: 500px;
}
.login-light {
  flex: 0 0 420px;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  padding: 2.5rem 2.5rem;
  border-left: 1px solid #e0e0e2;
}

/* brand mark */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 1.75rem;
}
.brand-mark .icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 15px;
  letter-spacing: -.02em;
}
.brand-mark .name {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

/* headline */
.login-headline {
  font-size: 2.6rem;
  font-weight: 800;
  color: white;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0 0 1rem;
}
.login-sub {
  font-size: .95rem;
  color: #888;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

/* Google button */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  color: #1a1a1a;
  border-radius: 10px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: opacity .15s, transform .12s;
  width: 100%;
  max-width: 320px;
}
.google-btn:hover {
  opacity: .93;
  transform: translateY(-1px);
  color: #1a1a1a;
}

.login-fine {
  color: #555;
  font-size: .78rem;
  margin-top: .9rem;
  max-width: 320px;
}

/* right panel */
.examples-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.25rem;
}
.video-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  width: 100%;
}
.video-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #e4e4e6;
  text-decoration: none;
  transition: box-shadow .15s, transform .12s;
}
.video-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-1px);
}
.video-card .thumb {
  flex: 0 0 120px;
  border-radius: 7px;
  overflow: hidden;
}
.video-card .thumb img {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.video-card .meta .title {
  color: #1a1a1a;
  font-weight: 500;
  font-size: .86rem;
  line-height: 1.35;
}
.video-card .meta .play {
  color: #bbb;
  font-size: .72rem;
  margin-top: 4px;
}

/* mobile */
@media (max-width: 820px) {
  .login-wrap { flex-direction: column; }
  .login-dark {
    flex: none;
    padding: 2.5rem 1.75rem;
    align-items: center;
    text-align: center;
  }
  .login-sub, .login-fine { max-width: 100%; }
  .google-btn { max-width: 100%; }
  .login-light {
    flex: none;
    padding: 2rem 1.75rem;
    justify-content: center;
    border-left: none;
    border-top: 1px solid #e0e0e2;
  }
}
