    /* Reset & CSS Variables */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      user-select: none;
      -webkit-user-select: none;
    }

    /* Screen Reader & Search Engine Semantic Content Utility (visually non-intrusive) */
    .sr-only {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    :root {
      --yellow: #F5C518;
      --yellow-glow: rgba(245, 197, 24, 0.4);
      --bg-dark: #0A0A0A;
      --text-white: #FFFFFF;
      --text-dim: rgba(255, 255, 255, 0.7);
      --glass-bg: rgba(15, 15, 18, 0.75);
      --glass-border: rgba(255, 255, 255, 0.12);
    }

    html, body {
      width: 100vw;
      height: 100vh;
      overflow: hidden;
      background-color: var(--bg-dark);
      font-family: 'Outfit', sans-serif;
      color: var(--text-white);
    }

    /* Fullscreen Background */
    .bg-container {
      position: absolute;
      inset: 0;
      z-index: 1;
      background-image: url('../bg.png');
      background-size: cover;
      background-position: center bottom;
      background-repeat: no-repeat;
      background-color: #0A0A0A;
    }

    @media (max-width: 768px) {
      .bg-container {
        background-image: url('../mobile_bg.png');
        background-position: center center;
      }

      /* Fix Safari mobile: 100dvh excludes browser chrome */
      .chat-drawer {
        height: 100vh;
        height: 100dvh;
      }

      /* Push input comfortably above Safari bottom toolbar using safe-area-inset fallback */
      .chat-input-row {
        padding-bottom: max(2.4rem, calc(1.6rem + env(safe-area-inset-bottom, 24px))) !important;
      }
    }

    /* Dark vignette and atmospheric gradient overlay */
    .bg-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%),
                  linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.7) 100%);
      pointer-events: none;
    }

    /* Main UI Layout Container */
    .app-viewport {
      position: relative;
      z-index: 10;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 1.5rem 2.5rem;
    }

    /* --- TOP BAR --- */
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }

    .live-clock {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text-white);
      letter-spacing: 0.04em;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      background: rgba(255, 255, 255, 0.08);
      padding: 0.3rem 0.75rem;
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      backdrop-filter: blur(10px);
    }

    /* YT Music & X Top Right Links (Minimal White) */
    .yt-music-top-btn, .x-top-btn {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.9);
      padding: 0.3rem 0.5rem;
      font-size: 0.9rem;
      font-weight: 500;
      text-decoration: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .yt-music-top-btn:hover, .x-top-btn:hover {
      opacity: 1;
      color: #ffffff;
      transform: translateY(-1px);
    }

    .yt-music-top-btn svg path, .x-top-btn svg path {
      fill: #ffffff !important;
    }

    .yt-music-top-btn .arrow-icon, .x-top-btn .arrow-icon {
      stroke: #ffffff !important;
      opacity: 0.85;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .yt-music-top-btn:hover .arrow-icon, .x-top-btn:hover .arrow-icon {
      opacity: 1;
      transform: translate(2px, -2px);
    }

    @media (max-width: 768px) {
      .x-top-btn, .fullscreen-top-btn {
        display: none !important; /* Web view only */
      }
    }

    .fullscreen-top-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.9);
      padding: 0.3rem 0.5rem;
      cursor: pointer;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .fullscreen-top-btn:hover {
      opacity: 1;
      transform: scale(1.1);
    }

    .top-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: 'Space Mono', monospace;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: var(--text-white);
      cursor: pointer;
      opacity: 0.9;
      transition: opacity 0.2s, transform 0.2s;
    }

    .top-left:hover {
      opacity: 1;
      transform: translateX(2px);
    }

    .top-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-family: 'Space Mono', monospace;
    }

    .status-badge {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.1em;
    }

    .pulse-dot {
      width: 7px;
      height: 7px;
      background-color: #22c55e;
      border-radius: 50%;
      box-shadow: 0 0 8px #22c55e;
      animation: pulse 1.8s infinite;
    }

    @keyframes pulse {
      0% { transform: scale(0.95); opacity: 0.8; }
      50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #22c55e; }
      100% { transform: scale(0.95); opacity: 0.8; }
    }

    .status-sub {
      font-size: 0.65rem;
      letter-spacing: 0.18em;
      color: var(--text-dim);
      margin-top: 0.15rem;
      text-transform: uppercase;
    }

    .top-right {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .sound-toggle-label {
      font-family: 'Rozha One', 'Yatra One', serif;
      font-size: 0.9rem;
      letter-spacing: 0.05em;
    }

    .toggle-switch {
      position: relative;
      width: 38px;
      height: 20px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 20px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .toggle-switch.active {
      background: var(--yellow);
    }

    .toggle-switch::after {
      content: '';
      position: absolute;
      top: 2px;
      left: 2px;
      width: 16px;
      height: 16px;
      background: #000;
      border-radius: 50%;
      transition: transform 0.3s;
    }

    .toggle-switch.active::after {
      transform: translateX(18px);
    }

    /* --- CENTER BRAND HEADER --- */
    .brand-header {
      text-align: center;
      margin-top: -1rem;
      pointer-events: none;
    }

    .brand-title {
      font-family: 'Yatra One', 'Rozha One', serif;
      font-size: clamp(3.5rem, 9vw, 8rem);
      line-height: 0.95;
      color: #0d0d0d;
      text-shadow: 
        0 0 2px rgba(245, 197, 24, 0.8),
        0 2px 10px rgba(0,0,0,0.8),
        2px 2px 0px #000,
        -2px -2px 0px #000,
        2px -2px 0px #000,
        -2px 2px 0px #000;
      letter-spacing: 0.02em;
      filter: drop-shadow(0 8px 16px rgba(0,0,0,0.9));
    }

    .brand-subtitle {
      font-family: 'Space Mono', monospace;
      font-size: clamp(0.7rem, 1.5vw, 1.1rem);
      font-weight: 700;
      letter-spacing: 0.45em;
      color: #0f0f0f;
      margin-top: 0.6rem;
      text-transform: uppercase;
      text-shadow: 0 1px 4px rgba(245, 197, 24, 0.6), 0 2px 8px rgba(0,0,0,0.9);
    }

    /* --- BOTTOM INTERACTIVE ZONE --- */
    .bottom-zone {
      position: relative;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      z-index: 50;
      pointer-events: none;
    }

    .music-player-card {
      pointer-events: auto !important;
      z-index: 60;
    }

    /* Horn + Live Chat Float (Bottom Left stack) */
    .horn-button-container {
      position: absolute;
      left: 0;
      bottom: 2rem;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.55rem;
      z-index: 60;
      pointer-events: auto;
    }

    .horn-btn {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      background: rgba(20, 20, 24, 0.7);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--glass-border);
      padding: 0.6rem 1.2rem;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }

    .horn-btn:hover {
      background: rgba(35, 35, 42, 0.85);
      border-color: var(--yellow);
      transform: translateY(-3px) scale(1.03);
      box-shadow: 0 12px 30px rgba(245, 197, 24, 0.25);
    }

    .horn-btn:active {
      transform: translateY(1px) scale(0.97);
    }

    .horn-btn.honking {
      animation: hornShake 0.15s infinite alternate;
      border-color: var(--yellow);
      box-shadow: 0 0 25px var(--yellow);
    }

    @keyframes hornShake {
      0% { transform: scale(1.05) rotate(-2deg); }
      100% { transform: scale(1.08) rotate(2deg); }
    }

    .horn-icon-circle {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--yellow);
    }

    .horn-text {
      display: flex;
      flex-direction: column;
      text-align: left;
    }

    .horn-title {
      font-family: 'Yatra One', serif;
      font-size: 0.95rem;
      color: var(--text-white);
      line-height: 1.1;
    }

    .horn-sub {
      font-family: 'Space Mono', monospace;
      font-size: 0.65rem;
      color: var(--text-dim);
    }

    /* Instagram Link Button (Bottom Right Floating - Ultra Minimal White) */
    .instagram-button-container {
      position: absolute;
      right: 0;
      bottom: 2rem;
      z-index: 60;
      pointer-events: auto;
    }

    .instagram-btn {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.14);
      padding: 0.35rem 0.8rem;
      border-radius: 20px;
      cursor: pointer;
      text-decoration: none;
      color: rgba(255, 255, 255, 0.85);
      transition: all 0.2s ease;
      box-shadow: none;
    }

    .instagram-btn:hover {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.3);
      color: #ffffff;
      transform: translateY(-1px);
    }

    .instagram-btn:active {
      transform: translateY(0);
    }

    .instagram-btn svg {
      stroke: #ffffff;
      opacity: 0.85;
      flex-shrink: 0;
    }

    .instagram-btn:hover svg {
      opacity: 1;
    }

    .instagram-handle {
      font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
      font-size: 0.84rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.9);
      letter-spacing: 0.01em;
    }

    .instagram-btn:hover .instagram-handle {
      color: #ffffff;
    }

    /* Floating Music Player Box (Center Bottom) */
    .player-wrapper {
      position: relative;
      width: 100%;
      max-width: 660px;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 15px;
      z-index: 60;
      pointer-events: auto !important;
    }

    /* Playlist Popover Menu */
    .playlist-popover {
      position: absolute;
      bottom: calc(100% + 12px);
      right: 0;
      width: 420px;
      background: rgba(10, 10, 14, 0.88);
      backdrop-filter: blur(40px) saturate(180%);
      -webkit-backdrop-filter: blur(40px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-top: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 20px;
      padding: 1rem;
      box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.85),
        0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
      display: none;
      flex-direction: column;
      gap: 0.8rem;
      z-index: 150 !important;
      pointer-events: auto !important;
      animation: popUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .playlist-popover.open {
      display: flex;
    }

    @keyframes popUp {
      from { opacity: 0; transform: translateY(10px) scale(0.95); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .playlist-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: 'Space Mono', monospace;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: var(--yellow);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding-bottom: 0.5rem;
    }

    .close-playlist {
      cursor: pointer;
      font-size: 0.9rem;
      color: var(--text-dim);
      transition: color 0.2s;
    }

    .close-playlist:hover {
      color: #fff;
    }

    /* Playlist search input */
    .playlist-search {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      padding: 0.45rem 0.75rem;
      transition: border-color 0.2s;
    }

    .playlist-search:focus-within {
      border-color: rgba(245, 197, 24, 0.5);
    }

    .playlist-search svg {
      flex-shrink: 0;
      opacity: 0.5;
    }

    .playlist-search input {
      background: none;
      border: none;
      outline: none;
      color: #fff;
      font-size: 0.8rem;
      font-family: 'Outfit', sans-serif;
      width: 100%;
      caret-color: var(--yellow);
      pointer-events: auto !important;
    }

    .playlist-search input::placeholder {
      color: rgba(255, 255, 255, 0.35);
    }

    /* Web-only Live Chat Float Button (above Horn) */
    .live-chat-float {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      background: rgba(20, 20, 24, 0.75);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      padding: 0.5rem 1rem;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 8px 20px rgba(0,0,0,0.45);
      color: rgba(255, 255, 255, 0.85);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      position: relative;
    }

    .live-chat-float:hover {
      background: rgba(35, 35, 42, 0.9);
      border-color: rgba(74, 222, 128, 0.5);
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(74, 222, 128, 0.2);
      color: #fff;
    }

    .live-chat-float .chat-float-dot {
      width: 8px;
      height: 8px;
      background: #4ade80;
      border-radius: 50%;
      flex-shrink: 0;
      animation: pulse-green 1.8s ease-in-out infinite;
    }

    .live-chat-float .chat-float-badge {
      display: none;
      background: #ef4444;
      color: #fff;
      font-size: 0.6rem;
      font-weight: 700;
      padding: 0.1rem 0.38rem;
      border-radius: 99px;
      line-height: 1.4;
      min-width: 18px;
      text-align: center;
    }

    .live-chat-float .chat-float-badge.visible {
      display: inline-block;
    }
    @media (max-width: 768px) {
      .live-chat-float { display: none !important; }
    }

    .playlist-items {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      max-height: 360px;
      overflow-y: auto !important;
      pointer-events: auto !important;
      touch-action: pan-y !important;
      scrollbar-width: thin;
      scrollbar-color: rgba(245, 197, 24, 0.4) transparent;
    }

    .playlist-items::-webkit-scrollbar {
      width: 4px;
    }

    .playlist-items::-webkit-scrollbar-track {
      background: transparent;
    }

    .playlist-items::-webkit-scrollbar-thumb {
      background: rgba(245, 197, 24, 0.35);
      border-radius: 4px;
    }

    .playlist-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 0.7rem;
      border-radius: 10px;
      cursor: pointer;
      background: rgba(255, 255, 255, 0.03);
      transition: background 0.2s, transform 0.15s;
      pointer-events: auto !important;
    }

    .playlist-item:hover {
      background: rgba(245, 197, 24, 0.15);
      transform: translateX(3px);
    }

    .playlist-item.active {
      background: rgba(245, 197, 24, 0.25);
      border-left: 3px solid var(--yellow);
    }

    .item-sr {
      font-family: 'Space Mono', monospace;
      font-size: 0.65rem;
      color: var(--text-dim);
      min-width: 18px;
      flex-shrink: 0;
    }

    .item-thumb-wrap {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      overflow: hidden;
      margin: 0 0.6rem;
      flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.15);
      background: #111;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .item-thumb-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.35);
      display: block;
    }

    .item-info {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
      flex: 1;
      min-width: 0;
    }

    .item-sr {
      font-family: 'Space Mono', monospace;
      font-size: 0.65rem;
      color: var(--text-dim);
      min-width: 18px;
      flex-shrink: 0;
    }

    .item-title {
      font-size: 0.82rem;
      font-weight: 500;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 240px;
    }

    .item-artist {
      font-size: 0.68rem;
      color: var(--text-dim);
      text-align: left;
    }

    .item-dur {
      font-family: 'Space Mono', monospace;
      font-size: 0.65rem;
      color: var(--yellow);
      flex-shrink: 0;
    }

    .music-player-card {
      width: 100%;
      background: rgba(10, 10, 14, 0.72);
      backdrop-filter: blur(40px) saturate(180%);
      -webkit-backdrop-filter: blur(40px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-top: 1px solid rgba(255, 255, 255, 0.18); /* brighter top edge = glass shelf */
      border-radius: 9999px;
      padding: 1.1rem 1.4rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.7),
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }

    /* Left Side Live Chat Drawer */
    .chat-drawer {
      position: fixed;
      top: 0;
      left: -360px;
      width: 340px;
      height: 100vh;
      background: rgba(14, 14, 18, 0.95);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-right: 1px solid rgba(245, 197, 24, 0.25);
      box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
      z-index: 9999;
      display: flex;
      flex-direction: column;
      transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .chat-drawer.open {
      left: 0;
    }

    .chat-header {
      padding: 1.1rem 1.2rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(255, 255, 255, 0.03);
    }

    .chat-header-title {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      align-items: flex-start;
    }

    .chat-title-text {
      font-family: 'Space Mono', monospace;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--yellow);
    }

    .chat-online-badge {
      font-size: 0.68rem;
      color: #4ade80;
    }

    .close-chat {
      cursor: pointer;
      font-size: 1.1rem;
      color: var(--text-dim);
      transition: color 0.2s;
    }

    .close-chat:hover {
      color: #fff;
    }

    /* ── Floating Interactive Auto-Rickshaw Fare Meter (Left Center) ── */
    .rickshaw-meter-container {
      position: fixed;
      left: 1.5rem;
      top: 50%;
      transform: translateY(-50%);
      z-index: 100;
      display: flex;
      align-items: center;
      user-select: none;
      -webkit-user-select: none;
    }

    .meter-body {
      position: relative;
      width: 170px;
      background: linear-gradient(145deg, #1d1e24 0%, #0d0e12 100%);
      border: 3px solid #f5c518;
      border-radius: 16px;
      padding: 0.75rem 0.65rem 0.65rem 0.65rem;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.2);
      cursor: pointer;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    }

    .meter-body:hover {
      transform: scale(1.03);
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 18px rgba(245, 197, 24, 0.3);
    }

    .meter-header {
      text-align: center;
      margin-bottom: 0.4rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding-bottom: 0.3rem;
    }

    .meter-brand {
      display: block;
      font-family: 'Space Mono', monospace;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      color: #f5c518;
      text-shadow: 0 0 8px rgba(245, 197, 24, 0.4);
    }

    .meter-model {
      display: block;
      font-size: 0.52rem;
      letter-spacing: 0.8px;
      color: rgba(255, 255, 255, 0.45);
      font-weight: 600;
      margin-top: 1px;
    }

    /* LCD Screen Display */
    .meter-lcd {
      background: #050a06;
      border: 2px solid #1a2c1d;
      border-radius: 10px;
      padding: 0.5rem 0.6rem;
      box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9);
      margin-bottom: 0.45rem;
    }

    .lcd-row.fare-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .lcd-label {
      display: flex;
      flex-direction: column;
      font-size: 0.55rem;
      font-weight: 700;
      color: #34d399;
      letter-spacing: 0.5px;
      line-height: 1.1;
    }

    .lcd-label .lbl-hi {
      font-size: 0.50rem;
      opacity: 0.8;
    }

    .lcd-value.fare-val {
      font-family: 'Space Mono', monospace;
      font-size: 1.25rem;
      font-weight: 700;
      color: #ef4444;
      text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
      letter-spacing: 0.5px;
    }

    .meter-lcd.hired .fare-val {
      color: #ef4444;
      text-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
      animation: farePulse 2s infinite ease-in-out;
    }

    @keyframes farePulse {
      0%, 100% { text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
      50% { text-shadow: 0 0 16px rgba(239, 68, 68, 0.95); }
    }

    .lcd-divider {
      height: 1px;
      background: rgba(52, 211, 153, 0.2);
      margin: 0.35rem 0;
    }

    .lcd-sub-row {
      display: flex;
      justify-content: space-between;
    }

    .sub-col {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .sub-lbl-en {
      font-size: 0.48rem;
      color: #34d399;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .sub-lbl-hi {
      font-size: 0.45rem;
      color: #34d399;
      opacity: 0.75;
    }

    .sub-val {
      font-family: 'Space Mono', monospace;
      font-size: 0.78rem;
      font-weight: 700;
      color: #ef4444;
      margin-top: 1px;
      text-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    }

    /* Meter Status Bar Badge */
    .meter-status-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      padding: 0.35rem 0.5rem;
      border-radius: 8px;
      font-family: 'Space Mono', monospace;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      transition: all 0.3s ease;
    }

    .meter-status-bar.vacant {
      background: rgba(34, 197, 94, 0.15);
      border: 1px solid rgba(34, 197, 94, 0.4);
      color: #4ade80;
    }

    .meter-status-bar.hired {
      background: rgba(239, 68, 68, 0.2);
      border: 1px solid rgba(239, 68, 68, 0.5);
      color: #f87171;
    }

    .meter-status-bar .status-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
    }

    .meter-status-bar.vacant .status-dot {
      background: #4ade80;
      box-shadow: 0 0 8px #4ade80;
    }

    .meter-status-bar.hired .status-dot {
      background: #ef4444;
      box-shadow: 0 0 8px #ef4444;
      animation: blinkDot 1s infinite alternate;
    }

    @keyframes blinkDot {
      0% { opacity: 0.3; }
      100% { opacity: 1; }
    }

    /* Mechanical Flag Lever */
    .meter-lever-wrap {
      position: absolute;
      right: -32px;
      top: 12px;
      width: 32px;
      height: 50px;
      cursor: pointer;
      z-index: 2;
    }

    .meter-lever-arm {
      position: absolute;
      left: 0;
      top: 0;
      width: 26px;
      height: 40px;
      transform-origin: left top;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .meter-lever-arm.down {
      transform: rotate(90deg);
    }

    .meter-lever-flag {
      position: absolute;
      left: 4px;
      top: 0;
      background: #dc2626;
      border: 1.5px solid #fecaca;
      border-radius: 6px;
      padding: 0.25rem 0.4rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
      white-space: nowrap;
    }

    .flag-text-en {
      font-size: 0.48rem;
      font-weight: 900;
      color: #ffffff;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .flag-text-hi {
      font-size: 0.42rem;
      font-weight: 700;
      color: #fef08a;
    }

    /* Decorative Corner Screws */
    .screw {
      position: absolute;
      font-size: 0.55rem;
      color: rgba(255, 255, 255, 0.25);
      font-weight: 900;
      line-height: 1;
    }

    .screw-tl { top: 4px; left: 6px; }
    .screw-tr { top: 4px; right: 6px; }
    .screw-bl { bottom: 4px; left: 6px; }
    .screw-br { bottom: 4px; right: 6px; }

    /* Responsive scaling for smaller windows */
    @media (max-height: 700px) {
      .rickshaw-meter-container {
        transform: translateY(-50%) scale(0.85);
      }
    }

    @media (max-width: 1024px) {
      .rickshaw-meter-container {
        left: 0.75rem;
        transform: translateY(-50%) scale(0.85);
      }
    }

    @media (max-width: 768px) {
      .rickshaw-meter-container {
        display: none; /* Hidden on mobile screen to preserve clean mobile layout */
      }
    }

    /* ── About Page Layout & Card Styles ── */
    body.about-page {
      height: 100vh;
      height: 100dvh;
      overflow: hidden !important;
    }

    body.about-page .app-viewport {
      position: relative;
      z-index: 10;
      height: 100vh !important;
      height: 100dvh !important;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 1.2rem 2.5rem;
      box-sizing: border-box;
      overflow: hidden !important;
    }

    .center-card-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      flex: 1;
      min-height: 0;
      padding: 0.8rem 0;
      z-index: 20;
      width: 100%;
      overflow: hidden;
      pointer-events: none;
    }

    .card {
      max-width: 740px;
      width: 100%;
      height: 100%;
      max-height: 100%;
      background: rgba(12, 12, 16, 0.92);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      border: 1px solid rgba(245, 197, 24, 0.3);
      border-radius: 24px;
      padding: 2.2rem 2.5rem;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
      overflow-y: auto !important;
      scrollbar-width: thin;
      scrollbar-color: rgba(245, 197, 24, 0.4) transparent;
      pointer-events: auto;
    }

    .card h1 {
      font-size: 2.2rem;
      color: var(--yellow);
      margin-bottom: 0.3rem;
      font-weight: 900;
    }

    .card .subtitle {
      font-size: 0.85rem;
      letter-spacing: 0.2em;
      color: var(--text-dim);
      margin-bottom: 1.4rem;
      text-transform: uppercase;
      font-family: 'Space Mono', monospace;
    }

    .card h2 {
      font-size: 1.25rem;
      color: #FFFFFF;
      margin-top: 1.4rem;
      margin-bottom: 0.6rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      padding-bottom: 0.3rem;
      font-weight: 800;
    }

    .card p {
      color: rgba(255, 255, 255, 0.88);
      font-size: 0.98rem;
      margin-bottom: 0.9rem;
      line-height: 1.6;
    }

    .card a {
      color: var(--yellow);
      text-decoration: none;
      font-weight: 600;
    }

    .card a:hover {
      text-decoration: underline;
    }

    .card a.btn-home {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 1.4rem;
      margin-bottom: 0.5rem;
      padding: 0.8rem 1.8rem;
      background: var(--yellow);
      color: #000000 !important;
      border-radius: 99px;
      font-weight: 700;
      font-size: 0.95rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 6px 20px rgba(245, 197, 24, 0.35);
    }

    .card a.btn-home:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(245, 197, 24, 0.5);
      text-decoration: none;
    }

    @media (max-width: 768px) {
      body.about-page .app-viewport {
        padding: 1rem;
      }
      .card {
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
      }
      .card h1 {
        font-size: 1.75rem;
      }
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 1rem 1rem 28vh 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
      scrollbar-width: thin;
      scrollbar-color: rgba(245, 197, 24, 0.3) transparent;
      scroll-behavior: smooth;
    }

    .chat-messages > .chat-msg:first-child {
      margin-top: auto;
    }

    .chat-msg {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      padding: 0.6rem 0.85rem;
      max-width: 86%;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
      transition: transform 0.15s ease;
      position: relative;
    }

    .chat-msg.other {
      align-self: flex-start;
      margin-right: 1.2rem;
      margin-left: 0;
      border-radius: 12px 12px 12px 2px;
      border-left: 3px solid var(--yellow);
    }

    .chat-msg.self {
      align-self: flex-end;
      margin-left: 1.2rem;
      margin-right: 0;
      border-radius: 12px 12px 2px 12px;
      border-right: 3px solid #38bdf8;
    }

    .chat-msg-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      width: 100%;
      font-size: 0.65rem;
      color: rgba(255, 255, 255, 0.55);
    }

    .chat-msg-user {
      font-weight: 700;
    }

    .chat-msg-text {
      font-size: 0.82rem;
      color: #f1f5f9;
      word-break: break-word;
      text-align: left;
      line-height: 1.35;
    }

    .chat-input-row {
      padding: 0.8rem 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      gap: 0.5rem;
      background: rgba(0, 0, 0, 0.2);
    }

    .chat-input-row input {
      flex: 1;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 20px;
      padding: 0.5rem 0.9rem;
      color: #fff;
      font-size: 0.8rem;
      outline: none;
    }

    .chat-input-row input:focus {
      border-color: var(--yellow);
    }

    .chat-input-row button {
      background: var(--yellow);
      color: #000;
      border: none;
      border-radius: 50%;
      width: 34px;
      height: 34px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
    }

    .chat-input-row button:hover {
      transform: scale(1.08);
    }

    /* Name Prompt Modal */
    .name-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .name-modal-card {
      background: #141418;
      border: 1px solid rgba(245, 197, 24, 0.4);
      border-radius: 20px;
      padding: 1.8rem;
      width: 90%;
      max-width: 360px;
      text-align: center;
      box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    }

    .name-modal-card h3 {
      color: var(--yellow);
      font-family: 'Space Mono', monospace;
      font-size: 1rem;
      margin-bottom: 0.4rem;
    }

    .name-modal-card p {
      font-size: 0.78rem;
      color: var(--text-dim);
      margin-bottom: 1.2rem;
    }

    .name-modal-card input {
      width: 100%;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      padding: 0.7rem 1rem;
      color: #fff;
      font-size: 0.9rem;
      outline: none;
      margin-bottom: 1rem;
      box-sizing: border-box;
    }

    .name-modal-card button {
      width: 100%;
      background: var(--yellow);
      color: #000;
      font-weight: 700;
      border: none;
      border-radius: 12px;
      padding: 0.7rem;
      font-size: 0.9rem;
      cursor: pointer;
    }

    /* Album Art / Full Cover Thumbnail (Rotating) */
    .album-art-wrap {
      position: relative;
      width: 58px;
      height: 58px;
      flex-shrink: 0;
    }

    .vinyl-disc {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 2px solid var(--yellow);
      box-shadow: 0 4px 12px rgba(0,0,0,0.6);
      overflow: hidden;
      transition: transform 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #1a1a1a;
    }

    .vinyl-disc img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.35);
      border-radius: 50%;
      display: block;
    }

    .vinyl-disc.playing {
      animation: spinVinyl 6s linear infinite;
    }

    @keyframes spinVinyl {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* Center Block: Bold Title & Singer Name stacked above Scrubber */
    .player-center-block {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      min-width: 0;
    }

    .track-info-stacked {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
      width: 100%;
    }

    .track-title-bold {
      font-weight: 600;
      font-size: 0.98rem;
      color: #FFFFFF;
      letter-spacing: 0.015em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 340px;
    }

    .track-singer-sub {
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.72);
      font-weight: 400;
      margin-top: 0.15rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 340px;
    }

    /* Waveform & Scrubber Center */
    .waveform-center {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2.5px;
      height: 18px;
      width: 100%;
    }

    .waveform-bars {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2.5px;
      height: 100%;
      width: 100%;
    }

    .bar {
      width: 3px;
      background: rgba(245, 197, 24, 0.35);
      border-radius: 3px;
      height: 20%;
      transition: height 0.15s ease, background-color 0.2s;
    }

    .bar.active {
      background: var(--yellow);
      box-shadow: 0 0 6px rgba(245, 197, 24, 0.5);
    }

    .waveform-center.playing .bar {
      animation: barJump 1.2s ease-in-out infinite alternate;
    }

    @keyframes barJump {
      0% { height: 15%; }
      50% { height: 90%; }
      100% { height: 30%; }
    }

    .bar:nth-child(1) { animation-delay: 0.1s; }
    .bar:nth-child(2) { animation-delay: 0.35s; }
    .bar:nth-child(3) { animation-delay: 0.15s; }
    .bar:nth-child(4) { animation-delay: 0.5s; }
    .bar:nth-child(5) { animation-delay: 0.25s; }
    .bar:nth-child(6) { animation-delay: 0.4s; }
    .bar:nth-child(7) { animation-delay: 0.05s; }
    .bar:nth-child(8) { animation-delay: 0.3s; }
    .bar:nth-child(9) { animation-delay: 0.45s; }
    .bar:nth-child(10) { animation-delay: 0.2s; }
    .bar:nth-child(11) { animation-delay: 0.6s; }
    .bar:nth-child(12) { animation-delay: 0.15s; }
    .bar:nth-child(13) { animation-delay: 0.35s; }
    .bar:nth-child(14) { animation-delay: 0.55s; }

    .scrubber-row {
      display: flex;
      align-items: center;
      gap: 0.95rem;
      width: 100%;
      font-family: 'Space Mono', monospace;
      font-size: 0.68rem;
      color: var(--text-dim);
      margin-top: 0.4rem;
    }

    .progress-bar-track {
      flex: 1;
      height: 3px;
      background: rgba(255, 255, 255, 0.12);
      border-radius: 99px;
      position: relative;
      cursor: grab;
      touch-action: none;
      margin: 0 0.35rem;
    }

    .progress-bar-track:active { cursor: grabbing; }

    .progress-fill {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, rgba(245,197,24,0.8), var(--yellow));
      border-radius: 99px;
      pointer-events: none;
      box-shadow: 0 0 6px rgba(245, 197, 24, 0.5);
      transition: width 0.1s linear;
    }

    .progress-handle {
      position: absolute;
      top: 50%;
      left: 0%;
      transform: translate(-50%, -48%) scaleX(-1);
      font-size: 1.25rem;
      line-height: 1;
      pointer-events: none;
      transition: left 0.1s linear, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
      filter: drop-shadow(0 3px 6px rgba(0,0,0,0.7));
      user-select: none;
      cursor: pointer;
    }

    .progress-handle.face-left {
      transform: translate(-50%, -48%) scaleX(1) !important;
    }

    .progress-bar-track:hover .progress-handle {
      transform: translate(-50%, -48%) scaleX(-1) scale(1.25);
    }

    .progress-bar-track:hover .progress-handle.face-left {
      transform: translate(-50%, -48%) scaleX(1) scale(1.25);
    }

    .progress-bar-track.is-dragging .progress-fill,
    .progress-bar-track.is-dragging .progress-handle {
      transition: none !important;
    }

    .progress-handle.is-dragging {
      transform: translate(-50%, -48%) scaleX(-1) scale(1.38) !important;
      filter: drop-shadow(0 5px 14px rgba(245, 197, 24, 0.95)) !important;
    }

    .progress-handle.is-dragging.face-left {
      transform: translate(-50%, -48%) scaleX(1) scale(1.38) !important;
      filter: drop-shadow(0 5px 14px rgba(245, 197, 24, 0.95)) !important;
    }

    /* Player Controls Right */
    .player-controls {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .btn-ctrl {
      background: none;
      border: none;
      color: var(--text-white);
      cursor: pointer;
      opacity: 0.75;
      transition: opacity 0.2s, transform 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-ctrl:hover {
      opacity: 1;
      transform: scale(1.15);
      color: var(--yellow);
    }

    .btn-ctrl:active {
      transform: scale(0.95);
    }

    .btn-ctrl svg {
      width: 20px;
      height: 20px;
    }

    .btn-play-pause {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--yellow);
      color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      border: none;
      box-shadow: 0 4px 15px rgba(245, 197, 24, 0.4);
    }

    .btn-play-pause svg {
      width: 22px;
      height: 22px;
    }

    .btn-play-pause:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 20px rgba(245, 197, 24, 0.6);
    }

    .btn-play-pause:active {
      transform: scale(0.95);
    }

    /* Sub-footer Banner */
    .sub-footer-text {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.75);
      display: flex;
      align-items: center;
      gap: 0.6rem;
      letter-spacing: 0 !important;
    }

    .sub-footer-text span:not(.star) {
      font-family: 'Baloo 2', 'Tiro Devanagari Hindi', 'Mukta', 'Noto Sans Devanagari', sans-serif;
      letter-spacing: 0 !important;
      word-spacing: 0.2em;
    }

    .sub-footer-text .star {
      color: var(--yellow);
      font-size: 0.65rem;
    }

    audio {
      display: none;
    }

    /* ═══════════════════════════════════════════════
       RESPONSIVE — Tablet / iPad  (≤1024px)
    ═══════════════════════════════════════════════ */
    @media (max-width: 1024px) {
      .app-viewport { padding: 1.2rem 1.5rem; }
      .player-wrapper { max-width: 100%; }
      .playlist-popover { width: 360px; }
      .track-title-bold, .track-singer-sub { max-width: 220px; }
      .horn-button-container { bottom: 1.2rem; }
    }

    /* ═══════════════════════════════════════════════
       RESPONSIVE — Small Tablet / Large Phone (≤768px)
    ═══════════════════════════════════════════════ */
    @media (max-width: 768px) {
      html, body {
        overflow: hidden !important;
        height: 100vh;
        height: 100dvh;
        touch-action: manipulation;
      }

      .app-viewport {
        padding: 0.65rem 0.85rem;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        justify-content: space-between;
      }

      /* Top bar tighter */
      .top-bar { gap: 0.4rem; }
      .live-clock { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
      .yt-music-top-btn span { display: none; } /* hide "YT Music" label, keep icon */
      .status-sub { font-size: 0.55rem; letter-spacing: 0.12em; }

      /* Brand title scales nicely */
      .brand-header { margin-top: 0; }
      .brand-title { font-size: clamp(2.4rem, 9.5vw, 4.2rem); }
      .brand-subtitle { font-size: clamp(0.55rem, 2vw, 0.75rem); letter-spacing: 0.3em; margin-top: 0.2rem; }

      /* Bottom zone: fit tightly */
      .bottom-zone { gap: 0.35rem; width: 100%; position: relative; }

      /* Horn button: smaller on mobile */
      .horn-button-container { position: static; align-self: flex-start; margin-bottom: 0.15rem; }
      .horn-btn { padding: 0.45rem 0.8rem; gap: 0.45rem; }
      .horn-title { font-size: 0.8rem; }
      .horn-sub { font-size: 0.55rem; }
      .horn-icon-circle { width: 24px; height: 24px; }

      /* Instagram handle: bottom right floating */
      .instagram-button-container { position: absolute; right: 0; bottom: 0; z-index: 20; }
      .instagram-btn { padding: 0.28rem 0.6rem; gap: 0.35rem; }
      .instagram-handle { font-size: 0.7rem; }

      /* Mobile player: 3-row stacked layout */
      .music-player-card {
        border-radius: 20px;
        padding: 0.75rem 0.85rem 0.55rem;
        gap: 0;
        flex-wrap: wrap;
        align-items: center;
      }

      /* Row 1: album art + center-block side by side */
      .album-art-wrap { width: 42px; height: 42px; flex-shrink: 0; order: 1; }

      .player-center-block {
        flex: 1;
        min-width: 0;
        order: 2;
        gap: 0.25rem;
        padding-left: 0.55rem;
      }

      .waveform-center { display: none; }

      /* Track info: full available width */
      .track-title-bold { font-size: 0.88rem; font-weight: 600; max-width: 100%; }
      .track-singer-sub { font-size: 0.70rem; font-weight: 400; max-width: 100%; opacity: 0.8; }

      /* Row 2: scrubber full width */
      .scrubber-row {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        margin-top: 0.4rem;
        font-size: 0.6rem;
        gap: 0.75rem;
      }

      /* Row 3: controls centered */
      .player-controls {
        order: 4;
        width: 100%;
        flex-basis: 100%;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 0.7rem;
        padding-top: 0.65rem;
        padding-bottom: 0.2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
      }

      #shuffleBtn { display: none !important; }
      .btn-play-pause { width: 42px; height: 42px; }
      .btn-play-pause svg { width: 20px; height: 20px; }
      .btn-ctrl svg { width: 19px; height: 19px; }

      .sub-footer-text { margin-top: 0.15rem; font-size: 0.75rem; gap: 0.3rem; }

      /* Playlist popover: full width */
      .playlist-popover {
        width: calc(100vw - 1.7rem);
        right: -0.5rem;
        left: -0.5rem;
        border-radius: 16px;
      }
      .playlist-items { max-height: 240px; }
      .item-title { max-width: 160px; }

      /* Chat drawer: fixed non-moveable viewport overlay on mobile */
      .chat-drawer {
        width: 100vw;
        left: -100vw;
        height: 100dvh;
        height: 100vh;
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        overflow: hidden !important;
        touch-action: manipulation;
      }

      .chat-drawer.open {
        left: 0;
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        height: 100vh !important;
        overflow: hidden !important;
        touch-action: manipulation;
        overscroll-behavior: contain;
      }

      .chat-input-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.8rem 1rem max(2.4rem, calc(1.6rem + env(safe-area-inset-bottom, 24px))) 1rem !important;
        background: rgba(14, 14, 18, 0.98) !important;
      }

      .chat-input-row input {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 16px !important; /* 16px prevents iOS Safari auto-zoom & layout shift */
      }

      .chat-input-row button {
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        margin-left: 0.5rem !important;
      }
    }

    /* ═══════════════════════════════════════════════
       RESPONSIVE — Mobile (≤480px)
    ═══════════════════════════════════════════════ */
    @media (max-width: 480px) {
      .app-viewport {
        padding: 0.5rem 0.75rem;
        height: 100dvh;
        height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
      }

      /* Top bar: shrink everything */
      .live-clock { font-size: 0.68rem; padding: 0.18rem 0.4rem; }
      #userCount { font-size: 0.8rem; }
      .status-sub { display: none; }

      .brand-title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
      .brand-subtitle { font-size: clamp(0.5rem, 1.8vw, 0.7rem); }

      /* Player card: flat pill-rectangle */
      .music-player-card {
        border-radius: 18px;
        padding: 0.65rem 0.75rem 0.45rem;
        gap: 0;
      }

      /* Album disc smaller */
      .album-art-wrap { width: 38px; height: 38px; }

      /* Track info */
      .track-title-bold { font-size: 0.82rem; font-weight: 600; max-width: 100%; }
      .track-singer-sub { font-size: 0.65rem; font-weight: 400; max-width: 100%; opacity: 0.8; }

      /* Scrubber row: time labels smaller */
      .scrubber-row { font-size: 0.58rem; gap: 0.65rem; margin-top: 0.3rem; }
      .progress-bar-track { margin: 0 0.35rem; }
      .progress-handle { font-size: 0.92rem; }

      /* Controls: reduce gaps and icon sizes */
      .player-controls {
        gap: 0.7rem;
        margin-top: 0.6rem;
        padding-top: 0.55rem;
        padding-bottom: 0.2rem;
      }
      .btn-ctrl svg { width: 18px; height: 18px; }
      .btn-play-pause { width: 40px; height: 40px; }
      .btn-play-pause svg { width: 19px; height: 19px; }

      /* Waveform: hide on very small screens to save space */
      .waveform-center { display: none; }

      .sub-footer-text { font-size: 0.68rem; gap: 0.2rem; }
      .instagram-btn { padding: 0.22rem 0.5rem; gap: 0.25rem; }
      .instagram-handle { font-size: 0.65rem; }

      /* Playlist popover: full bleed */
      .playlist-popover {
        width: 100vw;
        left: -0.85rem;
        right: -0.85rem;
        border-radius: 16px 16px 0 0;
        bottom: calc(100% + 8px);
      }
      .item-title { max-width: 130px; font-size: 0.78rem; }
      .item-artist { font-size: 0.62rem; }
      .item-thumb-wrap { width: 34px; height: 34px; }
      .playlist-items { max-height: 220px; }

      /* Horn button minimal */
      .horn-btn { padding: 0.45rem 0.75rem; }
      .horn-text { display: none; } /* icon only on tiny screens */
      .horn-icon-circle { width: 24px; height: 24px; }

      /* Chat drawer */
      .chat-drawer { width: 100vw; left: -100vw; }
      .chat-drawer.open { left: 0; }
      .chat-title-text { font-size: 0.75rem; }
      .chat-online-badge { font-size: 0.6rem; }
    }

    /* ═══════════════════════════════════════════════
       Touch: bigger tap targets for all buttons
    ═══════════════════════════════════════════════ */
    @media (hover: none) and (pointer: coarse) {
      .btn-ctrl {
        min-width: 36px;
        min-height: 36px;
        opacity: 0.9;
      }
      .btn-play-pause {
        width: 44px;
        height: 44px;
      }
      .playlist-item { padding: 0.65rem 0.8rem; }
      .close-playlist, .close-chat { padding: 0.5rem; }
      .horn-btn { padding: 0.65rem 1.1rem; }
    }
