*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

:root {
  --bg:      rgba(231,227,255,1);
  --ink:     rgba(55,0,255,1);
  --link:    #002dba;
  --link-hov:#10078e;
  --body:    #333333;
  --mono:    'Overpass Mono', 'Courier New', monospace;
  --ascii:   'Courier New', Courier, monospace;
  --head:    'Libre Franklin', sans-serif;
  --fs:      9pt;
  --lh:      1.75;
  --pad:     40px;
}

body {
  font-family: var(--mono);
  font-weight: 300;
  font-size: var(--fs);
  line-height: var(--lh);
  background-color: var(--bg);
  color: var(--body);
}

a { color: var(--link); text-decoration: underline; transition: color .15s; }
a:hover { color: var(--link-hov); }

.shell { display: flex; height: 100vh; overflow: hidden; }

/* ── LEFT RAIL ── */
.left {
  width: 300px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--pad);
}

.site-header { margin-bottom: var(--pad); }

.site-header-title {
  font-family: var(--ascii);
  font-weight: 300;
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--ink);
  white-space: pre-line;
}

.site-header-link {
  display: block;
  font-family: var(--mono);
  font-weight: 300;
  font-size: var(--fs);
  color: var(--link);
  text-decoration: underline;
  margin-top: 4px;
}

.site-header-link:hover { color: var(--link-hov); }

.mix-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.mix-list::-webkit-scrollbar { display: none; }

.mix-item {
  display: block;
  font-family: var(--mono);
  font-weight: 300;
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--link);
  text-decoration: none;
}

.mix-item:hover { color: var(--link-hov); text-decoration: underline; }
.mix-item.active { color: var(--ink); text-decoration: underline; }
.mix-item.unavailable { opacity: .3; cursor: default; pointer-events: none; color: var(--body); }

/* ── RIGHT PANEL ── */
.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  padding: var(--pad) var(--pad) 0;
}

/* two-column grid used by all rows */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--pad);
}

/* ── A ROW: art | empty ── */
.row-a {
  margin-bottom: var(--pad);
}

/* double bevel art frame — outer raised, inner sunken */
.art-bevel-outer {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-top:    5px solid rgba(255,255,255,0.85);
  border-left:   5px solid rgba(255,255,255,0.85);
  border-bottom: 5px solid rgba(55,0,255,0.5);
  border-right:  5px solid rgba(55,0,255,0.5);
  padding: 4px;
}

.art-bevel-inner {
  width: 100%;
  height: 100%;
  border-top:    3px solid rgba(55,0,255,0.3);
  border-left:   3px solid rgba(55,0,255,0.3);
  border-bottom: 3px solid rgba(255,255,255,0.7);
  border-right:  3px solid rgba(255,255,255,0.7);
  overflow: hidden;
  position: relative;
}

.art-bevel-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* placeholder when no art */
.art-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(55,0,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: var(--fs);
  color: var(--ink);
  opacity: .4;
}

/* ── B ROW: progress | empty ── */
.row-b {
  margin-bottom: var(--pad);
}

.progress-status {
  font-family: var(--ascii);
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--ink);
  white-space: pre;
  display: block;
  letter-spacing: 0;
  user-select: none;
}

.progress-ascii {
  font-family: var(--ascii);
  font-weight: 300;
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--ink);
  white-space: pre;
  cursor: pointer;
  display: block;
  width: 100%;
  overflow: hidden;
  letter-spacing: 0;
  user-select: none;
}

/* ── C ROW: buttons ── */
.row-c {
  margin-bottom: var(--pad);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.btn-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--pad);
  margin-bottom: calc(var(--pad) / 2);
}

.ascii-btn {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--ascii);
  font-size: var(--fs);
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0;
  gap: 0;
}

.ascii-btn:hover { color: var(--link-hov); }
.ascii-btn:hover .ascii-btn-label { text-decoration: underline; }

.ascii-btn.active .ascii-btn-box,
.ascii-btn:active .ascii-btn-box {
  color: var(--bg);
  background: var(--ink);
}

.ascii-btn-label {
  font-family: var(--ascii);
  font-size: var(--fs);
  color: inherit;
  padding-top: 1.35em;
  padding-left: 0.5em;
  line-height: 1.35;
}

.ascii-btn-box {
  white-space: pre;
  line-height: 1.35;
  display: block;
  font-family: var(--ascii);
  font-size: var(--fs);
  color: var(--ink);
  transition: color .08s, background .08s;
}

/* ── D ROW: description | tracklist ── */
.detail-cols {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--pad);
  overflow: hidden;
  min-height: 0;
}

.col {
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: var(--pad);
}
.col::-webkit-scrollbar { display: none; }

.col-label {
  font-family: var(--mono);
  font-weight: 300;
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--ink);
  margin-bottom: 4px;
}

.col-desc {
  font-family: var(--mono);
  font-weight: 300;
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--body);
}

.col-desc a { color: var(--link); }
.col-desc a:hover { color: var(--link-hov); }

.track-item {
  font-family: var(--mono);
  font-weight: 300;
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--body);
  display: flex;
  gap: 8px;
}

.track-dash { color: var(--ink); flex-shrink: 0; }

/* ── MOBILE ── */
.mobile-back {
  display: none;
  padding: calc(var(--pad) / 2) var(--pad);
  font-family: var(--mono);
  font-weight: 300;
  font-size: var(--fs);
  cursor: pointer;
  color: var(--link);
  flex-shrink: 0;
}

.nav-close {
  display: none;
}

@media (max-width: 680px) {
  .shell { display: block; height: auto; }
  .right { height: auto; overflow: visible; }
  .content-wrap { max-width: 100%; }
  .grid, .row-b, .row-c { grid-template-columns: 1fr; }
  .detail-cols { grid-template-columns: 1fr; height: auto; overflow: visible; }

  /* nav hidden by default on mobile, shown via .nav-open on shell */
  .left {
    display: none;
    width: 100%;
    padding-bottom: calc(var(--pad) / 2);
    border-bottom: 1px solid rgba(55,0,255,0.15);
  }
  .shell.nav-open .left  { display: flex; }
  .shell.nav-open .right { display: none; }
  .shell.nav-open .nav-close {
    display: block;
    font-family: var(--ascii);
    font-size: var(--fs);
    color: var(--link);
    cursor: pointer;
    margin-top: 8px;
    text-decoration: underline;
  }
  .shell.nav-open .nav-close:hover { color: var(--link-hov); }

  /* hamburger bar at top of right panel */
  .mobile-back {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
}
