/* ========================================
   ACE Masterclasses replay page
   Tokens redeclared (subset of v15) for page isolation.
   ======================================== */

:root {
  --bg: #0a0a0f;
  --bg-subtle: #0e0e16;
  --bg-elev: #11111c;
  --text: #e8e4f0;
  --text-mid: #9898b8;
  --text-dim: #7878a0;
  --authority: #c8a0f0;
  --capacity: #60d8a8;
  --expansion: #e080a0;
  --border: rgba(200, 160, 240, 0.08);
  --border-strong: rgba(200, 160, 240, 0.16);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Header ────────────────────────────── */

.mc-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.mc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-mid);
  font-size: 0.875rem;
  transition: color 200ms ease;
  justify-self: start;
}

.mc-back:hover { color: var(--text); }

.mc-back-arrow { font-size: 1.1em; }

.mc-mark {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 16px rgba(136, 120, 255, 0.28))
          drop-shadow(0 0 40px rgba(200, 160, 240, 0.10));
  transition: transform 240ms ease;
}

.mc-mark:hover { transform: translateY(-1px) scale(1.04); }

.mc-mark svg { width: 100%; height: 100%; display: block; }

.mc-header-spacer { justify-self: end; }

/* ── Hero ─────────────────────────────── */

.mc-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.mc-eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.5rem;
}

.mc-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.mc-sub {
  font-size: 1.125rem;
  color: var(--text-mid);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Player + Sidebar ─────────────────── */

.mc-player-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.mc-player-wrap { width: 100%; }

.mc-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.mc-player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mc-sidebar {
  display: flex;
  flex-direction: column;
}

.mc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mc-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}

.mc-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-elev);
}

.mc-item.is-active {
  border-color: rgba(200, 160, 240, 0.4);
  background: var(--bg-elev);
  box-shadow: 0 0 24px rgba(200, 160, 240, 0.12);
}

.mc-thumb {
  flex: 0 0 96px;
  aspect-ratio: 16 / 9;
  background: #000 center/cover no-repeat;
  border-radius: 4px;
}

.mc-meta { min-width: 0; flex: 1; }

.mc-meta-title {
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 0.25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mc-meta-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Description ──────────────────────── */

.mc-description {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.mc-description-inner {
  max-width: 44rem;
}

.mc-desc-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.mc-desc-meta {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.5rem;
}

.mc-desc-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0;
}

/* ── CTA ──────────────────────────────── */

.mc-cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.mc-cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--authority);
  color: var(--bg);
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.mc-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(200, 160, 240, 0.24);
}

.mc-cta-sub {
  font-size: 0.9375rem;
  color: var(--text-mid);
  margin: 1.5rem 0 0;
}

/* ── Footer ───────────────────────────── */

.mc-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.mc-footer p { margin: 0; }

/* ── Mobile ───────────────────────────── */

@media (max-width: 768px) {
  .mc-header { padding: 1rem 1.25rem; }
  .mc-back-text { display: none; }
  .mc-mark { width: 38px; height: 38px; }
  .mc-hero { padding: 2.5rem 1.25rem 2rem; }
  .mc-player-section {
    grid-template-columns: 1fr;
    padding: 1rem 1.25rem 0;
    gap: 1rem;
  }
  .mc-sidebar { order: -1; }
  .mc-list {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .mc-list::-webkit-scrollbar { display: none; }
  .mc-item {
    flex: 0 0 240px;
    flex-direction: column;
    scroll-snap-align: start;
  }
  .mc-thumb { width: 100%; flex: none; }
  .mc-description { padding: 2rem 1.25rem 0; }
  .mc-cta { padding: 3rem 1.25rem 2.5rem; }
}
