/* ArenaCast · Modules
   分类筛选 / 日历滚动 / 比赛卡片 / 比赛列表 / 录像网格 / 播放器 */

/* ============ 日历滑条 ============ */

.ac-cal {
    margin-bottom: var(--gap-lg);
}

.ac-cal__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--gap-sm);
}

/* 包一层 wrap 用来挂左右箭头 + 边缘渐隐 */
.ac-cal__wrap {
    align-items: center;
    display: flex;
    gap: 4px;
    position: relative;
}

.ac-cal__strip {
    -ms-overflow-style: none;
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding-block: 6px;
    padding-inline: 12px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.ac-cal__strip::-webkit-scrollbar { display: none; }

/* 左右翻页箭头：占用 flex 列，不再绝对定位 */
.ac-cal__nudge {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--c-ink-mid);
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition:
        background var(--ease-quick),
        color var(--ease-quick),
        transform var(--ease-quick);
    width: 36px;
}

.ac-cal__nudge:hover {
    background: rgba(124, 58, 237, 0.08);
    border-radius: 50%;
    color: var(--c-brand-deep);
    transform: scale(1.08);
}

.ac-cal__nudge svg { height: 22px; width: 22px; }

.ac-cal__nudge--prev { order: 0; }
.ac-cal__nudge--next { order: 2; }
.ac-cal__strip       { order: 1; }

.ac-cal__pip {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--c-edge-glass);
    border-radius: var(--round-md);
    box-shadow:
        0 1px 2px rgba(28, 25, 23, 0.04),
        0 6px 14px rgba(91, 33, 182, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 78px;
    padding: 10px var(--gap-md);
    transition:
        background var(--ease-quick),
        border-color var(--ease-quick),
        box-shadow var(--ease-quick),
        transform var(--ease-quick);
    user-select: none;
    white-space: nowrap;
}

.ac-cal__pip:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--c-brand-soft);
    box-shadow:
        0 2px 4px rgba(28, 25, 23, 0.06),
        0 10px 24px rgba(124, 58, 237, 0.22);
    transform: translateY(-2px);
}

/* hover 时字色加深，避免白底白字 */
.ac-cal__pip:hover .ac-cal__pip-day,
.ac-cal__pip:hover .ac-cal__pip-num {
    color: var(--c-brand-deep);
    opacity: 1;
}

