/* ─────────────────────────────────────────────────────────────────────────
 *  Radio Folkestone listener app
 *
 *  Ross's redesign, 2026-09-22: a deep navy ground with an ambient cyan and
 *  violet wash, a square hero for the cover art, one warm play button and a
 *  five-tab bar.
 *
 *  Written as plain CSS rather than the Tailwind CDN the mockup was built
 *  with. This is an installable PWA whose service worker caches what it needs
 *  to run offline; the Tailwind CDN is a development build that compiles
 *  classes in the browser at runtime, so the app would have depended on a
 *  third-party script being reachable to have any layout at all. The tokens
 *  below are the mockup's own values.
 * ───────────────────────────────────────────────────────────────────────── */

:root {
  --app-bg:        #040711;
  --app-bg-1:      #0B1328;
  --app-bg-2:      #070D1E;
  --app-card:      rgba(17, 29, 61, 0.65);
  --app-line:      rgba(255, 255, 255, 0.08);
  --app-line-soft: rgba(255, 255, 255, 0.05);
  --app-glass:     rgba(255, 255, 255, 0.06);
  --app-ink:       #F1F5F9;
  --app-dim:       #94A3B8;
  --app-mute:      #7F8EA3;
  --app-cyan:      #00F2FE;
  --app-accent:    #FF5733;
  --app-violet:    #7928CA;
  --app-red:       #F87171;
  --app-ok:        #34D399;
  --app-r:         16px;
  --app-r-lg:      26px;
  --app-bar:       76px;   /* tab bar height, used for scroll padding */
}

* { box-sizing: border-box; }

/* The app hides things with the `hidden` attribute — the install prompt, the
   mini player, the quality pill, the favourite bell. A class that sets
   `display` outranks the browser's own [hidden] rule, so without this the
   install overlay could not be dismissed at all: it stayed on screen with its
   backdrop blur over everything. Say it once, loudly, rather than remembering
   it at every rule that sets display. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  /* The ambient wash the mockup opens with: cyan over violet, fading out
     before it reaches the bottom of the screen. Fixed, so it stays put while
     the content scrolls under it. */
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 242, 254, 0.15) 0%, rgba(121, 40, 202, 0.12) 35%, rgba(5, 8, 20, 0) 70%),
    linear-gradient(to bottom, var(--app-bg-1) 0%, var(--app-bg-2) 55%, var(--app-bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px calc(var(--app-bar) + env(safe-area-inset-bottom, 0px) + 18px);
}

h1, h2, h3, b, strong { font-family: 'Sora', 'Inter', sans-serif; }
button { font: inherit; color: inherit; }

/* ── the station bar ──────────────────────────────────────────────────── */
.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 12px;
  /* Opaque enough that content scrolling under it stays readable, without
     losing the wash behind. */
  background: linear-gradient(to bottom, rgba(7, 13, 30, 0.95) 60%, rgba(7, 13, 30, 0));
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 13px;
  background: linear-gradient(140deg, #16274E, #1E2D58);
  border: 1px solid var(--app-line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-txt { min-width: 0; }
.brand-txt b {
  display: block;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.brand-sub i { font-style: normal; font-size: 10.5px; color: var(--app-mute); font-weight: 500; }

.live-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--app-red);
}
.live-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .7);
  animation: pulseDot 2s infinite;
}
.live-pill.off { color: var(--app-mute); }
.live-pill.off .dot { background: var(--app-mute); animation: none; box-shadow: none; }
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); }
  70%  { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.appbar-acts { display: flex; gap: 8px; flex: none; }
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--app-line);
  background: var(--app-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--app-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, color .15s ease;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-dot {
  position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--app-cyan);
}

/* ── the hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--app-r-lg);
  background: linear-gradient(to bottom, #16274E, #0E1A38 55%, #0A1227);
  border: 1px solid var(--app-line);
  padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}
/* The glow behind it, which is what stops the card reading as a flat panel. */
.hero::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(0, 242, 254, .18), rgba(255, 87, 51, .16), rgba(121, 40, 202, .2));
  filter: blur(18px);
  opacity: .7;
  z-index: -1;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 242, 254, .2);
  color: var(--app-cyan);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--app-cyan); }
