/* ==========================
   ライブ画面（A案：帯見出し＋白カード型 / Issue #293）
========================== */

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

.live-section{
    width:100%;
    box-sizing:border-box;
}

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

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

.live-top-section{
    margin-top:2px;
}

.live-next-section{
    margin-top:0;
}

/* ==========================
   次のライブ（スライダー）
========================== */

.live-slider-wrapper{
    position:relative;
    width:100%;
}

.live-slider{
    display:flex;
    align-items:stretch;
    width:100%;
    overflow-x:auto;
    gap:14px;
    padding:0 0 8px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
}

.live-slider::-webkit-scrollbar{
    display:none;
}

.live-card{
    display:flex;
    flex:0 0 100%;
    flex-direction:column;
    width:100%;
    max-width:none;
    min-width:100%;
    height:auto;
    box-sizing:border-box;
    padding:18px;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
    scroll-snap-align:start;
}

.live-card-content{
    flex:1;
    min-width:0;
}

.live-card-top{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:28px;
}

.live-card-countdown{
    margin-left:auto;
    text-align:right;
}

.live-countdown-text{
    color:var(--theme-brand);
    font-size:23px;
    font-weight:800;
    letter-spacing:.02em;
}

.live-today-text{
    color:var(--theme-brand);
    font-size:20px;
    font-weight:800;
}

.join-status{
    display:inline-flex;
    align-items:center;
    padding:5px 12px;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-brand);
    font-size:12px;
    font-weight:bold;
}

.live-name{
    margin-top:10px;
    color:var(--theme-text);
    font-size:18px;
    font-weight:800;
    line-height:1.5;
}

.live-info-panel{
    margin-top:12px;
    padding:12px 14px;
    border-radius:14px;
    background:var(--theme-blush);
}

.live-info-row{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--theme-text);
    font-size:13.5px;
    font-weight:bold;
    line-height:1.6;
}

.live-info-row + .live-info-row{
    margin-top:4px;
}

.live-info-icon{
    display:inline-flex;
    flex:0 0 auto;
    color:var(--theme-brand);
}

.live-info-icon svg{
    display:block;
    width:17px;
    height:17px;
}

/* ==========================
   公演中止
========================== */

.live-card.is-cancelled{
    background:#fafafa;
}

.live-card.is-cancelled .live-name{
    color:#777;
}

.cancelled-label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:fit-content;
    padding:5px 12px;
    border-radius:999px;
    background:#777;
    color:#fff;
    font-size:12px;
    font-weight:bold;
}

.cancelled-message{
    margin:6px 0;
    color:#777;
    font-size:13px;
    font-weight:bold;
}

/* ==========================
   天気・各種ボタン
========================== */

.weather-button-row{
    display:flex;
    gap:8px;
    margin-top:14px;
}

.weather-btn,
.weather-hourly-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    flex:1;
    min-height:42px;
    padding:8px 10px;
    border:1px solid var(--theme-border);
    border-radius:999px;
    background:#fff;
    color:var(--theme-text);
    font-family:inherit;
    font-size:13px;
    font-weight:bold;
    cursor:pointer;
}

.weather-btn:hover,
.weather-hourly-btn:hover{
    background:var(--theme-blush);
}

.weather-hourly-icon{
    display:inline-flex;
    color:var(--theme-brand);
}

.weather-hourly-icon svg{
    display:block;
    width:16px;
    height:16px;
}

.departure-btn,
.add-history,
.detail-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:44px;
    box-sizing:border-box;
    margin-top:10px;
    padding:8px 12px;
    border-radius:999px;
    text-decoration:none;
    font-size:13.5px;
    font-weight:bold;
}

.departure-btn{
    background:var(--theme-blush);
    color:var(--theme-brand);
    border:1px solid var(--theme-border-soft);
}

.departure-icon{
    display:inline-flex;
}

.departure-icon svg{
    display:block;
    width:15px;
    height:15px;
}

.add-history{
    background:#fff;
    color:var(--theme-brand);
    border:1px solid var(--theme-border);
}

