/* ============================================================= */
/* 📱 Universal Responsive Design: Mobile, Tablet & Desktop     */
/* ============================================================= */

/* ------------------------------------------------------------- */
/* 1. TABLET & MEDIUM SCREENS (601px ~ 1024px)                  */
/* ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 220px 1fr;
  }

  .top-vinyl-section {
    padding-top: clamp(75px, 10vh, 95px);
  }

  .vinyl-halo-wrapper {
    width: clamp(350px, 44vh, 520px);
    height: clamp(350px, 44vh, 520px);
  }

  .turntable-tonearm {
    width: clamp(260px, 34vh, 400px);
    height: clamp(340px, 44vh, 540px);
    top: -32px;
    right: -110px;
  }

  .turntable-tonearm.playing,
  .giant-vinyl-disc.playing ~ .turntable-tonearm {
    transform: rotate(18deg) !important;
  }

  .hero-player-controls {
    gap: 12px;
    padding: 10px 20px;
  }

  .btn-hero-primary {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .btn-hero-ctrl {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .btn-hero-tool {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  
}

/* ------------------------------------------------------------- */
/* 2. MOBILE SMARTPHONES (<= 768px, Portrait)                   */
/* ------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Main Shell Layout */
  .app-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 64px 58px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .sidebar {
    display: none !important;
  }

  .main-content {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
  }

  /* Mobile Top App Bar */
  .mobile-brand-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2px 4px 2px;
  }

  .mobile-brand-info {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-brand-logo {
    font-size: 19px;
    line-height: 1;
  }

  .mobile-brand-text {
    font-size: 17px;
    font-weight: 800;
    color: #FFF;
    background: linear-gradient(135deg, #FFF 30%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
  }

  .mobile-brand-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.45);
    color: #A5B4FC;
    line-height: 1.2;
  }

  .mobile-header-tools {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-mobile-tool {
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #FFF;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .btn-mobile-tool:active {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.6);
    transform: scale(0.95);
  }

  .mobile-remote-pill {
    padding: 0 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
    color: var(--text-secondary);
  }

  .mobile-remote-pill.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.35)) !important;
    border-color: rgba(99, 102, 241, 0.7) !important;
    color: #FFF !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  }

  .mobile-tool-text {
    font-size: 11px;
    font-weight: 700;
  }

  .top-header {
    height: auto;
    padding: 10px 14px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(9, 10, 15, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .header-desktop-tools {
    display: none !important;
  }

  .search-bar-wrapper {
    max-width: 100%;
  }

  .search-box {
    padding: 4px 6px 4px 12px;
    gap: 6px;
  }

  .search-box input {
    font-size: 13px;
  }

  .btn-primary-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 20px;
    white-space: nowrap;
  }

  /* View Viewport & Headers on Mobile */
  .view-viewport {
    padding: 14px 14px 24px;
  }

  .view-header {
    margin-bottom: 16px;
  }

  .view-header h1 {
    font-size: 19px;
    letter-spacing: -0.3px;
  }

  .view-header p {
    font-size: 12px;
  }

  /* Mobile Responsive Playlist Header */
  .playlist-header-responsive {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .view-title-group h1 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .view-title-group p {
    font-size: 12px;
    color: var(--text-secondary);
  }

  .playlist-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
  }

  .btn-action-create {
    flex: 1.3;
    justify-content: center;
    padding: 9px 12px;
    font-size: 12px;
  }

  .header-sub-actions {
    display: flex;
    gap: 6px;
    flex: 1;
  }

  .header-sub-actions .btn-secondary-sm {
    flex: 1;
    justify-content: center;
    padding: 9px 8px;
    font-size: 11px;
    letter-spacing: -0.3px;
  }

  /* Mobile 2-column Playlist Grid */
  .playlist-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .btn-delete-pl-quick {
    opacity: 0.9 !important;
  }

  /* Mobile Fullscreen Queue Modal */
  .queue-drawer {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border: none !important;
    background: rgba(9, 10, 15, 0.98) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    padding: 16px 14px 20px 14px !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .queue-drawer.hidden {
    display: none !important;
  }

  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .drawer-title-box {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .drawer-title-box h3 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .queue-count-badge {
    font-size: 10px;
    padding: 2px 6px;
    flex-shrink: 0;
  }

  .drawer-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }

  .btn-drawer-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
    border-radius: 8px;
  }

  .queue-sub-toolbar {
    padding: 6px 0 10px;
  }

  .toggle-autoplay-pill {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Home Mode Segmented Switcher */
  .home-header-row {
    margin-bottom: 12px;
    width: 100%;
  }

  .home-mode-segmented {
    width: 100%;
    max-width: 100%;
    padding: 3px;
    gap: 4px;
    display: flex;
    box-sizing: border-box;
  }

  .home-mode-pill {
    flex: 1;
    min-width: 0;
    padding: 7px 4px;
    font-size: 11.5px;
    letter-spacing: -0.4px;
    white-space: nowrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    text-overflow: ellipsis;
  }

  .home-mode-pill span {
    font-size: 13px;
    flex-shrink: 0;
  }

  .chart-pills-row {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    margin-bottom: 14px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }

  .chart-pills-row::-webkit-scrollbar {
    display: none !important;
  }

  .chart-pill {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    border-radius: var(--radius-full) !important;
  }

  .track-grid-header {
    margin-bottom: 12px;
  }

  .track-grid-header h2 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-play-all {
    padding: 6px 12px;
    font-size: 11.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Mobile Track Items (Clean 1-line Grid Layout) */
  .track-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .track-item {
    display: grid !important;
    grid-template-columns: 20px 44px 1fr auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 8px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-sizing: border-box !important;
    min-height: 56px;
  }

  .track-item:active {
    background-color: var(--bg-card-hover) !important;
  }

  .track-index {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    color: var(--text-muted) !important;
  }

  .track-index.top3 {
    color: #F59E0B !important;
    font-weight: 800 !important;
  }

  .track-thumb {
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--radius-sm) !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  .track-meta {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding-left: 0 !important;
  }

  .track-title {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    display: block !important;
  }

  .track-artist {
    font-size: 11px !important;
    color: var(--text-secondary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 2px !important;
    display: block !important;
  }

  .track-duration,
  .track-album,
  .track-actions .btn-download {
    display: none !important;
  }

  .track-actions {
    display: flex !important;
    gap: 2px !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .btn-track-action {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 14px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-sm) !important;
    padding: 0 !important;
    color: var(--text-secondary) !important;
  }

  /* Player Bottom Bar on Mobile */
  .player-bar {
    grid-row: 2;
    grid-column: 1;
    grid-template-columns: 1fr auto;
    padding: 0 14px;
    height: 64px;
    background: rgba(14, 18, 28, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .player-track-info {
    gap: 10px;
    max-width: calc(100vw - 80px);
  }

  .player-thumb-wrapper {
    width: 44px;
    height: 44px;
  }

  .player-title {
    font-size: 13px;
  }

  .player-artist {
    font-size: 11px;
  }

  .player-center-controls {
    display: none !important;
  }

  .player-right-tools {
    gap: 6px;
  }

  .player-right-tools .volume-box,
  .player-right-tools #btn-eq-toggle,
  .player-right-tools #btn-download-current,
  .player-right-tools #btn-repeat,
  .player-right-tools #btn-shuffle,
  .player-right-tools #btn-dlna-cast,
  .player-right-tools #btn-wifi-lan-tool,
  .player-right-tools #btn-viz-toggle,
  .player-right-tools #btn-lyrics-toggle {
    display: none !important;
  }

  /* ============================================================= */
  /* 💎 Premium Glassmorphism Mobile Bottom Navigation Bar         */
  /* ============================================================= */
  .mobile-bottom-nav {
    grid-row: 3;
    grid-column: 1;
    display: flex !important;
    position: relative;
    height: 64px;
    background: rgba(11, 14, 24, 0.88) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45) !important;
    z-index: 105;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px env(safe-area-inset-bottom, 6px) 8px;
    gap: 6px;
    box-sizing: border-box;
  }

  /* Distinct Glassmorphism Button Tile for Every Navigation Tab */
  .mobile-bottom-nav .mobile-nav-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 48px !important;
    max-height: 48px !important;
    padding: 4px 2px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    color: var(--text-secondary, #94A3B8) !important;
    cursor: pointer;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .mobile-bottom-nav .mobile-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #FFF !important;
    transform: none !important;
  }

  /* Active Tab Glassmorphism Highlight */
  .mobile-bottom-nav .mobile-nav-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(168, 85, 247, 0.24)) !important;
    border: 1px solid rgba(168, 85, 247, 0.65) !important;
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.28) !important;
    color: #FFFFFF !important;
  }

  .mobile-bottom-nav .mobile-nav-btn.active .mobile-nav-icon {
    transform: scale(1.12) !important;
    filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.9)) !important;
  }

  .mobile-bottom-nav .mobile-nav-btn.active .mobile-nav-label {
    color: #C7D2FE !important;
    font-weight: 700 !important;
  }

  .mobile-bottom-nav .mobile-nav-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    transition: transform 0.2s ease;
  }

  .mobile-bottom-nav .mobile-nav-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  /* 3D Visualizer Button - Center Feature Glassmorphism Pill */
  .mobile-bottom-nav .mobile-nav-viz-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.38), rgba(236, 72, 153, 0.35)) !important;
    border: 1px solid rgba(236, 72, 153, 0.6) !important;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.32) !important;
    color: #FFFFFF !important;
    flex: 1.05 1 0 !important;
  }

  .mobile-bottom-nav .mobile-nav-viz-btn:hover,
  .mobile-bottom-nav .mobile-nav-viz-btn:active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(236, 72, 153, 0.5)) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.45) !important;
  }

  .mobile-bottom-nav .mobile-nav-viz-spark {
    font-size: 16px !important;
    line-height: 1 !important;
    animation: livePulse 2s infinite ease-in-out;
  }

  .mobile-bottom-nav .mobile-nav-viz-btn .mobile-nav-label {
    color: #FDF2F8 !important;
    font-weight: 700 !important;
  }

  /* Full-Window Immersive Visualizer Stage on Mobile */
  .now-playing-modal {
    padding: 0;
  }

  .fullscreen-top-nav {
    padding: 12px 14px;
  }

  .np-title-chip {
    font-size: 12px;
    padding: 4px 10px;
  }

  .fullscreen-top-nav .btn-icon-pill:not(#btn-toggle-cc):not(#btn-toggle-fs-screen) {
    display: none;
  }

  .btn-icon-pill {
    padding: 5px 10px;
    font-size: 11px;
  }

  .top-vinyl-section {
    flex: 62;
    padding: clamp(75px, 11vh, 95px) 0 4px 0;
    justify-content: center;
  }

  /* Proportional Vinyl Disc on Mobile (20% Enlarged) */
  .vinyl-halo-wrapper {
    width: clamp(264px, 38vh, 360px);
    height: clamp(264px, 38vh, 360px);
  }

  .giant-vinyl-disc {
    border-width: 8px;
  }

  /* Proportional Tonearm on Mobile (Precise Mid-Groove Landing) */
  .turntable-tonearm {
    width: clamp(130px, 30vw, 185px);
    height: clamp(175px, 28vh, 245px);
    top: -12px;
    right: -28px;
    transform: rotate(-24deg);
  }

  .turntable-tonearm.playing,
  .giant-vinyl-disc.playing ~ .turntable-tonearm {
    transform: rotate(4deg) !important; /* Lands precisely in the middle of black vinyl sound grooves */
  }

  /* Mobile Track Info */
  .hero-track-info {
    margin-top: 6px;
    padding: 0 12px;
    max-width: 95vw;
  }

  .hero-track-info h1 {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .hero-track-info p {
    font-size: 12px;
    margin-bottom: 6px;
  }

  /* Mobile Touch-Friendly Control Dock */
  .hero-player-controls {
    display: flex !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    max-width: 95vw !important;
    box-sizing: border-box;
  }

  .btn-hero-primary {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    font-size: 24px !important;
  }

  .btn-hero-ctrl {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 16px !important;
  }

  .btn-hero-tool {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 14px !important;
  }

  .hero-ctrl-divider {
    height: 24px !important;
    margin: 0 2px !important;
  }

  /* YouTube Subtitle on Mobile */
  .youtube-cc-overlay {
    bottom: calc(28% + 6px);
    max-width: 94%;
  }

  .cc-text-box {
    padding: 6px 14px;
    min-width: 200px;
  }

  .cc-line {
    font-size: 13px;
  }

  .cc-line.secondary {
    font-size: 11px;
  }

  /* Bottom Spectrum & Visualizer Toolbar on Mobile */
  .bottom-spectrum-section {
    flex: 28;
  }
}

  

  

  

  

  

  
}

