:root {
  --bg0: #f4f7fb;
  --bg1: #d9e8ff;
  --ink: #101621;
  --ink-soft: #465066;
  --primary: #0f9d8f;
  --accent: #2e5bff;
  --glass: rgba(255, 255, 255, 0.7);
  --line: rgba(16, 22, 33, 0.09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.stack {
  display: grid;
  gap: 10px;
}

input,
select,
button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

.ghost {
  background: #eef3ff;
  color: #1d3256;
}

.muted {
  color: var(--ink-soft);
  font-size: 13px;
}

.error {
  color: #cc2342;
  min-height: 18px;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(30, 55, 89, 0.12);
}

.admin-body {
  min-height: 100vh;
  font-family: Outfit, sans-serif;
  overflow-x: hidden;
}

.admin-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(46, 91, 255, 0.26), transparent 38%),
    radial-gradient(circle at 80% 10%, rgba(15, 157, 143, 0.22), transparent 35%),
    radial-gradient(circle at 50% 85%, rgba(255, 180, 78, 0.18), transparent 45%),
    linear-gradient(165deg, #f8fbff 0%, #edf3ff 40%, #e4f5f2 100%);
  z-index: -1;
}

.admin-shell {
  width: min(1080px, 92vw);
  margin: 34px auto;
  animation: rise 0.7s ease;
}

.login-card {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 26px;
}

.login-card h1,
.dashboard h2,
.dashboard h3 {
  font-family: Syne, sans-serif;
  margin-top: 0;
}

.dashboard {
  display: grid;
  gap: 16px;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.dash-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-grid article,
.list-card {
  padding: 20px;
}

.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.user-body {
  min-height: 100vh;
  font-family: Manrope, sans-serif;
  background: #f7fafc;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 8%, rgba(73, 112, 255, 0.22), transparent 25%),
    radial-gradient(circle at 92% 5%, rgba(20, 186, 163, 0.2), transparent 25%),
    linear-gradient(180deg, #f5fbff 0%, #f9fff9 100%);
}

.user-shell {
  width: min(1120px, 94vw);
  margin: 24px auto 40px;
}

.user-header h1 {
  margin: 8px 0 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
}

.player-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(12, 28, 54, 0.09);
}

video {
  width: 100%;
  max-height: 68vh;
  background: #050b16;
}

.video-grid {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.video-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(18, 41, 78, 0.1);
}

.video-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.video-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.section-label {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5874a2;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}
