/* ==========================
   ライブ詳細（A案：帯見出し＋白カード）
========================== */

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

.meeting-detail-section{
    margin:0 0 18px;
}

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

.meeting-detail-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;
}

.detail-info-head{
    display:flex;
    align-items:flex-start;
    gap:10px;
}

.meeting-name{
    flex:1;
    min-width:0;
    color:var(--theme-text);
    font-size:19px;
    font-weight:bold;
    line-height:1.5;
}

.join-status{
    flex:0 0 auto;
    padding:5px 12px;
    border-radius:999px;
    font-size:12.5px;
    font-weight:bold;
}

.join-status.future{
    background:#e7f6ee;
    color:#1e7d46;
}

.join-status.past{
    background:#e8f1fb;
    color:#2b5ea7;
}

.join-status.none{
    background:#f1f1f1;
    color:#777;
}

.detail-info-rows{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:14px;
}

.detail-info-row{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    font-size:15px;
    line-height:1.6;
}

.detail-info-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);
}

.detail-info-icon svg{
    width:18px;
    height:18px;
}

.detail-info-date{
    color:var(--theme-text);
    font-weight:600;
    white-space:nowrap;
}

.day-status{
    padding:4px 10px;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-brand);
    font-size:12px;
    font-weight:bold;
    white-space:nowrap;
}

/* スマホでは日付と経過日数を2行に分ける（日付の下にピル） */
.detail-info-row:has(.day-status){
    flex-wrap:wrap;
    row-gap:6px;
}

.day-status{
    margin-left:44px;
    flex-basis:calc(100% - 44px);
}

@media(min-width:601px){
    .detail-info-row:has(.day-status){
        flex-wrap:nowrap;
    }

    .day-status{
        margin-left:0;
        flex-basis:auto;
    }
}

.detail-info-venue{
    min-width:0;
    color:var(--theme-text);
    font-weight:600;
}

.venue-link{
    color:var(--theme-brand);
    font-weight:bold;
    text-decoration:underline;
    text-decoration-color:var(--theme-border);
    text-underline-offset:3px;
}

.venue-link:hover{
    opacity:.7;
}

.departure-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    margin-top:16px;
    padding:13px 0;
    border-radius:999px;
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
    text-align:center;
    text-decoration:none;
    font-size:15px;
    font-weight:bold;
}

.departure-btn svg{
    width:18px;
    height:18px;
}

.departure-btn:active{
    transform:scale(.99);
}

.detail-record-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    margin-top:10px;
    padding:12px 0;
    box-sizing:border-box;
    border:1px solid var(--theme-border);
    border-radius:999px;
    background:#fff;
    color:var(--theme-brand);
    text-align:center;
    text-decoration:none;
    font-size:14.5px;
    font-weight:bold;
}

.detail-record-btn svg{
    width:17px;
    height:17px;
}

.detail-record-btn:active{
    transform:scale(.99);
}


/* ==========================
   ライブメンバー
========================== */

.meeting-guest-list{
    display:flex;
    flex-direction:column;
}

.meeting-guest-item{
    display:flex;
    align-items:center;
    min-width:0;
    padding:10px 2px;
    border-bottom:1px solid var(--theme-border-soft);
    color:var(--theme-text);
    text-decoration:none;
}

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

.meeting-guest-item:active{
    transform:scale(.99);
}

.meeting-guest-icon{
    flex:0 0 54px;
    width:54px;
    height:54px;
    overflow:hidden;
    border-radius:14px;
    background:var(--theme-blush);
}

.meeting-guest-icon img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.meeting-guest-icon-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    background:var(--theme-blush);
    color:var(--theme-brand);
    font-size:24px;
}

.meeting-guest-info{
    min-width:0;
    margin-left:12px;
    text-align:left;
}

.meeting-guest-name{
    overflow:hidden;
    color:var(--theme-text);
    font-size:15px;
    font-weight:bold;
    line-height:1.5;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.meeting-guest-nickname,
.meeting-guest-role{
    overflow:hidden;
    margin-top:2px;
    color:var(--theme-text-muted);
    font-size:12px;
    line-height:1.4;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.meeting-guest-arrow{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:30px;
    height:30px;
    margin-left:auto;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
    font-size:20px;
    line-height:1;
}


/* ==========================
   関連リンク
========================== */

.detail-link-btn{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    margin-top:10px;
    padding:9px 12px;
    box-sizing:border-box;
    border:1px solid var(--theme-border);
    border-radius:999px;
    background:#fff;
    color:var(--theme-text);
    text-decoration:none;
    font-size:14px;
    font-weight:bold;
}

.detail-link-btn:first-child{
    margin-top:0;
}

.detail-link-btn:active{
    transform:scale(.99);
}

.detail-link-icon{
    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);
}

.detail-link-icon svg{
    width:16px;
    height:16px;
}

.detail-link-label{
    min-width:0;
}

.detail-link-arrow{
    margin-left:auto;
    color:var(--theme-brand);
    font-size:20px;
    line-height:1;
}

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


/* ==========================
   セットリスト導線・埋め込み
========================== */

.detail-primary-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    padding:13px 0;
    border-radius:999px;
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
    text-decoration:none;
    font-size:15px;
    font-weight:bold;
}

