/* ==========================================================================
   EVENTOS (ev-*) — página Eventos + página individual do evento
   Carregado apenas nessas páginas (includes/eventos.php)
   ========================================================================== */

:root {
    --ev-blue:   #1f64bc;
    --ev-navy:   #071530;
    --ev-navy-2: #0e2d6b;
    --ev-yellow: #FFCB00;
    --ev-green:  #16a34a;
    --ev-red:    #dc2626;
    --ev-text:   #3d4756;
    --ev-muted:  #6b7280;
    --ev-border: #e5eaf3;
    --ev-bg:     #f4f7fc;
    --ev-radius: 14px;
    --ev-shadow: 0 2px 18px rgba(7, 21, 48, .07);
}

.ev-page [hidden],
.ev-lightbox[hidden] { display: none !important; }

.ev-page {
    background: var(--ev-bg);
    padding: 40px 0 72px;
    color: var(--ev-text);
}
.ev-page--single { padding-top: 32px; }

/* ── Títulos de secção ─────────────────────────────────────── */
.ev-section { padding-top: 48px; }
.ev-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ev-blue);
    margin: 0 0 14px;
}
.ev-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ev-navy);
    margin: 0 0 20px;
}
.ev-section-title i { color: var(--ev-blue); font-size: 18px; }

/* ── Estado (pill) ─────────────────────────────────────────── */
.ev-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    line-height: 1;
    white-space: nowrap;
}
.ev-status--a-decorrer { background: var(--ev-green); color: #fff; }
.ev-status--a-decorrer::before,
.ev-live-dot {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: ev-pulse 1.6s ease-in-out infinite;
}
.ev-live-dot { display: inline-block; background: var(--ev-green); }
.ev-status--brevemente { background: var(--ev-yellow); color: var(--ev-navy); }
.ev-status--concluido  { background: #e5e7eb; color: #4b5563; }

@keyframes ev-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .35; transform: scale(.75); }
}
@media (prefers-reduced-motion: reduce) {
    .ev-status--a-decorrer::before, .ev-live-dot { animation: none; }
}

.ev-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    background: #eaf1fc;
    color: var(--ev-blue);
}
.ev-tag--light { background: rgba(255,255,255,.12); color: #fff; }

/* ── Meta (datas, local) ───────────────────────────────────── */
.ev-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 14px;
    font-weight: 500;
}
.ev-meta i { color: var(--ev-blue); margin-right: 6px; width: 14px; text-align: center; }
.ev-meta--light { color: rgba(255,255,255,.85); }
.ev-meta--light i { color: var(--ev-yellow); }