.detail-btn{
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
    margin-top:12px;
    flex-shrink:0;
}

.live-card.is-cancelled .detail-btn{
    background:#aaa;
}

.live-card.is-cancelled .detail-btn:hover{
    background:#999;
}

/* ==========================
   スライダー操作
========================== */

.live-slider-arrow{
    display:none;
}

.live-slider-dots{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
    margin:8px 0 0;
}

.live-slider-dot{
    display:block;
    width:8px;
    height:8px;
    padding:0;
    border:0;
    border-radius:50%;
    background:var(--theme-border);
    cursor:pointer;
}

.live-slider-dot.active{
    background:var(--theme-primary);
}

.live-slider-dot:active{
    transform:scale(.9);
}

.next-live-empty{
    margin:0;
    padding:30px 20px;
    text-align:center;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.05);
}

.next-live-empty-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:60px;
    height:60px;
    margin:0 auto;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
}

.next-live-empty-icon svg{
    display:block;
    width:30px;
    height:30px;
}

.next-live-empty-title{
    margin-top:12px;
    color:var(--theme-text);
    font-size:15px;
    font-weight:bold;
}

.next-live-empty-text{
    margin-top:5px;
    color:var(--theme-text-muted);
    font-size:13px;
}

/* ==========================
   ライブ集計
========================== */

.live-summary-section{
    margin-top:28px;
}

.live-summary-card{
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    width:100%;
    padding:8px 16px 14px;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
}

.live-summary-item{
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
    padding:12px 0;
    border-bottom:1px solid var(--theme-border-soft);
}

.live-summary-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:38px;
    height:38px;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
}

.live-summary-icon svg{
    display:block;
    width:20px;
    height:20px;
}

.live-summary-label{
    flex:0 0 auto;
    color:var(--theme-text-sub);
    font-size:13px;
    font-weight:bold;
    line-height:1.5;
}

.live-summary-value{
    flex:1 1 auto;
    min-width:0;
    color:var(--theme-text);
    text-align:right;
    font-size:17px;
    font-weight:800;
    line-height:1.45;
}

.live-summary-sub{
    font-size:12.5px;
    font-weight:bold;
    color:var(--theme-text-sub);
    white-space:nowrap;
}

.live-summary-share-btn{
    align-self:flex-end;
    width:fit-content;
    min-height:36px;
    margin-top:12px;
    padding:6px 16px;
    box-sizing:border-box;
    border:0;
    border-radius:999px;
    background:#111;
    color:#fff;
    font-family:inherit;
    font-size:13px;
    font-weight:bold;
    cursor:pointer;
}

.live-summary-share-btn:active{
    transform:scale(.98);
}

/* ==========================
   推し活状況
========================== */

.live-status-section{
    margin-top:32px;
}

.live-status-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

.live-status-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-sizing:border-box;
    min-height:86px;
    padding:14px;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:16px;
    box-shadow:0 6px 18px rgba(61,44,46,.05);
}

.live-status-card-link{
    color:inherit;
    text-decoration:none;
}

.live-status-card-main{
    display:flex;
    align-items:center;
    min-width:0;
}

.live-status-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 46px;
    width:46px;
    height:46px;
    margin-right:12px;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
}

.live-status-icon svg{
    display:block;
    width:23px;
    height:23px;
}

.live-status-content{
    min-width:0;
}

.live-status-title{
    color:var(--theme-text);
    font-size:15px;
    font-weight:bold;
}

.live-status-text,
.live-status-value{
    margin-top:4px;
    color:var(--theme-text-muted);
    font-size:12px;
    line-height:1.5;
}

.live-status-arrow{
    margin-left:10px;
    color:var(--theme-border);
    font-size:25px;
    line-height:1;
}

.collected-progress{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:7px;
}

.collected-progress-bar{
    flex:1;
    height:6px;
    overflow:hidden;
    border-radius:3px;
    background:var(--theme-border-soft);
}

.collected-progress-value{
    height:100%;
    border-radius:3px;
    background:linear-gradient(90deg,var(--theme-btn-from),var(--theme-primary));
}

