/* ===================================
   SALSA PLANET RADIO TV - VUE APP
   Premium Mobile-First SPA Design
   =================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary: #ff6600;
    --primary-light: #ff8533;
    --primary-dark: #cc5200;
    --primary-glow: rgba(255, 102, 0, 0.5);
    --secondary: #1a4b8c;
    --secondary-dark: #0d2d5a;
    --accent: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.3);
    
    /* Dark Theme */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-card: rgba(31, 41, 55, 0.8);
    --bg-glass: rgba(17, 24, 39, 0.85);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6600 0%, #ff8533 50%, #ffd700 100%);
    --gradient-secondary: linear-gradient(135deg, #1a4b8c 0%, #0d2d5a 100%);
    --gradient-glow: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px var(--primary-glow);
    
    /* Spacing */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --nav-height: 65px;
    --mini-player-height: 64px;
    --header-height: 56px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    height: 100%;
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 180px;
    height: auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 40px var(--primary-glow));
}

.splash-loader {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 30px auto 20px;
    overflow: hidden;
}

.splash-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: loading 2s ease forwards;
}

.splash-text {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 1.5s infinite;
}

/* ===== APP CONTAINER ===== */
.app-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
    transition: padding 0.4s var(--ease-out);
}

.app-container.has-mini-player {
    padding-bottom: calc(var(--nav-height) + var(--mini-player-height) + var(--safe-bottom));
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.4;
    animation: wave 20s ease-in-out infinite;
}

.wave1 {
    top: -80%;
    left: -50%;
    background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 60%);
}

.wave2 {
    top: -60%;
    right: -50%;
    background: radial-gradient(ellipse at center, rgba(26, 75, 140, 0.4) 0%, transparent 60%);
    animation-delay: -5s;
    animation-duration: 25s;
}

.wave3 {
    bottom: -80%;
    left: -30%;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
    animation-delay: -10s;
    animation-duration: 30s;
}

.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite;
}

/* ===== FULL PLAYER (HOME) ===== */
.full-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    overflow-y: auto;
}

/* Header */
.app-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    padding-top: calc(12px + var(--safe-top));
}

.header-left, .header-right {
    width: 80px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-logo {
    height: 36px;
    width: auto;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ff3b30;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-glass);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Album Section */
.album-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 20px 0;
}

.album-art-wrapper {
    position: relative;
    width: min(65vw, 280px);
    aspect-ratio: 1;
}

.album-glow {
position: absolute;
    inset: -10%;
    background: var(--gradient-glow);
    border-radius: 50%;
    transition: opacity 0.5s, transform 0.5s;
    filter: blur(40px);
}

.album-glow.active {
    opacity: 0.6;
    animation: glowPulse 3s ease-in-out infinite;
}

.vinyl-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 3px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 2;
}

.album-disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.05),
        0 0 0 8px rgba(0, 0, 0, 0.3),
        var(--shadow-lg),
        inset 0 0 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s var(--ease-out);
}

.album-disc.spinning {
    animation: spin 3s linear infinite;
}

.album-cover {
    width: 65%;
    height: 65%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.disc-reflection {
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.disc-center {
    position: absolute;
    width: 15%;
    height: 15%;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.disc-hole {
    width: 40%;
    height: 40%;
    background: var(--bg-primary);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Track Info */
.track-info {
    text-align: center;
    padding: 10px 0;
    width: 100%;
    max-width: 320px;
}

.track-title {
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.track-title.scrolling {
    animation: marquee 12s linear infinite;
}

.dj-name {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dj-name i {
    color: var(--primary);
    font-size: 12px;
}

/* Equalizer */
.equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 35px;
    padding: 10px 0;
}

.eq-bar {
    width: 4px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.equalizer.active .eq-bar {
    animation: eqBar 0.6s ease-in-out infinite alternate;
}

/* Player Controls */
.player-controls {
    padding: 15px 0 20px;
}

.play-button {
    position: relative;
    width: 90px;
    height: 90px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.play-button-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.play-button.playing .play-button-bg {
    opacity: 0.4;
    transform: scale(1.2);
    animation: breathe 2s ease-in-out infinite;
}

.play-button-inner {
    position: absolute;
    inset: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.5);
    transition: transform 0.2s var(--ease-out), box-shadow 0.3s;
    z-index: 1;
}

.play-button-inner i {
    transition: transform 0.2s;
}

.play-button:not(.playing) .play-button-inner i {
    margin-left: 4px;
}

.play-button:active .play-button-inner {
    transform: scale(0.95);
}

.play-button-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 289;
    stroke-dashoffset: 289;
    transition: stroke-dashoffset 0.5s var(--ease-out);
}

.play-button.playing .ring-progress {
    stroke-dashoffset: 0;
}

/* Volume Control (Desktop) */
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 20px;
    align-content: center;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex;
    }
}

.volume-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-glass);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(10px);
}

.volume-slider-wrap {
    position: relative;
    width: 120px;
    height: 15px;
}

.volume-slider {
    width: 100%;
    height: auto;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

/* ===== PAGE CONTAINER ===== */
.page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-top));
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s;
}

