/* ════════════════════════════════════════════════════════
   layout.css — Structural layout only (no component styles)
   ════════════════════════════════════════════════════════ */

:root {
  --player-h:  88px;
  --kbd-bar-h: 30px;
  --sidebar-w: 268px;
}

/* ── App container ──────────────────────────────────────── */
#app {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - var(--player-h) - var(--kbd-bar-h));
}

/* ── Sidebar ────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

/* ── Main content area ──────────────────────────────────── */
#main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background 0.3s;
}

/* ── Player bar ─────────────────────────────────────────── */
#player {
  height: var(--player-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  flex-shrink: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

/* ── Keyboard hints bar ─────────────────────────────────── */
#kbd-bar {
  height: var(--kbd-bar-h);
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 16px;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

/* ── Hero section ───────────────────────────────────────── */
#hero {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 32px 30px 28px;
  background: linear-gradient(160deg, var(--surface2) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  min-height: 190px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

/* Hero info fills center, title is large */
#hero-info {
  flex: 1;
  min-width: 0;
}

#hero-info .hero-eye {
  margin-bottom: 8px;
}

#hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  transition: color 0.3s;
}

/* ── Song grid ──────────────────────────────────────────── */
#song-grid {
  padding: 4px 30px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

/* ── Section bar ────────────────────────────────────────── */
.section-bar {
  padding: 18px 30px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-shrink: 0;
}
.section-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Player controls layout ─────────────────────────────── */
#p-info {
  width: 190px;
  min-width: 0;
  flex-shrink: 0;
}

#p-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.ctrl-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.prog-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 500px;
}

#p-right {
  width: 170px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