.collected-progress-rate{
    flex:none;
    color:var(--theme-brand);
    font-size:11px;
    font-weight:bold;
}

/* ==========================
   天気モーダル
========================== */

.weather-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:1000;
}

.weather-modal.active{
    display:flex;
    align-items:center;
    justify-content:center;
}

.weather-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.weather-modal-content{
    position:relative;
    z-index:1;
    width:calc(100% - 30px);
    max-width:430px;
    max-height:80vh;
    overflow-y:auto;
    box-sizing:border-box;
    padding:0 0 20px;
    background:#fff;
    border-radius:24px;
}

.weather-modal-head{
    position:relative;
    padding:20px 20px 16px;
    background:linear-gradient(180deg,var(--theme-blush),#fff);
    border-radius:24px 24px 0 0;
}

.weather-modal-kicker{
    display:inline-flex;
    align-items:center;
    padding:5px 12px;
    border:1px solid var(--theme-border);
    border-radius:999px;
    background:#fff;
    color:var(--theme-brand);
    font-size:11.5px;
    font-weight:bold;
    letter-spacing:.12em;
    line-height:1.4;
}

.weather-modal-title{
    margin-top:10px;
    color:var(--theme-heading);
    font-size:22px;
    font-weight:bold;
    line-height:1.4;
}

.weather-updated-at{
    margin-top:4px;
    color:var(--theme-text-muted);
    font-size:12.5px;
}

.weather-modal-x{
    position:absolute;
    top:16px;
    right:16px;
    width:32px;
    min-height:32px;
    height:32px;
    margin:0;
    padding:0;
    border:1px solid var(--theme-border-soft);
    border-radius:50%;
    background:#fff;
    color:var(--theme-text-muted);
    font-size:16px;
    line-height:1;
}

.weather-day{
    margin:12px 20px 0;
    padding:14px;
    border:1px solid var(--theme-border-soft);
    border-radius:16px;
    background:#fff;
}

.weather-day.is-today{
    border-color:var(--theme-border);
    background:linear-gradient(180deg,#fff,var(--theme-blush));
}

.weather-day-title{
    display:flex;
    align-items:center;
    gap:8px;
}

.weather-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:46px;
    height:46px;
    border-radius:50%;
    background:var(--theme-blush);
    font-size:24px;
}

.weather-day-date{
    font-size:16px;
    font-weight:bold;
    color:var(--theme-text);
}

.weather-day-label{
    margin-left:auto;
    padding:4px 12px;
    border-radius:999px;
    background:var(--theme-tint);
    color:var(--theme-brand);
    font-size:12.5px;
    font-weight:bold;
    line-height:1.5;
}

.weather-day.is-today .weather-day-label{
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
}

.weather-day-main{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-top:12px;
}

.weather-field-label{
    display:block;
    margin-bottom:2px;
    color:var(--theme-text-muted);
    font-size:11.5px;
    font-weight:normal;
}

.weather-name{
    font-size:18.5px;
    font-weight:bold;
    color:var(--theme-text);
    line-height:1.5;
}

.weather-temperature{
    text-align:right;
    line-height:1.5;
}

.weather-temp-values{
    font-size:20px;
    font-weight:bold;
    white-space:nowrap;
}

.weather-temp-min{
    color:#2f7fd0;
}

.weather-temp-sep{
    margin:0 4px;
    color:var(--theme-text-muted);
    font-weight:normal;
}

.weather-temp-max{
    color:var(--theme-primary);
}

.weather-rain{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-top:12px;
    padding:5px 12px;
    border-radius:999px;
    background:var(--theme-tint);
    color:var(--theme-brand);
    font-size:14px;
    font-weight:bold;
    line-height:1.5;
}

.weather-hourly-list{
    margin:12px 20px 0;
}

.weather-hourly-row{
    display:grid;
    grid-template-columns:54px 44px 1fr 66px 64px;
    align-items:center;
    gap:4px;
    padding:12px 2px;
    border-bottom:1px solid var(--theme-border-soft);
    font-size:15px;
    color:var(--theme-text);
}

.weather-hourly-row:last-child{
    border-bottom:0;
}

.weather-hourly-time{
    font-weight:bold;
}

.weather-hourly-icon{
    text-align:center;
    font-size:20px;
}

.weather-hourly-temperature{
    text-align:right;
    font-weight:bold;
}

.weather-hourly-rain{
    padding:4px 6px;
    border-radius:999px;
    background:var(--theme-tint);
    color:var(--theme-brand);
    font-size:13px;
    font-weight:bold;
    text-align:center;
    white-space:nowrap;
}

.weather-close{
    width:calc(100% - 40px);
    min-height:46px;
    margin:16px 20px 0;
    border:0;
    border-radius:999px;
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
    font-family:inherit;
    font-size:15.5px;
    font-weight:bold;
    cursor:pointer;
}

.weather-modal-x{
    width:32px;
    min-height:32px;
    margin:0;
    border:1px solid var(--theme-border-soft);
    background:#fff;
    color:var(--theme-text-muted);
}

@media(min-width:768px){

    .weather-modal-content{
        max-width:600px;
    }
}

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

@media(min-width:768px) and (max-width:1099px){

    .live-container{
        width:100%;
        max-width:none;
        margin:0;
        padding:20px 30px 40px;
    }

    .live-top-section{
        display:grid;
        grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);
        gap:20px;
        align-items:stretch;
        margin-top:0;
    }

    .live-next-section,
    .live-summary-section{
        display:flex;
        flex-direction:column;
        min-width:0;
        margin-top:0;
    }

    .live-slider-wrapper{
        display:flex;
        align-items:center;
        gap:10px;
        flex:1;
        min-height:0;
    }

    .live-slider{
        flex:1;
        min-width:0;
    }

    .live-card{
        min-height:100%;
        padding:20px;
    }

    .live-slider-arrow{
        display:flex;
        align-items:center;
        justify-content:center;
        flex:0 0 36px;
        width:36px;
        height:36px;
        padding:0;
        border:1px solid var(--theme-border-soft);
        border-radius:50%;
        background:#fff;
        color:var(--theme-text-muted);
        font-family:inherit;
        font-size:25px;
        line-height:1;
        cursor:pointer;
        box-shadow:0 2px 6px rgba(0,0,0,.06);
    }

    .live-slider-arrow:disabled{
        opacity:.35;
        cursor:default;
    }

    .live-summary-card{
        justify-content:center;
        flex:1;
        padding:6px 14px 12px;
    }

    .live-summary-item{
        padding:10px 0;
    }

    .live-status-section{
        margin-top:30px;
    }

    .live-status-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:15px;
    }

    .live-status-card{
        min-height:92px;
        padding:15px;
    }
}

