@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/roboto-v51-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/roboto-v51-cyrillic_latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/roboto-v51-cyrillic_latin-700.woff2') format('woff2');
}

/* ===== Main Scroll Container (between header & mini-player) ===== */
.main-scroll {
    overflow-y: auto;
    overscroll-behavior-y: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.main-scroll::-webkit-scrollbar {
    width: 1px;
    height: 1px;
}

/* Remove arrows/buttons from scrollbar */
.main-scroll::-webkit-scrollbar-button {
    display: none;
}

.main-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.main-scroll::-webkit-scrollbar-thumb {
    background: var(--scrollbar-color, #0071E3);
    border-radius: 1px;
}

/* Firefox: hide native scrollbar (1px impossible there) */
.main-scroll {
    scrollbar-width: none;
}

/* Lock main scroll when modal/player is open */
.modal-open .main-scroll {
    overflow: hidden;
}

/* ===== Custom Scrollbar Hide (for carousels etc) ===== */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

[x-cloak] { display: none !important; }

/* ===== Safe Area Insets ===== */
.safe-area-top { padding-top: env(safe-area-inset-top); }
.safe-area-bottom { padding-bottom: env(safe-area-inset-bottom); }
.safe-area-left { padding-left: env(safe-area-inset-left); }
.safe-area-right { padding-right: env(safe-area-inset-right); }

/* ===== Fade In Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* ===== Player Cover Pulse ===== */
@keyframes coverPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.player-cover-pulse {
    animation: coverPulse 4s ease-in-out infinite;
}

/* ===== Volume Slider ===== */
.accent-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent, #0071E3);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.accent-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px var(--accent, rgba(0,113,227,0.4));
}

.dark .accent-slider::-webkit-slider-thumb {
    background: var(--accent, #0A84FF);
    border-color: #1C1C1E;
}

.dark .accent-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 8px var(--accent, rgba(10,132,255,0.4));
}

.accent-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent, #0071E3);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.dark .accent-slider::-moz-range-thumb {
    background: var(--accent, #0A84FF);
    border-color: #1C1C1E;
}

/* ===== Line Clamp ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Touch optimizations ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ===== Prevent text selection in car mode ===== */
.select-none {
    -webkit-user-select: none;
    user-select: none;
}

/* ===== Font smoothing ===== */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Audio player progress animation ===== */
@keyframes audioProgress {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ===== Car mode swipe hint animation ===== */
@keyframes swipeHint {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(10px); opacity: 1; }
}

/* ===== Glassmorphism support ===== */
@supports not (backdrop-filter: blur(20px)) {
    header, [style*="backdrop-filter"] {
        background-color: rgba(245, 245, 247, 0.95) !important;
    }
    .dark header, .dark [style*="backdrop-filter"] {
        background-color: rgba(0, 0, 0, 0.95) !important;
    }
}

/* ===== Mobile optimizations ===== */
@media (max-width: 768px) {
    .player-cover-pulse {
        animation-duration: 3s;
    }
}

/* ===== Canvas visualizer crisp rendering ===== */
canvas {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===== Card hover shadow transition ===== */
.group:hover .shadow-md,
.group:hover [style*="box-shadow"] {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ===== Modal scroll lock ===== */
body.modal-open {
    overflow: hidden;
}

/* ============================================ */
/* ===== NEW MICRO-ANIMATIONS ===== */
/* ============================================ */

/* ===== Staggered Card Entrance ===== */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-enter {
    animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

/* ===== Hover Lift Effect ===== */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
}

/* ===== Card Hover (combined scale + lift) ===== */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.03);
}

/* ===== Heart Burst Animation ===== */
@keyframes heartBurst {
    0% { transform: scale(1); }
    25% { transform: scale(1.4); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.heart-burst {
    animation: heartBurst 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Heart Beat Continuous ===== */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

.heart-beat {
    animation: heartBeat 1.2s ease-in-out infinite;
}

/* ===== Button Press ===== */
@keyframes buttonPress {
    0% { transform: scale(1); }
    40% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.btn-press:active {
    animation: buttonPress 0.2s ease;
}

/* ===== Ripple Effect ===== */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
    transform: scale(0);
    opacity: 0.3;
    transition: 0s;
}

/* ===== Logo Float ===== */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(1deg); }
    75% { transform: translateY(3px) rotate(-1deg); }
}

.logo-float {
    animation: logoFloat 6s ease-in-out infinite;
}

/* ===== Search Shake ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    50% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    90% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ===== Glow Pulse ===== */
@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 20px var(--glow-color, rgba(0,113,227,0.2)),
                    0 0 40px var(--glow-color, rgba(0,113,227,0.1));
    }
    50% { 
        box-shadow: 0 0 30px var(--glow-color, rgba(0,113,227,0.4)),
                    0 0 60px var(--glow-color, rgba(0,113,227,0.2));
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ===== Play Ring Pulse ===== */
@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.play-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: ringPulse 1.5s ease-out infinite;
}

/* ===== Equalizer Bars ===== */
@keyframes eqBar {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.eq-bar {
    animation: eqBar 0.8s ease-in-out infinite;
    transform-origin: bottom;
}

.eq-bar:nth-child(1) { animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-delay: 0.15s; }
.eq-bar:nth-child(5) { animation-delay: 0.05s; }

/* ===== Slide In Right ===== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== Slide In Up (Bounce) ===== */
@keyframes slideInUpBounce {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    60% {
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up-bounce {
    animation: slideInUpBounce 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== Scale In ===== */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== Spin Slow ===== */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-slow {
    animation: spinSlow 20s linear infinite;
}

/* ===== Bounce In ===== */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== Shimmer Loading ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.dark .shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.05) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
}

/* ===== Genre Chip Slide ===== */
@keyframes chipSlide {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.chip-slide {
    animation: chipSlide 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== Now Playing Indicator ===== */
@keyframes nowPlaying {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.now-playing-dot {
    animation: nowPlaying 1.5s ease-in-out infinite;
}

.now-playing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.now-playing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ===== Car Mode Glow ===== */
@keyframes carGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--car-accent, rgba(255,255,255,0.2)));
    }
    50% {
        filter: drop-shadow(0 0 40px var(--car-accent, rgba(255,255,255,0.4)))
                drop-shadow(0 0 80px var(--car-accent, rgba(255,255,255,0.1)));
    }
}

.car-glow {
    animation: carGlow 3s ease-in-out infinite;
}

/* ===== Car Button Pulse ===== */
@keyframes carBtnPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0.2);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(255,255,255,0);
    }
}

