/* --- General Media Block --- */
.jetstream-media-block-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 2em 0 0;
}
.jetstream-youtube-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.podcast-description-label,
.youtube-description-label {
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #555;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}
.podcast-description-label .dashicons,
.youtube-description-label .dashicons {
    margin-right: 8px;
    color: #00B16B;
}
.youtube-description-label .dashicons {
    color: #c4302b;
}

/* --- Podcast Player Section --- */
.jetstream-podcast-player {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.jetstream-podcast-player audio {
    width: 100%;
    margin-top: 10px;
}
.podcast-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.jetstream-playback-speed-button, .jetstream-rewind-button {
    padding: 5px 12px;
    font-size: 0.85em;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 4px;
    white-space: nowrap;
}
.jetstream-playback-speed-button.active-speed {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.youtube-music-badge {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-left: 10px;
}

/* --- YouTube Thumbnail Section --- */
.jetstream-youtube-thumbnail-wrapper {
    position: relative;
    cursor: pointer;
    max-width: 480px; /* サムネイルの最大幅 */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.jetstream-youtube-thumbnail-wrapper:hover .youtube-play-button {
    transform: scale(1.1);
    background-color: red;
}
.youtube-thumbnail-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.jetstream-youtube-thumbnail-wrapper:hover .youtube-thumbnail-image {
    transform: scale(1.05);
}
.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: rgba(35, 35, 35, 0.8);
    border-radius: 14px;
    transition: all 0.3s ease;
}
.youtube-play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}

/* --- Video Modal (Popup) --- */
.jetstream-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.jetstream-modal.is-active {
    display: flex;
}
.jetstream-modal-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.86);
}
.jetstream-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}
.jetstream-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background-color: #000;
}
.jetstream-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.jetstream-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.jetstream-modal-close::before,
.jetstream-modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 24px;
    background-color: #fff;
}
.jetstream-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.jetstream-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}