/* ── Progresso / contagem ──────────────────────────────────── */
.ev-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    max-width: 420px;
}
.ev-progress__bar {
    flex: 1;
    height: 8px;
    border-radius: 8px;
    background: #e5eaf3;
    overflow: hidden;
}
.ev-progress__bar span {
    display: block;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--ev-blue), #3b82f6);
}
.ev-progress__label { font-size: 13px; font-weight: 700; color: var(--ev-navy); white-space: nowrap; }
.ev-progress--light .ev-progress__bar { background: rgba(255,255,255,.15); }
.ev-progress--light .ev-progress__bar span { background: var(--ev-yellow); }
.ev-progress--light .ev-progress__label { color: #fff; }

.ev-countdown { font-size: 14px; margin: 0 0 18px; color: var(--ev-text); }
.ev-countdown strong { font-size: 28px; font-weight: 800; color: var(--ev-blue); margin-right: 4px; }
.ev-countdown--light { color: rgba(255,255,255,.85); }
.ev-countdown--light strong { color: var(--ev-yellow); }

/* ── Botões / links ────────────────────────────────────────── */
.ev-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    border: 1px solid transparent;
}
.ev-btn--primary { background: var(--ev-blue); color: #fff; }
.ev-btn--primary:hover { background: var(--ev-navy-2); color: #fff; transform: translateY(-1px); }
.ev-btn--ghost { background: #fff; color: var(--ev-blue); border-color: #d0ddf7; }
.ev-btn--ghost:hover { background: #f0f4ff; color: var(--ev-blue); }

.ev-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ev-blue);
    text-decoration: none;
    cursor: pointer;
}
.ev-link:hover { color: var(--ev-navy-2); text-decoration: underline; }
.ev-link i { font-size: 11px; transition: transform .2s; }
.ev-link:hover i { transform: translateX(3px); }

/* ==========================================================================
   PÁGINA EVENTOS — destaque
   ========================================================================== */
.ev-featured__card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    background: #fff;
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow);
    overflow: hidden;
}
.ev-featured__media {
    display: block;
    background: var(--ev-navy);
    min-height: 320px;
}
.ev-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.ev-featured__card:hover .ev-featured__media img { transform: scale(1.03); }
.ev-featured__body { padding: 32px 36px; min-width: 0; }
.ev-featured__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ev-featured__title {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
}
.ev-featured__title a { color: var(--ev-navy); text-decoration: none; }
.ev-featured__title a:hover { color: var(--ev-blue); }
.ev-featured__excerpt { font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
.ev-featured__games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    padding: 18px 0;
    margin-bottom: 20px;
    border-top: 1px solid var(--ev-border);
    border-bottom: 1px solid var(--ev-border);
}
.ev-mini-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ev-muted);
    margin: 0 0 8px;
}
.ev-featured__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Agenda ────────────────────────────────────────────────── */
.ev-agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-agenda__item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: var(--ev-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.ev-agenda__item:hover { transform: translateX(4px); box-shadow: 0 6px 24px rgba(7,21,48,.1); }
.ev-agenda__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 8px;
    border-radius: 10px;
    background: var(--ev-blue);
    color: #fff;
    line-height: 1.1;
}
.ev-agenda__date strong { font-size: 24px; font-weight: 800; }
.ev-agenda__date span { font-size: 11px; text-transform: uppercase; opacity: .85; }
.ev-agenda__info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-agenda__title { font-size: 16px; font-weight: 700; color: var(--ev-navy); }
.ev-agenda__meta { font-size: 13px; color: var(--ev-muted); }
.ev-agenda__item > i { color: var(--ev-blue); }

/* ── Histórico: filtros ────────────────────────────────────── */
.ev-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 28px;
    box-shadow: var(--ev-shadow);
}
.ev-filtros__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ev-filtros__chips .n-tab-btn { background: none; cursor: pointer; font-family: inherit; }
.ev-filtros__chips .n-tab-btn.n-tab-btn--active { background: var(--ev-blue); }
.ev-filtros__right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ev-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}
.ev-search i { position: absolute; left: 14px; color: var(--ev-muted); font-size: 13px; pointer-events: none; }
.ev-search input {
    width: 240px;
    max-width: 100%;
    padding: 9px 14px 9px 36px;
    border: 1px solid var(--ev-border);
    border-radius: 50px;
    font-size: 13px;
    font-family: inherit;
    background: var(--ev-bg);
}
.ev-search input:focus { outline: none; border-color: var(--ev-blue); box-shadow: 0 0 0 3px rgba(31,100,188,.15); background: #fff; }

.ev-ano + .ev-ano { margin-top: 36px; }
.ev-ano__title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ev-navy);
    margin: 0 0 16px;
}
.ev-ano__title::after { content: ''; flex: 1; height: 1px; background: var(--ev-border); }
.ev-ano__title span { background: var(--ev-navy); color: #fff; padding: 4px 14px; border-radius: 50px; }

/* ── Cartões ───────────────────────────────────────────────── */
.ev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.ev-card { display: flex; }
.ev-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s, box-shadow .25s;
}
.ev-card__link:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(7,21,48,.12); }
.ev-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--ev-navy); overflow: hidden; }
.ev-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-card__media .ev-status { position: absolute; top: 12px; left: 12px; }
.ev-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, var(--ev-navy), var(--ev-blue));
    color: rgba(255,255,255,.35);
    font-size: 48px;
}
.ev-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; }
.ev-card__tipo { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ev-blue); margin-bottom: 6px; }
.ev-card__title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ev-navy); margin: 0 0 10px; }
.ev-card__meta { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--ev-muted); display: grid; gap: 4px; }
.ev-card__meta i { width: 14px; margin-right: 6px; color: var(--ev-blue); }
.ev-card__counts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ev-border);
    font-size: 12px;
    color: var(--ev-muted);
}
.ev-card__counts i { margin-right: 3px; }
.ev-card__go { margin-left: auto; font-weight: 700; color: var(--ev-blue); }