.detail-primary-btn svg{
    width:18px;
    height:18px;
}

.detail-primary-btn:active{
    transform:scale(.99);
}

.meeting-setlist-panel{
    display:none;
}

.setlist-iframe{
    display:block;
    width:100%;
    height:calc(100vh - 190px);
    min-height:520px;
    border:0;
    border-radius:12px;
    background:#fff;
}


/* ==========================
   タブレット・PC
========================== */

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

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

@media(min-width:768px){
    .detail-layout{
        display:flex;
        flex-direction:row;
        align-items:flex-start;
        gap:18px;
        width:100%;
    }

    .detail-main{
        flex:1 1 0;
        min-width:0;
    }

    .meeting-setlist-panel{
        display:block;
        flex:0 0 38%;
        width:38%;
        min-width:0;
    }

    .setlist-link-card{
        display:none;
    }
}

@media(min-width:900px){
    .page-scroll{
        overflow:hidden;
    }

    .detail-layout{
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(480px,44%);
        grid-template-areas:"detail setlist";
        align-items:stretch;
        gap:18px;
        width:100%;
    }

    .detail-main{
        grid-area:detail;
        min-width:0;
        min-height:0;
        overflow-y:auto;
        scrollbar-width:none;
    }

    .detail-main::-webkit-scrollbar{
        display:none;
    }

    .meeting-guest-list{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        column-gap:22px;
    }

    .meeting-setlist-panel{
        display:flex;
        grid-area:setlist;
        width:auto;
        min-width:0;
        min-height:0;
        overflow:hidden;
    }

    .meeting-setlist-panel-section{
        display:flex;
        flex-direction:column;
        flex:1;
        min-height:0;
        margin:0;
    }

    .meeting-setlist-card{
        display:flex;
        flex-direction:column;
        flex:1;
        min-height:0;
        overflow:hidden;
        padding:16px;
    }

    .meeting-setlist-card .meeting-song-list{
        flex:1;
        min-height:0;
        overflow-y:auto;
    }

    .setlist-iframe{
        flex:1 1 auto;
        height:auto;
        min-height:0;
    }
}

@media(min-width:900px) and (max-width:1199px){
    .detail-layout{
        grid-template-columns:minmax(0,1fr) minmax(400px,42%);
    }
}

@media(min-width:1200px){
    .detail-layout{
        grid-template-columns:minmax(0,1fr) minmax(500px,46%);
    }
}


/* ==========================
   関連ライブ（右側の余白がある場合のみ）
========================== */

.meeting-detail-related{
    display:none;
}

@media(min-width:2150px){
    .meeting-detail-main{
        display:flex;
        align-items:flex-start;
        gap:24px;
    }

    .meeting-detail-container{
        flex:0 1 1348px;
        min-width:0;
    }

    .meeting-detail-related{
        display:block;
        flex:1 1 auto;
        min-width:280px;
        max-width:430px;
        padding:20px 0 40px;
    }

    .meeting-detail-related .meeting-detail-section{
        margin:0;
    }
}

.related-meeting-card{
    max-height:calc(100vh - 230px);
    overflow-y:auto;
    padding:8px 18px;
}

.related-meeting-item{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    padding:11px 0;
    border-bottom:1px solid var(--theme-border-soft);
    color:var(--theme-text);
    text-decoration:none;
}

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

.related-meeting-item:active{
    transform:scale(.99);
}

.related-meeting-main{
    display:flex;
    flex:1;
    flex-direction:column;
    min-width:0;
}

.related-meeting-date{
    color:var(--theme-text);
    font-size:14.5px;
    font-weight:bold;
    line-height:1.5;
}

.related-meeting-venue{
    overflow:hidden;
    margin-top:1px;
    color:var(--theme-text-muted);
    font-size:12.5px;
    line-height:1.5;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.related-meeting-cancelled{
    flex:0 0 auto;
    padding:4px 10px;
    border-radius:999px;
    background:#777;
    color:#fff;
    font-size:11.5px;
    font-weight:bold;
}

.related-meeting-arrow{
    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:20px;
    line-height:1;
}


/* ==========================
   セットリストパネル（詳細画面右側）
========================== */
.meeting-guest-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--theme-brand);
}
.meeting-guest-icon svg{
    width:26px;
    height:26px;
}
.meeting-setlist-card{
    box-sizing:border-box;
}



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

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


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


.meeting-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;
}


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


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


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


.meeting-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;
}



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

.meeting-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;
}


.meeting-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;
}


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


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


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


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


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


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


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


.meeting-music-btn.spotify .music-service-icon{
    width:78px;
}
@media(min-width:768px){

    .meeting-song-item{
        align-items:center;
    }
}


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


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


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


.setlist-embed .meeting-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 .meeting-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 .meeting-music-btn.youtube{
    background:#fff;
}


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


.setlist-embed .meeting-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 .meeting-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 .meeting-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;
}

/* Issue #386 セトリの枠の帯（セトリページと同スタイル） */
.setlist-section-band{
    display:flex;
    align-items:center;
    gap:10px;
    margin:18px 0 10px;
    font-size:14px;
    font-weight:800;
    color:var(--theme-heading);
}
