/* ==================================================
   dock-chat.css — Apple-style footer dock, cart, account, ship menu, chat, music player
   Split from index.html lines 3710–4683 on 2026-04-23
   ================================================== */

  /* ---------- Apple-style centered footer dock ---------- */
  .footer-dock {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    height: 54px;
    background: rgba(245, 246, 248, 0.65);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    z-index: 140;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 8px 28px rgba(0, 0, 0, 0.12);
  }
  .dock-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.72);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .dock-btn:hover { background: rgba(0, 0, 0, 0.06); color: #111; transform: translateY(-1px); }
  .dock-music {
    width: 52px;
    height: 52px;
    font-size: 23px;
    background: linear-gradient(135deg, #FFFC03, #ff9d4a);
    color: #0a0b0f;
    box-shadow: 0 4px 14px -2px rgba(255, 252, 3, 0.45);
  }
  .dock-music:hover {
    background: linear-gradient(135deg, #ffff66, #ffb878);
    transform: translateY(-1px);
  }
  .dock-music.active {
    background: linear-gradient(135deg, #ff4a8a, #ff9d4a);
    color: #fff;
  }
  .dock-music.playing::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3fd98a;
    box-shadow: 0 0 6px #3fd98a;
  }
  .dock-music { position: relative; }

  /* AliExpress-style nav actions — white dock, dark icons, subtle hover */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
  }
  .header-music {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 9px;
    font-size: 18px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .header-music:hover { transform: translateY(-1px); }

  /* ---------- Phone preview toggle (📱 next to music) ---------- */
  .header-phone-preview {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #111;
    font-size: 20px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
  }
  .header-phone-preview:hover { background: rgba(0, 0, 0, 0.05); transform: translateY(-1px); }
  .header-phone-preview.active {
    background: #111;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  }

  /* ---------- Cart button in top dock (AliExpress-style, subtle on white) ---------- */
  .header-cart {
    position: relative;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #111;
    font-size: 22px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
  }
  .header-cart:hover { background: rgba(0, 0, 0, 0.05); transform: translateY(-1px); }
  .header-cart-icon { line-height: 1; }
  .header-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--cyan);
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
  }
  .header-cart-badge[hidden] { display: none; }

  /* ---------- Cart page (AliExpress-style two-column) ---------- */
  .cart-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
  }
  .cart-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    min-height: 600px;
  }
  .cart-title {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 20px;
  }
  .cart-promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: linear-gradient(90deg, #2968ff, #1449fc);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 40px;
    transition: filter 0.15s;
  }
  .cart-promo:hover { filter: brightness(1.08); }
  .cart-promo strong { font-family: var(--serif); font-weight: 900; letter-spacing: -0.01em; }
  .cart-promo em { font-family: var(--serif); font-style: italic; font-weight: 700; color: #ffd700; margin-left: 2px; }
  .cart-promo-arrow { font-size: 22px; opacity: 0.9; }

  .cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 60px 20px 40px;
  }
  .cart-empty-art { font-size: 84px; line-height: 1; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12)); }
  .cart-empty-text {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0 14px;
  }
  .cart-btn {
    min-width: 260px;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s, background 0.15s;
  }
  .cart-btn--primary  { background: var(--cyan); color: #fff; }
  .cart-btn--primary:hover  { filter: brightness(1.08); }
  .cart-btn--secondary { background: #111; color: #fff; }
  .cart-btn--secondary:hover { background: #333; }

  /* Right-side summary */
  .cart-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 120px;
  }
  .cart-summary-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 18px;
  }
  .cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-dim);
  }
  .cart-summary-row strong {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
  }
  .cart-checkout {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--cyan);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s;
    margin-bottom: 24px;
  }
  .cart-checkout:hover { filter: brightness(1.08); }

  .cart-panel {
    padding: 16px 0 18px;
    border-top: 1px solid var(--border);
  }
  .cart-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
  }
  .cart-panel-icon { font-size: 16px; }
  .cart-panel-title { flex: 1; }
  .cart-panel-chev { font-size: 18px; color: var(--text-dim); }
  .cart-panel p {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.5;
  }

  /* ---------- Learn page ---------- */
  .learn-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
  }
  .learn-head { margin-bottom: 32px; }
  .learn-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan, #1449FC);
    font-weight: 700;
    margin-bottom: 10px;
  }
  .learn-title {
    font-family: var(--sans, system-ui);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--text, #111);
    margin: 0 0 16px;
    line-height: 1.05;
  }
  .learn-title em {
    font-style: italic;
    color: var(--cyan, #1449FC);
  }
  .learn-sub {
    font-family: var(--sans, system-ui);
    font-size: 16px;
    color: var(--text-dim, #555);
    line-height: 1.55;
    max-width: 70ch;
    margin: 0;
  }
  .learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
  }
  .learn-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .learn-card:hover {
    transform: translateY(-2px);
    border-color: var(--cyan, #1449FC);
    box-shadow: 0 12px 30px rgba(20, 73, 252, 0.15);
  }
  .learn-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    color: #fff;
  }
  .learn-card-icon {
    font-size: 52px;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
  }
  .learn-card-play {
    position: absolute;
    right: 14px; bottom: 14px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: grid; place-items: center;
    font-size: 18px;
    backdrop-filter: blur(6px);
  }
  .learn-card:hover .learn-card-play {
    background: var(--cyan, #1449FC);
  }
  .learn-card-body { padding: 16px 18px 18px; }
  .learn-card-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan, #1449FC);
    font-weight: 700;
    margin-bottom: 6px;
  }
  .learn-card-title {
    font-family: var(--sans, system-ui);
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #111);
    line-height: 1.3;
    margin-bottom: 6px;
  }
  .learn-card-desc {
    font-family: var(--sans, system-ui);
    font-size: 13px;
    color: var(--text-dim, #666);
    line-height: 1.5;
  }

  /* ---------- Video popup modal ---------- */
  .video-modal {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
  }
  .video-modal.active { display: flex; }
  .video-modal-box {
    background: #0b0a08;
    border-radius: 14px;
    width: 100%;
    max-width: 1000px;
    padding: 18px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  }
  .video-modal-close {
    position: absolute;
    top: -12px; right: -12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    transition: transform .15s;
  }
  .video-modal-close:hover { transform: scale(1.08); }
  .video-modal-title {
    font-family: var(--sans, system-ui);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    padding: 0 8px 14px;
  }
  .video-modal-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
  }
  .video-modal-frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
  }

  /* Section tutorial banner moved to store.css (alongside the grid styles) */

  /* ---------- Cart rows (populated when items are in cart) ---------- */
  .cart-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }
  .cart-row {
    display: grid;
    grid-template-columns: 64px 1fr auto 32px;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 12px;
  }
  .cart-row-thumb {
    width: 64px; height: 64px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 28px;
    overflow: hidden;
  }
  .cart-row-meta { min-width: 0; }
  .cart-row-title {
    font-family: var(--sans, system-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #111);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .cart-row-sub {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-dim, #666);
    text-transform: uppercase;
    margin-top: 2px;
  }
  .cart-row-price {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--text, #111);
  }
  .cart-row-remove {
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    color: var(--text-dim, #888);
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 50%;
    transition: background .15s, color .15s;
  }
  .cart-row-remove:hover { background: #f3f3f3; color: var(--danger, #ff5a6a); }
  .cart-checkout[disabled] { opacity: .5; cursor: not-allowed; }

  @media (max-width: 900px) {
    .cart-page { grid-template-columns: 1fr; padding: 20px 12px 100px; }
    .cart-summary { position: static; }
    .cart-main { padding: 20px; }
    .cart-title { font-size: 26px; }
  }

  /* ---------- Account button + dropdown (AliExpress-style) ---------- */
  .account-wrap { position: relative; }
  .header-account {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #111;
    font-size: 20px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
  }
  .header-account:hover { background: rgba(0, 0, 0, 0.05); transform: translateY(-1px); }
  .header-account[aria-expanded="true"] { background: rgba(0, 0, 0, 0.06); }

  .account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 16px;
    z-index: 1000;
    font-family: var(--mono);
    animation: account-menu-in 0.12s ease-out;
  }
  .account-menu[hidden] { display: none; }
  @keyframes account-menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .account-signin {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s;
  }
  .account-signin:hover { background: #333; }

  .account-register {
    display: block;
    text-align: center;
    padding: 10px 0 6px;
    font-size: 13px;
    color: #606060;
    text-decoration: none;
    transition: color 0.15s;
  }
  .account-register:hover { color: var(--cyan); }

  .account-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 10px -16px;
  }

  .account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.12s, color 0.12s;
  }
  .account-item span { flex: 1; }
  .account-item:hover { background: rgba(0, 0, 0, 0.05); }
  .account-item--muted { color: #606060; font-weight: 500; }
  .account-item--muted:hover { color: #111; }

  @media (max-width: 900px) {
    .account-menu { right: -8px; width: min(280px, 92vw); }
  }

  /* IP + geolocation badge — AliExpress-style text cluster in top dock */
  .geo-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 10px;
    background: transparent;
    border: none;
    border-radius: 9px;
    font-family: var(--mono);
    font-size: 12px;
    color: #111;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
  }
  .geo-pill:hover { background: rgba(0, 0, 0, 0.05); }
  .geo-pill .geo-flag { font-size: 15px; line-height: 1; }
  .geo-pill .geo-text { font-weight: 500; }
  .geo-pill[data-state="loading"] .geo-text { opacity: 0.6; }
  .geo-pill[data-state="error"]   { opacity: 0.55; }
  .geo-pill { cursor: pointer; }
  .geo-pill .geo-caret { font-size: 9px; opacity: 0.7; margin-left: 2px; }
  .geo-pill[aria-expanded="true"] { background: rgba(0, 0, 0, 0.06); }

  /* Live visitor counter */
  .online-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    cursor: default;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
  }
  .online-pill:hover { background: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.14); }
  .online-pill .online-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #cbd5e1;
    box-shadow: 0 0 0 rgba(34,197,94,0);
    transition: background 0.2s, box-shadow 0.2s;
  }
  .online-pill.is-live .online-dot {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.65);
    animation: online-pulse 2s ease-in-out infinite;
  }
  @keyframes online-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.55); }
    50%      { box-shadow: 0 0 10px rgba(34, 197, 94, 0.9); }
  }
  .online-pill .online-num { font-weight: 800; letter-spacing: -0.01em; font-size: 13px; }
  .online-pill .online-lbl { color: var(--text-dim); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
  @media (max-width: 720px) {
    .online-pill .online-lbl { display: none; }
    .online-pill { padding: 5px 9px; }
  }

  /* In-dock variant — sits at the left of the bottom floating dock (light glass) */
  .online-pill--indock {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px 10px;
    gap: 6px;
    color: rgba(0, 0, 0, 0.82);
    height: 30px;
  }
  .online-pill--indock:hover { background: rgba(0, 0, 0, 0.08); border-color: rgba(0, 0, 0, 0.14); }
  .online-pill--indock .online-num {
    color: rgba(0, 0, 0, 0.88);
    font-size: 13px;
    font-weight: 800;
  }
  .online-pill--indock .online-dot {
    width: 7px; height: 7px;
    background: rgba(0, 0, 0, 0.25);
  }
  .online-pill--indock.is-live .online-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  }

  /* Thin vertical divider between the counter and the nav buttons in the dock */
  .dock-sep {
    width: 1px;
    height: 22px;
    margin: 0 2px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.18), transparent);
  }

  /* SFX mute button inside the dock — uses .dock-btn base, this just tweaks font size */
  .dock-btn--sfx { font-size: 15px; }

  /* Get Pass CTA, scaled down so it sits comfortably in the 54px dock */
  .wallet-btn--indock {
    padding: 7px 14px;
    height: 32px;
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 6px rgba(20, 73, 252, 0.35);
  }
  .wallet-btn--indock:hover { box-shadow: 0 4px 12px rgba(20, 73, 252, 0.5); }
  .wallet-btn--indock .wallet-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #7ddb9f;
    box-shadow: 0 0 6px #7ddb9f;
  }

  .geo-wrap { position: relative; }

  /* ---------- Ship-to / Language / Currency dropdown ---------- */
  .ship-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 18px;
    z-index: 1000;
    font-family: var(--mono);
    animation: account-menu-in 0.12s ease-out;
  }
  .ship-menu[hidden] { display: none; }
  .ship-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.01em;
  }
  .ship-title + .ship-title, .ship-select + .ship-title, .ship-input + .ship-title {
    margin-top: 18px;
  }
  .ship-select, .ship-input {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
  }
  .ship-input { background-image: none; padding-right: 14px; cursor: text; }
  .ship-select:hover, .ship-input:hover { border-color: rgba(0, 0, 0, 0.35); }
  .ship-select:focus, .ship-input:focus { outline: none; border-color: #111; }

  .ship-save {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
  }
  .ship-save:hover { background: #333; }

  @media (max-width: 900px) {
    .geo-pill { display: none; }
    .geo-wrap { display: none; }
  }

  /* Standalone floating chat bubble — lives outside the dock, bottom-right */
  .dock-chat {
    position: fixed;
    bottom: 12px;
    right: 14px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(83, 58, 254, 0.55);
    background: linear-gradient(135deg, #533AFE, #1449FC);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
    z-index: 141;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 6px 18px -2px rgba(83, 58, 254, 0.65),
      0 10px 32px rgba(0, 0, 0, 0.45);
  }
  .dock-chat:hover {
    background: linear-gradient(135deg, #6a52ff, #3d63fc);
    transform: translateY(-2px);
  }
  .dock-chat.active {
    background: linear-gradient(135deg, #FFFC03, #ff9d4a);
    color: #0a0b0f;
  }

  /* Drag handle cursors — applies to the status bar of the phone and chat title bar */
  [data-drag-handle] { cursor: grab; user-select: none; }
  [data-drag-handle]:active { cursor: grabbing; }

  /* Ensure the [hidden] attribute actually hides the floating panels —
     the `display: flex` declarations on these elements otherwise override
     the UA rule `[hidden] { display: none }`. */
  .chat-window[hidden],
  .player-phone[hidden] {
    display: none !important;
  }

  /* ---------- Chat window (webapp-style floating panel) ---------- */
  .chat-window {
    position: fixed;
    bottom: 86px; /* above the footer dock (56 + 18 + 12 gap) */
    right: 170px; /* anchored under chat button (right edge of dock) */
    width: 360px;
    height: 620px;
    max-height: calc(100vh - 110px);
    background: linear-gradient(180deg, #10101a 0%, #0a0b0f 100%);
    border: 6px solid #000;
    border-radius: 44px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 145;
    box-shadow:
      0 28px 60px -18px rgba(0, 0, 0, 0.85),
      0 0 0 1px rgba(255, 255, 255, 0.06),
      inset 0 0 0 2px rgba(255, 255, 255, 0.03);
    animation: chatOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  /* iPhone-style notch */
  .chat-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 26px;
    background: #000;
    border-radius: 0 0 18px 18px;
    z-index: 20;
    pointer-events: none;
  }
  /* Push the titlebar down so it doesn't sit under the notch */
  .chat-window .chat-titlebar { padding-top: 30px; }
  @keyframes chatOpen {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* === Mobile: drop the iPhone bezel/notch (the real phone IS the phone)
         and let the chat fill the screen with sensible margins. Otherwise
         the desktop iPhone-shape on a real phone looks like a TikTok crop. */
  @media (max-width: 720px) {
    .chat-window {
      bottom: 86px;
      right: 8px;
      left: 8px;
      width: auto;            /* override 360px desktop width */
      height: auto;
      max-height: calc(100vh - 110px);
      min-height: 60vh;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 18px;
    }
    .chat-window::before { display: none; }            /* hide notch */
    .chat-window .chat-titlebar { padding-top: 10px; } /* and its padding */
    .chat-character-banner { padding: 12px 14px; }
    .chat-character-portrait { width: 77px; height: 77px; }
    .chat-character-name { font-size: 16px; }
    .chat-character-tag { font-size: 11px; }
  }

  .chat-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .chat-traffic { display: flex; gap: 6px; flex-shrink: 0; }
  .chat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: default;
  }
  .chat-dot--red { background: #ff5a6a; cursor: pointer; }
  .chat-dot--red:hover { background: #ff8088; }
  .chat-dot--amber { background: #ff9d4a; }
  .chat-dot--green { background: #3fd98a; }
  .chat-title {
    font-family: var(--serif);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .chat-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    justify-self: end;
  }
  .chat-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

  /* === Auto-share toggle button (titlebar) === */
  .chat-autoshare-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    margin-right: 4px;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease;
  }
  .chat-autoshare-btn:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.08); }
  .chat-autoshare-btn.is-on  { color: #7ed957; }
  .chat-autoshare-btn.is-off { color: rgba(255, 255, 255, 0.4); }

  /* === Voice memo button (titlebar) === */
  .chat-memo-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 200, 130, 0.85);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    margin-right: 4px;
    transition: background 120ms ease, transform 120ms ease, opacity 120ms ease;
  }
  .chat-memo-btn:hover { background: rgba(255, 200, 130, 0.12); transform: scale(1.08); }
  .chat-memo-btn.is-busy { opacity: 0.5; cursor: wait; animation: chat-memo-pulse 1.2s ease-in-out infinite; }
  .chat-memo-btn:disabled { cursor: wait; }
  @keyframes chat-memo-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(0.85); }
  }

  /* === Visible disclosure note above input === */
  .chat-autoshare-note {
    flex: 0 0 auto;
    padding: 6px 14px 4px;
    font-family: var(--serif, system-ui);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: rgba(126, 217, 87, 0.85);
    text-align: center;
    background: linear-gradient(to bottom, rgba(126, 217, 87, 0.06), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    user-select: none;
  }
  .chat-autoshare-note.is-private {
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
  }

  /* === Per-message play button (click-to-listen) === */
  .chat-msg-play {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    font-family: var(--serif, system-ui);
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
  }
  .chat-msg-play:hover {
    background: rgba(126, 217, 87, 0.12);
    color: #7ed957;
    border-color: rgba(126, 217, 87, 0.3);
  }
  .chat-msg-play.is-loading { opacity: 0.6; cursor: wait; }
  .chat-msg-play.is-playing { background: rgba(126, 217, 87, 0.18); color: #7ed957; }

  /* Minimal title in titlebar (next to traffic lights) */
  .chat-title-min {
    flex: 1;
    text-align: center;
    font-family: var(--serif);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  /* === Character banner — large portrait + name + tagline === */
  .chat-character-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    flex-shrink: 0;
  }
  .chat-character-banner-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.06), transparent 60%);
    pointer-events: none;
  }
  .chat-character-portrait {
    width: 101px;
    height: 101px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
  }
  .chat-character-portrait img,
  .chat-character-portrait video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
  .chat-character-info {
    min-width: 0;
    flex: 1;
    position: relative;
    z-index: 1;
  }
  .chat-character-name {
    margin: 0 0 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-character-tag {
    margin: 0;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .chat-titlebar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .chat-speaker-btn {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0;
  }
  .chat-speaker-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

  .chat-volume-slider {
    width: 56px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0 2px;
    flex-shrink: 0;
  }
  .chat-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .chat-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .chat-volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
  }
  .chat-volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
  }

  /* Clickable URLs inside bot messages */
  .chat-link {
    color: #6ea8ff;
    text-decoration: underline;
    word-break: break-all;
  }
  .chat-link:hover { color: #9ec3ff; }

  /* "📢 Post as news of the day" broadcast button — only shown after News
     Woman replies. Clicking sends the cached TTS mp3 to /api/news-broadcast,
     which persists it to /assets/news-clips/ and posts to the public feed. */
  .chat-broadcast-bar {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
  }
  .chat-broadcast-btn {
    background: linear-gradient(135deg, #FE2C55, #c5294a);
    color: #fff;
    border: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: transform .08s, opacity .15s;
  }
  .chat-broadcast-btn:hover { transform: translateY(-1px); }
  .chat-broadcast-btn:disabled { opacity: 0.6; cursor: wait; }
  .chat-broadcast-btn.is-done {
    background: linear-gradient(135deg, #16a34a, #15803d);
    cursor: default;
  }

  /* News Woman quick-topic strip — horizontal scroll on mobile */
  .chat-news-topics {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    scrollbar-width: thin;
  }
  .chat-news-topics::-webkit-scrollbar { height: 4px; }
  .chat-news-topics::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
  }
  .cnt-btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
  }
  .cnt-btn:hover {
    background: rgba(254, 44, 85, 0.18);
    border-color: rgba(254, 44, 85, 0.55);
  }

  /* Mic button next to text input */
  .chat-mic-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
  }
  .chat-mic-btn:hover {
    background: rgba(254, 44, 85, 0.18);
    border-color: rgba(254, 44, 85, 0.55);
  }
  .chat-mic-btn.is-recording {
    background: #FE2C55;
    border-color: #FE2C55;
    animation: chat-mic-pulse 1.2s ease-in-out infinite;
  }
  @keyframes chat-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.6); transform: scale(1); }
    50%      { box-shadow: 0 0 0 8px rgba(254, 44, 85, 0); transform: scale(1.05); }
  }

  .chat-persona-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
  }
  .chat-volume-cluster {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .chat-persona-label { display: none; }
  .chat-persona-select {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff80' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    padding-right: 26px;
  }
  .chat-persona-select:hover { background-color: rgba(255, 255, 255, 0.10); }
  .chat-persona-select option { background: #131b2c; color: #fff; }

  .chat-body {
    flex: 1;
    padding: 14px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  }
  .chat-msg {
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 14px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.45;
    word-wrap: break-word;
  }
  .chat-msg--bot {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }
  .chat-msg--user {
    background: linear-gradient(135deg, #533AFE, #1449FC);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
  }

  .chat-input-wrap {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 9px 14px;
    color: #fff;
    font-family: var(--mono);
    font-size: 12px;
    transition: border-color 0.15s;
  }
  .chat-input:focus {
    outline: none;
    border-color: #533AFE;
    box-shadow: 0 0 0 3px rgba(83, 58, 254, 0.2);
  }
  .chat-input::placeholder { color: rgba(255, 255, 255, 0.4); }
  .chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #533AFE, #1449FC);
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .chat-send:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(83, 58, 254, 0.6); }

  /* ---------- Floating smartphone music player ---------- */
  .player-phone {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 130px;
    height: 260px;
    background: #1a1f2e;                     /* dark navy bezel */
    border-radius: 22px;
    padding: 5px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04) inset,
      0 15px 40px -10px rgba(83, 58, 254, 0.45),
      0 9px 20px rgba(0, 0, 0, 0.55);
    z-index: 150;
    animation: phoneSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes phoneSlideIn {
    from { transform: translateY(40px) scale(0.9); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
  }

  .phone-camera {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: #050506;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    z-index: 3;
  }

  .phone-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2a2f3e;
    border: 1.5px solid #0a0b0f;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
  }
  .phone-close:hover { background: var(--danger); }

  .phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(83, 58, 254, 0.35), transparent 60%),
      radial-gradient(ellipse at 100% 100%, rgba(255, 252, 3, 0.08), transparent 50%),
      linear-gradient(180deg, #120b2e 0%, #0a0b14 60%, #06060a 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
  }

  .phone-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 11px 3px;
    font-family: var(--mono);
    font-size: 7px;
    color: #fff;
    letter-spacing: 0.02em;
  }
  .phone-status-time { font-weight: 500; }
  .phone-status-right {
    display: flex;
    gap: 3px;
    align-items: center;
    color: #fff;
  }
  .phone-sbi { width: 8px; height: 6px; fill: currentColor; }
  .phone-sbi.phone-battery { width: 13px; }

  .phone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 6px 10px 6px;
    gap: 5px;
    min-height: 0;
  }

  .phone-tag {
    font-family: var(--mono);
    font-size: 6px;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.5);
    text-align: center;
  }

  .phone-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    background:
      radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%),
      linear-gradient(135deg, #533AFE, #1449FC 50%, #00a088);
    box-shadow: 0 6px 14px -5px rgba(83, 58, 254, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
  }

  .phone-meta {
    text-align: center;
    min-width: 0;
  }
  .pb-title {
    font-family: var(--serif);
    font-size: 10px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }
  .pb-artist {
    font-family: var(--mono);
    font-size: 7px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .phone-progress-wrap { display: flex; flex-direction: column; gap: 2px; }
  .pb-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }
  .pb-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
  }
  .phone-time {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 6px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
  }

  .phone-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 2px 0 1px;
  }
  .phone-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.15s;
    border-radius: 999px;
    padding: 0;
  }
  .phone-btn:hover { background: rgba(255,255,255,0.1); }
  .phone-play {
    background: #fff;
    color: #0a0b0f;
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .phone-play:hover { background: #fff; transform: scale(1.05); }
  .phone-ghost { font-size: 9px; opacity: 0.7; }
  .phone-ghost:hover { opacity: 1; }

  .phone-bottom {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: auto;
  }

  /* Custom volume slider — compact, fits inside the mini phone footer */
  .phone-volume {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: linear-gradient(
      to right,
      #fff 0,
      #fff var(--fill, 80%),
      rgba(255, 255, 255, 0.15) var(--fill, 80%),
      rgba(255, 255, 255, 0.15) 100%
    );
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    margin: 0;
    padding: 0;
  }
  .phone-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    transition: transform 0.1s;
  }
  .phone-volume::-webkit-slider-thumb:hover { transform: scale(1.25); }
  .phone-volume::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
  }
  .phone-volume-val {
    font-family: var(--mono);
    font-size: 7px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 22px;
    text-align: right;
    letter-spacing: 0.05em;
  }

  .phone-home-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
  }

  @keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0) ; opacity: 1; }
  }
  /* body.has-player class kept for backward compat; no longer needs spacing */