/* ==========================================================================
   PÁGINA DO EVENTO
   ========================================================================== */
.ev-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, var(--ev-navy) 0%, var(--ev-navy-2) 55%, var(--ev-blue) 100%);
    padding: 44px 0 52px;
}
.ev-hero__bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) saturate(1.2);
    opacity: .28;
}
.ev-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,21,48,.92) 0%, rgba(7,21,48,.6) 60%, rgba(7,21,48,.3) 100%);
}
.ev-hero__inner { position: relative; z-index: 1; }
.ev-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
}
.ev-hero__title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.3px;
    color: #fff;
    margin: 0 0 18px;
    max-width: 760px;
}
.ev-hero__stats { margin-top: 6px; }
.ev-hero__poster {
    margin: 0;
    width: 260px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    transform: rotate(2deg);
}
.ev-hero__poster img { display: block; width: 100%; height: auto; }

/* ── Barra de separadores ──────────────────────────────────── */
.ev-tabs {
    position: sticky;
    top: var(--ev-sticky-top, 0px);
    z-index: 900;
    background: #fff;
    border-bottom: 1px solid var(--ev-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ev-tabs__inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ev-tabs__inner::-webkit-scrollbar { display: none; }
.ev-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 16px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}
.ev-tab i { font-size: 13px; opacity: .7; }
.ev-tab:hover { color: var(--ev-blue); }
.ev-tab.is-active { color: var(--ev-blue); border-bottom-color: var(--ev-blue); }
.ev-tab.is-active i { opacity: 1; }
.ev-tab:focus-visible { outline: 2px solid var(--ev-blue); outline-offset: -4px; border-radius: 6px; }
.ev-tab__count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 50px;
    background: #eaf1fc;
    color: var(--ev-blue);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

/* ── Painéis (com JS: só o activo é visível) ───────────────── */
.ev-panel + .ev-panel { margin-top: 48px; }
.ev-js .ev-panel { display: none; margin-top: 0; }
.ev-js .ev-panel.is-active { display: block; animation: ev-fade .25s ease; }
@keyframes ev-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ev-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.ev-panel__head + .ev-gallery + .ev-panel__head { margin-top: 36px; }
.ev-panel__title { font-size: 22px; font-weight: 700; color: var(--ev-navy); margin: 0; display: flex; align-items: center; gap: 10px; }
.ev-panel__note { margin: 0; font-size: 13px; color: var(--ev-muted); }

/* ── Caixas ────────────────────────────────────────────────── */
.ev-box {
    background: #fff;
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow);
    padding: 22px 24px;
}
.ev-box + .ev-box { margin-top: 20px; }
.ev-box__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.ev-box__head .ev-section-title { margin: 0; }
.ev-box__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ev-navy);
    margin: 0 0 14px;
}
.ev-box__head .ev-box__title { margin: 0; }
.ev-box__title i { color: var(--ev-blue); }

/* ── Resumo ────────────────────────────────────────────────── */
.ev-resumo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.ev-content {
    background: #fff;
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow);
    padding: 26px 28px;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.ev-content > :last-child { margin-bottom: 0; }
.ev-content img { max-width: 100%; height: auto; border-radius: 8px; }
.ev-resumo__side { position: sticky; top: calc(var(--ev-sticky-top, 0px) + 76px); }
.ev-ficha dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.ev-ficha dt { color: var(--ev-muted); font-weight: 500; }
.ev-ficha dd { margin: 0; font-weight: 600; color: var(--ev-navy); }