/* ==========================
   PC
========================== */

@media(min-width:1100px){

    .live-container{
        width:100%;
        max-width:1348px;
        margin:0;
        padding:20px 30px 40px;
    }

    .live-section-title{
        font-size:21px;
    }

    .live-top-section{
        display:grid;
        grid-template-columns:minmax(0,1.7fr) minmax(360px,1fr);
        gap:20px;
        align-items:stretch;
        margin-top:0;
    }

    .live-next-section,
    .live-summary-section{
        display:flex;
        flex-direction:column;
        min-width:0;
        margin-top:0;
    }

    .live-slider-wrapper{
        display:flex;
        align-items:center;
        gap:12px;
        flex:1;
        min-height:0;
    }

    .live-slider{
        display:flex;
        align-items:stretch;
        flex:1;
        min-width:0;
        min-height:0;
        padding:0 0 8px;
    }

    .live-slider-arrow{
        display:flex;
        align-items:center;
        justify-content:center;
        flex:0 0 40px;
        width:40px;
        height:40px;
        padding:0;
        border:1px solid var(--theme-border-soft);
        border-radius:50%;
        background:#fff;
        color:var(--theme-text-muted);
        font-family:inherit;
        font-size:28px;
        line-height:1;
        cursor:pointer;
        box-shadow:0 2px 6px rgba(0,0,0,.06);
    }

    .live-slider-arrow:hover{
        background:var(--theme-blush);
    }

    .live-slider-arrow:active{
        transform:scale(.95);
    }

    .live-slider-arrow:disabled{
        opacity:.35;
        cursor:default;
    }

    .live-card{
        flex:0 0 100%;
        min-width:100%;
        min-height:100%;
        padding:22px;
    }

    .live-name{
        font-size:20px;
    }

    .live-countdown-text{
        font-size:27px;
    }

    .live-summary-card{
        justify-content:center;
        flex:1;
        padding:8px 18px 16px;
    }

    .live-summary-item{
        padding:13px 0;
    }

    .live-summary-value{
        font-size:19px;
    }

    .live-status-section{
        margin-top:34px;
    }

    .live-status-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:16px;
    }

    .live-status-card{
        min-height:100px;
        padding:16px;
    }

}

