/* =========================================================
   バンドメンバー（一覧・詳細）
   Issue #313: 帯見出し＋白カード型へ刷新
========================================================= */

.bm-container,
.bd-container{
    max-width:1348px;
    margin:0;
    padding:6px 16px 40px;
    box-sizing:border-box;
    width:100%;
}

@media(min-width:768px){
    .bm-container{
        padding:6px 30px 48px;
    }

    .bd-container{
        padding:20px 30px 40px;
    }
}

.bm-container .group-title,
.bd-container .group-title{
    position:relative;
    font-size:17px;
    font-weight:bold;
    color:var(--theme-heading);
    padding-left:15px;
    margin-bottom:14px;
}

.bm-container .group-title::before,
.bd-container .group-title::before{
    content:"";
    position:absolute;
    left:0;
    top:2px;
    bottom:2px;
    width:5px;
    border-radius:3px;
    background:linear-gradient(180deg, var(--theme-btn-from), var(--theme-primary));
}

.bd-container{
    display:flex;
    flex-direction:column;
    gap:26px;
}

/* =========================================================
   一覧
========================================================= */

.bm-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:16px;
}

.bm-card{
    position:relative;
    display:block;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:16px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
    padding:16px;
    text-decoration:none;
    color:var(--theme-text);
}

.bm-photo{
    height:190px;
    border-radius:12px;
    overflow:hidden;
    margin-bottom:12px;
    background:linear-gradient(135deg, var(--theme-blush), var(--theme-border-soft));
}

.bm-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.bm-photo-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--theme-brand);
    font-size:36px;
}

.bm-name{
    font-size:16.5px;
    font-weight:bold;
    color:var(--theme-heading);
}

.bm-nickname{
    margin-top:2px;
    font-size:12px;
    color:var(--theme-text-muted);
}

.bm-role{
    margin-top:8px;
    font-size:13px;
    color:var(--theme-text);
}

.bm-color{
    margin-top:4px;
    font-size:12.5px;
    color:var(--theme-text-sub);
    display:flex;
    align-items:center;
    gap:6px;
}

.bm-color-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    display:inline-block;
    flex-shrink:0;
    border:1px solid rgba(0,0,0,.08);
}

.bm-arrow{
    position:absolute;
    right:14px;
    bottom:10px;
    font-size:18px;
    color:var(--theme-primary);
    opacity:.65;
}

.bm-empty,
.bd-empty{
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:16px;
    padding:26px 20px;
    text-align:center;
    color:var(--theme-text-sub);
    font-size:14px;
}

/* =========================================================
   詳細
========================================================= */

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

.bd-profile{
    display:flex;
    gap:22px;
}

.bd-photo{
    width:300px;
    height:300px;
    flex-shrink:0;
    border-radius:12px;
    overflow:hidden;
    background:linear-gradient(135deg, var(--theme-blush), var(--theme-border-soft));
}

.bd-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.bd-photo-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--theme-brand);
    font-size:44px;
}

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

.bd-name{
    margin:0;
    font-size:22px;
    font-weight:bold;
    color:var(--theme-heading);
}

.bd-nickname{
    margin-top:3px;
    font-size:13px;
    color:var(--theme-text-muted);
}

.bd-kv-list{
    margin-top:10px;
}

.bd-kv{
    display:flex;
    gap:14px;
    padding:9px 0;
    border-bottom:1px dashed var(--theme-border-soft);
    font-size:13.5px;
}

.bd-kv:last-child{
    border-bottom:none;
}

.bd-kv-label{
    width:110px;
    flex-shrink:0;
    color:var(--theme-text-sub);
    font-weight:bold;
}

.bd-kv-value{
    flex:1;
    min-width:0;
    color:var(--theme-text);
    line-height:1.7;
}

.bd-kv-value .bm-color-dot{
    margin-right:6px;
}

.bd-illustrator-x{
    color:var(--theme-primary);
    text-decoration:none;
    font-weight:bold;
    white-space:nowrap;
}

.bd-sns{
    display:flex;
    gap:10px;
    margin-top:16px;
}

.bd-sns-btn{
    display:inline-flex;
    align-items:center;
    gap:7px;
    border:1.5px solid var(--theme-primary);
    color:var(--theme-primary);
    background:#fff;
    border-radius:999px;
    padding:7px 20px;
    font-size:13px;
    font-weight:bold;
    text-decoration:none;
}

.bd-sns-icon{
    width:14px;
    height:14px;
    fill:currentColor;
    flex-shrink:0;
}

.bd-source{
    margin:10px 2px 0;
    font-size:12.5px;
    color:var(--theme-text-sub);
}

.bd-source a{
    color:var(--theme-primary);
    word-break:break-all;
}

/* 参加イベント */

.bd-stats{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;
    margin-bottom:8px;
}

