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

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.player-container {
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.radio-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

h1 {
    color: white;
    margin-bottom: 3rem;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#visualizer {
    width: 100%;
    max-width: 100%;
    height: 60px;
    border-radius: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.volume-slider {
    width: 100%;
    max-width: 900px;
    height: 10px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.play-pause-btn {
    background: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

.floating-menu {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.floating-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floating-menu li {
    margin: 1rem 0;
}

.floating-menu .menu-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-menu .menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.floating-menu .menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.credits {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.8rem;
    text-align: center;
}

.credits a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.credits a:hover {
    color: #23d5ab;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: white;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.staff-modal {
    max-width: 600px;
}

.staff-member {
    text-align: center;
    padding: 1rem;
}

.staff-image-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.staff-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-image-container:hover .staff-image {
    transform: scale(1.1);
}

.staff-member h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.staff-member p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.nav-item:hover {
    color: #23a6d5;
}

.share-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-family: inherit;
    padding: 0.5rem;
}

.social-modal {
    max-width: 400px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.sticky-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    z-index: 1000;
    text-align: center;
}

.mobile-datetime {
    color: white;
    font-size: 15px;
}

@media (max-width: 768px) {
    .player-container {
        width: 98%;
        padding: 1.5rem;
    }

    .radio-logo {
        width: 100%;
        max-width: 250px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .floating-menu {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.8);
        padding: 15px 0;
        z-index: 1000;
    }

    .mobile-nav::after {
        content: "Created by RadiosCR.com";
        position: absolute;
        bottom: -20px;
        left: 0;
        right: 0;
        text-align: center;
        color: white;
        font-size: 0.7rem;
        background: rgba(0, 0, 0, 0.8);
        padding: 3px 0;
    }

    .container {
        padding-bottom: 70px;
    }

    .sticky-header {
        display: block;
    }

    .clock-container {
        display: none;
    }

    .container {
        padding-top: 40px;
    }

    #visualizer {
        bottom: 70px; /* Para que no se superponga con la barra de navegación móvil */
    }

    .controls {
        max-width: 90%;
    }
    
    .volume-slider {
        max-width: 100%;
    }
}

.clock-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clock-container .time {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    font-family: 'Digital-7', Arial, sans-serif;
}

.clock-container .date {
    font-size: 1rem;
    color: white;
    text-transform: capitalize;
}
