:root {
    --primary-color: #ff8c00;
    --accent-color: #ffffff;
    --dark-bg: #0b0f1a;
    --card-bg: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --player-glow: rgba(255, 140, 0, 0.4);
    --bar-bg: rgba(45, 50, 60, 0.95);
}

body.dark-theme {
    --primary-color: #ffb347;
    --dark-bg: #05070a;
    --bar-bg: rgba(20, 22, 28, 0.98);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

body::before, body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease-in-out;
}

body::before {
    background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('/Fondo1.jpeg');
    animation: bgFade1 32s infinite;
}

body::after {
    background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('/Fondo2.png');
    animation: bgFade2 32s infinite;
}

@keyframes bgFade1 {
    0%, 45% { opacity: 1; transform: scale(1); }
    50%, 95% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes bgFade2 {
    0%, 45% { opacity: 0; transform: scale(1.05); }
    50%, 95% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--bar-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.top-bar-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.day-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.glass-pill {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.date-box {
    font-size: 0.75rem;
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 75px;
}

.date-box .day-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #ffffff;
}

.time-box {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 1rem;
    min-width: 80px;
    text-align: center;
    padding: 4px 10px;
}

.weather-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #ffd700;
    cursor: pointer;
    position: relative;
    padding: 8px 14px;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-current i {
    font-size: 1.2rem;
}

.forecast-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 180px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1001;
}

.weather-box.active .forecast-dropdown {
    display: flex;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.forecast-item:last-child {
    border-bottom: none;
}

.mode-btn {
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.app-container {
    width: 100%;
    max-width: 500px;
    padding: 100px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-wrapper {
    position: relative;
    padding: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255,255,255,0.2);
    border: 4px solid #fff;
    width: 165px;
    height: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.live-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff; /* Changed to white */
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Modern Player Style */
.modern-player {
    position: relative;
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.player-visual-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--player-glow) 0%, transparent 50%);
    z-index: 0;
    opacity: 0.2;
    transition: opacity 0.5s;
}

.playing .player-visual-bg {
    opacity: 0.6;
    animation: glowRotate 10s linear infinite;
}

@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.player-content {
    position: relative;
    z-index: 1;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.vinyl-container {
    width: 90px;
    height: 90px;
    position: relative;
    flex-shrink: 0;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff; /* Changed to white background to match main logo style */
    border: 3px solid var(--primary-color);
    padding: 2px;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.playing .vinyl-disc {
    animation: spin 3s linear infinite;
}

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

.track-text {
    flex-grow: 1;
}

.track-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.track-text p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.status-tag {
    font-size: 0.7rem;
    background: var(--primary-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
}

.visualizer-container {
    height: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visualizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 100%;
}

.v-bar {
    width: 6px;
    height: 15%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: height 0.2s;
}

.playing .v-bar {
    animation: vBounce 1.2s infinite ease-in-out;
}

.playing .v-bar:nth-child(2n) { animation-delay: 0.1s; height: 30%; }
.playing .v-bar:nth-child(3n) { animation-delay: 0.2s; height: 50%; }
.playing .v-bar:nth-child(4n) { animation-delay: 0.3s; height: 20%; }

@keyframes vBounce {
    0%, 100% { height: 15%; }
    50% { height: 100%; }
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), #ff4500);
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.6);
}

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

.volume-slider-group {
    width: 100%;
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 20px;
}

.volume-slider-group i {
    font-size: 0.9rem;
    opacity: 0.6;
}

#volume-slider {
    flex: 1;
    height: 4px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Rest of standard styling */
.app-download-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.download-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.app-download-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #000;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}

.app-download-badge:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.social-btn:hover {
    transform: scale(1.15) rotate(5deg);
}

.fb { background: #1877f2; }
.ig { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.wa { background: #25d366; }

.comments-section {
    width: 100%;
    background: #ffffff;
    border-radius: 25px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    color: #333;
}

.comments-section h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.footer {
    width: 100vw;
    background: var(--bar-bg);
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

/* PWA Banner */
.install-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #1a1f2e;
    border: 1px solid var(--primary-color);
    padding: 15px;
    border-radius: 15px;
    z-index: 2000;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 0.9rem;
}

.banner-content i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.install-action-btn {
    background: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.install-action-btn:hover {
    background: #e67e00;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-banner-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.close-banner-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

@media (max-width: 480px) {
    .top-bar {
        padding: 5px 10px;
    }
    .top-bar-item {
        gap: 5px;
    }
    .glass-pill {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    .time-box {
        font-size: 0.9rem;
        min-width: 70px;
    }
    .date-box {
        font-size: 0.65rem;
    }
    .app-container {
        padding-top: 80px;
    }
    .logo-wrapper {
        width: 145px;
        height: 145px;
    }
    .brand-name {
        font-size: 1.5rem;
    }
    .modern-player {
        padding: 15px;
    }
    .vinyl-container {
        width: 70px;
        height: 70px;
    }
    .track-text h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .top-bar-item.left {
        display: none; /* Hide date on extremely small screens to save space */
    }
}