/* Drone's car screen at droiddrive.flamenetcloud.com (center.html), built to
   the Droid Drive full-screen design (the aa-full prototype and the in-game
   skin-aa-screens.css): a floating pill rail, the map edge to edge under
   everything, a turn card and ETA card over it, a weather card and an art
   media card in a side column, and Vinewood Sound and calls as full pages.
   Night by default; Day follows Drone's theme setting (center.js applyTheme).
   Phones on their side get tighter sizes; upright phones put the rail along
   the bottom with the media card above it. */

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/GoogleSans.woff2') format('woff2');
}
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('../fonts/MaterialSymbolsRounded.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0c0c0d;
  --surface2: #1d1e20;
  --surface3: #2a2b2e;
  --on: #e8eaed;
  --on2: #9aa0a6;
  --on3: #5f6368;
  --sep: rgba(255, 255, 255, 0.08);
  --nav: #01604a;
  --eta: #81c995;
  --accent: #6ae8ff;
  --accent-on: #002f37;
  --tonal: #c1d2ff;
  --tonal-on: #0b1d48;
  --red: #f28b82;
  --red-solid: #d93025;
  --green: #1e8e3e;
  --blue: #8ab4f8;
  --np: #c96a3d;
  --land: #1f2942;
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --rest: rgba(255, 255, 255, 0.22);
  --scrim: linear-gradient(180deg, rgba(12, 12, 13, 0.15) 0%, rgba(12, 12, 13, 0.82) 52%, rgba(12, 12, 13, 0.95) 100%);
  --np-bg: radial-gradient(110% 90% at 82% 30%, #5b2a24 0%, #1d1514 52%, #0c0c0d 100%);
  --call-bg: radial-gradient(90% 80% at 50% 10%, #234a3a 0%, #102018 55%, #0c0c0d 100%);
  /* Material 3 Expressive wavy progress, one per colour it is drawn in. */
  --wave-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cpath d='M0 9 Q6 2 12 9 T24 9' fill='none' stroke='%236ae8ff' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave-np: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cpath d='M0 9 Q6 2 12 9 T24 9' fill='none' stroke='%23c96a3d' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");

  /* Frame: gutter, rail width, side column width, and the safe-area insets. */
  --gut: 12px;
  --rail-w: 78px;
  --side-w: clamp(300px, 31vw, 400px);
  --st: max(var(--gut), env(safe-area-inset-top));
  --sr: max(var(--gut), env(safe-area-inset-right));
  --sb: max(var(--gut), env(safe-area-inset-bottom));
  --sl: max(var(--gut), env(safe-area-inset-left));
  /* Left and right edges of the map left uncovered by the rail and side column. */
  --fl: calc(var(--sl) + var(--rail-w) + var(--gut));
  --fr: calc(var(--sr) + var(--side-w) + var(--gut));
  --ctl: 56px;
}
:root[data-theme="day"] {
  color-scheme: light;
  --bg: #e9edf2;
  --surface: #ffffff;
  --surface2: #eef1f5;
  --surface3: #dfe3e8;
  --on: #1f1f1f;
  --on2: #5f6368;
  --on3: #9aa0a6;
  --sep: rgba(0, 0, 0, 0.08);
  --nav: #0b6b4f;
  --eta: #137333;
  --accent: #0b57d0;
  --accent-on: #ffffff;
  --tonal: #d3e3fd;
  --tonal-on: #041e49;
  --red: #b3261e;
  --blue: #0b57d0;
  --np: #9a4521;
  --land: #e8e4dd;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  --rest: rgba(0, 0, 0, 0.14);
  --scrim: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.86) 52%, rgba(255, 255, 255, 0.97) 100%);
  --np-bg: radial-gradient(110% 90% at 82% 30%, #f3ddd6 0%, #f6f1ef 55%, #ffffff 100%);
  --call-bg: radial-gradient(90% 80% at 50% 10%, #d6f0e1 0%, #f2f8f4 60%, #ffffff 100%);
  --wave-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cpath d='M0 9 Q6 2 12 9 T24 9' fill='none' stroke='%230b57d0' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave-np: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cpath d='M0 9 Q6 2 12 9 T24 9' fill='none' stroke='%239a4521' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--land);
  color: var(--on);
  font-family: 'Google Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 1, 'wght' 500;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input { -webkit-user-select: text; user-select: text; }

.card { background: var(--surface); color: var(--on); box-shadow: var(--shadow); }

/* ── Frame ───────────────────────────────────────────────────────────── */

.cs { position: fixed; inset: 0; overflow: hidden; }

/* ── Map: edge to edge, the cards float over it ──────────────────────── */

.cs-map { position: absolute; inset: 0; background: var(--land); }
#cs-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.cs-map-focus { position: absolute; pointer-events: none; left: var(--fl); right: var(--fr); top: var(--st); bottom: var(--sb); }

.cs-ctls { position: absolute; z-index: 6; left: var(--fl); top: var(--st); display: flex; flex-direction: column; gap: 10px; }
.cs-ctl { width: var(--ctl); height: var(--ctl); border-radius: 50%; display: grid; place-items: center; }
.cs-ctl .ms { font-size: 28px; }
.cs-ctl:active { background: var(--surface2); }

/* Turn card (green while guiding), destination card, or nothing. */
.cs-route {
  position: absolute; z-index: 6; top: var(--st); left: calc(var(--fl) + var(--ctl) + 12px);
  width: min(420px, calc(100vw - var(--fl) - var(--fr) - var(--ctl) - 12px - 96px));
  border-radius: 26px; padding: 16px 22px;
}
.cs-route:not(.has-dest):not(.guiding) { display: none; }
.cs-route-head { display: flex; align-items: center; gap: 18px; min-width: 0; }
.cs-route-icon { font-size: 34px; color: var(--accent); flex: none; }
.cs-route-text { min-width: 0; }
.cs-route-title { font-size: 24px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-route-sub { font-size: 17px; color: var(--on2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-route.guiding { background: var(--nav); color: #ffffff; padding: 12px 22px 18px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4); }
.cs-route.guiding .cs-route-icon { color: #ffffff; font-size: 56px; font-variation-settings: 'FILL' 1, 'wght' 600; }
.cs-route.guiding .cs-route-title { font-size: 20px; font-weight: 500; opacity: 0.92; font-variant-numeric: tabular-nums; }
.cs-route.guiding .cs-route-sub {
  font-size: 30px; font-weight: 600; line-height: 1.15; color: #ffffff;
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cs-route-then {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; margin: 0 -6px 12px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 17px; font-weight: 500;
}
.cs-route-then .ms { font-size: 26px; }

.cs-route-eta {
  position: absolute; z-index: 6; bottom: var(--sb); left: calc(var(--fl) + var(--ctl) + 12px);
  width: min(420px, calc(100vw - var(--fl) - var(--fr) - var(--ctl) - 12px));
  border-radius: 26px; padding: 18px 22px; font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--eta);
}

.cs-zoom { position: absolute; z-index: 6; left: var(--fl); bottom: var(--sb); width: var(--ctl); border-radius: calc(var(--ctl) / 2); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.cs-zoom button { width: 100%; height: 60px; display: grid; place-items: center; }
.cs-zoom button + button { border-top: 1px solid var(--sep); }
.cs-zoom .ms { font-size: 30px; }
.cs-zoom button:active { background: var(--surface2); }

.cs-chip { position: absolute; z-index: 6; right: var(--fr); top: var(--st); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.cs-speed {
  width: 72px; height: 72px; border-radius: 50%; background: #ffffff; color: #202124;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.cs-speed-value { font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cs-speed-unit { font-size: 12px; font-weight: 600; color: #5f6368; }
.cs-limit { width: 54px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }

.cs-street {
  position: absolute; z-index: 5; right: var(--fr); bottom: var(--sb); max-width: calc(100vw - var(--fl) - var(--fr) - var(--ctl) - 24px);
  height: 52px; padding: 0 20px; border-radius: 26px; display: flex; align-items: center;
  font-size: 19px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-street:empty { display: none; }
.cs-map:has(#cs-route-eta:not([hidden])) .cs-street { display: none; }

/* Search: a card where the turn card sits. */
.cs-search {
  position: absolute; z-index: 8; top: var(--st); left: calc(var(--fl) + var(--ctl) + 12px);
  width: min(480px, calc(100vw - var(--fl) - var(--fr) - var(--ctl) - 12px));
  max-height: calc(100% - var(--st) - var(--sb)); border-radius: 30px; display: flex; flex-direction: column; overflow: hidden;
}
.cs-search-bar { flex: none; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 10px 0 22px; border-bottom: 1px solid var(--sep); }
.cs-search-bar > .ms { font-size: 28px; }
.cs-search-bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--on); font: inherit; font-size: 21px; }
.cs-search-bar input::placeholder { color: var(--on2); }
.cs-search-bar button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--on2); }
.cs-search-bar button:active { background: var(--surface2); }
.cs-search-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 12px; }
.cs-search-heading { padding: 10px 14px 6px; font-size: 16px; font-weight: 500; color: var(--on2); }
.cs-search-empty { padding: 18px 14px; font-size: 17px; color: var(--on2); }
.cs-search-row { width: 100%; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 8px 14px; border-radius: 22px; text-align: left; }
.cs-search-row:active, .cs-search-row:focus-visible { background: var(--surface2); }
.cs-search-row > .ms { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); font-size: 26px; }
.cs-search-name { font-size: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-search-kind { font-size: 16px; color: var(--on2); }

/* ── Rail ────────────────────────────────────────────────────────────── */

.cs-rail {
  position: absolute; z-index: 20; left: var(--sl); top: var(--st); bottom: var(--sb); width: var(--rail-w);
  border-radius: calc(var(--rail-w) / 2); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 16px 0 14px;
}
.cs-rail-top { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cs-net { display: flex; align-items: flex-end; gap: 4px; font-size: 12px; font-weight: 700; line-height: 1; }
.cs-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.cs-signal i { width: 3px; border-radius: 1px; background: var(--on3); }
.cs-signal i:nth-child(1) { height: 3px; }
.cs-signal i:nth-child(2) { height: 5px; }
.cs-signal i:nth-child(3) { height: 8px; }
.cs-signal i:nth-child(4) { height: 11px; }
.cs-signal i.on { background: var(--on); }
.cs-fuel { display: flex; align-items: center; gap: 1px; padding: 1px 6px 1px 4px; border-radius: 7px; background: var(--green); color: #ffffff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cs-fuel .ms { font-size: 14px; }
.cs-fuel-track { display: none; }
.cs-fuel:has(.cs-fuel-fill.low) { background: var(--red-solid); }
.cs-clock { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-rail-apps, .cs-rail-end { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cs-app { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.cs-app .ms { font-size: 30px; }
.cs-app.on::after { content: ''; position: absolute; left: -12px; top: 18px; width: 4px; height: 16px; border-radius: 2px; background: var(--on); }
.c-maps { background: #ffffff; color: #1a73e8; }
:root[data-theme="day"] .c-maps { box-shadow: inset 0 0 0 1.5px #dadce0, 0 1px 3px rgba(0, 0, 0, 0.12); }
.c-music { background: #ff375f; color: #ffffff; }
.c-search { background: var(--surface2); color: var(--on); }
.c-plain { color: var(--on2); }
.c-plain .ms { font-size: 26px; }
.cs-app:active { filter: brightness(0.9); }

/* ── Side column: weather card over the media card ───────────────────── */

.cs-side { position: absolute; z-index: 6; right: var(--sr); top: var(--st); bottom: var(--sb); width: var(--side-w); display: flex; flex-direction: column; gap: 12px; }

.cs-place { flex: none; height: 120px; border-radius: 30px; padding: 0 26px; display: flex; align-items: center; gap: 20px; }
.cs-wx { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 40%, #ffe082, #fbbc04); color: #5c3c00; }
.cs-wx .ms { font-size: 34px; }
.cs-temp { font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.cs-place-text { margin-left: auto; min-width: 0; text-align: right; }
.cs-place-title { font-size: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-place-sub { font-size: 17px; color: var(--on2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cs-media {
  position: relative; flex: 1; min-height: 0; border-radius: 30px; overflow: hidden; isolation: isolate;
  padding: 18px 20px 20px; display: flex; flex-direction: column; justify-content: flex-end;
}
.cs-media > * { position: relative; z-index: 1; }
/* Cover art fills the card, blurred under a scrim; without art the card stays plain. */
.cs-media .cs-art { position: absolute; z-index: 0; inset: -14px; display: none; }
.cs-media .cs-art.has-art { display: block; }
.cs-media .cs-art .ms { display: none; }
.cs-media .cs-art img { object-position: center 30%; filter: blur(4px) saturate(1.2); }
.cs-media .cs-art.has-art::after { content: ''; position: absolute; inset: 0; background: var(--scrim); }
.cs-src { position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: #ff375f; display: grid; place-items: center; color: #ffffff; }
.cs-src .ms { font-size: 18px; }
.cs-media .cs-media-open { position: absolute; right: 12px; top: 10px; }
.cs-track { min-width: 0; }
.cs-track-title { font-size: 26px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-track-sub { font-size: 19px; color: var(--on2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-track-left { display: none; font-size: 14px; color: var(--on2); font-variant-numeric: tabular-nums; }

.cs-time { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--on2); font-variant-numeric: tabular-nums; }
.cs-time span { flex: none; min-width: 38px; }
.cs-time span:last-child { text-align: right; }
.cs-time span:empty { display: none; }
.cs-media-time { margin: 10px 0 14px; }

/* Progress: the played part is a moving sine, the rest a flat line. Drag to seek. */
.cs-progress {
  position: relative; flex: 1; min-width: 0; height: 18px;
  background: linear-gradient(var(--rest), var(--rest)) center / 100% 5px no-repeat;
}
.cs-progress-fill { height: 100%; width: 0; background: var(--wave-accent) repeat-x 0 0 / 24px 18px; }
.cs-np .cs-progress-fill { background-image: var(--wave-np); }
.cs-progress.off .cs-progress-fill { width: 0 !important; }
body.media-playing .cs-progress-fill { animation: cs-wave 1.3s linear infinite; }
@keyframes cs-wave { to { background-position: 24px 0; } }
.cs-progress.seekable { cursor: pointer; touch-action: none; }
.cs-progress.seekable::before { content: ''; position: absolute; left: -8px; right: -8px; top: -14px; bottom: -14px; }
.cs-progress.seekable::after {
  content: ''; position: absolute; top: 50%; left: var(--p, 0%); width: 6px; height: 26px; margin: -13px 0 0 -3px;
  border-radius: 3px; background: var(--accent); transform: scaleY(0); transition: transform 0.12s ease;
}
.cs-np .cs-progress.seekable::after { background: var(--np); }
.cs-progress.seekable:hover::after, .cs-progress.scrubbing::after { transform: scaleY(1); }
@media (hover: none) { .cs-progress.seekable::after { transform: scaleY(1); } }

.cs-controls { display: flex; align-items: center; gap: 10px; }
.cs-controls button { flex: 1; height: 64px; display: grid; place-items: center; color: var(--on); border-radius: 32px; }
.cs-controls button .ms { font-size: 36px; }
.cs-controls button:active { background: var(--surface2); }
.cs-controls .cs-play { flex: none; width: 120px; background: var(--accent); color: var(--accent-on); }
.cs-controls .cs-play:active { background: var(--accent); filter: brightness(0.92); }

.cs-icon-btn { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: var(--on2); }
.cs-icon-btn:active { background: var(--surface3); }
.cs-icon-btn:disabled { color: var(--on3); cursor: default; }
.cs-icon-btn .ms { font-size: 26px; }

/* ── Full pages: Vinewood Sound and calls ────────────────────────────── */

.cs-page { position: absolute; z-index: 15; left: var(--fl); right: var(--sr); top: var(--st); bottom: var(--sb); border-radius: 30px; overflow: hidden; }

.cs-apphead { position: relative; z-index: 2; height: 88px; display: flex; align-items: center; gap: 16px; padding: 0 22px; }
.cs-back { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.cs-back .ms { font-size: 32px; }
.cs-back:active { background: var(--surface2); }
.cs-srcic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ff375f; color: #ffffff; flex: none; }
.cs-srcic .ms { font-size: 22px; }
.cs-apphead h2 { margin: 0; min-width: 0; font-size: 28px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-chipbtn {
  margin-left: auto; flex: none; height: 56px; border-radius: 28px; padding: 0 24px 0 18px; display: flex; align-items: center; gap: 10px;
  background: var(--tonal); color: var(--tonal-on); font-size: 19px; font-weight: 500;
}
.cs-chipbtn .ms { font-size: 26px; }
.cs-chipbtn:active { filter: brightness(0.94); }

.cs-tabs { position: relative; z-index: 2; display: flex; gap: 10px; padding: 0 22px 16px; overflow-x: auto; scrollbar-width: none; }
.cs-tabs::-webkit-scrollbar { display: none; }
.cs-tabs button { flex: none; height: 56px; border-radius: 28px; padding: 0 24px; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; color: var(--on2); white-space: nowrap; }
.cs-tabs button .ms { font-size: 26px; }
.cs-tabs button[aria-selected="true"] { background: var(--tonal); color: var(--tonal-on); }
.cs-tab-count { margin-left: 2px; font-variant-numeric: tabular-nums; }
.cs-tab-count:empty { display: none; }
.cs-music[data-tab="playing"] .cs-tabs { display: none; }

.cs-np-bg { position: absolute; inset: 0; background: var(--np-bg); display: none; }
.cs-music[data-tab="playing"] .cs-np-bg { display: block; }

.cs-music-pane { position: absolute; z-index: 1; left: 0; right: 0; top: 160px; bottom: 0; overflow-y: auto; padding: 0 22px 22px; }
.cs-music-note { padding: 14px 6px; color: var(--on2); font-size: 17px; }

/* Now Playing: text and controls on the left, the art on the right. */
.cs-np {
  top: 88px; padding: 0 36px 32px 40px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px;
}
.cs-np-art {
  order: 2; position: relative; height: min(470px, 100%); aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  display: grid; place-items: center; background: linear-gradient(180deg, #ff6482, #ff2d55); color: #ffffff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.cs-np-art .ms { font-size: 150px; }
.cs-np-art img, .cs-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cs-np-art.has-art img, .cs-art.has-art img { opacity: 1; }
.cs-np-body { min-width: 0; display: flex; flex-direction: column; }
.cs-np-title { font-size: 40px; font-weight: 500; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-np-sub { margin-top: 6px; font-size: 24px; color: var(--on2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-np-time { margin: 30px 0 26px; font-size: 18px; color: var(--on); }
.cs-np-time .cs-progress { height: 20px; }
.cs-np-controls { display: flex; align-items: center; gap: 24px; }
.cs-np-controls button { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--on); }
.cs-np-controls button .ms { font-size: 42px; }
.cs-np-controls button:active { background: var(--surface3); }
.cs-np-controls .cs-play { width: 140px; height: 76px; border-radius: 38px; background: var(--np); color: #ffffff; }
.cs-np-controls .cs-play:active { background: var(--np); filter: brightness(0.92); }
.cs-volume { display: flex; align-items: center; gap: 12px; margin-top: 26px; max-width: 420px; color: var(--on2); }
.cs-volume .ms { font-size: 26px; }
.cs-volume input { flex: 1; min-width: 0; accent-color: var(--np); height: 28px; }
.cs-np-upnext { margin-top: 18px; font-size: 17px; color: var(--on2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-np-upnext b { color: var(--on); font-weight: 500; }

/* Station tiles. */
.cs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-rows: min-content; align-content: start; gap: 14px; }
.cs-tiles .cs-music-note, .cs-tiles .cs-confirm { grid-column: 1 / -1; }
.cs-music-row { position: relative; display: flex; align-items: center; gap: 18px; cursor: pointer; outline: 0; }
.cs-music-art {
  --station: var(--surface3); position: relative; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
  background: var(--station); color: #ffffff;
}
.cs-music-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cs-music-art.has-art img { opacity: 1; }
.cs-music-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-music-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-music-sub { color: var(--on2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-music-btns { display: flex; align-items: center; gap: 8px; }
.cs-music-row.dim .cs-music-title { color: var(--on3); text-decoration: line-through; }

.cs-tiles .cs-music-row { flex-direction: column; align-items: stretch; gap: 0; border-radius: 22px; overflow: hidden; background: var(--surface2); }
.cs-tiles .cs-music-row:active { filter: brightness(1.08); }
.cs-tiles .cs-music-art { width: 100%; aspect-ratio: 1; }
.cs-tiles .cs-music-art .ms { font-size: 64px; }
.cs-tiles .cs-music-row:nth-child(5n + 1) .cs-music-art { --station: #c5221f; }
.cs-tiles .cs-music-row:nth-child(5n + 2) .cs-music-art { --station: #7b1fa2; }
.cs-tiles .cs-music-row:nth-child(5n + 3) .cs-music-art { --station: #0b8043; }
.cs-tiles .cs-music-row:nth-child(5n + 4) .cs-music-art { --station: #1a73e8; }
.cs-tiles .cs-music-row:nth-child(5n + 5) .cs-music-art { --station: #e8710a; }
.cs-tiles .cs-music-row.active .cs-music-art .ms {
  position: absolute; z-index: 1; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-on); font-size: 24px;
}
.cs-tiles .cs-music-text { padding: 10px 14px 12px; }
.cs-tiles .cs-music-title { font-size: 18px; font-weight: 500; }
.cs-tiles .cs-music-sub { font-size: 15px; }
.cs-tiles .cs-music-row.active .cs-music-title { color: var(--accent); }

/* Queue and YouTube: rows. */
.cs-list .cs-music-row { min-height: 88px; padding: 0 12px 0 18px; border-radius: 24px; }
.cs-list .cs-music-row + .cs-music-row { margin-top: 6px; }
.cs-list .cs-music-row:active, .cs-list .cs-music-row:focus-visible, .cs-list .cs-music-row.active { background: var(--surface2); }
.cs-list .cs-music-art { width: 60px; height: 60px; border-radius: 14px; }
.cs-list .cs-music-art .ms { font-size: 30px; }
.cs-list .cs-music-row.active .cs-music-art .ms { color: var(--accent); }
.cs-list .cs-music-row.active .cs-music-art img { opacity: 0.35; }
.cs-list .cs-music-title { font-size: 21px; font-weight: 500; }
.cs-list .cs-music-row.active .cs-music-title { color: var(--accent); }
.cs-list .cs-music-sub { font-size: 17px; }
.cs-list .cs-icon-btn { width: 60px; height: 52px; border-radius: 26px; background: var(--surface2); color: var(--on); }
.cs-list .cs-music-row.active .cs-icon-btn { background: var(--surface3); }
.cs-list .cs-icon-btn:disabled { color: var(--on3); }

.cs-confirm { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-radius: 22px; background: var(--surface2); font-size: 17px; }
.cs-confirm span { flex: 1; min-width: 0; }
.cs-text-btn { flex-shrink: 0; height: 48px; padding: 0 20px; border-radius: 24px; font-size: 17px; font-weight: 500; color: var(--on); background: var(--surface3); }
.cs-text-btn-primary { background: var(--accent); color: var(--accent-on); }

.cs-yt-bar {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 0 8px 0 22px; height: 64px;
  border-radius: 32px; background: var(--surface2); color: var(--on2); box-shadow: 0 0 0 8px var(--surface);
}
.cs-yt-bar > .ms { font-size: 26px; }
.cs-yt-bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--on); font: inherit; font-size: 19px; }
.cs-yt-bar input::placeholder { color: var(--on2); }

/* Call: the whole page, Answer and Decline as big pills. */
.cs-call { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.cs-call > * { position: relative; }
.cs-call > .cs-call-bg { position: absolute; inset: 0; background: var(--call-bg); }
.cs-call-avatar { width: 156px; height: 156px; border-radius: 50%; display: grid; place-items: center; background: #ff8a65; color: #ffffff; }
.cs-call-avatar .ms { font-size: 72px; }
.cs-call.incoming .cs-call-avatar .ms { animation: cs-ring 1.2s ease-in-out infinite; }
@keyframes cs-ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.cs-call-name { margin-top: 24px; max-width: 100%; font-size: 46px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-call-state { margin-top: 4px; font-size: 24px; color: var(--on2); font-variant-numeric: tabular-nums; }
.cs-call-btns { margin-top: 56px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.cs-call-btn { width: 220px; height: 92px; border-radius: 46px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 24px; font-weight: 500; color: #ffffff; }
.cs-call-btn .ms { font-size: 38px; }
.cs-call-btn.reject { background: var(--red-solid); }
.cs-call-btn.accept { background: var(--green); }
.cs-call-btn:active { filter: brightness(0.92); }

/* ── Waiting, sign-in ────────────────────────────────────────────────── */

.cs-idle {
  position: fixed; z-index: 16; left: var(--fl); right: var(--sr); top: var(--st); bottom: var(--sb);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px;
  border-radius: 30px; text-align: center;
}
body.live .cs-idle { display: none; }
.cs-idle > .ms { font-size: 64px; color: var(--on2); margin-bottom: 10px; }
.cs-idle-title { margin: 0; font-size: 28px; font-weight: 500; }
.cs-idle-text { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.45; color: var(--on2); }

.cs-gate { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.cs-gate-card { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 28px; border-radius: 30px; background: var(--surface); text-align: center; }
.cs-gate-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #ffffff; color: #1a73e8; }
.cs-gate-mark .ms { font-size: 40px; }
.cs-gate-card h1 { margin: 4px 0 0; font-size: 28px; font-weight: 500; }
.cs-gate-card p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--on2); }
.cs-gate-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; margin-top: 8px; padding: 0 26px; border-radius: 26px; background: var(--accent); color: var(--accent-on); font-size: 17px; font-weight: 500; text-decoration: none; }

/* ── Phones on their side ────────────────────────────────────────────── */

@media (max-height: 560px) and (orientation: landscape) {
  :root { --gut: 8px; --rail-w: 64px; --side-w: clamp(240px, 32vw, 320px); --ctl: 46px; }

  .cs-rail { padding: 10px 0 8px; }
  .cs-net { display: none; }
  .cs-clock { font-size: 17px; }
  .cs-rail-apps, .cs-rail-end { gap: 8px; }
  .cs-app { width: 44px; height: 44px; }
  .cs-app .ms { font-size: 26px; }
  .cs-app.on::after { left: -10px; top: 14px; }

  .cs-ctl .ms { font-size: 24px; }
  .cs-route { padding: 10px 16px; border-radius: 22px; left: calc(var(--fl) + var(--ctl) + 8px); width: min(360px, calc(100vw - var(--fl) - var(--fr) - var(--ctl) - 8px - 72px)); }
  .cs-route.guiding { padding: 8px 16px 12px; }
  .cs-route-head { gap: 12px; }
  .cs-route-icon { font-size: 28px; }
  .cs-route-title { font-size: 18px; }
  .cs-route-sub { font-size: 14px; }
  .cs-route.guiding .cs-route-icon { font-size: 40px; }
  .cs-route.guiding .cs-route-title { font-size: 15px; }
  .cs-route.guiding .cs-route-sub { font-size: 20px; -webkit-line-clamp: 1; }
  .cs-route-then { height: 28px; margin-bottom: 6px; font-size: 14px; }
  .cs-route-then .ms { font-size: 20px; }
  .cs-route-eta { padding: 10px 16px; border-radius: 20px; font-size: 16px; left: calc(var(--fl) + var(--ctl) + 8px); width: min(360px, calc(100vw - var(--fl) - var(--fr) - var(--ctl) - 8px)); }
  .cs-zoom button { height: 46px; }
  .cs-zoom .ms { font-size: 26px; }
  .cs-speed { width: 56px; height: 56px; }
  .cs-speed-value { font-size: 22px; }
  .cs-speed-unit { font-size: 10px; }
  .cs-limit { width: 42px; }
  .cs-street { height: 40px; padding: 0 14px; border-radius: 20px; font-size: 15px; }
  .cs-search { left: calc(var(--fl) + var(--ctl) + 8px); border-radius: 22px; }
  .cs-search-bar { height: 54px; }
  .cs-search-bar input { font-size: 17px; }
  .cs-search-row { min-height: 56px; border-radius: 16px; }
  .cs-search-row > .ms { width: 38px; height: 38px; font-size: 22px; }
  .cs-search-name { font-size: 16px; }
  .cs-search-kind { font-size: 13px; }

  .cs-side { gap: 8px; }
  .cs-place { height: 64px; border-radius: 22px; padding: 0 14px; gap: 10px; }
  .cs-wx { width: 38px; height: 38px; }
  .cs-wx .ms { font-size: 22px; }
  .cs-temp { font-size: 26px; }
  .cs-place-title { font-size: 15px; }
  .cs-place-sub { font-size: 13px; }
  .cs-media { border-radius: 22px; padding: 12px 14px; }
  .cs-src { left: 14px; top: 12px; width: 26px; height: 26px; }
  .cs-media .cs-media-open { right: 6px; top: 4px; }
  .cs-track-title { font-size: 19px; }
  .cs-track-sub { font-size: 14px; }
  .cs-time { font-size: 12px; gap: 8px; }
  .cs-time span { min-width: 30px; }
  .cs-media-time { margin: 6px 0 8px; }
  .cs-controls button { height: 48px; }
  .cs-controls button .ms { font-size: 30px; }
  .cs-controls .cs-play { width: 88px; }

  .cs-page { border-radius: 22px; }
  .cs-apphead { height: 60px; gap: 10px; padding: 0 12px; }
  .cs-back { width: 44px; height: 44px; }
  .cs-back .ms { font-size: 26px; }
  .cs-srcic { width: 30px; height: 30px; }
  .cs-srcic .ms { font-size: 17px; }
  .cs-apphead h2 { font-size: 20px; }
  .cs-chipbtn { height: 42px; padding: 0 16px 0 12px; font-size: 15px; gap: 6px; }
  .cs-chipbtn .ms { font-size: 21px; }
  .cs-tabs { gap: 6px; padding: 0 12px 10px; }
  .cs-tabs button { height: 40px; padding: 0 14px; font-size: 15px; gap: 6px; }
  .cs-tabs button .ms { font-size: 20px; }
  .cs-music-pane { top: 110px; padding: 0 12px 12px; }
  .cs-np { top: 60px; padding: 0 20px 16px 24px; gap: 20px; }
  .cs-np-art { border-radius: 20px; }
  .cs-np-art .ms { font-size: 72px; }
  .cs-np-title { font-size: 26px; -webkit-line-clamp: 1; }
  .cs-np-sub { font-size: 16px; margin-top: 2px; }
  .cs-np-time { margin: 12px 0 12px; font-size: 13px; }
  .cs-np-controls { gap: 12px; }
  .cs-np-controls button { width: 48px; height: 48px; }
  .cs-np-controls button .ms { font-size: 32px; }
  .cs-np-controls .cs-play { width: 96px; height: 54px; }
  .cs-volume { margin-top: 12px; }
  .cs-np-upnext { display: none; }
  .cs-tiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .cs-tiles .cs-music-row { border-radius: 16px; }
  .cs-tiles .cs-music-art .ms { font-size: 44px; }
  .cs-tiles .cs-music-text { padding: 8px 10px 10px; }
  .cs-tiles .cs-music-title { font-size: 15px; }
  .cs-tiles .cs-music-sub { font-size: 12px; }
  .cs-list .cs-music-row { min-height: 64px; border-radius: 18px; gap: 12px; padding: 0 8px 0 12px; }
  .cs-list .cs-music-art { width: 44px; height: 44px; border-radius: 10px; }
  .cs-list .cs-music-title { font-size: 16px; }
  .cs-list .cs-music-sub { font-size: 13px; }
  .cs-list .cs-icon-btn { width: 48px; height: 42px; }
  .cs-yt-bar { height: 48px; padding-left: 16px; }
  .cs-yt-bar input { font-size: 16px; }
  .cs-text-btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .cs-confirm { font-size: 14px; border-radius: 16px; }

  .cs-call-avatar { width: 88px; height: 88px; }
  .cs-call-avatar .ms { font-size: 44px; }
  .cs-call-name { margin-top: 12px; font-size: 28px; }
  .cs-call-state { font-size: 17px; }
  .cs-call-btns { margin-top: 24px; gap: 16px; }
  .cs-call-btn { width: 170px; height: 64px; font-size: 19px; }
  .cs-call-btn .ms { font-size: 28px; }

  .cs-idle { border-radius: 22px; }
  .cs-idle-title { font-size: 22px; }
  .cs-idle-text { font-size: 15px; }
}

/* ── Upright phones: rail along the bottom, media card above it ──────── */

@media (orientation: portrait), (max-width: 560px) {
  :root {
    --gut: 8px; --ctl: 48px;
    --rail-h: 68px; --strip-h: 76px;
    --fl: var(--sl); --fr: var(--sr);
    --page-b: calc(var(--sb) + var(--rail-h) + var(--gut));
    --map-b: calc(var(--page-b) + var(--strip-h) + var(--gut));
  }

  .cs-map-focus { bottom: var(--map-b); }

  .cs-rail {
    top: auto; right: var(--sr); bottom: var(--sb); width: auto; height: var(--rail-h); border-radius: calc(var(--rail-h) / 2);
    flex-direction: row; padding: 0 10px 0 18px; gap: 6px;
  }
  .cs-rail-top { flex-direction: row-reverse; gap: 8px; }
  .cs-net { display: none; }
  .cs-clock { font-size: 18px; }
  .cs-rail-apps, .cs-rail-end { flex-direction: row; gap: 8px; }
  .cs-app { width: 50px; height: 50px; }
  .cs-app .ms { font-size: 28px; }
  .cs-app.on::after { left: 17px; top: auto; bottom: -9px; width: 16px; height: 4px; }

  .cs-ctl .ms { font-size: 24px; }
  .cs-route {
    left: calc(var(--fl) + var(--ctl) + 8px); right: calc(var(--fr) + 72px); width: auto;
    padding: 12px 16px; border-radius: 22px;
  }
  .cs-route.guiding { left: var(--fl); right: calc(var(--fr) + 72px); padding: 8px 16px 12px; }
  .cs-route-head { gap: 12px; }
  .cs-route-icon { font-size: 28px; }
  .cs-route-title { font-size: 18px; }
  .cs-route-sub { font-size: 14px; }
  .cs-route.guiding .cs-route-icon { font-size: 44px; }
  .cs-route.guiding .cs-route-title { font-size: 16px; }
  .cs-route.guiding .cs-route-sub { font-size: 22px; }
  .cs-route-then { height: 30px; margin-bottom: 8px; font-size: 14px; }
  .cs-map:has(.cs-route.guiding) .cs-ctls { top: calc(var(--st) + 150px); }
  .cs-route-eta { left: var(--fl); right: calc(var(--fr) + var(--ctl) + 8px); width: auto; bottom: var(--map-b); padding: 12px 18px; border-radius: 22px; font-size: 17px; }
  .cs-zoom { left: auto; right: var(--fr); bottom: var(--map-b); }
  .cs-zoom button { height: 50px; }
  .cs-zoom .ms { font-size: 26px; }
  .cs-speed { width: 60px; height: 60px; }
  .cs-speed-value { font-size: 23px; }
  .cs-speed-unit { font-size: 10px; }
  .cs-limit { width: 46px; }
  .cs-street { left: var(--fl); right: auto; bottom: var(--map-b); max-width: calc(100vw - var(--fl) - var(--fr) - var(--ctl) - 16px); height: 44px; padding: 0 16px; border-radius: 22px; font-size: 16px; }
  .cs-search { left: var(--fl); right: var(--fr); width: auto; max-height: calc(100% - var(--st) - var(--page-b)); border-radius: 24px; }
  .cs-search-bar { height: 58px; }
  .cs-search-bar input { font-size: 18px; }
  .cs-search-row { min-height: 60px; border-radius: 18px; }
  .cs-search-row > .ms { width: 40px; height: 40px; font-size: 22px; }
  .cs-search-name { font-size: 17px; }
  .cs-search-kind { font-size: 14px; }

  .cs-side { left: var(--sl); right: var(--sr); top: auto; bottom: var(--page-b); width: auto; height: var(--strip-h); }
  .cs-place { display: none; }
  .cs-media { flex-direction: row; align-items: center; gap: 8px; padding: 0 8px 0 18px; border-radius: 26px; }
  .cs-src, .cs-media .cs-media-open, .cs-media-time { display: none; }
  .cs-track { flex: 1; }
  .cs-track-title { font-size: 18px; }
  .cs-track-sub { font-size: 14px; }
  .cs-track-left:not(:empty) { display: block; font-size: 12px; }
  .cs-controls { flex: none; gap: 2px; }
  .cs-controls button { flex: none; width: 44px; height: 52px; }
  .cs-controls button .ms { font-size: 30px; }
  .cs-controls .cs-play { width: 72px; order: 1; }
  .cs-controls #cs-prev { order: 0; }
  .cs-controls #cs-next { order: 2; }

  .cs-page { left: var(--sl); right: var(--sr); bottom: var(--page-b); border-radius: 26px; }
  .cs-apphead { height: 64px; gap: 10px; padding: 0 10px; }
  .cs-back { width: 46px; height: 46px; }
  .cs-back .ms { font-size: 28px; }
  .cs-srcic { width: 32px; height: 32px; }
  .cs-srcic .ms { font-size: 18px; }
  .cs-apphead h2 { font-size: 20px; }
  .cs-chipbtn { height: 44px; padding: 0 14px 0 12px; font-size: 15px; gap: 6px; }
  .cs-chipbtn .ms { font-size: 22px; }
  .cs-tabs { gap: 6px; padding: 0 10px 10px; }
  .cs-tabs button { height: 42px; padding: 0 14px; font-size: 15px; gap: 6px; }
  .cs-tabs button .ms { font-size: 20px; }
  .cs-music-pane { top: 116px; padding: 0 12px 12px; }

  .cs-np {
    top: 64px; padding: 4px 22px 22px; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    align-items: end; justify-items: center; gap: 18px; overflow-y: auto;
  }
  .cs-np-art { order: 0; height: auto; width: min(100%, 320px); max-height: 100%; align-self: center; border-radius: 24px; }
  .cs-np-art .ms { font-size: 96px; }
  .cs-np-body { width: 100%; }
  .cs-np-title { font-size: 26px; }
  .cs-np-sub { font-size: 17px; }
  .cs-np-time { margin: 16px 0; font-size: 13px; }
  .cs-np-controls { gap: 14px; justify-content: center; }
  .cs-np-controls button { width: 56px; height: 56px; }
  .cs-np-controls button .ms { font-size: 36px; }
  .cs-np-controls .cs-play { width: 112px; height: 64px; order: 1; }
  .cs-np-controls #cs-np-prev { order: 0; }
  .cs-np-controls #cs-np-next { order: 2; }
  .cs-volume { margin: 16px auto 0; width: 100%; }
  .cs-np-upnext { text-align: center; margin-top: 12px; font-size: 14px; }

  .cs-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .cs-tiles .cs-music-row { border-radius: 18px; }
  .cs-tiles .cs-music-art .ms { font-size: 48px; }
  .cs-tiles .cs-music-text { padding: 8px 12px 10px; }
  .cs-tiles .cs-music-title { font-size: 16px; }
  .cs-tiles .cs-music-sub { font-size: 13px; }
  .cs-list .cs-music-row { min-height: 68px; border-radius: 18px; gap: 12px; padding: 0 8px 0 12px; }
  .cs-list .cs-music-art { width: 48px; height: 48px; border-radius: 12px; }
  .cs-list .cs-music-title { font-size: 17px; }
  .cs-list .cs-music-sub { font-size: 14px; }
  .cs-list .cs-icon-btn { width: 48px; height: 44px; }
  .cs-yt-bar { height: 52px; padding-left: 16px; }
  .cs-yt-bar input { font-size: 16px; }
  .cs-text-btn { height: 40px; padding: 0 14px; font-size: 15px; }
  .cs-confirm { font-size: 15px; border-radius: 18px; }

  .cs-call-avatar { width: 120px; height: 120px; }
  .cs-call-avatar .ms { font-size: 56px; }
  .cs-call-name { font-size: 32px; }
  .cs-call-state { font-size: 18px; }
  .cs-call-btns { margin-top: 40px; gap: 14px; }
  .cs-call-btn { width: 150px; height: 72px; font-size: 19px; }
  .cs-call-btn .ms { font-size: 30px; }

  .cs-idle { left: var(--sl); right: var(--sr); bottom: var(--page-b); border-radius: 26px; }
  .cs-idle-title { font-size: 22px; }
  .cs-idle-text { font-size: 16px; }
}

@media (orientation: portrait) and (max-width: 380px) {
  .cs-rail { padding: 0 6px 0 12px; }
  .cs-app { width: 44px; height: 44px; }
  .cs-app .ms { font-size: 26px; }
  .cs-app.on::after { left: 14px; }
  .cs-controls button { width: 40px; }
  .cs-controls .cs-play { width: 64px; }
}
