:root {
    --bg-primary: #1A1A1A;
    --accent-color: #10357B;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.preloader-content {
    text-align: center;
}

.preloader-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 200px;
    height: 4px;
    background-color: #000;
    border-radius: 2px;
    margin-top: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}

.app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centra verticalmente */
    padding: 20px;
}

.logo {
    width: 50%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px; /* Ajustado */
}

.player-controls {
    margin: 15px 0; /* Ajustado */
}

.play-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    transform: scale(1.05);
    background: rgba(16, 53, 123, 0.1);
}

.play-button i {
    font-size: 40px;
    color: var(--accent-color);
    transition: all 0.3s;
}

.stream-info {
    font-size: 16px;
    min-height: 24px;
    text-align: center;
    margin-top: 10px; /* Reducido */
    margin-bottom: 20px; /* Ajustado para reducir el espacio */
}

#statusText {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-info {
    margin-top: 30px; /* Espacio definido */
}

.contact-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    z-index: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.modal-contact-list a {
    text-decoration: none;
    color: var(--text-secondary);
}

.modal-contact-list .contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #444;
}

.modal-contact-list .contact-item:last-child {
    border-bottom: none;
}

.modal-contact-list .contact-item i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .play-button {
        width: 80px;
        height: 80px;
    }
    
    .play-button i {
        font-size: 30px;
    }
    
    #statusText {
        font-size: 0.9rem;
    }
}
