/* メディアフレックスコンテナ */
.media-flex-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.youtube-embeds {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
    width: 48%;
    flex: 1;
}

/* Discographyセクション用YouTube埋め込み */
.album-youtube-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.album-youtube-video.single-video {
    max-width: 100%;
    height: auto;
}

.album-youtube-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: background 0.3s ease;
    pointer-events: none;
}

.album-youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 0;
}

.album-youtube-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Spotify埋め込み */
.spotify-embed {
    width: 48%;
    flex: 1;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 352px;
}

.spotify-embed iframe {
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.spotify-embed:hover {
    transform: translateY(-5px);
}

/* アルバムメディアコンテナ */
.album-media-container {
    margin-top: 30px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.album-media-container.hidden {
    opacity: 0;
    visibility: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    /* 992px未満ではYouTubeとSpotifyを縦に並べる */
    .media-flex-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .youtube-embeds, .spotify-embed {
        width: 100%;
        max-width: 100%;
        flex: none;
    }
    
    .album-youtube-video {
        margin-bottom: 0; /* 縦並びの場合は下部マージンを削除 */
    }
}

@media (max-width: 768px) {
    .spotify-embed {
        height: 380px;
        min-height: 380px;
    }
    
    .spotify-embed iframe {
        min-height: 380px;
    }
    
    .album-description {
        font-size: 0.95rem;
    }
    
    .music-services {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-button {
        margin: 5px;
        min-width: 140px;
    }
    
    .service-button::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .spotify-embed {
        height: 450px;
        min-height: 450px;
    }
    
    .spotify-embed iframe {
        min-height: 450px;
    }
    
    .album-description {
        font-size: 0.9rem;
    }
    
    .service-button {
        font-size: 0.85rem;
        padding: 8px 15px;
        min-width: 120px;
        margin: 4px;
    }
    
    .service-button i {
        font-size: 1rem;
        margin-right: 5px;
    }
} 