/* MusicLounge Jukebox for Plex — showcase site
   Palette + hierarchy rule are pinned by MUSICLOUNGE-SCOPE.md:
   mint = background/environment, cream-yellow = content surfaces,
   gold = selection/state, orange = primary actions only. */

.ml {
  --mint: #70FFD2;
  --mint-deep: #4CE0B3;
  --cream: #FFFC8C;
  --cream-deep: #FFF6A8;
  --gold: #FFCC4D;
  --orange: #FF9137;
  --ink: #29231F;
  --ink-soft: #5a5044;
  --paper: #FFFDF3;

  --font-display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  background: var(--mint);
}

.ml * { box-sizing: border-box; }

.ml a { color: inherit; }

.ml .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--mint);
  padding: .35rem .8rem;
  border-radius: 999px;
}

.ml .vinyl {
  width: 16px;
  height: 16px;
  flex: none;
  animation: ml-spin 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ml .vinyl { animation: none; }
}
@keyframes ml-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- Hero ---------- */

.ml-hero {
  padding: 5.5rem 1.5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ml-hero::before,
.ml-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--mint-deep);
  opacity: .5;
  z-index: 0;
}
.ml-hero::before { width: 340px; height: 340px; top: -160px; left: -120px; }
.ml-hero::after  { width: 260px; height: 260px; bottom: -140px; right: -80px; }

.ml-hero > * { position: relative; z-index: 1; }

.ml-hero-logo {
  max-width: clamp(340px, 46vw, 600px);
  margin: 1.75rem auto 0;
  display: block;
}

.ml-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.05;
  margin: 1.25rem auto .9rem;
  max-width: 16ch;
}

.ml-hero .lede {
  max-width: 46ch;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.ml-hero .from-makers {
  margin-top: 1.5rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.ml-hero .from-makers a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Section shell ---------- */

.ml-section {
  padding: 4.5rem 1.5rem;
}

.ml-hero + .ml-section {
  padding-top: .5rem;
}

.ml-section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.ml-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  margin: 0 0 .6rem;
}

.ml-section .section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 2.75rem;
}

/* ---------- Two big mode cards ---------- */

.ml-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
@media (max-width: 760px) {
  .ml-modes { grid-template-columns: 1fr; }
}

.ml-card {
  background: var(--cream);
  border-radius: 22px;
  padding: 2.25rem 2rem;
  position: relative;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

/* punch-hole detail — a jukebox title-card cue, not decoration for its own sake */
.ml-card::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--ink);
}

.ml-card .card-kicker {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-left: 2.4rem;
}

.ml-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: .5rem 0 .75rem;
}

.ml-card p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.ml-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.ml-card li { margin-bottom: .4rem; }

.ml-card .card-tag {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-family: var(--font-mono);
  font-size: .78rem;
}

/* ---------- Trust strip ---------- */

.ml-strip {
  background: var(--ink);
  color: var(--paper);
}

.ml-strip .ml-section-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) {
  .ml-strip .ml-section-inner { grid-template-columns: 1fr; }
}

.ml-strip .fact {
  text-align: center;
}

.ml-strip .fact .mark {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: block;
  margin-bottom: .4rem;
}

.ml-strip .fact p {
  color: #d8d2c6;
  margin: 0;
  font-size: .95rem;
}

/* ---------- Screenshots ---------- */

.ml-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) {
  .ml-shots { grid-template-columns: 1fr; }
}

.ml-shot {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
}

.ml-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.ml-shot .placeholder {
  aspect-ratio: 9 / 18;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .78rem;
  text-align: center;
  padding: 1rem;
  border: 2px dashed var(--ink-soft);
  margin: 10px;
  border-radius: 10px;
}

.ml-shot figcaption {
  padding: .75rem 1rem 1rem;
  font-size: .9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- CTA ---------- */

.ml-cta {
  text-align: center;
}

.ml-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.ml-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  text-decoration: none;
  display: inline-block;
}

.ml-btn.primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.ml-btn.primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.ml-btn.secondary {
  background: var(--paper);
  color: var(--ink);
}
.ml-btn.secondary:hover { background: var(--cream); }

.ml-btn { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }

.ml-badge-meta {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink-soft);
}

/* Hero teaser strip — two cream cards previewing the two modes, matching
   the mode-card style used further down the page instead of a plain
   border-divided text layout */
.ml-hero-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 680px;
  margin: 2rem auto 0;
  text-align: left;
}
.ml-hero-teaser .teaser-col {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}
.ml-hero-teaser .teaser-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: .35rem;
}
.ml-hero-teaser p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
@media (max-width: 600px) {
  .ml-hero-teaser { grid-template-columns: 1fr; }
}

/* Inline site nav — header.php/nav.php don't actually exist in shared/,
   so this page owns its own head block and nav rather than including
   a shared file that isn't there. */
.ml-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
}
.ml-nav .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--mint);
  text-decoration: none;
}
.ml-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ml-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: .92rem;
}
.ml-nav a:hover { color: var(--gold); }
@media (max-width: 700px) {
  .ml-nav ul { display: none; }
}

/* Screenshot lightbox */
.ml-shot img { cursor: zoom-in; }
.ml-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(41, 35, 31, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.ml-lightbox.open { display: flex; }
.ml-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  border: 2px solid var(--paper);
  cursor: zoom-out;
}

/* Hero card — logo and copy in two columns on a cream card, replacing
   the fully centered/stacked hero now that the teaser cards are gone */
.ml-hero-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 8px 8px 0 var(--ink);
  max-width: 980px;
  margin: 2rem auto 0;
}
.ml-hero-card-media { display: flex; justify-content: center; }
.ml-hero-card .ml-hero-logo {
  max-width: 100%;
  width: 100%;
  margin: 0;
}
.ml-hero-card-copy h1 {
  text-align: left;
  max-width: none;
  margin: 0 0 1rem;
}
.ml-hero-card-copy .lede {
  text-align: left;
  max-width: none;
  margin: 0 0 1.1rem;
}
.ml-hero-card-copy .from-makers {
  text-align: left;
  margin: 0;
}
@media (max-width: 760px) {
  .ml-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }
  .ml-hero-card-copy h1,
  .ml-hero-card-copy .lede,
  .ml-hero-card-copy .from-makers {
    text-align: center;
  }
  .ml-hero-card .ml-hero-logo { max-width: 280px; }
}
