/* ═══════════════════════════════════════════════════════════
   FOXFOT — Match Ended Page Styles
   ═══════════════════════════════════════════════════════════ */

.layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: start;
}

/* ── Ended Card ───────────────────────────────────────────── */
.ended-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: center;
}

.ended-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(244,63,94,.06));
    padding: 52px 32px 44px;
}
.ended-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99,102,241,.12) 0%, transparent 65%);
    pointer-events: none;
}

/* Status Badge */
.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 16px; border-radius: var(--radius-full);
    font-size: .7rem; font-weight: 800; letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: relative;
}
.status-badge.ended {
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.2);
    color: var(--success);
}
.status-badge.not-found {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    color: var(--live-red);
}
.status-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
}
.status-badge.ended .status-badge-dot { background: var(--success); }
.status-badge.not-found .status-badge-dot { background: var(--live-red); }

/* Whistle Icon */
.whistle-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--surface2);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    font-size: 2.2rem;
    position: relative;
}

.ended-title {
    font-size: 1.3rem; font-weight: 900;
    line-height: 1.35;
    margin-bottom: 10px;
    position: relative;
}
.ended-time {
    font-size: .8rem; color: var(--text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    position: relative;
}
.ended-time span { color: var(--primary-light); font-weight: 700; }

/* Ended Body */
.ended-body { padding: 30px 32px 40px; }
.ended-msg {
    font-size: .88rem; color: var(--text-secondary);
    line-height: 1.65;
    max-width: 440px;
    margin: 0 auto 30px;
}
.ended-msg strong { color: var(--text); font-weight: 700; }

.btn-row {
    display: flex; gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar-card { max-height: 350px; position: static; }
}
@media (max-width: 767px) {
    .ended-hero { padding: 34px 20px 30px; }
    .ended-body { padding: 22px 20px 30px; }
    .ended-title { font-size: 1.08rem; }
}
@media (max-width: 480px) {
    .btn-row { flex-direction: column; }
    .btn-row .btn { width: 100%; justify-content: center; }
}
