/* ==========================
   ライブアーカイブ（デザイン刷新 Issue #308）
   A案（帯見出し＋白カード）＋年別見出しのハイブリッド
========================== */

.ar-main{
    width:100%;
    box-sizing:border-box;
}

.ar-container{
    max-width:1348px;
    margin:0;
    padding:6px 16px 40px;
    box-sizing:border-box;
}

/* ===== 帯見出し ===== */
.ar-heading{
    display:flex;
    align-items:center;
    gap:10px;
    margin:10px 0 16px;
    color:var(--theme-heading);
    font-size:19px;
    font-weight:bold;
}

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

/* ===== 年見出し（B案の年表示を取り入れたハイブリッド） ===== */
.ar-year-heading{
    display:flex;
    align-items:center;
    gap:10px;
    margin:22px 0 12px;
    color:var(--theme-heading);
    font-size:17px;
    font-weight:bold;
}

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

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

/* ===== 検索 ===== */
.ar-page .search-area-wrapper{
    width:100%;
    max-width:none;
    margin:0 0 18px;
    padding:0;
    box-sizing:border-box;
}

.ar-page .search-toggle-btn{
    width:100%;
    max-width:none;
    margin:0;
    border:1px solid var(--theme-border-soft);
    border-radius:14px;
    background:#fff;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
    color:var(--theme-text);
}

.ar-page .search-area{
    width:100%;
    max-width:none;
    margin:10px 0 0;
}

.ar-page .search-form{
    border:1px solid var(--theme-border-soft);
    border-radius:16px;
    background:#fff;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
}

.ar-page .search-form input,
.ar-page .search-form select{
    border:1px solid var(--theme-border);
    border-radius:10px;
    color:var(--theme-text);
}

.ar-page .search-bottom button{
    border:0;
    border-radius:999px;
    background:linear-gradient(135deg, var(--theme-btn-from), var(--theme-primary));
    color:#fff;
}

/* ===== ライブカード ===== */
.live-list{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
    width:100%;
}

.live-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    width:100%;
    min-width:0;
    min-height:168px;
    padding:18px;
    box-sizing:border-box;
    border:1px solid var(--theme-border-soft);
    border-radius:20px;
    background:#fff;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
}

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

.live-card-head{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
}

.live-date-chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 11px;
    border-radius:999px;
    background:var(--theme-tint);
    color:var(--theme-brand);
    font-size:12px;
    font-weight:bold;
}

.live-date-chip svg{
    width:14px;
    height:14px;
}

.ar-state-chip{
    display:inline-flex;
    align-items:center;
    padding:4px 11px;
    border-radius:999px;
    background:linear-gradient(135deg, var(--theme-btn-from), var(--theme-primary));
    color:#fff;
    font-size:11px;
    font-weight:bold;
}

.ar-state-chip[hidden]{
    display:none;
}

.cancelled-label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:4px 11px;
    border-radius:999px;
    background:#8a7f83;
    color:#fff;
    font-size:11px;
    font-weight:bold;
}

.live-name{
    margin-bottom:6px;
    color:var(--theme-text);
    font-size:17px;
    font-weight:bold;
    line-height:1.5;
    overflow-wrap:anywhere;
}

.live-info{
    color:var(--theme-text-sub);
    font-size:13px;
    line-height:1.8;
}

.live-venue{
    display:flex;
    align-items:center;
    gap:6px;
}

.live-venue svg{
    flex:0 0 auto;
    width:14px;
    height:14px;
    color:var(--theme-primary);
}

/* ===== 操作 ===== */
.live-actions{
    display:flex;
    align-items:stretch;
    gap:8px;
    margin-top:16px;
}

.live-actions form{
    flex:1;
    min-width:0;
    margin:0;
}

.live-actions button,
.disabled-btn,
.detail-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:42px;
    padding:0 8px;
    box-sizing:border-box;
    border-radius:999px;
    font-family:inherit;
    font-size:13px;
    font-weight:bold;
}

.live-actions button{
    cursor:pointer;
}

.join-btn,
.attend-btn{
    border:0;
    background:linear-gradient(135deg, var(--theme-btn-from), var(--theme-primary));
    color:#fff;
}

.cancel-btn,
.attend-cancel-btn{
    border:1px solid var(--theme-border);
    background:#fff;
    color:var(--theme-text-sub);
}

.disabled-btn{
    background:#ccc;
    color:#fff;
}

.detail-btn{
    flex:0 0 42%;
    border:1px solid var(--theme-border);
    background:var(--theme-blush);
    color:var(--theme-brand);
    text-decoration:none;
}

/* ===== データなし ===== */
.no-live{
    width:100%;
    box-sizing:border-box;
    margin:10px 0;
    padding:30px 20px;
    border:1px solid var(--theme-border-soft);
    border-radius:20px;
    background:#fff;
    color:var(--theme-text-muted);
    text-align:center;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
}

/* ===== タブレット・PC ===== */
@media(min-width:768px){
    .ar-container{
        padding:6px 30px 48px;
    }

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

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

@media(min-width:1500px){
    .live-list{
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:18px;
    }
}

/* ==========================
   ワイド画面の情報列（公式お知らせ／リマインド）
   ライブTOP（live.css）と同じ作り。2150px未満では表示しない。
========================== */

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

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

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

/* ===== 一覧専用ローディング（回収済み楽曲と同じ作り） ===== */
.ar-list-wrap{
    position:relative;
    min-height:120px;
}

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

.ar-list-loading p{
    margin:0;
}

.ar-list-loading[hidden]{
    display:none;
}

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

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

/* 参加済みライブ一覧（右側列） */
.live-side-venue{
    display:block;
    font-size:11.5px;
    color:var(--theme-text-muted);
    line-height:1.5;
}

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