.back-btn:active {
    transform: translateX(-4px);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

.header-spacer {
    width: 40px;
}

.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 20px;
}

/* ===== SCHEDULE PAGE ===== */
.schedule-header {
    margin-bottom: 20px;
}

.current-day {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.current-day i {
    color: var(--primary);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s var(--ease-out);
}

.schedule-item.active {
    background: rgba(255, 102, 0, 0.1);
    border-color: rgba(255, 102, 0, 0.3);
}

.schedule-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.time-start {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.time-end {
    font-size: 11px;
    color: var(--text-muted);
}

.schedule-info {
    flex: 1;
}

.schedule-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.schedule-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-indicator .pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

/* ===== SOCIAL PAGE ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-card:active {
    transform: scale(0.98);
}

.social-card:active::before {
    opacity: 1;
}

.social-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.social-name {
    font-size: 14px;
    font-weight: 600;
}

.social-handle {
    font-size: 11px;
    opacity: 0.8;
}

/* Social Card Colors */
.social-card.facebook { background: linear-gradient(135deg, #1877f2 0%, #0d5bbf 100%); }
.social-card.instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-card.whatsapp { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.social-card.youtube { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }
.social-card.tiktok { background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%); }
.social-card.twitter { background: linear-gradient(135deg, #000000 0%, #333333 100%); }

/* ===== CHAT PAGE ===== */
.chat-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    min-height: 400px;
}

/* ===== INFO PAGE ===== */
.info-hero {
    text-align: center;
    padding: 30px 0;
}

.info-logo {
    width: 120px;
    margin-bottom: 16px;
}

.info-hero h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    max-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-card);
    border-radius: 16px;
    text-align: center;
}

.stat-card i {
    font-size: 24px;
    color: var(--primary);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-description {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-description h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.info-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.info-description p:last-child {
    margin-bottom: 0;
}

.info-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    border: none;
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

.action-btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn:active {
    transform: scale(0.98);
}

/* ===== SETTINGS PAGE ===== */
.settings-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 8px;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-info i {
    font-size: 18px;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.setting-info span {
    font-size: 14px;
}

/* Toggle */
.toggle {
    position: relative;
    width: 50px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s var(--ease-out);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle-slider {
    background: var(--gradient-primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.setting-select {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.app-info {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
}

.app-info p {
    font-size: 14px;
    margin-bottom: 4px;
}

.app-info span {
    font-size: 12px;
}

/* ===== MINI PLAYER ===== */
.mini-player {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom));
    left: 0;
    right: 0;
    height: var(--mini-player-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 90;
    cursor: pointer;
}

.mini-album {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.mini-cover {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.mini-cover.spinning {
    animation: spin 3s linear infinite;
    border-radius: 50%;
}

.mini-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    padding: 0 8px;
}

.mini-eq span {
    width: 3px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.mini-eq.active span {
    animation: miniEq 0.5s ease-in-out infinite alternate;
}

.mini-eq.active span:nth-child(1) { animation-delay: 0s; }
.mini-eq.active span:nth-child(2) { animation-delay: 0.15s; }
.mini-eq.active span:nth-child(3) { animation-delay: 0.3s; }

.mini-play {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    transition: transform 0.2s;
}

.mini-play:active {
    transform: scale(0.95);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.nav-item i {
    font-size: 20px;
    transition: all 0.3s var(--ease-bounce);
}

.nav-item span {
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: scale(1.15) translateY(-2px);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: calc(var(--safe-top) + 70px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.toast i {
    color: var(--primary);
}

.toast span {
    font-size: 14px;
}

/* ===== TRANSITIONS ===== */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s var(--ease-out);
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.player-transition-enter-active,
.player-transition-leave-active {
    transition: all 0.4s var(--ease-out);
}

.player-transition-enter-from {
    opacity: 0;
    transform: scale(0.95);
}

.player-transition-leave-to {
    opacity: 0;
    transform: scale(0.9);
}

.page-slide-enter-active,
.page-slide-leave-active {
    transition: all 0.4s var(--ease-out);
}

.page-slide-enter-from {
    opacity: 0;
    transform: translateX(30px);
}

.page-slide-leave-to {
    opacity: 0;
    transform: translateX(-30px);
}

.mini-player-slide-enter-active,
.mini-player-slide-leave-active {
    transition: all 0.4s var(--ease-out);
}

.mini-player-slide-enter-from,
.mini-player-slide-leave-to {
    transform: translateY(100%);
    opacity: 0;
}

.toast-enter-active,
.toast-leave-active {
    transition: all 0.3s var(--ease-out);
}

.toast-enter-from,
.toast-leave-to {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

@keyframes wave {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(180deg); }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes eqBar {
    0% { height: 6px; }
    100% { height: 30px; }
}

@keyframes miniEq {
    0% { height: 4px; }
    100% { height: 16px; }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0.2; }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 768px) {
    .app-container {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .bottom-nav,
    .mini-player {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .album-art-wrapper {
        width: 300px;
    }
    
    .play-button {
        width: 100px;
        height: 100px;
    }
    
    .play-button-inner {
        font-size: 32px;
    }
    
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* ===== FLOATING VOLUME CONTROL ===== */
.volume-float {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.volume-toggle {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-out);
}

.volume-toggle:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.volume-toggle:active {
    transform: scale(0.95);
}

.volume-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s var(--ease-out);
}

.volume-slider-v {
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    width: 8px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    writing-mode: bt-lr;
}

.volume-slider-v::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.5);
}

.volume-slider-v::-webkit-slider-runnable-track {
    background: linear-gradient(to top, var(--primary) 0%, var(--accent) 100%);
    border-radius: 4px;
}

.volume-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
}

@keyframes volumeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hide volume float on very small screens when not visible */
@media (max-height: 500px) {
    .volume-float {
        top: auto;
        bottom: calc(var(--nav-height) + 20px);
        transform: none;
    }
    
    .volume-vertical {
        position: absolute;
        bottom: 60px;
        right: 0;
    }
    
    .volume-slider-v {
        height: 80px;
    }
}

/* ===== LIGHT MODE THEME ===== */
body.light-mode {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8ecf0;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.7);
    --text-muted: rgba(26, 26, 46, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

body.light-mode .animated-bg {
    opacity: 0.3;
}

body.light-mode .wave1 {
    background: radial-gradient(ellipse at center, rgba(255, 102, 0, 0.2) 0%, transparent 60%);
}

body.light-mode .wave2 {
    background: radial-gradient(ellipse at center, rgba(26, 75, 140, 0.15) 0%, transparent 60%);
}

body.light-mode .wave3 {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
}

body.light-mode .splash-screen {
    background: var(--bg-primary);
}

body.light-mode .album-disc {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 50%, #e0e0e0 100%);
    box-shadow: 
        0 0 0 4px rgba(0, 0, 0, 0.05),
        0 0 0 8px rgba(0, 0, 0, 0.1),
        var(--shadow-lg),
        inset 0 0 60px rgba(0, 0, 0, 0.1);
}

body.light-mode .disc-center {
    background: linear-gradient(135deg, #d0d0d0 0%, #e0e0e0 100%);
}

body.light-mode .disc-hole {
    background: var(--bg-primary);
}

body.light-mode .live-badge {
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.2);
}

body.light-mode .icon-btn,
body.light-mode .volume-toggle {
    background: var(--bg-glass);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}

body.light-mode .bottom-nav {
    background: var(--bg-glass);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .mini-player {
    background: var(--bg-glass);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .page-header {
    background: var(--bg-glass);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .schedule-item,
body.light-mode .setting-item,
body.light-mode .stat-card,
body.light-mode .info-description,
body.light-mode .chat-container {
    background: var(--bg-card);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .schedule-item.active {
    background: rgba(255, 102, 0, 0.08);
    border-color: rgba(255, 102, 0, 0.2);
}

body.light-mode .action-btn.secondary {
    background: var(--bg-card);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .toast {
    background: var(--bg-glass);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .volume-vertical {
    background: var(--bg-glass);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .volume-slider-v {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .current-day {
    background: var(--bg-card);
}

body.light-mode .setting-select {
    background: var(--bg-tertiary);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-mode .toggle-slider {
    background: rgba(0, 0, 0, 0.15);
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

/* ===== SMALL SCREEN OPTIMIZATIONS ===== */
@media (max-height: 650px) {
    .album-art-wrapper {
        width: min(50vw, 200px);
    }
    
    .track-info {
        padding: 5px 0;
    }
    
    .track-title {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .dj-name {
        font-size: 12px;
    }
    
    .equalizer {
        height: 25px;
        padding: 5px 0;
    }
    
    .eq-bar {
        width: 3px;
    }
    
    .player-controls {
        padding: 10px 0;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
    }
    
    .play-button-inner {
        font-size: 22px;
    }
    
    .app-header {
        padding: 8px 0;
    }
    
    .header-logo {
        height: 28px;
    }
    
    .live-badge {
        font-size: 8px;
        padding: 4px 8px;
    }
}

@media (max-height: 550px) {
    .album-art-wrapper {
        width: min(40vw, 160px);
    }
    
    .equalizer {
        display: none;
    }
    
    .album-section {
        padding: 10px 0;
    }
}
