/* Estilos gerais */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Fundo com degradê de preto para cinza chumbo */
    background: linear-gradient(180deg, #000000 0%, #2c3e50 100%);
    color: #ffffff;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; /* Garante que o corpo ocupa toda a altura da tela */
}


a {
    color: #00ff66;
    text-decoration: none;
}

a:hover {
    color: #00cc52;
    text-decoration: underline
}

a:visited {
    color: #009940;
}

a:active {
    color: #007a33;
}


/* Header */
.header {
    text-align: center;
    margin-bottom: 10px;
    max-width: 600px;
}

.header .logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

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

/* Feed principal (estilo Instagram) */
.feed-container {
    display: grid;
    /* Define 3 colunas para telas grandes e médias */
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    width: 100%;
    margin-top: 4px;
}

/* Item do grid */
.podcast-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding-top: 100%; /* Truque para criar uma caixa 1:1, mantendo a imagem quadrada */
    transition: transform 0.2s ease-in-out;
}

.podcast-item:hover {
    transform: scale(1.08);
}

.podcast-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha a área sem distorção */
    display: block;
    transition: transform 0.3s ease; 
}

/* Player de áudio (estilo Spotify) */
.podcast-player {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
}

.back-link {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 1em;
    position: absolute;
    top: 20px;
    left: 20px;
}

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

.player-image {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.podcast-player h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.description {
    font-size: 0.9em;
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 20px;
}

.audio-player {
    width: 100%;
}


/* Estilos para o player de áudio customizado */
.custom-audio-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.custom-audio-player button {
    background-color: #1DB954; /* Cor do Spotify */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.custom-audio-player button:hover {
    background-color: #179340;
}

.custom-audio-player span {
    color: #b3b3b3;
    font-size: 0.9em;
}

.custom-audio-player input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #535353;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.custom-audio-player input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #1DB954;
    border-radius: 50%;
    cursor: pointer;
}

.custom-audio-player input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #1DB954;
    border-radius: 50%;
    cursor: pointer;
}