.bd-stat{
    background:var(--theme-tint);
    border:1px solid var(--theme-border-soft);
    border-radius:12px;
    padding:12px 6px;
    text-align:center;
    display:flex;
    flex-direction:column;
    gap:2px;
}

.bd-stat-label{
    font-size:12px;
    font-weight:bold;
    color:var(--theme-text-sub);
}

.bd-stat-value{
    font-size:19px;
    font-weight:bold;
    color:var(--theme-heading);
}

.bd-event-row{
    display:flex;
    align-items:center;
    gap:12px;
    padding:11px 2px;
    border-bottom:1px solid var(--theme-border-soft);
    text-decoration:none;
    color:var(--theme-text);
}

.bd-event-row:last-child{
    border-bottom:none;
}

.bd-event-top{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1;
    min-width:0;
}

.bd-event-chip{
    flex-shrink:0;
    font-size:11px;
    font-weight:bold;
    color:var(--theme-brand);
    background:var(--theme-blush);
    border-radius:6px;
    padding:3px 9px;
}

.bd-event-chip.chomin{
    color:#9a6a1f;
    background:#fdf0d5;
}

.bd-event-name{
    font-size:14px;
    font-weight:bold;
    color:var(--theme-text);
}

.bd-event-meta{
    flex-shrink:0;
    font-size:12.5px;
    color:var(--theme-text-muted);
}

.bd-event-arrow{
    flex-shrink:0;
    font-size:17px;
    color:var(--theme-primary);
    opacity:.65;
}

.bd-no-event{
    padding:14px 2px 6px;
    text-align:center;
    color:var(--theme-text-sub);
    font-size:13.5px;
}

/* 参加イベント：タブ・年見出し・一覧ローディング */

.bd-tabs{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:14px 0 4px;
}

.bd-tab{
    display:inline-flex;
    align-items:center;
    gap:7px;
    border:1.5px solid var(--theme-border);
    background:#fff;
    color:var(--theme-text-sub);
    border-radius:999px;
    padding:7px 16px;
    font-size:13px;
    font-weight:bold;
    cursor:pointer;
    font-family:inherit;
}

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

.bd-tab-count{
    font-size:11px;
    background:var(--theme-blush);
    color:var(--theme-brand);
    border-radius:999px;
    padding:2px 8px;
}

.bd-tab.is-active .bd-tab-count{
    background:rgba(255,255,255,.25);
    color:#fff;
}

.bd-list-wrap{
    position:relative;
}

.bd-year-heading{
    display:flex;
    align-items:center;
    gap:10px;
    margin:20px 0 4px;
    color:var(--theme-heading);
    font-size:16px;
    font-weight:bold;
}

.bd-year-heading:first-child{
    margin-top:8px;
}

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

.bd-year-count{
    padding:3px 10px;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-brand);
    font-size:11px;
    font-weight:bold;
}

.bd-list-loading{
    position:absolute;
    inset:0;
    z-index:5;
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    background:rgba(255,255,255,.78);
    color:var(--theme-text-sub);
    font-size:13px;
    font-weight:bold;
    border-radius:12px;
}

.bd-list-loading.is-show{
    display:flex;
}

.bd-spinner{
    width:30px;
    height:30px;
    border-radius:50%;
    border:3px solid var(--theme-border-soft);
    border-top-color:var(--theme-primary);
    animation:bd-spin .8s linear infinite;
}

@keyframes bd-spin{
    to{ transform:rotate(360deg); }
}

/* =========================================================
   レスポンシブ
========================================================= */

@media (max-width: 1099px){
    .bm-grid{
        grid-template-columns:repeat(3, 1fr);
        gap:14px;
    }

    .bd-photo{
        width:240px;
        height:240px;
    }
}

@media (max-width: 767px){
    .bm-grid{
        grid-template-columns:repeat(2, 1fr);
        gap:12px;
    }

    .bm-card{
        padding:12px;
    }

    .bm-photo{
        height:120px;
        margin-bottom:10px;
    }

    .bm-name{
        font-size:14.5px;
    }

    .bm-role{
        font-size:12px;
    }

    .bm-color{
        font-size:11.5px;
    }

    .bm-arrow{
        display:none;
    }

    .bd-container{
        gap:22px;
    }

    .bd-card{
        padding:16px;
    }

    .bd-profile{
        flex-direction:column;
        gap:14px;
    }

    .bd-photo{
        width:100%;
        height:230px;
    }

    .bd-name{
        font-size:19px;
    }

    .bd-kv-label{
        width:96px;
    }

    .bd-sns-btn{
        flex:1;
        justify-content:center;
    }

    .bd-event-row{
        flex-direction:column;
        align-items:stretch;
        gap:4px;
    }

    .bd-event-meta{
        padding-left:2px;
    }
}
