/* =========================================================
   Scifi Funk — SYNC STYLESHEET (sync.css)
   Extracted from inline <style> block
   ========================================================= */

/* --- Base reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  /* Sync theme (light green) */
  --accent: #2ecc71;
  --accent-dark: #27ae60;
  --accent-soft: #e9f7ef;
  --ink: #2c3e50;
  --muted: #7f8c8d;
  --panel: #ffffff;
  --bg: #f4f4f4;
  --line: #ecf0f1;
}

/* --- Page body --- */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg);
}

.container {
  background: var(--panel);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Typography --- */
h1 {
  color: var(--ink);
  margin-bottom: 10px;
  font-size: 2em;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
}

h2 {
  color: #34495e;
  margin: 26px 0 12px 0;
  font-size: 1.4em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}

p { margin-bottom: 14px; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Featured (top) --- */
.feature-box {
  background: var(--accent-soft);
  padding: 18px;
  border-radius: 8px;
  margin: 16px 0;
  border: 2px solid var(--accent);
}

.track-meta {
  color: var(--muted);
  font-size: 0.95em;
  margin-top: 4px;
}

/* --- Sections --- */
.list {
  background: #f8f9fa;
  padding: 14px;
  border-radius: 6px;
  margin-top: 10px;
  border-left: 4px solid var(--accent);
}

.item {
  padding: 12px 10px;
  background: white;
  border-radius: 6px;
  margin: 10px 0;
  border-left: 4px solid var(--accent);
}

.price {
  font-weight: 800;
  color: var(--ink);
  margin-top: 6px;
}

.cta-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}
.cta-button:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  text-decoration: none;
}

/* --- Track list: compact, scalable --- */
.tracklist { margin-top: 8px; }

.track-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.track-title {
  white-space: nowrap;
  font-weight: 700;
}


.track-left {
  min-width: unset;
  width: auto;
}


.track-right {
  justify-self: end;
}


.track-right audio {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 420px;
}

.link-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  white-space:nowrap;
}

/* keep the Bandcamp column width even when not shown */
.bc-placeholder{
  visibility:hidden;
}



.placeholder {
  color: var(--muted);
  font-size: 0.95em;
  white-space: nowrap;
  font-weight: 600;
}

/* --- Footer / nav --- */
.site-nav {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}

.site-nav a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}

.footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9em;
  text-align: center;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  body { padding: 10px; }
  .container { padding: 20px; }
  h1 { font-size: 1.5em; }
  .track-right { justify-content: flex-start; }
  .track-right { min-width: 220px; }
}

/* Sync track landing pages: force centred layout */
body.sync-track-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* If something is forcing container full-width, pin it */
.sync-track-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Defensive: if .main or .banner has odd widths */
body.sync-track-page .main,
body.sync-track-page .banner {
  width: 100%;
}

.sleeve__cta {
  position:absolute;
  top:8px;
  right:8px;
  background:rgba(0,0,0,0.7);
  padding:4px 8px;
  font-size:0.7rem;
  border-radius:4px;
  color:#f0c34a;
  font-weight:700;
}

/* */
/* Sync Video layout */
/* */
.scene-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.scene-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* LEFT: square video */
.scene-video {
  width: 70%;
  max-width: 420px; /* optional cap */
}

.scene-groups {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ?? KEY LINE */
  height: 100%;
}

.scene-video video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain; /* ?? important: NO cropping */
  border-radius: 10px;
  display: block;
}

/* MAIN LINKS */
.scene-group-title {
  display: block;
  font-weight: 700;
  color: var(--sf-ink);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.scene-group-title:hover {
  color: var(--sf-blue);
}

/* SUB ITEMS */
.scene-sublist {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-left: 10px;
  font-size: 0.8rem;
}

.scene-sublist a {
  color: var(--sf-blue);
  text-decoration: none;
}

.scene-sublist a.active {
  color: var(--sf-ink);
  font-weight: 700;
}

.scene-sublist a:hover {
  text-decoration: underline;
}

/* ACTIVE STATE */
.scene-group.active .scene-sublist {
  display: flex;
}

.scene-group.active .scene-group-title {
  color: var(--sf-blue);
}

.record-bin h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 10px 14px 0;
}

.record-bin h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 2px 14px 8px;
  color: var(--sf-blue); /* subtle secondary tone */
}

.sleeve.active {
  outline: 2px solid #9ec4ff;
  box-shadow: 0 0 12px rgba(158,196,255,0.6);
}

.track-meta {
  margin-top: 6px;
  font-size: 0.85rem;
}

#bandcampLink {
  color: #9ec4ff;
  text-decoration: none;
}

#bandcampLink:hover {
  text-decoration: underline;
}