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

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

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

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

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

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


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

.live-band-member-list{
    display:flex;
    flex-direction:column;
}

.live-band-member-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;
}

.live-band-member-item:last-child{
    border-bottom:none;
}

.live-band-member-item:active{
    transform:scale(.99);
}

.live-band-member-image{
    flex:0 0 54px;
    width:54px;
    height:54px;
    overflow:hidden;
    border-radius:14px;
    background:var(--theme-blush);
}

.live-band-member-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

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

.live-band-member-info{
    min-width:0;
    margin-left:12px;
    text-align:left;
}

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

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

.live-band-member-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);
}

.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){
    .live-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;
    }

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

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

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

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

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

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


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

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

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

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

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

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

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

.related-live-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-live-item:last-child{
    border-bottom:none;
}

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

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

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

.related-live-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-live-cancelled{
    flex:0 0 auto;
    padding:4px 10px;
    border-radius:999px;
    background:#777;
    color:#fff;
    font-size:11.5px;
    font-weight:bold;
}

.related-live-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;
}
