@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Rajdhani:wght@500;700&display=swap');

:root {
    --primary: #ffd100;
    --primary-dark: #f7a600;
    --success: #34d399;
    --danger: #ef4444;
    --bg-light: #091629;
    --bg-card: rgba(11, 28, 52, 0.92);
    --text-dark: #f8fbff;
    --text-light: #a7bddb;
    --muted: #6f87a6;
    --border: rgba(170, 199, 236, 0.2);
    --shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(255, 209, 0, 0.14), transparent 22%),
        radial-gradient(circle at 15% 18%, rgba(47, 124, 246, 0.22), transparent 24%),
        linear-gradient(180deg, #07111f 0%, #0a1d35 46%, #07111f 100%);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: 40px;
    left: -80px;
    width: 220px;
    height: 220px;
    border: 18px solid rgba(255, 209, 0, 0.1);
    border-radius: 50%;
}

body::after {
    right: -60px;
    bottom: 80px;
    width: 260px;
    height: 260px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 12px, transparent 12px 24px);
    transform: rotate(12deg);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    max-height: 88px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.brand-copy h1 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.subtitle,
.hero-copy,
.section-copy,
.fixture-meta,
.top-scorer-meta,
.team-meta,
.stat-label {
    color: var(--text-light);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr) minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 56%, rgba(255, 209, 0, 0.08) 56% 57%, transparent 57% 100%),
        linear-gradient(0deg, transparent 0 76%, rgba(255, 255, 255, 0.05) 76% 77%, transparent 77% 100%);
    pointer-events: none;
}

.hero-copy-block {
    display: grid;
    align-content: start;
    gap: 12px;
}

.hero h2 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 6px 0 8px;
    text-transform: uppercase;
    line-height: 0.95;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 209, 0, 0.12);
    color: var(--text-dark);
    border: 1px solid rgba(255, 209, 0, 0.28);
    font-weight: 700;
}

.hero-graphic {
    position: relative;
    min-height: 180px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(40, 174, 96, 0.38), rgba(13, 79, 58, 0.82)),
        linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
}

.pitch-markings {
    position: absolute;
    inset: 14px;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 12px;
}

.pitch-markings::before,
.pitch-markings::after {
    content: "";
    position: absolute;
    left: 50%;
}

.pitch-markings::before {
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    border-left: 2px solid rgba(255,255,255,0.45);
}

.pitch-markings::after {
    top: 50%;
    width: 74px;
    height: 74px;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.graphic-ball {
    position: absolute;
    right: 20px;
    bottom: 18px;
    font-size: 3rem;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

.graphic-text {
    position: absolute;
    left: 18px;
    bottom: 16px;
    font-family: "Oswald", sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.9);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}

.stat-value {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary);
}

.status-bar {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 600;
    background: rgba(255, 209, 0, 0.14);
    color: var(--primary);
    border: 1px solid rgba(255, 209, 0, 0.25);
}

.status-bar.hidden {
    display: none;
}

.accordion {
    display: grid;
    gap: 16px;
}

.section-toggle {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    text-align: left;
}

.section-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
}

.section-title {
    display: block;
    margin-top: 2px;
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-toggle-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-toggle-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 209, 0, 0.12);
    border: 1px solid rgba(255, 209, 0, 0.24);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.accordion-section.open .section-toggle-icon {
    transform: rotate(45deg);
}

.section-content {
    padding: 0 20px 20px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.14);
    color: #8ef0c4;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.pill.locked {
    background: rgba(239, 68, 68, 0.14);
    color: #ffb0b0;
    border-color: rgba(239, 68, 68, 0.2);
}

.team-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 16px 0;
}

input,
button {
    font: inherit;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: var(--text-dark);
}

input::placeholder {
    color: var(--muted);
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 11px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(180deg, #ffd100, #f7a600);
    color: #091629;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #ffe36b, #ffbc2d);
}

.btn-secondary {
    background: linear-gradient(180deg, #2557a7, #16386f);
    color: #f8fbff;
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(180deg, #2d67c6, #1b478d);
}

.btn-danger {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(255,255,255,0.12);
}

.btn-live {
    background: linear-gradient(180deg, #34d399, #0f9f69);
    color: #082118;
}

.btn-live:hover:not(:disabled) {
    background: #15803d;
}

.teams-list,
.fixtures-list,
.scorers-list,
.top-scorers-list {
    display: grid;
    gap: 10px;
}

.team-chip,
.top-scorer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.league-table th,
.league-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.league-table th {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.04);
}

.league-table tbody tr:last-child td {
    border-bottom: none;
}

.league-table tbody tr:nth-child(odd) td {
    background: rgba(255,255,255,0.02);
}

.rank,
.top-scorer-goals {
    font-weight: 700;
    color: var(--primary);
}

.top-scorer-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.top-scorer-rank {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 209, 0, 0.15);
    color: var(--primary);
    font-weight: 700;
}

.live-match.empty-state,
.empty-state {
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--text-light);
    background: rgba(255,255,255,0.03);
    text-align: center;
    padding: 16px;
}

.live-card {
    display: grid;
    gap: 18px;
}

.live-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 209, 0, 0.14);
    color: var(--primary);
    border: 1px solid rgba(255, 209, 0, 0.24);
    font-weight: 700;
}

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

.team-score-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    display: grid;
    gap: 14px;
}

.team-score-card h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.score-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.score-value {
    font-family: "Oswald", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.score-controls,
.fixture-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.score-controls .btn {
    min-width: 48px;
}

.scorer-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.scorer-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 209, 0, 0.08);
    color: var(--text-dark);
}

.scorer-details small {
    display: block;
    color: var(--text-light);
}

.round-block {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.round-title {
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(255, 209, 0, 0.12), rgba(27, 71, 141, 0.32));
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fixture-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.fixture-row:first-of-type {
    border-top: none;
}

.fixture-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}

.fixture-teams {
    font-weight: 700;
}

.fixture-score {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--text-dark);
    font-weight: 700;
}

.fixture-live {
    background: rgba(52, 211, 153, 0.12);
    color: #8ef0c4;
    padding: 4px 8px;
    border-radius: 999px;
}

.fixture-finished {
    background: rgba(255, 209, 0, 0.12);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 999px;
}

.fixture-blocked {
    background: rgba(239, 68, 68, 0.12);
    color: #ffb0b0;
    padding: 4px 8px;
    border-radius: 999px;
}

.fixture-actions .btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-graphic {
        min-height: 150px;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 14px;
    }

    .page-header,
    .brand-header,
    .live-card-top,
    .fixture-row {
        display: grid;
    }

    .section-toggle {
        padding: 16px;
    }

    .section-content {
        padding: 0 16px 16px;
    }

    .header-actions .btn,
    .fixture-actions .btn {
        width: 100%;
    }

    .team-form,
    .scorer-form,
    .live-scoreboard {
        grid-template-columns: 1fr;
    }

    .hero-badges {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .league-table th,
    .league-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .top-scorer-row {
        grid-template-columns: auto 1fr;
    }

    .top-scorer-goals {
        grid-column: 2;
    }
}
