:root {
  --bg: #070b16;
  --panel: rgba(16, 24, 39, 0.78);
  --ink: #eef3ff;
  --muted: #9aa8c7;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #f5c46b;
  --mint: #5eead4;
  --coral: #ff8a8a;
  --blue: #8eb2ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(94, 234, 212, 0.12), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(245, 196, 107, 0.12), transparent 45%),
    var(--bg);
  color: var(--ink);
  font-family: Sora, system-ui, sans-serif;
  font-size: 18px;
}

body { overflow-x: hidden; }

h1, h2, h3, .brand-mark {
  font-family: Fraunces, Georgia, serif;
  margin: 0;
}

h1 { font-size: 1.7rem; }
h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.3; }

p { color: var(--muted); line-height: 1.55; }

button { font: inherit; }

.orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.orb-a { width: 280px; height: 280px; left: -60px; top: 120px; background: rgba(94, 234, 212, 0.16); }
.orb-b { width: 320px; height: 320px; right: -80px; top: 40px; background: rgba(245, 196, 107, 0.14); }
.orb-c { width: 240px; height: 240px; right: 20%; bottom: -80px; background: rgba(142, 178, 255, 0.12); }

.topbar, .station-nav, main, footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 6vw 8px;
}

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

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--gold), #d9843b);
  color: #1a1206;
  font-size: 2rem;
}

.eyebrow, .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0 0 8px;
  font-weight: 600;
}

.score-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.score-pill strong { font-size: 1.35rem; color: var(--gold); }

.station-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 6vw 0;
}

.nav-dot {
  white-space: nowrap;
  padding: 12px 16px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
}

.nav-dot.is-active {
  background: var(--mint);
  color: #081018;
}

.nav-dot.is-today-filter {
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.55);
}

main { padding: 18px 6vw 80px; }

.portal-sub {
  position: relative;
  z-index: 1;
  padding: 0 6vw 4px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.portal-sub a { color: var(--blue); }

.portal-rules { padding: 0; margin: 8px 0 20px; font-size: 1.05rem; }
.portal-rules strong { color: var(--ink); }
.week-note em { color: var(--coral); font-style: normal; }

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.week-panel { max-width: none; }
.week-panel h2 { margin-bottom: 8px; }
.lead { max-width: 44ch; font-size: 1.15rem; }

.dashboard-header-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.day-quick-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.dashboard-day-section {
  margin-top: 28px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-day-section.is-today {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.05);
  box-shadow: 0 0 30px rgba(94, 234, 212, 0.06);
}

.day-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.day-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.day-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.day-tag.is-today-tag {
  background: var(--mint);
  color: #081018;
}

.day-title { margin: 0; font-size: 1.5rem; color: var(--gold); }

.day-count-badge {
  font-size: 0.9rem;
  color: var(--mint);
  font-weight: 600;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.item-card.is-today {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.07);
}

.item-card.is-important {
  border-color: rgba(245, 196, 107, 0.55);
  background: rgba(245, 196, 107, 0.1);
  grid-column: 1 / -1;
}

.item-card.is-off {
  opacity: 0.88;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(142, 178, 255, 0.18);
  color: var(--blue);
}

.badge.warn {
  background: rgba(245, 196, 107, 0.18);
  color: var(--gold);
}

.item-card h3 { margin-bottom: 6px; }
.item-course { margin: 0 0 8px; color: var(--blue); font-size: 1rem; }
.item-do { margin: 0 0 14px; color: var(--ink); font-size: 1.08rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.btn-listen {
  background: linear-gradient(180deg, #fff1c2, var(--gold));
  color: #2a1c06;
}

.btn-watch {
  background: rgba(94, 234, 212, 0.16);
  color: var(--mint);
  border: 1px solid rgba(94, 234, 212, 0.4);
}

.btn-pdf {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.no-media {
  margin: 0 0 4px;
  color: var(--gold);
  font-weight: 600;
}

.lesson-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
}

.lesson-player {
  margin: 0;
}

.player-label {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.lesson-player video,
.lesson-player audio {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  background: #0b1220;
}

.lesson-player video {
  aspect-ratio: 16 / 9;
}

.review-links {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.review-links p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
}

.review-links ul {
  margin: 0;
  padding-left: 1.1rem;
}

.review-links a {
  color: var(--mint);
  font-size: 0.95rem;
}

.last-week {
  margin-top: 28px;
}

.last-week summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 0;
}

.last-week-grid {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.last-week h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.last-week ul {
  margin: 0;
  padding-left: 1.15rem;
}

.last-week a { color: var(--blue); }

footer {
  padding: 0 6vw 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  html, body { font-size: 17px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .item-grid { grid-template-columns: 1fr; }
  .item-card.is-important { grid-column: auto; }
  .btn { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