.hero-badge.is-off { color: var(--app-mute); border-color: var(--app-line); }
.hero-badge.is-off .dot { background: var(--app-mute); }
.hero-quality {
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--app-line-soft);
  color: var(--app-dim);
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.hero-mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-mid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--app-r-lg);
  /* Under the badges, which have their own z-index. */
  position: absolute; inset: 0;
}
/* Whatever the hero is showing — a song cover, a show's own artwork, or the
   station logo — it fills the card. The logo is square, so filling it crops
   nothing; a show's artwork is cropped the way any cover art is. */
@media (prefers-reduced-motion: reduce) {
  .live-pill .dot { animation: none; }
}

.hero-foot { z-index: 2; }
.hero-from { font-size: 11px; color: var(--app-cyan); font-weight: 600; }

/* ── what's on ────────────────────────────────────────────────────────── */
.now-meta { text-align: center; padding: 20px 4px 0; }
.now-show {
  margin: 0;
  font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
}
.now-with { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--app-cyan); }
.now-track {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 12px 0 0;
  max-width: 100%;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--app-line-soft);
  font-size: 12px; color: var(--app-dim);
  text-align: left;
}
.now-track b { color: #fff; font-weight: 600; font-family: inherit; }
.now-track .np-ico { width: 13px; height: 13px; flex: none; fill: var(--app-accent); }
.now-track .np-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── controls ─────────────────────────────────────────────────────────── */
.controls {
  /* Three columns rather than a flex row: the play button stays dead centre
     even when the bell beside it is hidden, which it is whenever what is on
     is not a programme anybody can be reminded about. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 0 4px;
}
/* Placed by column rather than by source order: a hidden control leaves the
   grid altogether, so relying on order put the play button in column one the
   moment the bell was hidden. */
.controls #favBtn   { grid-column: 1; justify-self: end;   margin-right: 26px; }
.controls .play-btn { grid-column: 2; }
.controls #shareBtn { grid-column: 3; justify-self: start; margin-left: 26px; }
.ctl {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--app-line);
  background: var(--app-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--app-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, color .15s ease, border-color .15s ease;
}
.ctl:active { transform: scale(.9); }
.ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl.on { color: var(--app-cyan); border-color: rgba(0, 242, 254, .3); }
.ctl.on svg { fill: rgba(0, 242, 254, .15); }

.play-btn {
  position: relative;
  width: 78px; height: 78px; flex: none;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #FF4500, #FF5A36 55%, #FFA07A);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(255, 87, 51, .45), 0 0 20px 2px rgba(255, 87, 51, .2);
  transition: transform .12s ease, filter .15s ease;
}
.play-btn:active { transform: scale(.95); }
.play-btn svg { width: 30px; height: 30px; fill: currentColor; }
.play-btn .ic-play { margin-left: 4px; }
.play-btn .ic-pause, .play-btn .spinner { display: none; }
/* The state lives on <body>, which is where app.js puts it — the audio
   element drives the whole shell, not one button, so the mini player follows
   the same two classes. */
body.playing .play-btn .ic-play { display: none; }
body.playing .play-btn .ic-pause { display: block; }
body.loading .play-btn .ic-play, body.loading .play-btn .ic-pause { display: none; }
body.loading .play-btn .spinner { display: block; }
.spinner {
  width: 26px; height: 26px;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── message the studio ───────────────────────────────────────────────── */
.studio-card {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px;
  padding: 13px 14px;
  border-radius: var(--app-r);
  background: var(--app-card);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--app-line);
  text-decoration: none; color: inherit;
}
.studio-ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  background: linear-gradient(140deg, #10B981, #0F766E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(16, 185, 129, .7);
}
.studio-ico svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.studio-body { flex: 1; min-width: 0; }
.studio-body b { display: block; font-size: 12.5px; font-weight: 700; }
.studio-body i { display: block; font-style: normal; font-size: 11px; color: var(--app-mute); margin-top: 1px; }
.studio-go {
  flex: none;
  padding: 7px 13px;
  border-radius: 9px;
  background: rgba(16, 185, 129, .18);
  border: 1px solid rgba(52, 211, 153, .3);
  color: #6EE7B7;
  font-size: 12px; font-weight: 700;
}

/* ── section headings ─────────────────────────────────────────────────── */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 26px 0 11px;
}
.sec-head h2 {
  margin: 0;
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--app-mute);
}
.sec-link {
  border: 0; background: none;
  font-size: 12px; font-weight: 600; color: var(--app-cyan);
  cursor: pointer; padding: 0;
}

