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

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

.cs-section{
    margin:0 0 22px;
}

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

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


/* ==========================
   楽曲情報カード
========================== */

.cs-song-card{
    margin-top:12px;
    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);
}

.cs-song-name{
    margin:0 0 12px;
    color:var(--theme-text);
    font-size:22px;
    font-weight:bold;
    line-height:1.45;
    word-break:break-word;
}

.song-detail-count{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--theme-text-sub);
    font-size:13px;
    font-weight:bold;
}

.song-detail-count strong{
    padding:4px 12px;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-primary);
    font-size:14px;
}

.song-links-title{
    margin:16px 0 8px;
    color:var(--theme-text-muted);
    font-size:12px;
    font-weight:bold;
}

.song-links{
    display:flex;
    width:100%;
    max-width:600px;
    gap:8px;
}

.song-link{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:36px;
    padding:5px 8px;
    box-sizing:border-box;
    border:1px solid var(--theme-border-soft);
    border-radius:12px;
    font-size:10px;
    font-weight:bold;
    line-height:1.2;
    text-align:center;
    text-decoration:none;
    white-space:nowrap;
}

.song-link:active{
    transform:scale(.96);
}

.song-link.youtube{
    background:#fff;
}

/* YouTube公式ロゴリンク */
.song-link.youtube-logo-link{
    min-height:36px;
    padding:4px 8px;
    background:#fff;
}

.youtube-brand-logo{
    display:block;
    width:96px;
    max-width:100%;
    height:auto;
    max-height:31px;
    object-fit:contain;
}

@media(max-width:600px){
    .song-link.youtube-logo-link{
        min-height:33px;
        padding:4px 6px;
    }

    .youtube-brand-logo{
        width:88px;
        max-height:28px;
    }
}


/* ==========================
   集計対象切り替え（ピル型）
========================== */

.mode-label{
    margin-bottom:8px;
    color:var(--theme-text-sub);
    font-size:13px;
    font-weight:bold;
}

.collection-mode{
    display:flex;
    gap:8px;
}

.collection-mode .mode-btn{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:6px 4px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:999px;
    color:var(--theme-text-sub);
    font-size:12px;
    font-weight:bold;
    line-height:1.35;
    text-align:center;
    text-decoration:none;
}

.collection-mode .mode-btn.active{
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    border-color:transparent;
    color:#fff;
}

.collection-mode .mode-btn:active{
    transform:scale(.98);
}


/* ==========================
   登場ライブ
========================== */

.cs-events-head{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}

.event-count{
    padding:4px 11px;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-primary);
    font-size:12px;
    font-weight:bold;
}

.appearance-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.appearance-card{
    display:flex;
    align-items:center;
    gap:13px;
    padding:14px 16px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
}

.appearance-date-chip{
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:52px;
    height:52px;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-primary);
}

.adc-year{
    display:none;
}

.adc-month{
    font-size:10px;
    font-weight:bold;
    line-height:1.2;
}

.adc-day{
    font-size:19px;
    font-weight:bold;
    line-height:1.15;
}

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

.appearance-head{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
}

.appearance-type{
    flex:0 0 auto;
    padding:3px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:bold;
}

.appearance-type.live{
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
}

.appearance-type.chomin{
    background:#fff;
    border:1px solid var(--theme-primary);
    color:var(--theme-primary);
}

.appearance-name{
    flex:1;
    min-width:0;
    color:var(--theme-text);
    font-size:15px;
    font-weight:bold;
    line-height:1.45;
    word-break:break-word;
}

.appearance-meta{
    margin-top:5px;
    color:var(--theme-text-muted);
    font-size:12.5px;
    line-height:1.5;
}

.detail-btn{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:2px;
    padding:8px 13px;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-primary);
    font-size:12.5px;
    font-weight:bold;
    text-decoration:none;
    white-space:nowrap;
}

.detail-btn span{
    font-size:15px;
    line-height:1;
}

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

.no-appearance{
    padding:30px 18px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
    color:var(--theme-text-muted);
    font-size:14px;
    text-align:center;
}


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

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

    .collection-mode{
        max-width:600px;
    }

    .collection-mode .mode-btn{
        font-size:13px;
    }
}

@media(min-width:900px){
    /* 登場ライブは1枚の白カード＋罫線区切りの行にする */
    .appearance-list{
        gap:0;
        padding:4px 20px;
        background:#fff;
        border:1px solid var(--theme-border-soft);
        border-radius:20px;
        box-shadow:0 6px 18px rgba(61,44,46,.06);
    }

    .appearance-card{
        padding:16px 0;
        background:transparent;
        border:0;
        border-radius:0;
        box-shadow:none;
    }

    .appearance-card + .appearance-card{
        border-top:1px solid var(--theme-border-soft);
    }
}

/* ==========================
   ワイドグリッド（1500px以上）
========================== */

@media(min-width:1500px){
    .cs-detail-container{
        max-width:none;
    }

    .appearance-list{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:16px;
        padding:0;
        background:transparent;
        border:0;
        border-radius:0;
        box-shadow:none;
    }

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

    .appearance-card + .appearance-card{
        border-top:1px solid var(--theme-border-soft);
    }
}

/* スマホ：左列に日付（年つき）とフラグ、右列にイベント名・会場・詳細ボタン */
@media (max-width: 767px){
    .appearance-card{
        display:grid;
        grid-template-columns:92px 1fr;
        grid-template-areas:"date name" "flag meta" ". btn";
        column-gap:12px;
        row-gap:6px;
        align-items:start;
    }

    .appearance-info,
    .appearance-head{
        display:contents;
    }

    .appearance-date-chip{
        grid-area:date;
        width:auto;
        height:auto;
        min-height:56px;
        padding:6px 2px;
        border-radius:14px;
    }

    .adc-year{
        display:block;
        font-size:10px;
        font-weight:bold;
        line-height:1.25;
    }

    .appearance-type{
        grid-area:flag;
        justify-self:center;
        margin-top:2px;
    }

    .appearance-name{
        grid-area:name;
        align-self:center;
    }

    .appearance-meta{
        grid-area:meta;
        margin-top:0;
    }

    .appearance-meta-date{
        display:none;
    }

    .detail-btn{
        grid-area:btn;
        justify-self:end;
        margin-top:4px;
    }
}
