/* Reset básico para garantir consistência entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c; /* Vermelho vibrante */
    --secondary-color: #2c3e50; /* Azul escuro */
    --accent-color: #f39c12; /* Laranja */
    --text-light: #ecf0f1; /* Cinza claro */
    --text-dark: #34495e; /* Cinza escuro */
    --background-light: #f4f7f6;
    --background-dark: #1f2a36;
    --card-background: #ffffff;
    --border-radius: 10px;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho */
header {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

header .radio-name {
    color: var(--primary-color);
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Seção Principal (Player e Sobre) */
main {
    flex: 1; /* Faz o main ocupar o espaço restante */
    padding: 40px 0;
}

#radio-player-section {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas menores */
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.player-card, .about-us {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 300px; /* Garante que não fiquem muito pequenos */
}

.player-card {
    max-width: 500px;
}

#station-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

#station-logo:hover {
    transform: scale(1.09);
}

#current-station-name {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

#now-playing {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* Controles do Player */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#play-pause-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#play-pause-btn:hover {
    background-color: #c0392b; /* Tom mais escuro do vermelho */
    transform: translateY(-2px);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.volume-control i {
    color: var(--secondary-color);
    font-size: 1.2em;
}

#volume-slider {
    -webkit-appearance: none; /* Remove estilo padrão do navegador */
    width: 100%;
    height: 8px;
    background: var(--background-dark);
    border-radius: 5px;
    outline: none;
    transition: background 0.2s ease;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

#volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

#volume-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* Seção Sobre a Rádio */
.about-us h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.about-us p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Rodapé */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    margin-top: auto; /* Garante que o footer fique no final da página */
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    #radio-player-section {
        flex-direction: column;
        align-items: center;
    }

    .player-card, .about-us {
        width: 90%; /* Ocupa mais largura em telas menores */
        max-width: none; /* Remove limite de largura para preencher */
        margin-bottom: 20px;
    }

    .player-card {
        padding: 25px;
    }

    #station-logo {
        width: 120px;
        height: 120px;
    }

    #play-pause-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8em;
    }

    .volume-control {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 0.9em;
    }

    .container {
        padding: 0 15px;
    }

    main {
        padding: 20px 0;
    }

    .player-card, .about-us {
        padding: 20px;
    }

    #current-station-name {
        font-size: 1.5em;
    }

    .social-links a {
        font-size: 1.5em;
        margin: 0 8px;
    }
}