/* ==========================
   セットリスト画面（A案：帯見出し＋白カード）
========================== */

.live-setlist-container{
    width:100%;
    max-width:1348px;
    margin:0;
    padding:14px 15px 30px;
    box-sizing:border-box;
}

.live-setlist-section{
    margin:0 0 18px;
}

.live-setlist-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 12px;
    color:var(--theme-heading);
    font-size:19px;
    font-weight:bold;
}

.live-setlist-title::before{
    content:"";
    flex:0 0 auto;
    width:5px;
    height:22px;
    border-radius:3px;
    background:linear-gradient(180deg,var(--theme-btn-from),var(--theme-primary));
}

.detail-card{
    width:100%;
    margin:0;
    padding:18px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:20px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
}


/* ==========================
   ライブ情報
========================== */

.cancelled-label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:fit-content;
    margin-bottom:12px;
    padding:5px 12px;
    border-radius:999px;
    background:#777;
    color:#fff;
    font-size:12px;
    font-weight:bold;
}

.tour-name{
    color:var(--theme-text);
    font-size:17px;
    font-weight:bold;
    line-height:1.5;
}

.setlist-live-date{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
}

.setlist-date-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:34px;
    height:34px;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
}

.setlist-date-icon svg{
    width:18px;
    height:18px;
}

.live-date{
    color:var(--theme-text);
    font-size:15px;
    font-weight:600;
}


/* ==========================
   楽曲リスト
========================== */

.song-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:13px 0;
    border-bottom:1px solid var(--theme-border-soft);
}

.song-item:last-child{
    border-bottom:none;
}

.song-number{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:30px;
    height:30px;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
    font-size:13px;
    font-weight:bold;
}

.song-info{
    flex:1;
    min-width:0;
}

.song-name{
    color:var(--theme-text);
    font-size:15px;
    font-weight:bold;
    line-height:1.5;
    word-break:break-word;
}

.album-name{
    margin-top:3px;
    color:var(--theme-text-muted);
    font-size:12px;
    line-height:1.5;
    word-break:break-word;
}

.medley-badge{
    display:block;
    width:max-content;
    margin-top:4px;
    padding:2px 8px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
    font-size:10.5px;
    font-weight:bold;
}

.no-song{
    padding:20px 0;
    color:var(--theme-text-muted);
    text-align:center;
    font-size:14px;
}


/* ==========================
   配信リンク（ページ）
========================== */

.music-links{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:flex-end;
    flex-shrink:0;
    gap:6px;
    margin-left:8px;
}

.music-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:auto;
    min-width:0;
    height:34px;
    min-height:34px;
    padding:4px 7px;
    border:0;
    border-radius:8px;
    box-sizing:border-box;
    overflow:hidden;
    text-decoration:none;
}

.music-btn:active{
    transform:scale(.97);
}

.music-btn.youtube{
    background:#fff;
}

.music-btn.apple{
    background:#f0f0f0;
}

.music-btn.spotify{
    background:#eefaf1;
}

.music-btn img{
    display:block;
    width:auto;
    height:20px;
    max-height:20px;
    margin:0;
    object-fit:contain;
    object-position:center;
}

.music-btn .youtube-brand-logo{
    width:62px;
}

.music-btn.apple .music-service-icon{
    width:88px;
}

.music-btn.spotify .music-service-icon{
    width:78px;
}


/* ==========================
   スマートフォン
========================== */

@media(max-width:767px){
    .song-item{
        display:grid;
        grid-template-columns:30px minmax(0,1fr);
        align-items:start;
        column-gap:8px;
        row-gap:8px;
    }

    .song-item .song-number{
        grid-column:1;
        grid-row:1;
    }

    .song-item .song-info{
        grid-column:2;
        grid-row:1;
        min-width:0;
    }

    .song-item .music-links{
        grid-column:2;
        grid-row:2;
        justify-content:flex-start;
        width:100%;
        min-width:0;
        margin:0;
        gap:5px;
    }

    .song-item .music-links .music-btn{
        height:30px;
        min-height:30px;
        padding:4px 5px;
    }

    .song-item .music-links .music-btn img{
        height:17px;
        max-height:17px;
    }

    .song-item .music-links .youtube-brand-logo{
        width:52px;
    }

    .song-item .music-links .music-btn.apple .music-service-icon{
        width:72px;
    }

    .song-item .music-links .music-btn.spotify .music-service-icon{
        width:64px;
    }
}

