:root {
    --ec-yellow: #ffd100;
    --ec-blue: #003893;
    --ec-red: #ce1126;
    --ec-dark: #07142f;
    --ec-soft: #f7f9ff;
    --glass: rgba(255, 255, 255, 0.94);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 209, 0, 0.32), transparent 32%),
        radial-gradient(circle at top right, rgba(206, 17, 38, 0.22), transparent 30%),
        linear-gradient(135deg, #07142f 0%, #003893 46%, #07142f 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ec-top-line {
    height: 8px;
    background: linear-gradient(
        90deg,
        var(--ec-yellow) 0%,
        var(--ec-yellow) 50%,
        var(--ec-blue) 50%,
        var(--ec-blue) 75%,
        var(--ec-red) 75%,
        var(--ec-red) 100%
    );
}

.ec-navbar {
    background: rgba(7, 20, 47, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ec-navbar .navbar-brand,
.ec-navbar .nav-link {
    color: #fff !important;
}

.ec-navbar .navbar-brand {
    font-weight: 900;
    letter-spacing: .2px;
}

.ec-container {
    padding-top: 32px;
    padding-bottom: 48px;
}

.ec-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 209, 0, 0.95), rgba(255, 209, 0, 0.76)),
        url("https://images.unsplash.com/photo-1575361204480-aadea25e6e68?auto=format&fit=crop&w=1600&q=70");
    background-size: cover;
    background-position: center;
    color: var(--ec-dark);
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.ec-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at bottom right, rgba(206, 17, 38, .28), transparent 32%),
        linear-gradient(90deg, rgba(0, 56, 147, .18), transparent);
    pointer-events: none;
}

.ec-hero > * {
    position: relative;
    z-index: 1;
}

.ec-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255,255,255,.72);
    color: var(--ec-blue);
    font-weight: 900;
}

.ec-title {
    font-weight: 950;
    letter-spacing: -.8px;
}

.ec-subtitle {
    color: rgba(7,20,47,.84);
    font-size: 1.08rem;
}

.ec-card {
    border: 0;
    border-radius: 24px;
    background: var(--glass);
    box-shadow: 0 20px 48px rgba(0,0,0,.20);
    overflow: hidden;
}

.ec-card-header {
    background: linear-gradient(90deg, var(--ec-yellow), #ffe66b);
    border-bottom: 4px solid var(--ec-blue);
    color: var(--ec-dark);
    font-weight: 900;
}

.ec-flag-line {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--ec-yellow) 0%,
        var(--ec-yellow) 50%,
        var(--ec-blue) 50%,
        var(--ec-blue) 75%,
        var(--ec-red) 75%,
        var(--ec-red) 100%
    );
}

.ec-section-title {
    color: #fff;
    font-weight: 900;
    text-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.btn-ec-yellow {
    border: 0;
    background: linear-gradient(135deg, var(--ec-yellow), #ffb703);
    color: var(--ec-dark);
    font-weight: 900;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 14px 28px rgba(255,209,0,.24);
}

.btn-ec-yellow:hover {
    color: var(--ec-dark);
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.btn-ec-blue {
    border: 0;
    background: linear-gradient(135deg, var(--ec-blue), #0b56d0);
    color: white;
    font-weight: 850;
    border-radius: 14px;
    padding: 12px 18px;
}

.btn-ec-blue:hover {
    color: white;
    transform: translateY(-1px);
}

.btn-ec-red {
    border: 0;
    background: linear-gradient(135deg, var(--ec-red), #ef233c);
    color: white;
    font-weight: 850;
    border-radius: 14px;
    padding: 12px 18px;
}

.btn-ec-red:hover {
    color: white;
    transform: translateY(-1px);
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(0,56,147,.18);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ec-blue);
    box-shadow: 0 0 0 .2rem rgba(0,56,147,.16);
}

.match-card {
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0,56,147,.12);
    box-shadow: 0 12px 32px rgba(7,20,47,.10);
}

.match-date {
    color: var(--ec-blue);
    font-weight: 850;
}

.match-teams {
    color: var(--ec-dark);
    font-weight: 950;
}

.ec-footer {
    color: rgba(255,255,255,.78);
    font-size: .92rem;
}

@media (max-width: 768px) {
    .ec-hero {
        border-radius: 20px;
    }

    .ec-title {
        font-size: 2rem;
    }
}