/* ==========================
   スマートフォン
========================== */

@media(max-width:767px){

    .live-slider-wrapper{
        width:100%;
    }

    .live-slider-arrow{
        display:none;
    }

}

/* ==========================
   ワイド画面の情報列（公式お知らせ／リマインド）
   公式お知らせはライブ関連のみ表示する。
   2150px未満では表示しない（HOMEの専用列と同じ作り）。
========================== */

.live-side-info{
    display:none;
}

.live-side-card{
    min-width:0;
    padding:16px;
    box-sizing:border-box;
    border:1px solid var(--theme-border-soft);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 24px rgba(var(--theme-brand-rgb),.07);
}

.live-side-title{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
    color:var(--theme-text);
    font-size:16px;
    font-weight:bold;
    line-height:1.5;
}

.live-side-dot{
    flex:0 0 auto;
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--theme-primary);
}

.live-side-list{
    list-style:none;
    margin:0;
    padding:0;
}

.live-side-list li + li{
    margin-top:10px;
}

.live-side-list a{
    display:block;
    color:var(--theme-text);
    text-decoration:none;
}

.live-side-date{
    display:block;
    font-size:11px;
    color:var(--theme-text-muted);
    line-height:1.5;
}

.live-side-item-title{
    display:block;
    font-size:13.5px;
    font-weight:bold;
    line-height:1.5;
}

.live-side-empty{
    font-size:12.5px;
    color:var(--theme-text-muted);
    margin:0;
    line-height:1.6;
}

.live-side-more{
    display:block;
    margin-top:12px;
    text-align:right;
    color:var(--theme-primary);
    font-size:13px;
    font-weight:bold;
    line-height:1.4;
    text-decoration:none;
}

.live-side-reminder-list{
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    max-height:150px;
}

.live-side-info .live-side-reminder-list{
    max-height:245px;
}

/* サイド列は画面の高さに合わせて表示量を減らす（HOMEと同じ段階） */
@media(max-height:999px){
    .live-side-info .live-side-list li:nth-child(n+5){
        display:none;
    }

    .live-side-info .live-side-reminder-list{
        max-height:150px;
    }
}

@media(max-height:849px){
    .live-side-info .live-side-list li:nth-child(n+4){
        display:none;
    }

    .live-side-info .live-side-reminder-list{
        max-height:103px;
    }
}

/* ライブ画面は本文（1348px）＋広告レールの分だけHOMEより広い幅が必要なため、
   専用列は2150px以上で、本文とレールの間の空き空間に置く */
@media(min-width:2150px){
    .live-side-info{
        display:flex;
        flex-direction:column;
        gap:12px;
        position:fixed;
        top:197px;
        left:calc(var(--pc-side-nav-width,220px) + 30px + 1348px + 24px);
        width:calc(100vw - var(--pc-side-nav-width,220px) - 1630px);
        max-width:440px;
        z-index:40;
        max-height:calc(100vh - 237px);
        max-height:calc(100dvh - 237px);
        overflow-y:auto;
        scrollbar-width:none;
        overscroll-behavior:contain;
    }

    .live-side-info::-webkit-scrollbar{
        display:none;
    }
}