/* ------------------------------------------------------------- */
/* 3. MOBILE LANDSCAPE (e.g. Phone rotated horizontally)        */
/* ------------------------------------------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .top-vinyl-section {
    flex: 55;
    padding-top: 4px;
  }

  .vinyl-halo-wrapper {
    width: clamp(160px, 28vh, 220px);
    height: clamp(160px, 28vh, 220px);
  }

  .turntable-tonearm {
    width: clamp(95px, 18vw, 135px);
    height: clamp(120px, 22vh, 165px);
    top: -10px;
    right: -20px;
    transform: rotate(-24deg);
  }

  .turntable-tonearm.playing,
  .giant-vinyl-disc.playing ~ .turntable-tonearm {
    transform: rotate(4deg) !important;
  }

  .hero-player-controls {
    padding: 4px 10px !important;
    gap: 6px !important;
    margin-top: 4px !important;
  }

  .btn-hero-primary {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }

  .btn-hero-ctrl {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  .btn-hero-tool {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  .youtube-cc-overlay {
    bottom: calc(26% + 4px);
  }

  .bottom-spectrum-section {
    flex: 26;
  }
}

/* --- Responsive Rules for Top Visualizer Dock & Header --- */
@media (max-width: 1024px) {
  .fullscreen-top-nav {
    padding: 10px 16px;
    gap: 12px;
  }
  .viz-top-dock {
    padding: 4px 8px;
    gap: 8px;
  }
  .viz-mode-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .viz-palette-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

@media (max-width: 820px) {
  .fullscreen-top-nav {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
    justify-content: space-between;
  }
  .np-title-chip {
    font-size: 13px;
  }
  .np-top-actions {
    gap: 6px;
  }
  .viz-top-dock {
    order: 3;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 26px;
    margin-top: 2px;
  }
  .viz-top-dock::-webkit-scrollbar {
    display: none;
  }
  .viz-modes-row {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
  }
  .viz-mode-btn {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
    min-height: 34px;
    white-space: nowrap;
  }
  .viz-dock-divider {
    height: 18px;
    margin: 0 4px;
    flex-shrink: 0;
  }
  .viz-palettes-row {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
  }
  .viz-palette-btn {
    width: 28px;
    height: 28px;
    font-size: 13px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .fullscreen-top-nav {
    padding: 8px 10px;
  }
  .np-title-chip {
    font-size: 12px;
    padding: 4px 10px;
  }
  .btn-icon-pill {
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .player-right-tools {
    gap: 6px;
  }
  .btn-glass-square {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 13px;
    border-radius: 8px;
  }
  .btn-glass-viz-hero .viz-hero-icon {
    width: 18px;
    height: 18px;
  }

  /* Center Toast Notification above bottom navigation on mobile */
  .toast-container {
    bottom: 140px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    max-width: 380px;
    align-items: center;
    z-index: 10000;
  }

  .toast {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    font-size: 12px;
    padding: 10px 14px;
  }
}
