:root {
    --sp-bg: #111111;
    --sp-bg-soft: #181818;
    --sp-card: #1f1f1f;
    --sp-card-2: #242424;
    --sp-border: rgba(255, 255, 255, 0.08);
    --sp-text: #f4f4f4;
    --sp-muted: #a7a7a7;
    --sp-orange: #f5a623;
    --sp-orange-dark: #d98a00;
    --sp-green: #25c46b;
    --sp-red: #ff5d5d;
    --sp-radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--sp-bg);
    color: var(--sp-text);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.sp-app {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.08), transparent 35%),
        var(--sp-bg);
}

/* Sidebar */
.sp-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #151515;
    border-right: 1px solid var(--sp-border);
    padding: 24px 18px;
    position: sticky;
    top: 0;
}

.sp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    margin-bottom: 28px;
}

.sp-logo img {
    max-width: 170px;
    max-height: 56px;
}

.sp-logo span {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--sp-orange);
    color: #111;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
}

.sp-side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--sp-muted);
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
}

.sp-side-nav a:hover,
.sp-side-nav a.active {
    background: rgba(245, 166, 35, 0.12);
    color: var(--sp-orange);
}

.sp-side-box {
    margin-top: 28px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(245, 166, 35, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(245, 166, 35, 0.18);
}

.sp-side-box-title {
    color: var(--sp-orange);
    font-weight: 900;
    margin-bottom: 8px;
}

.sp-side-box p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Main */
.sp-main {
    flex: 1;
    min-width: 0;
}

.sp-topbar {
    min-height: 96px;
    padding: 24px 34px;
    border-bottom: 1px solid var(--sp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 17, 17, 0.82);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.sp-topbar h1 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.sp-topbar p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 14px;
}

.sp-date-pill {
    background: var(--sp-orange);
    color: #111;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 900;
}

.sp-page {
    padding: 30px 34px;
}

/* Home */
.sp-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
    gap: 22px;
}

.sp-wide {
    grid-row: span 2;
}

.sp-panel {
    background: linear-gradient(180deg, var(--sp-card), #1a1a1a);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.sp-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sp-section-head h2 {
    margin: 4px 0 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.sp-section-head.compact h2 {
    font-size: 20px;
}

.sp-kicker {
    color: var(--sp-orange);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.sp-view-link {
    color: var(--sp-orange);
    font-weight: 800;
    font-size: 13px;
}

.sp-match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-match-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 84px;
    align-items: center;
    gap: 14px;
    background: var(--sp-card-2);
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    padding: 14px;
    transition: 0.2s ease;
}

.sp-match-card:hover {
    border-color: rgba(245, 166, 35, 0.45);
    transform: translateY(-2px);
}

.sp-match-time {
    color: var(--sp-orange);
    font-weight: 900;
    font-size: 14px;
}

.sp-teams {
    min-width: 0;
}

.sp-team {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-dot {
    width: 8px;
    height: 8px;
    background: var(--sp-green);
    border-radius: 50%;
    flex: 0 0 auto;
}

.sp-dot.away {
    background: var(--sp-orange);
}

.sp-prediction {
    text-align: right;
}

.sp-label {
    display: block;
    color: var(--sp-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sp-prediction strong {
    display: inline-flex;
    min-width: 44px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: rgba(245, 166, 35, 0.13);
    color: var(--sp-orange);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 12px;
}

.sp-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-mini-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 13px;
    border-radius: 14px;
    background: var(--sp-card-2);
    border: 1px solid var(--sp-border);
}

.sp-mini-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.sp-mini-card span {
    display: block;
    color: var(--sp-muted);
    font-size: 12px;
}

.sp-mini-card b {
    color: var(--sp-orange);
    background: rgba(245, 166, 35, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
}

.sp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sp-stat-card {
    background: var(--sp-card-2);
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    padding: 16px;
}

.sp-stat-card span {
    display: block;
    color: var(--sp-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.sp-stat-card strong {
    color: var(--sp-orange);
    font-size: 24px;
}

.sp-footer {
    padding: 20px 34px 32px;
    color: var(--sp-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1100px) {
    .sp-home-grid {
        grid-template-columns: 1fr;
    }

    .sp-wide {
        grid-row: auto;
    }
}

@media (max-width: 820px) {
    .sp-app {
        display: block;
    }

    .sp-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        padding: 16px;
    }

    .sp-logo {
        justify-content: flex-start;
        margin-bottom: 14px;
    }

    .sp-side-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .sp-side-nav a {
        white-space: nowrap;
    }

    .sp-side-box {
        display: none;
    }

    .sp-topbar {
        position: relative;
        padding: 20px;
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .sp-page {
        padding: 20px;
    }

    .sp-match-card {
        grid-template-columns: 62px minmax(0, 1fr) 62px;
    }

    .sp-stats-grid {
        grid-template-columns: 1fr;
    }
}