.ac-cal__pip--on {
    background: var(--c-brand-deep);
    border-color: var(--c-brand-deep);
    box-shadow:
        0 4px 10px rgba(91, 33, 182, 0.22),
        0 12px 32px rgba(91, 33, 182, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    color: #FFF;
    transform: translateY(-1px);
}

/* 选中后即便 hover 也保持紫底白字 */
.ac-cal__pip--on:hover {
    background: var(--c-brand-deep);
    border-color: var(--c-brand-deep);
    box-shadow:
        0 6px 14px rgba(91, 33, 182, 0.28),
        0 18px 40px rgba(91, 33, 182, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.ac-cal__pip--on:hover .ac-cal__pip-day,
.ac-cal__pip--on:hover .ac-cal__pip-num {
    color: #FFF;
}

.ac-cal__pip-day {
    font-size: var(--text-2xs);
    font-weight: 500;
    opacity: 0.7;
}

.ac-cal__pip-num {
    font-family: var(--type-display);
    font-size: var(--text-lg);
    font-weight: 700;
}

/* 「全部」chip 用不同字号：上行小，下行不要 display 大字，避免遮挡 */
.ac-cal__pip[data-day=""] .ac-cal__pip-num {
    font-family: var(--type-body);
    font-size: var(--text-md);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ac-cal__pip--on .ac-cal__pip-day {
    color: #FFF;
    font-weight: 600;
    opacity: 0.92;
}

.ac-cal__pip--on .ac-cal__pip-num {
    color: #FFF;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* ============ 分类标签条 ============ */

.ac-cats {
    -ms-overflow-style: none;
    display: flex;
    gap: 8px;
    margin-bottom: var(--gap-md);
    overflow-x: auto;
    padding-block: 4px;
    scrollbar-width: none;
}

.ac-cats::-webkit-scrollbar { display: none; }

.ac-cats__chip {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--c-edge-glass);
    border-radius: var(--round-pill);
    color: var(--c-ink-mid);
    cursor: pointer;
    display: inline-flex;
    font-size: var(--text-md);
    font-weight: 500;
    gap: 6px;
    padding: 8px 16px;
    transition:
        background var(--ease-quick),
        border-color var(--ease-quick),
        color var(--ease-quick);
    white-space: nowrap;
}

.ac-cats__chip:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--c-warm-soft);
    color: var(--c-ink);
}

.ac-cats__chip--on {
    background: var(--c-warm);
    border-color: var(--c-warm);
    color: #1F1100;
}

/* ============ Bout card —— 头条比赛卡 ============ */

.ac-bout {
    padding: var(--gap-md);
}

.ac-bout__crown {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--gap-md);
}

.ac-bout__crown h3 {
    align-items: center;
    display: flex;
    font-family: var(--type-display);
    font-size: var(--text-lg);
    gap: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ac-bout__crown h3 svg { height: 18px; width: 18px; }

.ac-bout__face-off {
    align-items: center;
    display: flex;
    gap: var(--gap-md);
    justify-content: center;
    padding-block: var(--gap-md);
}

.ac-bout__side {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.ac-bout__crest {
    align-items: center;
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--round-md);
    display: flex;
    font-size: var(--text-2xl);
    height: 60px;
    justify-content: center;
    width: 60px;
}

.ac-bout__club {
    font-family: var(--type-display);
    font-size: var(--text-md);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
}

.ac-bout__tally {
    align-items: center;
    display: flex;
    gap: var(--gap-sm);
}

.ac-bout__digit {
    color: var(--c-brand);
    font-family: var(--type-display);
    font-size: var(--text-3xl);
    font-weight: 700;
}

.ac-bout__sep {
    color: var(--c-ink-low);
    font-family: var(--type-display);
    font-size: var(--text-lg);
    font-weight: 600;
}

.ac-bout__meta {
    align-items: center;
    color: var(--c-ink-mid);
    display: flex;
    font-size: var(--text-md);
    gap: 5px;
    justify-content: center;
    margin-top: 6px;
}

.ac-bout__meta svg { height: 13px; width: 13px; }

.ac-bout__cta {
    margin-top: var(--gap-md);
    padding: 14px;
    width: 100%;
}

/* ============ Fixture row —— 赛程列表项 ============ */

.ac-feed {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ac-fix {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: var(--gap-md);
    /* 左右两列等宽（1fr）让中间内容相对整行真正居中 */
    grid-template-columns: 1fr auto 1fr;
    padding: var(--gap-md) var(--gap-md);
    position: relative;
    transition: transform var(--ease-mid);
}

.ac-fix::before {
    background: var(--c-brand);
    border-radius: 0 3px 3px 0;
    content: '';
    height: 56%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 22%;
    transition: opacity var(--ease-quick);
    width: 3px;
}

.ac-fix--air::before  { background: var(--c-onair); opacity: 1; }
.ac-fix--soon::before { background: var(--c-warm); opacity: 1; }
.ac-fix--done::before { background: var(--c-ink-low); opacity: 0.5; }

.ac-fix:hover { transform: translateY(-1px); }

.ac-fix__clock {
    min-width: 64px;
    text-align: center;
}

.ac-fix__when {
    font-family: var(--type-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.1;
}

.ac-fix__day {
    color: var(--c-ink-mid);
    font-size: var(--text-2xs);
    font-weight: 500;
    margin-top: 2px;
}

.ac-fix__state {
    color: var(--c-ink-low);
    font-size: var(--text-2xs);
}

.ac-fix__center {
    align-items: center;
    display: flex;
    gap: var(--gap-sm);
    justify-content: center;
    min-width: 0;
}

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

.ac-fix__lane--home {
    justify-content: flex-end;
    min-width: 120px;
    text-align: right;
}

.ac-fix__lane--away {
    justify-content: flex-start;
    min-width: 120px;
    text-align: left;
}

.ac-fix__crest-sm {
    align-items: center;
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--round-xs);
    display: flex;
    flex-shrink: 0;
    font-size: var(--text-md);
    height: 34px;
    justify-content: center;
    width: 34px;
}

.ac-fix__club {
    font-size: var(--text-md);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ac-fix__core {
    flex-shrink: 0;
    min-width: 68px;
    text-align: center;
}

.ac-fix__score {
    font-family: var(--type-display);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-top: 5px;
}

.ac-fix__score--air  { color: var(--c-onair); }
.ac-fix__score--idle { color: var(--c-ink-low); }

.ac-fix__cta {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ============ Upcoming row（侧栏迷你） ============ */

.ac-soon {
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.ac-soon:last-child { border-bottom: 0; }

.ac-soon__row {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding-block: 11px;
}

.ac-soon__title {
    font-size: var(--text-md);
    font-weight: 500;
}

.ac-soon__hour {
    color: var(--c-ink-low);
    font-family: var(--type-display);
    font-size: var(--text-xs);
    font-weight: 600;
}

/* ============ Archive grid （回放） ============ */

.ac-arch {
    display: grid;
    gap: var(--gap-md);
    grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .ac-arch { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ac-arch { grid-template-columns: repeat(3, 1fr); } }

.ac-cassette {
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--ease-mid);
}

.ac-cassette:hover { transform: translateY(-3px); }

.ac-cassette__shot {
    align-items: center;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg,
            rgba(124, 58, 237, 0.12),
            rgba(245, 158, 11, 0.10));
    display: flex;
    justify-content: center;
    position: relative;
}

.ac-cassette__play {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 6px 22px rgba(28, 25, 23, 0.18);
    color: var(--c-brand);
    display: flex;
    height: 52px;
    justify-content: center;
    transition:
        background var(--ease-quick),
        color var(--ease-quick),
        transform var(--ease-quick);
    width: 52px;
}

.ac-cassette__play svg { height: 22px; margin-left: 3px; width: 22px; }

.ac-cassette:hover .ac-cassette__play {
    background: var(--c-brand);
    color: #FFF;
    transform: scale(1.08);
}

.ac-cassette__len {
    background: rgba(28, 25, 23, 0.78);
    border-radius: var(--round-xs);
    bottom: 10px;
    color: #FFF;
    font-family: var(--type-display);
    font-size: var(--text-2xs);
    font-weight: 600;
    padding: 3px 8px;
    position: absolute;
    right: 10px;
}

.ac-cassette__body {
    padding: var(--gap-sm) var(--gap-md);
}

.ac-cassette__name {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-size: var(--text-md);
    font-weight: 600;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 4px;
    overflow: hidden;
}

.ac-cassette__sub {
    align-items: center;
    color: var(--c-ink-low);
    display: flex;
    font-size: var(--text-2xs);
    gap: 8px;
}

/* ============ Player stage ============ */

.ac-stage {
    padding-block: var(--gap-md);
}

.ac-stage__screen {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--round-lg);
    box-shadow: var(--frost-cast-up);
    overflow: hidden;
    position: relative;
}

.ac-stage__screen .dplayer {
    height: 100%;
    width: 100%;
}

.ac-stage__under {
    padding-block: var(--gap-md);
}

.ac-stage__panel {
    padding: var(--gap-md);
}

.ac-stage__heading {
    align-items: center;
    display: flex;
    font-family: var(--type-display);
    font-size: var(--text-xl);
    font-weight: 600;
    gap: 8px;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ac-stage__sub {
    color: var(--c-ink-mid);
    font-size: var(--text-md);
}

/* 弹幕输入条 */

.ac-chip-bar {
    display: flex;
    gap: 8px;
    margin-top: var(--gap-md);
}

.ac-chip-bar__field {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--c-edge-strong);
    border-radius: var(--round-pill);
    color: var(--c-ink);
    flex: 1;
    font-size: var(--text-md);
    outline: none;
    padding: 10px 16px;
    transition:
        background var(--ease-quick),
        border-color var(--ease-quick),
        box-shadow var(--ease-quick);
}

.ac-chip-bar__field:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--c-warm-soft);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

/* ============ Stage 隐藏初值 ============ */

.ac-stage[hidden] { display: none; }