.ev-lideres { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-lideres li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ev-lideres__grupo { font-size: 11px; font-weight: 700; color: var(--ev-muted); text-transform: uppercase; min-width: 64px; }
.ev-lideres__pts { margin-left: auto; font-weight: 700; color: var(--ev-blue); }

/* ── Emblema de equipa ─────────────────────────────────────── */
.ev-badge {
    --ev-hue: 215;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: hsl(var(--ev-hue) 55% 38%);
    color: #fff;
    font-weight: 800;
    letter-spacing: -.3px;
    overflow: hidden;
}
.ev-badge--sm { width: 30px; height: 30px; font-size: 9px; }
.ev-badge--md { width: 40px; height: 40px; font-size: 11px; }
.ev-badge--lg { width: 56px; height: 56px; font-size: 14px; }
.ev-badge--img { background: #fff; box-shadow: 0 0 0 1px var(--ev-border); }
.ev-badge--img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

/* ── Jogos ─────────────────────────────────────────────────── */
.ev-fase + .ev-fase { margin-top: 28px; }
.ev-fase__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ev-blue);
    margin: 0 0 12px;
}
.ev-fase__title::after { content: ''; flex: 1; height: 1px; background: var(--ev-border); }

.ev-jogos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev-jogo {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 110px minmax(0, 1fr) 120px;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--ev-border);
    border-radius: 12px;
    padding: 12px 18px;
}
.ev-box .ev-jogo { background: var(--ev-bg); border-color: transparent; }
.ev-jogo__quando { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ev-muted); line-height: 1.3; }
.ev-jogo__data { font-weight: 700; color: var(--ev-navy); }
.ev-jogo__hora { font-weight: 600; }
.ev-jogo__extra { font-size: 11px; }
.ev-jogo__equipa { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; color: var(--ev-text); }
.ev-jogo__equipa--casa { justify-content: flex-end; text-align: right; }
.ev-jogo__equipa.is-vencedor { color: var(--ev-navy); font-weight: 800; }
.ev-jogo__sigla { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-jogo__placar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 800;
    color: var(--ev-muted);
    font-variant-numeric: tabular-nums;
}
.ev-jogo__placar .is-vencedor { color: var(--ev-navy); }
.ev-jogo.is-final .ev-jogo__placar {
    background: var(--ev-navy);
    color: rgba(255,255,255,.6);
    border-radius: 8px;
    padding: 6px 10px;
}
.ev-jogo.is-final .ev-jogo__placar .is-vencedor { color: #fff; }
.ev-jogo__sep { font-weight: 400; opacity: .6; }
.ev-jogo__vs {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--ev-blue);
    background: #eaf1fc;
    border-radius: 6px;
    padding: 6px 12px;
}
.ev-jogo__estado {
    justify-self: end;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 50px;
    background: #f1f5f9;
    color: var(--ev-muted);
    white-space: nowrap;
}
.ev-jogo__estado--final { background: #dcfce7; color: #166534; }
.ev-jogo__estado--hoje { background: var(--ev-yellow); color: var(--ev-navy); }
.ev-jogo__estado--por-actualizar { background: #fef3c7; color: #92400e; }
.ev-jogo__estado--f-comparencia { background: #fee2e2; color: #991b1b; }

/* Versão compacta (destaque da página Eventos) */
.ev-jogo--compacto {
    grid-template-columns: 74px minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
    background: var(--ev-bg);
    border-color: transparent;
}
.ev-jogo--compacto .ev-jogo__placar { font-size: 15px; }
.ev-jogo--compacto.is-final .ev-jogo__placar { padding: 4px 8px; }
.ev-jogo--compacto .ev-jogo__equipa { font-size: 13px; gap: 6px; }
.ev-jogo--compacto .ev-badge--sm { width: 24px; height: 24px; font-size: 8px; }
.ev-jogo--compacto .ev-jogo__quando { font-size: 11px; }
.ev-jogos--compacto { gap: 6px; }

/* ── Classificação ─────────────────────────────────────────── */
.ev-tabelas { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 22px; }
.ev-tabela { background: #fff; border-radius: var(--ev-radius); box-shadow: var(--ev-shadow); overflow: hidden; }
.ev-tabela__title {
    margin: 0;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--ev-navy), var(--ev-blue));
}
.ev-tabela__scroll { overflow-x: auto; }
.ev-tabela table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ev-tabela th,
.ev-tabela td { padding: 11px 8px; text-align: center; border-bottom: 1px solid var(--ev-border); white-space: nowrap; }
.ev-tabela thead th { font-size: 11px; font-weight: 700; color: var(--ev-muted); background: #f8fafc; }
.ev-tabela abbr { text-decoration: none; cursor: help; }
.ev-tabela tbody tr:last-child > * { border-bottom: none; }
.ev-tabela tbody tr:hover { background: #f8fafc; }
.ev-tabela .ev-col-pos { width: 40px; font-weight: 700; color: var(--ev-muted); }
.ev-tabela .ev-col-team { text-align: left; }
.ev-tabela tbody .ev-col-team { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ev-navy); }
.ev-tabela .ev-col-pts { font-weight: 800; color: var(--ev-blue); background: rgba(31,100,188,.05); }
.ev-tabela .is-pos { color: var(--ev-green); font-weight: 600; }
.ev-tabela .is-neg { color: var(--ev-red); font-weight: 600; }
.ev-tabela tr.is-apurado .ev-col-pos { box-shadow: inset 4px 0 0 var(--ev-green); color: var(--ev-green); }
.ev-legenda { margin: 16px 0 0; font-size: 12px; color: var(--ev-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ev-legenda__apurado { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--ev-green); }

/* ── Equipas ───────────────────────────────────────────────── */
.ev-equipas-grupo + .ev-equipas-grupo { margin-top: 28px; }
.ev-equipas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.ev-equipa {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    background: #fff;
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow);
    padding: 24px 18px 18px;
    transition: transform .25s, box-shadow .25s;
}
.ev-equipa:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(7,21,48,.1); }
.ev-equipa .ev-badge--lg { width: 76px; height: 76px; font-size: 17px; box-shadow: 0 6px 16px rgba(7,21,48,.15); }
.ev-equipa .ev-badge--img { box-shadow: 0 0 0 1px var(--ev-border), 0 6px 16px rgba(7,21,48,.08); }
/* Texto ocupa o resto do cartão para o registo ficar alinhado no fundo */
.ev-equipa > div { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; width: 100%; min-width: 0; }
.ev-equipa__sigla { font-size: 17px; color: var(--ev-navy); }
.ev-equipa__nome { font-size: 12px; color: var(--ev-muted); line-height: 1.45; margin-bottom: 8px; }
.ev-equipa__registo {
    margin-top: auto;
    padding: 4px 12px;
    border-radius: 50px;
    background: #eaf1fc;
    font-size: 12px;
    font-weight: 600;
    color: var(--ev-blue);
    white-space: nowrap;
}

@media (max-width: 575px) {
    .ev-equipas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ev-equipa { padding: 18px 12px 14px; }
    .ev-equipa .ev-badge--lg { width: 60px; height: 60px; font-size: 14px; }
}

/* ── Galeria ───────────────────────────────────────────────── */
.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ev-gallery--strip { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ev-gallery__item {
    position: relative;
    display: block;
    padding: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--ev-navy);
    cursor: zoom-in;
}
.ev-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .3s; }
.ev-gallery__item:hover img { transform: scale(1.06); opacity: .9; }
.ev-gallery__item:focus-visible { outline: 3px solid var(--ev-yellow); outline-offset: 2px; }

/* ── Lightbox ──────────────────────────────────────────────── */
.ev-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 10, 24, .94);
    padding: 56px 72px;
}
.ev-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.ev-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.ev-lightbox__figure figcaption { color: rgba(255,255,255,.75); font-size: 13px; text-align: center; }
.ev-lightbox__close,
.ev-lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s;
}
.ev-lightbox__close:hover,
.ev-lightbox__nav:hover { background: rgba(255,255,255,.22); }
.ev-lightbox__close:focus-visible,
.ev-lightbox__nav:focus-visible { outline: 2px solid var(--ev-yellow); }
.ev-lightbox__close { top: 16px; right: 16px; }
.ev-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ev-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── Vídeos ────────────────────────────────────────────────── */
.ev-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ev-video { margin: 0; background: #fff; border-radius: var(--ev-radius); box-shadow: var(--ev-shadow); overflow: hidden; }
.ev-video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ev-video__frame iframe,
.ev-video__yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ev-video__yt { padding: 0; cursor: pointer; background: #000; }
.ev-video__yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ev-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ev-yellow);
    color: var(--ev-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
    transition: transform .2s;
}
.ev-video__yt:hover .ev-video__play { transform: translate(-50%, -50%) scale(1.08); }
.ev-video figcaption { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--ev-navy); }