@media(min-width:601px){
    .live-setlist-container{
        padding:20px 30px 40px;
    }

    .detail-card{
        padding:20px;
    }
}

@media(min-width:768px){
    .song-item{
        align-items:center;
    }
}


/* ==========================
   詳細画面の埋め込み（スタンドアロン）
========================== */

/* 埋め込みは単独ドキュメントで共通CSSのテーマ変数がないため、初期テーマ（ローズ）の値をここで定義する */
.setlist-embed{
    --theme-primary:#e11d48;
    --theme-btn-from:#fb4d6d;
    --theme-heading:#8f0f31;
    --theme-brand:#be123c;
    --theme-blush:#fff1f2;
    --theme-border-soft:#f6e3e6;
    --theme-text:#3d2c2e;
    --theme-muted:#7a5c63;
    width:100%;
    box-sizing:border-box;
    padding:16px;
    background:#fff;
}

.setlist-embed-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
    color:var(--theme-heading);
    font-size:16px;
    font-weight:bold;
}

.setlist-embed-title::before{
    content:"";
    flex:0 0 auto;
    width:5px;
    height:20px;
    border-radius:3px;
    background:linear-gradient(180deg,var(--theme-btn-from),var(--theme-primary));
}

.setlist-embed .song-list{
    width:100%;
}

.setlist-embed .song-item{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:center;
    gap:10px;
}

.setlist-embed .song-info{
    flex:1 1 auto;
    min-width:0;
}

.setlist-embed .music-links{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:flex-end;
    flex:0 0 auto;
    width:auto;
    gap:5px;
    margin-left:8px;
}

.setlist-embed .music-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:auto;
    min-width:0;
    height:36px;
    min-height:36px;
    padding:5px 7px;
    border:0;
    border-radius:8px;
    box-sizing:border-box;
    overflow:visible;
}

.setlist-embed .music-btn.youtube{
    background:#fff;
}

.setlist-embed .music-btn.spotify{
    background:#eefaf1;
}

.setlist-embed .music-btn .music-service-logo{
    display:block;
    width:auto;
    max-width:108px;
    height:24px;
    max-height:24px;
    object-fit:contain;
    transform:none;
}

/* Apple Musicバッジは画像そのままの寸法で表示する */
.setlist-embed .music-btn.apple{
    display:inline-flex;
    flex:0 0 auto;
    width:fit-content;
    min-width:0;
    height:auto;
    min-height:0;
    padding:0;
    margin:0;
    border:0;
    border-radius:0;
    background:transparent;
    line-height:0;
    overflow:visible;
}

.setlist-embed .music-btn.apple .music-service-logo{
    display:block;
    width:108px;
    max-width:108px;
    height:auto;
    max-height:none;
    margin:0;
    padding:0;
    object-fit:contain;
    transform:none;
}

@media(max-width:600px){
    .setlist-embed{
        padding:12px;
    }
}

/* Issue #381 アンコール枠の帯 */
.setlist-section-band{
    display:flex;
    align-items:center;
    gap:10px;
    margin:18px 0 10px;
    font-size:14px;
    font-weight:800;
    color:var(--theme-heading);
}
.setlist-section-band::before,
.setlist-section-band::after{
    content:"";
    flex:1;
    height:1px;
    background:var(--theme-border);
}

/* Issue #386 スマホで配信ボタンがカードからはみ出す問題の修正
   （共通の brand-icons.css がボタン幅112px固定・アイコン幅を!importantで固定するため、
   この画面の範囲でのみ上書きする） */
@media(max-width:767px){
    .song-item .music-links .music-btn{
        flex:1 1 0;
        width:auto;
        min-width:0;
    }

    .song-item .music-links .music-btn img{
        width:auto !important;
        max-width:100% !important;
        height:17px !important;
    }
}