.car-btn-pulse {
    animation: carBtnPulse 2s ease-in-out infinite;
}

/* ===== Station Wave ===== */
@keyframes stationWave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.station-wave {
    animation: stationWave 2s ease-in-out infinite;
}

/* ===== Smooth Transitions ===== */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Focus Ring ===== */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3);
}

.dark .focus-ring:focus {
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3);
}

/* ===== Text Gradient ===== */
.text-gradient {
    background: linear-gradient(135deg, #0071E3 0%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .text-gradient {
    background: linear-gradient(135deg, #0A84FF 0%, #BF5AF2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Backdrop Blur Utilities ===== */
.backdrop-blur-strong {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* ===== Car Mode Gradient Background ===== */
.car-gradient-bg {
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.9) 0%, 
        rgba(20,20,30,0.95) 50%, 
        rgba(0,0,0,0.9) 100%);
}

/* ===== Car Mode Active Ring ===== */
@keyframes carActiveRing {
    0% { box-shadow: 0 0 0 0px rgba(255,255,255,0.4); }
    100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

.car-active-ring {
    animation: carActiveRing 1.5s ease-out infinite;
}

/* ===== Car Station Item (Old) ===== */
.car-station-item {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.car-station-item:hover {
    transform: scale(1.08);
    filter: brightness(1.2);
}

.car-station-item.active {
    transform: scale(1.1);
    filter: brightness(1.3);
}

/* ===== Car Station Card (New Redesigned) ===== */
.car-station-card {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.car-station-card.active {
    transform: scale(1.05);
}

.car-station-card:not(.active) {
    opacity: 0.5;
    transform: scale(0.95);
}

.car-station-card:not(.active):hover {
    opacity: 0.85;
    transform: scale(1);
}

.car-station-cover {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.car-station-card.active .car-station-cover {
    box-shadow: 0 0 30px var(--station-color, rgba(255,255,255,0.3));
}

/* ===== Car Play Button Glow ===== */
.car-play-btn {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ===== Exit Button Hover ===== */
.car-exit-btn {
    transition: all 0.3s ease;
}

.car-exit-btn:hover {
    transform: rotate(90deg);
    background: rgba(255,255,255,0.2);
}

/* ===== Car Mode Scroll Panels ===== */
.car-scroll-panel {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}

.car-scroll-panel::-webkit-scrollbar {
    display: none;
}

/* ===== Car Station Row (vertical list item) ===== */
.car-station-row {
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.car-station-row:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.1);
}

.car-station-row:active {
    transform: scale(0.98);
}

.car-station-row.active {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.02);
}

.car-station-row.active .car-station-cover {
    box-shadow: 0 0 20px var(--station-color, rgba(255,255,255,0.3));
}

/* ===== Car Mode Responsive Title/Subtitle ===== */
@media (max-width: 768px) {
    .car-mode-title {
        font-size: 1.5rem !important;
    }
    .car-mode-subtitle {
        font-size: 1rem !important;
    }
}

@media (min-width: 769px) {
    .car-mode-title {
        font-size: 2.5rem !important;
    }
    .car-mode-subtitle {
        font-size: 1.25rem !important;
    }
}


/* ===== Mini Player Art Spin ===== */
@keyframes artSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mini-art-spin {
    animation: artSpin 10s linear infinite;
    animation-play-state: paused;
}

.mini-art-spin.playing {
    animation-play-state: running;
}

/* ===== Favorite Star Pop ===== */
@keyframes starPop {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.star-pop {
    animation: starPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Skeleton Pulse ===== */
@keyframes skeletonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.skeleton {
    animation: skeletonPulse 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.06) 25%, 
        rgba(0,0,0,0.1) 50%, 
        rgba(0,0,0,0.06) 75%);
    background-size: 200% 100%;
}

.dark .skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.06) 25%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
}

/* ===== Modal Backdrop Blur Transition ===== */
.modal-backdrop-transition {
    transition-property: opacity, backdrop-filter, -webkit-backdrop-filter;
    transition-timing-function: ease;
}

.modal-backdrop-blur-0 {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.modal-backdrop-blur-12 {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@keyframes touchRipple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

.car-touch-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    pointer-events: none;
    animation: touchRipple 0.6s ease-out forwards;
}

/* ===== Swipe Direction Indicators ===== */
@keyframes swipeLeftHint {
    0% { transform: translateX(0); opacity: 0; }
    30% { transform: translateX(-30px); opacity: 0.6; }
    100% { transform: translateX(-60px); opacity: 0; }
}

@keyframes swipeRightHint {
    0% { transform: translateX(0); opacity: 0; }
    30% { transform: translateX(30px); opacity: 0.6; }
    100% { transform: translateX(60px); opacity: 0; }
}

@keyframes swipeUpHint {
    0% { transform: translateY(0); opacity: 0; }
    30% { transform: translateY(-20px); opacity: 0.6; }
    100% { transform: translateY(-40px); opacity: 0; }
}

@keyframes swipeDownHint {
    0% { transform: translateY(0); opacity: 0; }
    30% { transform: translateY(20px); opacity: 0.6; }
    100% { transform: translateY(40px); opacity: 0; }
}

.swipe-hint-left { animation: swipeLeftHint 0.4s ease-out; }
.swipe-hint-right { animation: swipeRightHint 0.4s ease-out; }
.swipe-hint-up { animation: swipeUpHint 0.4s ease-out; }
.swipe-hint-down { animation: swipeDownHint 0.4s ease-out; }

/* ===== Volume Change Flash ===== */
@keyframes volumeFlash {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1); }
}

.volume-flash {
    animation: volumeFlash 0.5s ease-out forwards;
}

/* ===== Active Tab Indicator ===== */
@keyframes tabPulse {
    0% { box-shadow: 0 0 0 0 rgba(0,113,227,0.3); }
    70% { box-shadow: 0 0 0 6px rgba(0,113,227,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,113,227,0); }
}

.tab-pulse {
    animation: tabPulse 0.5s ease-out;
}

/* ===== Mobile Bottom Navigation ===== */
@media (max-width: 768px) {
    .mobile-tab-nav {
        position: fixed;
        bottom: calc(84px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        z-index: 55;
        display: flex;
        gap: 4px;
        padding: 4px;
        border-radius: 40px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .dark .mobile-tab-nav {
        background: rgba(28, 28, 30, 0.85);
    }
}

/* ===== Player swipe helpers ===== */
.-translate-y-screen {
    transform: translateY(-100vh);
}

/* ===== Car Mode Long Press Indicator ===== */
@keyframes longPressFill {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0; }
}

.long-press-indicator {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255,255,255,0.2);
    animation: longPressFill 0.3s ease-out forwards;
}

/* ============================================ */
/* ===== ANDROID SPINNER (Circular Loader) ===== */
/* ============================================ */
.android-spinner {
    display: inline-block;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    animation: androidSpin 0.7s linear infinite;
    box-sizing: border-box;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes androidSpin {
    to { transform: rotate(360deg); }
}


/* ===== Car Mode Volume Overlay ===== */
.car-volume-overlay {
    width: 56px;
    height: 180px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.car-volume-bar-bg {
    width: 6px;
    height: 130px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.car-volume-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #0A84FF, #5AC8FA);
    border-radius: 3px;
    transition: height 0.05s linear;
}

/* ===== Car Mode Compact / Short Screens ===== */
@media (max-height: 400px) and (orientation: landscape) {
    .car-top-bar { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
    .car-logo-img { width: 4.5rem !important; height: 4.5rem !important; }
    .car-play-btn { width: 3rem !important; height: 3rem !important; }
    .car-play-btn i { font-size: 1rem !important; }
    .car-prev-next { width: 2.25rem !important; height: 2.25rem !important; }
    .car-prev-next i { font-size: 0.75rem !important; }
    .car-mode-title { font-size: 0.875rem !important; margin-bottom: 0 !important; }
    .car-mode-subtitle { font-size: 0.625rem !important; }
    .car-station-row { padding: 0.375rem !important; margin-bottom: 0.25rem !important; border-radius: 0.625rem !important; }
    .car-station-cover { width: 1.75rem !important; height: 1.75rem !important; border-radius: 0.375rem !important; }
    .car-station-name { font-size: 0.625rem !important; }
    .car-station-genre { font-size: 0.5rem !important; }
    .car-col-title { font-size: 0.75rem !important; margin-bottom: 0.25rem !important; }
    .car-visualizer { height: 1.5rem !important; padding-bottom: 0.125rem !important; }
    .car-exit-btn { width: 1.75rem !important; height: 1.75rem !important; }
    .car-exit-btn i { font-size: 0.625rem !important; }
    .car-center-col { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
    .car-scroll-panel { padding-left: 0.125rem !important; padding-right: 0.125rem !important; }
    .car-active-ring { display: none !important; } /* save space on tiny screens */
}

/* Medium-short screens */
@media (min-height: 401px) and (max-height: 550px) and (orientation: landscape) {
    .car-logo-img { width: 6rem !important; height: 6rem !important; }
    .car-play-btn { width: 3.5rem !important; height: 3.5rem !important; }
    .car-play-btn i { font-size: 1.25rem !important; }
    .car-prev-next { width: 2.5rem !important; height: 2.5rem !important; }
    .car-prev-next i { font-size: 0.875rem !important; }
    .car-mode-title { font-size: 1rem !important; }
    .car-mode-subtitle { font-size: 0.75rem !important; }
    .car-station-row { padding: 0.5rem !important; margin-bottom: 0.375rem !important; }
    .car-station-cover { width: 2.25rem !important; height: 2.25rem !important; }
    .car-station-name { font-size: 0.75rem !important; }
    .car-station-genre { font-size: 0.625rem !important; }
    .car-col-title { font-size: 0.875rem !important; }
    .car-visualizer { height: 2rem !important; }
}

/* Standard landscape */
@media (min-height: 551px) and (max-height: 700px) and (orientation: landscape) {
    .car-logo-img { width: 7rem !important; height: 7rem !important; }
    .car-play-btn { width: 4rem !important; height: 4rem !important; }
    .car-prev-next { width: 2.75rem !important; height: 2.75rem !important; }
    .car-mode-title { font-size: 1.125rem !important; }
    .car-mode-subtitle { font-size: 0.875rem !important; }
}

/* Prevent giant elements on very wide but short screens */
@media (min-aspect-ratio: 21/9) and (orientation: landscape) {
    .car-logo-img { width: 5rem !important; height: 5rem !important; }
    .car-play-btn { width: 3rem !important; height: 3rem !important; }
    .car-center-col { justify-content: flex-start !important; padding-top: 0.5rem !important; }
}

/* ===== Orientation Warning Animation ===== */
@keyframes orientationPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.03); opacity: 0.9; }
}