/* Podcast and Spotify Players
   Ported from hatch/sm plugin (Fase 9 of migration).
*/

.podcastdotco-wrapper {
    padding: 10px;
}

.podcastdotco-player {
    overflow: hidden;
    max-width: none;
    height: 40px;
}

/* Spotify Player */
.spotify-player-container {
    padding: 10px;
    background-color: #383838;
    border-radius: 8px;
    font-family: Montserrat, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.spotify-player-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none !important;
}

.spotify-player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.spotify-player-details {
    flex-grow: 1;
    margin-left: 15px;
}

.spotify-player-details h2 {
    margin: 0;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.2;
}

.spotify-player-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotify-player-meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #FFFFFF;
}

.spotify-player-meta-item img {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.spotify-player-play-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.spotify-player-play-arrow {
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Spotify Popup */
.spotify-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spotify-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.spotify-popup iframe {
    width: 90%;
    max-width: 640px;
    height: 360px;
    border: none;
    border-radius: 8px;
}