/* ── on air later ─────────────────────────────────────────────────────── */
.onair-list { display: flex; flex-direction: column; gap: 9px; }
.oa-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px;
  border-radius: var(--app-r);
  background: var(--app-card);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--app-line);
  border-left: 3px solid var(--app-cyan);
}
.oa-time {
  flex: none;
  padding-right: 13px;
  border-right: 1px solid var(--app-line);
  font-family: 'Sora', sans-serif;
  font-size: 12.5px; font-weight: 700;
  text-align: center;
}
.oa-body { flex: 1; min-width: 0; }
.oa-body b { display: block; font-size: 13.5px; font-weight: 700; }
.oa-body i {
  display: block; font-style: normal;
  font-size: 11.5px; color: var(--app-mute); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bell {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .05);
  color: var(--app-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, color .15s ease, background .15s ease;
}
.bell:active { transform: scale(.9); }
.bell svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell.on { color: var(--app-cyan); background: rgba(0, 242, 254, .14); }
.bell.on svg { fill: rgba(0, 242, 254, .2); }

/* ── catch-up cards ───────────────────────────────────────────────────── */
.cu-row {
  display: flex; gap: 13px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.cu-row::-webkit-scrollbar { display: none; }
.cu-card { width: 142px; flex: none; text-decoration: none; color: inherit; }
.cu-art {
  width: 142px; height: 142px;
  border-radius: 18px;
  border: 1px solid var(--app-line);
  padding: 11px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .9);
}
.cu-art.cu-mix    { background: linear-gradient(140deg, #B45309, #4C1D95 55%, #0F172A); }
.cu-art.cu-twitch { background: linear-gradient(140deg, #0891B2, #1E1B4B 55%, #0F172A); }
.cu-art.cu-tunein { background: linear-gradient(140deg, #E11D48, #831843 55%, #0F172A); }
.cu-tag {
  align-self: flex-start;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .6);
  font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.cu-art.cu-mix .cu-tag    { color: #FCD34D; }
.cu-art.cu-twitch .cu-tag { color: #67E8F9; }
.cu-art.cu-tunein .cu-tag { color: #FDA4AF; }
.cu-art b { font-size: 12px; font-weight: 700; line-height: 1.25; display: block; }
.cu-card > b { display: block; font-size: 12.5px; font-weight: 600; margin-top: 9px; }
.cu-card > i { display: block; font-style: normal; font-size: 10.5px; color: var(--app-mute); margin-top: 2px; }

/* ── other views ──────────────────────────────────────────────────────── */
.view-head { padding: 6px 0 2px; }
.view-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.view-lead { margin: 6px 0 16px; font-size: 12.5px; color: var(--app-mute); line-height: 1.5; }
.sched-list .loading, .view > .loading { padding: 26px 0; text-align: center; color: var(--app-mute); font-size: 12.5px; }

.day-tabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 14px; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  background: var(--app-glass);
  color: var(--app-dim);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.day-tab.is-active { background: var(--app-cyan); border-color: var(--app-cyan); color: #04121A; }

.sched-list { display: flex; flex-direction: column; gap: 9px; }
.slot {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px;
  border-radius: var(--app-r);
  background: var(--app-card);
  border: 1px solid var(--app-line);
}
.slot.now { border-color: rgba(0, 242, 254, .35); background: rgba(0, 242, 254, .07); }
.slot.filler { opacity: .62; }
.slot-time {
  flex: none; width: 62px;
  padding-right: 11px;
  border-right: 1px solid var(--app-line);
  font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700;
}
.slot-time i { display: block; font-style: normal; font-size: 10.5px; color: var(--app-mute); font-weight: 500; margin-top: 1px; }
.slot-body { flex: 1; min-width: 0; }
.slot-body b { display: block; font-size: 13.5px; font-weight: 700; }
.slot-body i { display: block; font-style: normal; font-size: 11.5px; color: var(--app-mute); margin-top: 2px; }
.slot-badge {
  flex: none;
  padding: 3px 8px; border-radius: 999px;
  background: var(--app-cyan); color: #04121A;
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
}

.link-card {
  display: flex; align-items: center; gap: 13px;
  margin-bottom: 9px;
  padding: 13px 14px;
  border-radius: var(--app-r);
  background: var(--app-card);
  border: 1px solid var(--app-line);
  text-decoration: none; color: inherit;
}
.lc-ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06);
}
.lc-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.lc-mix    { color: #C4B5FD; }
.lc-twitch { color: #A78BFA; }
.lc-tunein { color: #67E8F9; }
.lc-wa     { color: #6EE7B7; }
.lc-mail   { color: #93C5FD; }
.lc-phone  { color: #FCD34D; }
.lc-heart  { color: #FDA4AF; }
.lc-shop   { color: #F9A8D4; }
.lc-body { flex: 1; min-width: 0; }
.lc-body b { display: block; font-size: 13px; font-weight: 700; }
.lc-body i { display: block; font-style: normal; font-size: 11.5px; color: var(--app-mute); margin-top: 2px; }
.lc-arrow { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--app-mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soon-note { margin: 14px 0 0; font-size: 11.5px; color: var(--app-mute); text-align: center; }

.alerts-card {
  border-radius: var(--app-r);
  background: var(--app-card);
  border: 1px solid var(--app-line);
  padding: 14px;
  margin-bottom: 18px;
}
.alerts-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.alerts-ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(0, 242, 254, .12); color: var(--app-cyan); display: flex; align-items: center; justify-content: center; }
.alerts-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alerts-head b { font-size: 13.5px; }

.fav-row {
  display: flex; align-items: center; gap: 13px;
  margin-bottom: 9px;
  padding: 13px 14px;
  border-radius: var(--app-r);
  background: var(--app-card);
  border: 1px solid var(--app-line);
}
.fav-body { flex: 1; min-width: 0; }
.fav-body b { display: block; font-size: 13.5px; font-weight: 700; }
.fav-body i { display: block; font-style: normal; font-size: 11.5px; color: var(--app-mute); margin-top: 2px; }
.empty-note {
  padding: 30px 18px;
  text-align: center;
  color: var(--app-mute);
  font-size: 12.5px;
  line-height: 1.55;
  border-radius: var(--app-r);
  border: 1px dashed var(--app-line);
}

.socials { display: flex; justify-content: center; gap: 14px; margin: 20px 0 6px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--app-glass); border: 1px solid var(--app-line); display: flex; align-items: center; justify-content: center; color: var(--app-dim); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.app-ver { text-align: center; font-size: 10.5px; color: var(--app-mute); margin: 12px 0 0; }

/* ── mini player ──────────────────────────────────────────────────────── */
.mini {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--app-bar) + env(safe-area-inset-bottom, 0px));
  width: min(480px, 100%);
  display: flex; align-items: center; gap: 11px;
  padding: 9px 14px;
  background: rgba(7, 13, 30, .94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--app-line);
  z-index: 35;
}
.mini-open {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 11px;
  background: none; border: 0; padding: 0;
  text-align: left; color: inherit; cursor: pointer;
  transition: opacity .12s ease;
}
.mini-open:active { opacity: .7; }
.mini-art { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; }
.mini-meta { flex: 1; min-width: 0; }
.mini-meta b { display: block; font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-meta i { display: block; font-style: normal; font-size: 11px; color: var(--app-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-play {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #FF4500, #FF5A36 60%, #FFA07A);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mini-play svg { width: 17px; height: 17px; fill: currentColor; }
.mini-play .ic-play { margin-left: 2px; }
.mini-play .ic-pause { display: none; }
body.playing .mini-play .ic-play { display: none; }
body.playing .mini-play .ic-pause { display: block; }

/* ── tab bar ──────────────────────────────────────────────────────────── */
.tabs {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  height: calc(var(--app-bar) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(7, 13, 30, .92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-top: 1px solid var(--app-line);
  z-index: 38;
}
.tab {
  flex: 1;
  border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--app-mute);
  font-size: 9.5px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer;
  padding: 6px 2px;
  transition: color .15s ease;
}
.tab-ico { position: relative; display: block; }
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-active { color: var(--app-cyan); }
.tab.is-active svg { stroke-width: 2.2; }
.tab-dot {
  position: absolute; top: -1px; right: -3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--app-accent);
  border: 2px solid #070D1E;
}

/* ── install prompt ───────────────────────────────────────────────────── */
.install-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 5, 12, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 20px;
}
.install-card {
  width: 100%; max-width: 420px;
  background: #101B38;
  border: 1px solid var(--app-line);
  border-radius: 22px;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.install-mark { display: inline-flex; width: 54px; height: 54px; border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.install-mark img { width: 100%; height: 100%; object-fit: cover; }
.install-card b { display: block; font-size: 16px; font-weight: 800; }
.install-card p { margin: 8px 0 16px; font-size: 12.5px; color: var(--app-mute); line-height: 1.5; }
.install-go {
  width: 100%; padding: 13px;
  border: 0; border-radius: 13px;
  background: linear-gradient(135deg, #FF4500, #FF5A36 60%, #FFA07A);
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer;
}
.install-ios { text-align: left; margin: 0 0 14px; padding-left: 20px; font-size: 12.5px; color: var(--app-dim); line-height: 1.7; }
.install-not { width: 100%; margin-top: 10px; padding: 11px; border: 0; background: none; color: var(--app-mute); font-size: 13px; cursor: pointer; }

/* ── toast ────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--app-bar) + env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 70;
  padding: 11px 17px;
  border-radius: 12px;
  background: rgba(16, 27, 56, .97);
  border: 1px solid var(--app-line);
  color: var(--app-ink);
  font-size: 12.5px; font-weight: 600;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9);
  transition: opacity .3s ease, transform .3s ease;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.hide { opacity: 0; transform: translate(-50%, 8px); }

/* Alerts box, as renderAlertsBox() emits it — .alert-row / .switch /
   .alert-status / .alert-list are its class names, not ours to choose. */
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 12px; }
.alert-row-txt b { display: block; font-size: 12.5px; font-weight: 700; }
.alert-row-txt i { display: block; font-style: normal; font-size: 11px; color: var(--app-mute); margin-top: 2px; }
.switch {
  width: 46px; height: 27px; flex: none;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  background: rgba(255, 255, 255, .06);
  position: relative; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: #94A3B8;
  transition: transform .18s ease, background .18s ease;
}
.switch.on { background: rgba(0, 242, 254, .25); border-color: rgba(0, 242, 254, .4); }
.switch.on::after { transform: translateX(19px); background: var(--app-cyan); }
.alert-status { font-size: 11.5px; color: var(--app-mute); line-height: 1.55; padding-top: 10px; border-top: 1px solid var(--app-line-soft); }
.alert-list { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--app-ink); line-height: 1.8; }
.btn-off {
  width: 100%; margin-top: 13px; padding: 10px;
  border-radius: 11px; border: 1px solid var(--app-line);
  background: rgba(255, 255, 255, .04);
  color: var(--app-dim); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
