/* Definições básicas e cores */
:root {
    --green-dark: #1e3f20; /* Cor de fundo principal */
    --green-player: #38763a; /* Cor do container do player */
    --green-highlight: #4caf50; /* Cor de destaque (botão de play, slider) */
    --text-light: #ffffff;
    --text-faded: rgba(255, 255, 255, 0.7);
    --shadow-main: 0 4px 15px rgba(0, 0, 0, 0.5);
    --shadow-inset: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--green-dark);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    /* Aplica um fundo gradiente sutil para se assemelhar à imagem */
    background: linear-gradient(180deg, #1e3f20 0%, #102511 100%);
}

.main-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

/* --- Header e Logo --- */
.radio-header {
    margin-bottom: 30px;
}

.radio-header h1 {
    color: var(--green-highlight);
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: var(--shadow-main);
}

.logo {
    width: 250px; /* Ajuste o tamanho da sua logo */
    height: 250px;
    /* Se a sua logo for apenas texto, você pode criar o círculo com CSS: */
    /*
    background-color: white;
    border: 5px solid var(--green-highlight);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    color: var(--green-dark);
    */
}

.radio-header p {
    color: var(--text-faded);
    font-size: 1em;
}

/* --- Container do Player --- */
.player-container {
    background-color: var(--green-player);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-main);
    margin-bottom: 30px;
}

.listen-label {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--green-highlight);
    margin-bottom: 15px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff4d4d; /* Ponto de 'ao vivo' */
    border-radius: 50%;
    margin-right: 5px;
}

/* Oculta o player nativo do navegador */
#radio-audio {
    display: none;
}

.custom-player {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Botão de Play/Pause */
.play-btn {
    background-color: var(--green-highlight);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    min-width: 60px;
    color: var(--text-light);
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn:hover {
    transform: scale(1.05);
}

/* --- Controle de Volume --- */
.volume-control {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 10px;
}

.volume-control i {
    font-size: 1.2em;
    color: var(--text-light);
}

#volume-slider {
    -webkit-appearance: none; /* Chrome/Safari */
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

/* Estilo para o 'thumb' (o círculo de arrastar) do slider */
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--green-highlight);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--green-highlight);
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#volume-display {
    min-width: 40px;
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: bold;
}

/* --- Botões de Ação Inferiores --- */
.player-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    background: none;
    color: var(--text-faded);
    border: 1px solid var(--text-faded);
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s, color 0.3s;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: var(--text-light);
}

.action-btn i {
    margin-right: 5px;
}

/* --- Cards de Informação --- */
.info-cards-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.info-card {
    flex: 1;
    background-color: var(--green-player);
    padding: 15px 10px;
    border-radius: 10px;
    box-shadow: var(--shadow-main);
    text-align: center;
    border-left: 3px solid var(--green-highlight);
}

.info-card i {
    font-size: 1.5em;
    color: var(--green-highlight);
    margin-bottom: 10px;
}

.info-card p {
    margin: 0;
    font-weight: bold;
    font-size: 1em;
}

.info-card span {
    display: block;
    font-size: 0.7em;
    color: var(--text-faded);
}