/* =========================================
   利用イベント（デザイン刷新 #331 A案）
   ========================================= */

.oshi-venue-events-main{
    max-width:1348px;
    margin:0;
    padding:6px 16px 40px;
    box-sizing:border-box;
    width:100%;
}

.oshi-venue-events-header{
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
    padding:18px 24px;
    margin-top:8px;
}

.oshi-venue-events-label{
    margin:0;
    font-size:12px;
    font-weight:bold;
    letter-spacing:.08em;
    color:var(--theme-brand);
}

.oshi-venue-events-venue-name{
    margin:6px 0 0;
    font-size:21px;
    color:var(--theme-heading);
    line-height:1.4;
}

.oshi-venue-events-body{
    margin-top:20px;
}

.oshi-venue-events-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}

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

.oshi-venue-event-card.is-detail-open{
    background:var(--theme-tint);
}

.oshi-venue-event-type span{
    display:inline-flex;
    align-items:center;
    height:26px;
    padding:0 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
}

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

.oshi-venue-event-type-meeting{
    background:var(--theme-blush);
    color:var(--theme-brand);
}

.oshi-venue-event-type-melody{
    background:var(--theme-tint);
    color:var(--theme-text-sub);
}

.oshi-venue-event-name{
    margin:12px 0 0;
    font-size:18px;
    color:var(--theme-text);
    line-height:1.5;
}

.oshi-venue-event-date{
    margin:8px 0 0;
    font-size:13.5px;
    color:var(--theme-text-sub);
}

.oshi-venue-event-venue,
.oshi-venue-event-capacity,
.oshi-venue-event-tour,
.oshi-venue-event-performance{
    margin:4px 0 0;
    font-size:13px;
    color:var(--theme-text-muted);
    line-height:1.6;
}

.oshi-venue-event-actions{
    display:flex;
    gap:10px;
    margin-top:16px;
    flex-wrap:wrap;
}

.oshi-venue-event-detail-btn{
    display:inline-flex;
    height:44px;
    align-items:center;
    padding:0 20px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
    font-size:14px;
    font-weight:bold;
    text-decoration:none;
    box-sizing:border-box;
}

.oshi-venue-event-capacity-btn{
    height:44px;
    padding:0 20px;
    border:none;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-brand);
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
    font-family:inherit;
}

.oshi-empty{
    padding:34px 20px;
    border-radius:18px;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    text-align:center;
    color:var(--theme-text-muted);
    font-size:14px;
    margin:0;
}

/* キャパ内訳サイドパネル（1400px以上） */
.oshi-venue-events-side{
    display:none;
}

.oshi-venue-events-side-card{
    position:relative;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
    padding:22px 24px;
    box-sizing:border-box;
}

.oshi-venue-events-side-card[hidden]{
    display:none;
}

.oshi-venue-events-side-empty-text{
    margin:0;
    font-size:13.5px;
    line-height:1.7;
    color:var(--theme-text-muted);
}

.oshi-venue-events-side-close{
    position:absolute;
    top:12px;
    right:12px;
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:var(--theme-tint);
    color:var(--theme-text-sub);
    font-size:19px;
    line-height:1;
    cursor:pointer;
}

@media(min-width:1400px){
    .oshi-venue-events-body{
        display:flex;
        gap:24px;
        align-items:flex-start;
    }

    .oshi-venue-events-list{
        flex:1;
        min-width:0;
    }

    .oshi-venue-events-side{
        display:block;
        width:360px;
        flex:0 0 360px;
        position:sticky;
        top:16px;
    }
}

/* キャパ内訳（モーダル／サイド共通） */
.oshi-tour-capacity-modal-title{
    margin:0 40px 16px 0;
    color:var(--theme-heading);
    font-size:19px;
    line-height:1.5;
    word-break:break-word;
}

.oshi-tour-capacity-total{
    display:flex;
    flex-direction:column;
    gap:2px;
    background:var(--theme-blush);
    border-radius:14px;
    padding:14px 16px;
}

.oshi-tour-capacity-total span{
    font-size:12.5px;
    color:var(--theme-text-sub);
}

.oshi-tour-capacity-total strong{
    font-size:20px;
    color:var(--theme-brand);
}

.oshi-tour-capacity-total small{
    font-size:11.5px;
    color:var(--theme-text-muted);
}

.oshi-tour-capacity-lives h3{
    margin:20px 0 10px;
    font-size:14px;
    color:var(--theme-heading);
}

.oshi-tour-capacity-live{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 2px;
    border-bottom:1px solid var(--theme-border-soft);
}

.oshi-tour-capacity-live-info{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:1px;
}

.oshi-tour-capacity-live-info strong{
    font-size:13px;
    color:var(--theme-text);
}

.oshi-tour-capacity-live-info span{
    font-size:13px;
    color:var(--theme-text-sub);
}

.oshi-tour-capacity-live-info small{
    font-size:12px;
    color:var(--theme-text-muted);
}

.oshi-tour-capacity-live-value{
    flex:0 0 auto;
    font-size:13.5px;
    font-weight:bold;
    color:var(--theme-brand);
}

/* キャパモーダル */
.oshi-tour-capacity-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:30000;
}

.oshi-tour-capacity-modal.active{
    display:flex;
    align-items:center;
    justify-content:center;
}

.oshi-tour-capacity-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(30,50,70,.45);
}

.oshi-tour-capacity-modal-content{
    position:relative;
    width:min(560px, calc(100vw - 32px));
    max-height:calc(100dvh - 110px);
    overflow-y:auto;
    background:#fff;
    border-radius:22px;
    box-shadow:0 18px 44px rgba(30,60,90,.22);
    padding:26px 24px 22px;
    box-sizing:border-box;
}

.oshi-tour-capacity-modal-close{
    position:absolute;
    top:12px;
    right:12px;
    width:34px;
    height:34px;
    padding:0;
    border:none;
    border-radius:50%;
    background:var(--theme-tint);
    color:var(--theme-text-sub);
    font-size:19px;
    line-height:1;
    cursor:pointer;
}

@media(min-width:768px){
    .oshi-venue-events-main{
        padding:6px 30px 48px;
    }
}

@media(max-width:767px){
    .oshi-venue-events-header{
        padding:16px 20px;
    }

    .oshi-venue-events-venue-name{
        font-size:19px;
    }

    .oshi-venue-event-card{
        padding:18px 20px;
    }

    .oshi-venue-event-name{
        font-size:17px;
    }

    .oshi-venue-event-actions > *{
        flex:1;
        justify-content:center;
    }

    .oshi-tour-capacity-modal-content{
        padding:24px 18px 20px;
    }
}
