/* shell.css — The frame around every destination: the desktop rail, the phone tab bar,
   the standalone-page skeleton and the Playlists page.

   Cut from the single style.css on 2026-08-02. The <link> order in
   index.html IS the cascade order these were split at; reordering the
   tags changes which rule wins. */

/* ------------------------------------------------------------ app shell */

/* One app, four destinations: a fixed left rail on desktop, a bottom tab bar
   below the 860px seam, and one visible <section class="view"> in between. */
.app-shell {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

.views {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.view {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.view[hidden] { display: none; }

/* ---- left rail (desktop) */
.rail {
  flex: none;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.9rem 0.35rem;
  border-right: 1px solid var(--border);
  background: var(--panel);
}

.rail-mark {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  margin-bottom: 0.6rem;
}

.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  padding: 0.55rem 0;
  border: none;
  border-radius: 0.6rem;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
/* Settings sits at the foot of the rail. */
.rail-btn.nav-last { margin-top: auto; }
.rail-btn:hover { color: var(--fg); }
.rail-btn.on { background: var(--chip-bg); color: var(--accent-ink); }

.nav-icon { display: block; line-height: 0; }
.nav-icon svg { width: 20px; height: 20px; }
/* Two-word destinations ("Live Stream") wrap inside the 84px rail rather
   than widening it. */
.nav-label { font-size: 10.5px; font-weight: 500; line-height: 1.15; text-align: center; }

/* ---- bottom tab bar (phones) */
.bottombar {
  display: none;
  flex: none;
  height: 60px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.tab-btn.on { color: var(--accent-ink); }
.tab-btn .nav-icon svg { width: 19px; height: 19px; }
.tab-btn .nav-label { font-size: 10px; }

/* ------------------------------------------------------- standalone pages
   Find / Playlists / Settings are one centred scrolling column each. */

.page-scroll { overflow-y: auto; }

.page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem 2.5rem;
}

.page-head { margin-bottom: 1rem; }
.page-head h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  margin: 0;
}
.page-sub { color: var(--muted); font-size: 0.88rem; margin: 0.3rem 0 0; }
.page-note { color: var(--muted); font-size: 0.78rem; margin-top: 1rem; }
.page-head-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; }

/* Shared flat buttons for the pages. */
.btn-line,
.btn-accent,
.btn-quiet {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--fg);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.btn-line:hover, .btn-quiet:hover { border-color: var(--muted); }
.btn-accent { border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--chip-bg); }
.btn-quiet { border-color: transparent; color: var(--muted); padding: 0.3rem 0.5rem; }
.danger:hover { border-color: #c96e6e; color: #c96e6e; }

/* ------------------------------------------------------- Playlists page */

.pl-card {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--panel);
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.7rem;
}
.pl-card.on { border-color: var(--accent); }

.pl-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pl-card-mark { color: var(--accent-ink); }
.pl-card-name { flex: 1; min-width: 6rem; font-weight: 600; font-size: 1.02rem; }
.pl-card-count { color: var(--muted); font-size: 0.8rem; }

.pl-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.pl-chip {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  padding: 0.15rem 0.55rem;
  cursor: pointer;
}
.pl-chip:hover { color: var(--fg); border-color: var(--accent); }

.pl-card-tools { display: flex; gap: 0.3rem; margin-top: 0.6rem; }

