@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700;900&family=Dancing+Script:wght@600&display=swap");

:root {
  --white: #fff;
  --bg: #fff;
  --ink: #373630;
  --muted: #3d3d3b;
  --line: #ececec;
  --blue-light: #91cde8;
  --blue-dark: #0c344c;
  --cream: #f6f2ee;
  --orange: #ff921a;
  --radius: 4px;
  --container: 1100px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Raleway", sans-serif;
  line-height: 1.65;
  font-size: 1.05rem;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

/* ---------- Topbar ---------- */
.topbar-spacer {
  height: var(--header-height);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--blue-light);
  border-bottom: 1px solid rgba(12, 52, 76, 0.08);
}

.topbar .container {
  width: min(calc(100% - 2rem), 1240px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo {
  width: 178px;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
}

.nav-links,
.nav-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links {
  margin: 0 auto;
}

.nav-links a,
.nav-actions a {
  font-size: 0.92rem;
  text-transform: uppercase;
  color: rgba(12, 52, 76, 0.85);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-actions a:hover {
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 2rem;
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.14;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--orange);
  color: var(--white) !important;
}

.btn-orange:hover {
  background: #f18400;
  box-shadow: 0 2px 6px rgba(255, 146, 26, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-dark) !important;
  border: 2px solid var(--blue-dark);
  padding: calc(0.85rem - 2px) calc(2.2rem - 2px);
}

.btn-ghost:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
}

/* ---------- Crumb ---------- */
.crumb {
  padding: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumb a {
  color: #2a72b8;
  font-weight: 600;
}

.crumb a:hover {
  text-decoration: underline;
}

/* ---------- Lesson hero ---------- */
.lesson-hero {
  padding: 2rem 0 1.5rem;
}

.lesson-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.lesson-hero .artist {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--muted);
  font-style: italic;
}

.lesson-hero .lesson-cue {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange);
}

/* ---------- Video embeds ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Player layout ---------- */
.player-section {
  padding: 0 0 2rem;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.player-main {
  position: relative;
}

.player-main .video-embed {
  border: 1px solid var(--line);
}

.player-now {
  margin: 0.8rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.player-now strong {
  color: var(--ink);
  font-weight: 700;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(12, 52, 76, 0.92);
  color: var(--white);
  border-radius: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 1rem;
  z-index: 2;
}

.lock-overlay.is-visible {
  display: flex;
}

.lock-overlay .lock-icon {
  font-size: 2rem;
  opacity: 0.85;
}

.lock-overlay h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.lock-overlay p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
}

.lock-overlay .btn-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lock-overlay .btn-link {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.playlist {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.playlist-head {
  padding: 0.85rem 1rem;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.playlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 22rem;
  overflow-y: auto;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.15s ease;
}

.playlist-item:last-child {
  border-bottom: 0;
}

.playlist-item:hover {
  background: var(--cream);
}

.playlist-item.is-active {
  background: var(--cream);
  font-weight: 700;
}

.playlist-item .pi-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 1.6rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 0.85rem;
}

.playlist-item.is-locked .pi-marker {
  background: rgba(12, 52, 76, 0.15);
  color: var(--blue-dark);
}

.playlist-item .pi-text {
  flex: 1;
  line-height: 1.3;
}

.playlist-item.is-locked .pi-text {
  color: var(--muted);
}

@media (max-width: 820px) {
  .player-layout {
    grid-template-columns: 1fr;
  }

  .playlist-list {
    max-height: 18rem;
  }
}

/* ---------- Lesson body ---------- */
.lesson-body {
  padding: 2rem 0;
}

.lesson-body .container {
  max-width: 760px;
}

.lesson-body h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.lesson-body p {
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lesson-body ul {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}

.lesson-body li {
  margin-bottom: 0.5rem;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--cream);
  padding: 3rem 0;
  text-align: center;
}

.cta-strip h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--ink);
}

.cta-strip p {
  max-width: 36rem;
  margin: 0 auto 1.8rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-strip .btn-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Other lessons ---------- */
.other-lessons {
  padding: 3rem 0 4rem;
}

.other-lessons h2 {
  margin: 0 0 1.6rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}

.other-lessons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.other-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}

.other-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(12, 52, 76, 0.1);
}

.other-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.other-card .meta {
  padding: 0.9rem 1rem 1.1rem;
}

.other-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.other-card .artist {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(12, 52, 76, 0.08);
  background: var(--blue-light);
  color: var(--blue-dark);
}

.site-footer a {
  color: var(--blue-dark);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .topbar .container {
    justify-content: space-between;
  }
}

@media (max-width: 820px) {
  .other-lessons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .other-lessons-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    justify-content: center;
  }
}