/* ── Documentos ────────────────────────────────────────────── */
.ev-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-doc {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--ev-shadow);
    padding: 16px 20px;
    text-decoration: none;
    color: var(--ev-navy);
    transition: transform .2s;
}
.ev-doc:hover { transform: translateX(4px); color: var(--ev-blue); }
.ev-doc__icon { font-size: 24px; color: var(--ev-red); }
.ev-doc__title { flex: 1; font-weight: 600; }
.ev-doc__action { font-size: 13px; font-weight: 600; color: var(--ev-blue); white-space: nowrap; }

/* ── Outros eventos ────────────────────────────────────────── */
.ev-outros { padding-top: 56px; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1199px) {
    .ev-hero__poster { width: 210px; }
}

@media (max-width: 991px) {
    .ev-featured__card { grid-template-columns: 1fr; }
    .ev-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
    .ev-featured__body { padding: 24px; }
    .ev-resumo { grid-template-columns: 1fr; }
    .ev-resumo__side { position: static; }
    .ev-hero__grid { grid-template-columns: 1fr; gap: 28px; }
    .ev-hero__poster { display: none; }
    .ev-tabelas { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .ev-page { padding: 28px 0 56px; }
    .ev-section { padding-top: 36px; }
    .ev-section-title,
    .ev-panel__title { font-size: 19px; }
    .ev-hero { padding: 32px 0 36px; }
    .ev-tab { padding: 14px 12px 12px; font-size: 13px; }

    .ev-filtros { flex-direction: column; align-items: stretch; }
    .ev-filtros__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .ev-filtros__right { flex-direction: column; align-items: stretch; }
    .ev-search input { width: 100%; }

    /* Jogo: data por cima, equipas e resultado em linha */
    .ev-jogo {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas:
            "quando quando estado"
            "casa   placar fora";
        gap: 10px 8px;
        padding: 12px 14px;
    }
    .ev-jogo__quando { grid-area: quando; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
    .ev-jogo__estado { grid-area: estado; }
    .ev-jogo__equipa--casa { grid-area: casa; }
    .ev-jogo__placar { grid-area: placar; font-size: 17px; }
    .ev-jogo__equipa--fora { grid-area: fora; }

    .ev-jogo--compacto {
        grid-template-areas: "quando quando quando" "casa placar fora";
    }

    .ev-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ev-gallery--strip { grid-template-columns: repeat(2, 1fr); }
    .ev-videos { grid-template-columns: 1fr; }
    .ev-lightbox { padding: 56px 8px; }
    .ev-lightbox__nav { top: auto; bottom: 16px; transform: none; }
    .ev-lightbox__nav--prev { left: calc(50% - 56px); }
    .ev-lightbox__nav--next { right: calc(50% - 56px); }
    .ev-tabela th, .ev-tabela td { padding: 10px 6px; font-size: 13px; }
    .ev-box { padding: 18px; }
    .ev-content { padding: 20px; }
}
