/*
 Theme Name:   Copa CDHU 2026
 Theme URI:    https://copacdhu.cdhu.sp.gov.br/
 Description:  Tema filho do Rookie customizado para a Copa CDHU 2026.
 Author:       Rodrigo Gonçalves
 Template:     Rookie-master
 Version:      6.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;600;800&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #000000;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --border-color: #2a2a2a;
    --text-main: #ffffff;
    --text-muted: #888888;

    --cdhu-red: #e3000f;
    --cdhu-red-glow: rgba(227, 0, 15, 0.4);
    --cdhu-grey: #333333;
    --cdhu-white: #ffffff;
    --cdhu-black: #000000;

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* ========================================================
   BASE SYSTEM E TYPOGRAPHY
   ======================================================== */
body,
html {
    font-family: var(--font-body);
}

p,
span,
div,
a,
li,
button,
input {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

.cdhu-pro-wrapper {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    width: 100%;
}

/* ========================================================
   HEADER / MEGA MENU CUSTOMIZADO
   ======================================================== */
.cdhu-pro-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgb(0 0 0 / 90%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 9990;
    opacity: 0.9;
    /* Abaixo do WP Admin Bar (99999) */
}

/* Correção para quando o usuário estiver logado no painel do WordPress */
.admin-bar .cdhu-pro-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .cdhu-pro-header {
        top: 46px;
    }
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 32px;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1;
}

.mega-menu {
    display: flex;
    gap: 30px;
}

.mega-menu a {
    color: #b1b1b1;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.mega-menu a:hover,
.mega-menu a.active {
    color: #fff;
}

.mega-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cdhu-red);
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.cdhu-pro-hero {
    padding: 140px 40px 30px;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vw;
    background: radial-gradient(circle, var(--cdhu-red-glow) 0%, rgba(0, 0, 0, 0) 50%);
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.jogos-bg-glow {
    position: absolute;
    top: 40vw;
    left: 0;
    width: 100%;
    height: 50vw;
    background: radial-gradient(circle, rgb(255 0 59 / 30%) 0%, rgba(0, 0, 0, 0) 60%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cdhu-red);
    border: 1px solid var(--cdhu-red);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 30px;
    background: rgba(227, 0, 15, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--cdhu-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cdhu-red);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 0, 15, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(227, 0, 15, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 0, 15, 0);
    }
}

.glitch-title {
    font-family: var(--font-heading);
    font-size: clamp(50px, 9.7vw, 120px);
    line-height: 0.95;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.glitch-subtitle {
    font-family: var(--font-heading);
    font-size: 120px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.9rem;
    margin: -35px 0 0 0;
    border: 0;
    padding: 0;
    display: inline-block;
}

.hero-content p {
    font-size: 18px;
    color: var(--cdhu-red);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--cdhu-white);
    color: var(--cdhu-red);
    font-family: var(--font-mono);
    font-weight: 700;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #b3000b;
    color: #fff;
    transform: translateY(-2px);
}

/* GLASS MATCH CARD */
.glass-match-card {
    background: rgb(0 0 0 / 80%);
    backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-match-card:hover {
    transform: translateY(-4px);
    border-color: var(--cdhu-red);
}

.glass-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cdhu-red);
}

.glass-header {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-align: center;
}

/* ========================================================
   TICKER (NEWSFEED INFINITO)
   ======================================================== */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--cdhu-white);
    padding: 15px 0;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--cdhu-red);
    padding: 0 40px;
    letter-spacing: 2px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================================
   TICKER (NEWSFEED INFINITO)
   ======================================================== */
.ticker-wrap-2026 {
    position: absolute;
    bottom: 45px;
    left: 270px;
    max-width: 20.4%;
    opacity: 1;
    overflow: hidden;
    padding: 30px 0px;
}

.ticker-2026 {
    display: flex;
    white-space: nowrap;
    /* animation: ticker-2026 40s linear infinite; */
}

.ticker-2026-item {
    font-family: var(--font-heading);
    font-size: 18px;
    color: rgb(255, 255, 255);
    letter-spacing: 5px;
    padding: 0px 7px;
}

@keyframes ticker-2026 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================================
   MAIN CONTENT GRIDS
   ======================================================== */
.cdhu-pro-content {
    padding: 30px 40px 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: -7px 0 0 0;
    border: 0;
    padding-bottom: 15px;
    display: inline-block;
}

/* ========================================================
   OVERRIDE RADICAL DO SPORTSPRESS (TIRAR TODA A SUJEIRA)
   ======================================================== */
.sp-dark-override .sp-template,
.sp-dark-override table,
.sp-dark-override tbody,
.sp-dark-override tr,
.sp-dark-override td,
.sp-dark-override th,
.sp-dark-override .alternate {
    background: transparent !important;
    background-color: transparent !important;
    line-height: 2.1em;
}

.sp-dark-override .sp-table-caption {
    display: none !important;
}

/* Forçar links para branco e remover ciano/azul */
.sp-dark-override a,
.sp-dark-override .sp-event-title a,
.sp-dark-override .sp-team-name a {
    color: #fff !important;
    text-decoration: none !important;
}

/* Blocks de Jogos (Suporte para divs e table rows) */
.sp-dark-override .sp-event-block,
.sp-dark-override tr.sp-row td {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin-bottom: 0px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    transition: transform 0.3s, border-color 0.3s;
    text-align: center;
}

.sp-dark-override tr.sp-row {
    display: block !important;
    margin-bottom: 20px !important;
}

.sp-dark-override table.sp-event-blocks {
    border: none !important;
}

.sp-dark-override .sp-event-block:hover,
.sp-dark-override tr.sp-row td:hover {
    transform: translateY(-4px);
    border-color: var(--cdhu-red) !important;
}

.sp-dark-override .sp-event-results {
    background: transparent !important;
    border: none !important;
    padding: 5px 0 !important;
}

/* O PLACAR */
.sp-dark-override .sp-event-results a,
.sp-dark-override .sp-event-results span {
    font-family: var(--font-heading) !important;
    font-size: 26px !important;
    letter-spacing: 2px !important;
    color: #fff !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* Nomes dos Times (Título do Evento) */
.sp-dark-override .sp-event-title a,
.sp-dark-override .sp-team-name a {
    font-family: var(--font-body) !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    text-decoration: none !important;
    display: block;
    margin-top: 5px;
}

/* Logos */
.sp-dark-override .team-logo img {
    max-width: 35px !important;
    height: auto !important;
}

/* Metadados (Data, Liga, Local) */
.sp-dark-override .sp-event-league,
.sp-dark-override .sp-event-date a,
.sp-dark-override .sp-event-venue,
.sp-dark-override .sp-event-season,
.sp-dark-override time {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: block;
    margin-bottom: 2px;
}

/* Tabela de Classificação - Estilo Claro (Referência Splash) */
.sp-dark-override .sp-league-table {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 0px !important;
    overflow: hidden;
    width: 100% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sp-dark-override .sp-league-table th {
    background: var(--cdhu-red) !important;
    background-color: var(--cdhu-red) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    padding: 15px 15px !important;
    border: none !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
}

/* Alinhar à esquerda apenas Posição e Clube */
.sp-dark-override .sp-league-table th.data-rank,
.sp-dark-override .sp-league-table th.data-name {
    text-align: left !important;
}

.sp-dark-override .sp-league-table th.data-p,
.sp-dark-override .sp-league-table th.data-w,
.sp-dark-override .sp-league-table th.data-d,
.sp-dark-override .sp-league-table th.data-l,
.sp-dark-override .sp-league-table th.data-pts {
    text-align: center !important;
    min-width: 36px;
}

.sp-dark-override .sp-league-table td {
    padding: 10px 10px !important;
    border-bottom: 1px solid #eaeaea !important;
    color: #333 !important;
    font-family: var(--font-body) !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    text-align: center !important;
}

.sp-dark-override .sp-league-table td.data-rank,
.sp-dark-override .sp-league-table td.data-name {
    text-align: left !important;
}

.sp-dark-override .sp-league-table td.data-p,
.sp-dark-override .sp-league-table td.data-w,
.sp-dark-override .sp-league-table td.data-d,
.sp-dark-override .sp-league-table td.data-l {
    text-align: center !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

.sp-dark-override .sp-league-table th.data-pts,
.sp-dark-override .sp-league-table td.data-pts {
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: var(--cdhu-black) !important;
}

/* Logos maiores */
.sp-dark-override .sp-league-table td.data-name .team-logo img {
    max-width: 30px !important;
    margin-right: 10px;
    vertical-align: middle;
}

/* Linhas alternadas */
.sp-dark-override .sp-league-table tr:nth-child(odd) td {
    background: #f9f9f9 !important;
    background-color: #f9f9f9 !important;
}

.sp-dark-override .sp-league-table tr:nth-child(even) td {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.sp-dark-override .sp-league-table tr:hover td {
    background: #f1f1f1 !important;
    background-color: #f1f1f1 !important;
}

.sp-dark-override .sp-league-table a {
    color: #333 !important;
    text-decoration: none !important;
}

/* ========================================================
   FOOTER CDHU
   ======================================================== */
.cdhu-pro-footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 40px;
    background: #000;
    font-family: var(--font-body);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr;
    gap: 60px;
}

.footer-col {
    color: #fff;
}

/* Coluna 1 - Info */
.footer-logo {
    font-family: var(--font-heading);
    font-size: 52px;
    color: #fff;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.col-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.footer-heading-small {
    font-family: var(--font-heading);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 30px 0 15px;
}

/* Coluna 2 - Links */
.footer-heading {
    font-family: var(--font-heading);
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 0;
}

.footer-nav a {
    color: var(--cdhu-red);
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Coluna 3 - Redes Sociais e Legal */
.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.fb {
    background: #1877f2;
}

.social-icon.ig {
    background: #e4405f;
}

.social-icon.yt {
    background: #ff0000;
}

.social-icon.fl {
    background: #0063dc;
}

.social-icon.x {
    background: #000000;
    border: 1px solid #333;
}

.mt-40 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.footer-legal {
    margin-top: 50px;
}

.copyright {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 15px !important;
    text-transform: uppercase;
}

.disclaimer {
    font-size: 13px !important;
    color: #888888 !important;
    line-height: 1.6 !important;
}

/* ========================================================
   GRID DAS TABELAS DE CLASSIFICAÇÃO
   ======================================================== */
.league-tables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.league-table-title {
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--cdhu-red);
    padding-bottom: 10px;
    text-transform: uppercase;
}

/* ========================================================
   FIQUE POR DENTRO (TABS)
   ======================================================== */
.cdhu-pro-news {
    padding: 80px 0 0 0;
    background: #000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--cdhu-red);
    border-color: var(--cdhu-red);
    color: #fff;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lista de Notícias */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-title {
    margin: 0;
}

.news-title a {
    color: var(--cdhu-red);
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 100;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: opacity 0.3s;
    line-height: 1.3;
    display: block;
    margin-bottom: 15px;
}

.news-title a:hover {
    opacity: 0.8;
}

.news-meta {
    margin: 10px 0;
    color: #888;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
}

.news-excerpt {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
}

.news-link {
    color: #fff;
    text-decoration: underline;
    font-size: 14px;
    word-break: break-all;
    display: inline-block;
    margin-top: 10px;
}

/* Grid de Fotos / Videos */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.photo-card {
    height: 220px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.photo-card:hover {
    transform: translateY(-5px);
    border-color: var(--cdhu-red);
}

.photo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    box-sizing: border-box;
    height: 100%;
}

.photo-card-overlay h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.4;
}

.btn-album {
    background: var(--cdhu-red);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

.btn-album:hover {
    background: #b0000a;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

/* ========================================================
   RESPONSIVO
   ======================================================== */
@media (max-width: 1024px) {

    .hero-container,
    .grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
        top: 13rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cdhu-pro-hero {
        padding-top: 100px;
    }

    .glitch-title {
        font-size: 50px;
    }

    .cdhu-pro-header {
        position: static;
    }

    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px 20px;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mega-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        border-top: 1px solid #2a2a2a;
        padding: 10px 0;
        margin-top: 10px;
        gap: 0;
    }

    .mega-menu.active {
        display: flex !important;
    }

    .mega-menu a {
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }
}

/* Custom Match Card */
.cmc-league {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.cmc-datetime {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--cdhu-white);
    margin-bottom: 15px;
    text-transform: uppercase;
    display: inline;
    float: right;
}

.cmc-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cmc-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cmc-team:first-child {
    justify-content: flex-end;
}

.cmc-team:last-child {
    justify-content: flex-start;
}

.cmc-team-name {
    font-family: var(--font-heading);
    font-size: 15px;
    color: #ff0000;
    text-transform: uppercase;
}

.cmc-logo {
    width: 45px;
    height: auto;
}

.cmc-vs {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 15px;
}

/* Custom List Match Card (Novo Design Referência) */
.custom-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px !important;
    margin-bottom: 15px;
    transition: background 0.3s ease, transform 0.3s;
    background: rgba(29, 29, 29, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(29, 29, 29, 0.3);
}

/* .custom-list-card:hover {
    background: #313443 !important;
    transform: translateY(-2px);
} */

.clc-logo-left,
.clc-logo-right {
    flex: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: start;
}

.clc-logo-left img,
.clc-logo-right img {
    max-width: 80px;
    height: auto;
}

.clc-center-info {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.clc-date {
    font-family: var(--font-body);
    font-size: 15px;
    color: #f1f1f1;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.clc-time {
    font-family: var(--font-heading);
    font-size: 40px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1;
    letter-spacing: 1px;
}

.clc-teams-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.2;
}

/* VS Icon Styling */
.clc-vs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 8px;
    vertical-align: middle;
    color: #ffffff;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.clc-vs-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.clc-vs-icon svg path {
    fill: currentColor;
}

/* Light Variation for Custom List Card */
.custom-list-card-light {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff !important;
    border-bottom: 5px solid var(--cdhu-red);
    border-radius: 0;
    padding: 20px 25px !important;
    margin-bottom: 15px;
    transition: background 0.3s ease, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333 !important;
}

.custom-list-card-light .clc-date {
    color: #666 !important;
}

.custom-list-card-light .clc-time {
    color: #000 !important;
}

.custom-list-card-light .clc-teams-text {
    color: #333 !important;
}

/* Adaptação da cor do ícone VS em locais de fundo branco ou claro */
.custom-list-card-light .clc-vs-icon,
.clc-vs-icon.is-light,
.bg-white .clc-vs-icon,
.has-white-background .clc-vs-icon,
.light-theme .clc-vs-icon {
    color: #111111 !important;
}

.custom-list-card-light .clc-vs-icon svg path,
.clc-vs-icon.is-light svg path,
.bg-white .clc-vs-icon svg path,
.has-white-background .clc-vs-icon svg path,
.light-theme .clc-vs-icon svg path {
    fill: #111111 !important;
}

/* Tabs System */
.cdhu-tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
    flex-wrap: wrap;
}

.cdhu-tab-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 16px;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.cdhu-tab-btn:hover {
    color: var(--cdhu-red);
    background-color: var(--cdhu-white);
}

.cdhu-tab-btn.active {
    color: var(--cdhu-red);
    background-color: var(--cdhu-white);
    border-bottom-color: var(--cdhu-red);
}

/* TEMA PRO MAX - GLOBAL RESET */
html,
body {
    background-color: #070709 !important;
}

#masthead,
.site-header,
#colophon,
.site-footer,
.site-info,
.site-branding {
    display: none !important;
}

.site,
#page,
.site-content,
#content,
.wrapper {
    max-width: 100% !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000000 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Fix SportsPress Match Header (Single Event) */
body .sp-template .sp-result,
body .sp-event-results .sp-result,
body .sp-template-event-blocks .sp-result {
    background-color: var(--cdhu-red) !important;
    background: var(--cdhu-red) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 20px !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

body .sp-template-event-blocks table.sp-event-blocks {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

body .sp-template-event-blocks table.sp-event-blocks tbody,
body .sp-template-event-blocks table.sp-event-blocks tr {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

body .sp-template-event-blocks table.sp-event-blocks td {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    padding: 10px !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

body .sp-team-name {
    white-space: nowrap !important;
    font-size: 24px !important;
    text-transform: uppercase !important;
    display: inline-block !important;
}

body .sp-event-results-separator {
    color: #fff !important;
    margin: 0 15px !important;
}

/* Custom Scrollbar for Matches List (Show approx 3 items) */
.sp-matches-list {
    max-height: 515px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #313131 rgb(0 0 0 / 5%);
}

/* WebKit (Chrome, Safari, Edge) Custom Scrollbar */
.sp-matches-list::-webkit-scrollbar {
    width: 6px;
}

.sp-matches-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.sp-matches-list::-webkit-scrollbar-thumb {
    background: var(--cdhu-red);
    border-radius: 4px;
}

.sp-matches-list::-webkit-scrollbar-thumb:hover {
    background: #ff4d5a;
}

/* ==========================================================================
   Bento Grid News Section (FIQUE POR DENTRO)
   ========================================================================== */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: 20px;
}

.news-header-text {
    flex: 1;
}

.news-header-text .section-title {
    margin-bottom: 0;
}

.news-header-desc {
    color: #ccc;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.news-header-action {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

.news-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 50px;
    padding-bottom: 30px;
}

.news-featured {
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    min-height: 70vh;
}

.news-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.news-featured .news-overlay {
    position: relative;
    padding: 30px;
    z-index: 1;
}

.news-badge {
    background: var(--cdhu-red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 12px;
}

.news-title {
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.news-featured .news-title {
    font-size: 26px;
    font-weight: 600;
    font-family: sans-serif;
    /* fallback/cleaner font */
    line-height: 1.3;
}

.news-featured .news-title a {
    color: #fff;
    text-decoration: none;
}

.news-featured .news-title a:hover {
    color: #ccc;
}

.news-secondary-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.news-secondary-item {
    display: flex;
    gap: 20px;
    background: #18181b;
    border-radius: 8px;
    overflow: hidden;
    min-height: 140px;
    transition: transform 0.2s ease;
}

.news-secondary-item:hover {
    transform: translateY(-3px);
}

.news-secondary-item .news-thumb {
    width: 220px;
    background-size: cover;
    background-position: center;
}

.news-secondary-item .news-content {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-secondary-item .news-title {
    font-size: 16px;
    font-weight: 600;
    font-family: sans-serif;
    /* fallback/cleaner font */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-secondary-item .news-title a {
    color: #fff;
    text-decoration: none;
}

.news-secondary-item .news-title a:hover {
    color: var(--cdhu-red);
}

.news-meta {
    font-size: 13px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-author {
    font-weight: 600;
    color: #ddd;
}

@media (max-width: 992px) {
    .news-bento-grid {
        grid-template-columns: 1fr;
    }

    .news-featured {
        min-height: 250px;
    }

    .news-secondary-item {
        flex-direction: column !important;
        gap: 0 !important;
        height: auto !important;
    }

    .news-secondary-item .news-thumb {
        width: 100% !important;
        height: 180px !important;
        border-radius: 8px 8px 0 0;
    }

    .news-secondary-item .news-content {
        padding: 20px !important;
        width: 100%;
        align-items: flex-start;
    }

    .news-secondary-item .news-badge {
        margin-bottom: 12px !important;
    }

    .news-secondary-item .news-title {
        font-size: 20px !important;
        line-height: 1.2 !important;
        white-space: normal;
        -webkit-line-clamp: 3;
        margin-bottom: 15px;
    }
}

/* ==========================================================================
   Saiu na Mídia Section
   ========================================================================== */
.media-grid {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.media-info {
    flex: 1 1 35%;
}

.media-desc {
    color: #080808;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.btn-primary {
    background: var(--cdhu-red);
    color: var(--cdhu-white);
    font-family: var(--font-mono);
    font-weight: 700;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--cdhu-black);
    color: #fff;
}

.media-list {
    flex: 1 1 65%;
    display: flex;
    flex-direction: column;
}

.media-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0 10px 0;
}

.media-item:first-child {
    padding-top: 0;
}

.media-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.media-date {
    font-size: 13px;
    color: #676767;
    margin-bottom: 12px;
}

.media-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 100;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.media-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.media-title a:hover {
    color: var(--cdhu-red);
}

.media-excerpt {
    color: #5b5b5b;
    font-size: 13px;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .media-grid {
        flex-direction: column;
        gap: 40px;
    }
}

/* ==========================================================================
   MULTIMEDIA SECTION (FOTOS E VÍDEOS)
   ========================================================================== */
.multimedia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.multimedia-card {
    position: relative;
    border-radius: 8px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title-multimedia {
    font-family: var(--font-heading);
    font-size: 42px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: -7px 0 0 0;
    border: 0;
    padding-bottom: 15px;
    display: inline-block;
    position: absolute;
    top: -60px;
    left: 0;
    z-index: 9980;
}

.multimedia-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.multimedia-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.5s ease;
}

.multimedia-card:hover .multimedia-bg {
    transform: scale(1.05);
}

.multimedia-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.multimedia-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.multimedia-icon {
    font-size: 32px;
    margin-bottom: 15px;
    background: var(--cdhu-red);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.multimedia-title {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    color: #fff;
    font-family: sans-serif;
    line-height: 2.3rem;
}

.multimedia-desc {
    font-size: 16px;
    color: #ccc;
    margin: 0 0 25px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

    /* Hero Fixes */
    .glitch-title {
        font-size: 46px;
    }

    .glitch-subtitle {
        font-size: 96px;
        letter-spacing: 0.3rem;
        margin-top: -25px;
        margin: -25px 0 0 0px;
    }

    .cdhu-pro-hero {
        padding: 20px 20px 40px;
        min-height: 39vh;
        background-size: cover !important;
        background-position: 89% !important;
    }

    /* Containers */
    .cdhu-pro-content,
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Ticker 2026 overflow fix */
    .ticker-wrap-2026 {
        display: block;
        position: relative;
        left: 0;
        width: 100vw;
        max-width: 90vw;
        margin-left: -10px;
        overflow: hidden;
        bottom: 64px;
    }

    .ticker-2026 {
        display: flex;
        white-space: nowrap;
        /* animation: ticker-2026 40s linear infinite; */
    }

    .ticker-2026-item {
        font-family: var(--font-heading);
        font-size: 16px;
        color: #ffffff;
        padding: 0 7px;
        letter-spacing: 5px;
    }

    /* Titles */
    .section-title,
    .section-title-multimedia {
        font-size: 28px !important;
    }

    .section-title span,
    .section-title-multimedia span {
        font-size: 16px !important;
    }

    /* Match Cards (Jogos) */
    .custom-list-card,
    .custom-list-card-light {
        padding: 15px !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .clc-logo-left,
    .clc-logo-right {
        display: none !important;
        /* Esconde logo duplicado/vazio se quebrar o layout */
    }

    .clc-time {
        font-size: 28px !important;
        margin: 5px 0;
    }

    .clc-teams-text {
        font-size: 14px !important;
        margin-bottom: 10px;
        white-space: normal !important;
    }

    /* Tables Grid */
    .league-tables-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Tabs Quebra de linha no mobile */
    .cdhu-tabs-header {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 10px;
    }

    .cdhu-tab-btn {
        flex: 1 1 auto;
        text-align: center;
        white-space: normal;
        padding: 6px;
        font-size: 13px;
    }

    /* News Bento List Tweaks */
    .news-secondary-item .news-thumb {
        width: 90px;
        height: 90px;
    }

    .news-secondary-item .news-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .news-featured {
        min-height: 220px;
    }

    /* Adjust buttons on small cards */
    .news-secondary-item .btn-primary {
        padding: 6px 10px !important;
        font-size: 9px !important;
    }

    /* Wrap Team Names in Match Cards */
    body .sp-team-name {
        white-space: normal !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        text-align: center;
    }

    body .sp-template-event-blocks table.sp-event-blocks td {
        white-space: normal !important;
    }

    /* Footer Tweaks */
    .footer-col {
        text-align: center;
    }

    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-copyright p {
        font-size: 13px !important;
    }
}

/* ========================================================
   CARROSSEL DE JOGOS
   ======================================================== */
.custom-matches-carousel-wrapper {
    position: relative;
    margin: 0 auto;
}

.custom-matches-carousel {
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-bottom: 5px;
}

.custom-matches-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-nav-btn {
    background-color: var(--cdhu-red);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.carousel-nav-btn:hover {
    background-color: #b31010;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.left {
    left: -20px;
}

.carousel-nav-btn.right {
    right: -20px;
}

.carousel-card-item {
    text-decoration: none;
    color: inherit;
    min-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .carousel-nav-btn {
        display: none;
    }

    .cdhu-pro-carousel {
        padding: 40px 0 10px !important;
    }

    .cdhu-pro-carousel-item {
        gap: 20px !important;
        padding: 0 15px !important;
    }

    .custom-matches-carousel {
        gap: 10px !important;
        padding-bottom: 5px !important;
    }

    .carousel-card-item {
        min-width: 85vw;
        margin-right: 0;
    }
}

/* ==========================================================================
   STATS / NÚMEROS DA COPA SECTION
   ========================================================================== */
.cdhu-pro-stats {
    background: #08080a;
    padding: 60px 0;
    border-top: 1px solid #1a1a1f;
    border-bottom: 0px;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 15px;
    transition: transform 0.3s ease;
}

@media (min-width: 1025px) {
    .stats-item {
        justify-content: center;
    }
}

@media (max-width: 1024px) and (min-width: 601px) {
    .stats-item {
        justify-content: center;
    }
}

.stats-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cdhu-red);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.stats-icon {
    width: 52px;
    height: 52px;
}

.stats-info {
    display: flex;
    flex-direction: column;
}

.stats-number {
    font-family: var(--font-heading);
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1;
    color: var(--cdhu-white);
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.stats-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.stats-item:hover {
    transform: translateY(-3px);
}

.stats-item:hover .stats-icon-wrapper {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--cdhu-red-glow));
}

.stats-item:hover .stats-number {
    color: var(--cdhu-red);
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 20px;
    }
}

@media (max-width: 600px) {
    .cdhu-pro-stats {
        padding: 40px 0;
    }

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

    .stats-item {
        gap: 12px;
        padding: 0;
        justify-content: flex-start;
    }

    .stats-icon {
        width: 38px;
        height: 38px;
    }

    .stats-number {
        font-size: 28px;
    }

    .stats-label {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   Single Match - Dark Athletic Bento Theme
   ========================================================================== */
.cdhu-single-match-view {
    background-color: var(--bg-dark);
    min-height: 100vh;
}

/* Page Header / Título da Página */
.cdhu-page-header {
    padding: 150px 20px 40px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(227, 0, 15, 0.15) 0%, transparent 60%);
    box-sizing: border-box;
}

.admin-bar .cdhu-page-header {
    padding-top: 180px;
}

.cdhu-page-title {
    font-family: var(--font-heading);
    font-size: clamp(38px, 5vw, 56px);
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
}

.cdhu-page-subtitle {
    color: var(--cdhu-red);
    font-family: var(--font-heading);
    font-weight: 400;
}

.match-hero-container {
    max-width: 1000px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(145deg, #111111 0%, #0a0a0a 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.match-hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cdhu-red);
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
    text-align: center;
}

.team-logo-wrap {
    width: 130px;
    height: 130px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    box-sizing: border-box;
}

.team-logo-wrap img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 26px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.15;
}

.match-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    z-index: 2;
}

.match-score {
    font-family: var(--font-heading);
    font-size: 54px;
    color: #fff;
    background: var(--cdhu-red);
    padding: 8px 28px;
    border-radius: 50px;
    line-height: 1;
    margin-bottom: 12px;
    box-shadow: 0 10px 20px rgba(227, 0, 15, 0.3);
    white-space: nowrap;
}

.match-status {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Match Metadata Grid */
.match-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 50px;
    box-sizing: border-box;
}

.meta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 22px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    box-sizing: border-box;
}

.meta-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.meta-icon {
    font-size: 22px;
    color: var(--cdhu-red);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.meta-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.meta-value {
    font-family: var(--font-body);
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   Match Summary ("Resumo") Card
   ========================================================================== */
.match-summary-card {
    max-width: 1000px;
    margin: 0 auto 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--cdhu-red);
    border-radius: 12px;
    padding: 30px 35px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.summary-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-card-icon {
    color: var(--cdhu-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-card-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.summary-card-body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: #e0e0e0;
}

.summary-card-body p {
    margin: 0 0 12px;
}

.summary-card-body p:last-child {
    margin-bottom: 0;
}

.summary-card-empty {
    font-style: italic;
    color: var(--text-muted);
}

/* ==========================================================================
   Match Ficha Técnica & Estatísticas
   ========================================================================== */
.match-ficha-section {
    max-width: 1000px;
    margin: 0 auto 50px;
    box-sizing: border-box;
}

.match-ficha-header {
    text-align: center;
    margin-bottom: 30px;
}

.match-ficha-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px;
}

.match-ficha-title span {
    color: var(--cdhu-red);
}

.match-ficha-subtitle {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

/* Bento Grid for Clubs */
.ficha-clubs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.club-ficha-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.club-ficha-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.club-ficha-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
}

.club-ficha-card.is-club-1::before {
    background: var(--cdhu-red);
}

.club-ficha-card.is-club-2::before {
    background: #a9a9a9;
}

.club-ficha-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.club-ficha-logo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #000;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.club-ficha-logo img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.club-ficha-info {
    flex: 1;
    min-width: 0;
}

.club-ficha-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cdhu-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.club-ficha-card.is-club-2 .club-ficha-tag {
    color: #a9a9a9;
}

.club-ficha-name {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.15;
}

/* Stat Groups inside Club Card */
.club-stat-group {
    margin-bottom: 22px;
}

.club-stat-group:last-child {
    margin-bottom: 0;
}

.stat-group-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.stat-rows-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.2s;
}

.stat-row-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.stat-row-label-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.stat-badge-yellow {
    width: 12px;
    height: 17px;
    background: #ffcc00;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
    display: inline-block;
}

.stat-badge-red {
    width: 12px;
    height: 17px;
    background: #e3000f;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(227, 0, 15, 0.4);
    display: inline-block;
}

.stat-row-label {
    font-family: var(--font-body);
    font-size: 13px;
    color: #ccc;
    font-weight: 500;
}

.stat-row-value {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #fff;
    line-height: 1;
    font-weight: 700;
}

.stat-row-item.highlight-total {
    background: rgba(227, 0, 15, 0.08);
    border-color: rgba(227, 0, 15, 0.25);
}

.stat-row-item.highlight-total .stat-row-value {
    color: #fff;
    font-size: 26px;
}

/* ==========================================================================
   Ficha Técnica - Unified Comparison Box (Sofascore style)
   ========================================================================== */
.ficha-comparison-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-team-col {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 40%;
}

.comparison-team-col.is-right {
    justify-content: flex-end;
    text-align: right;
}

.comparison-team-thumb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #000;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.comparison-team-thumb img {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.comparison-team-name {
    font-family: var(--font-heading);
    font-size: 19px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-vs-badge {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cdhu-red);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

.comparison-rows-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comparison-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comparison-values-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.val-left,
.val-right {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
    font-weight: 700;
    min-width: 50px;
    line-height: 1;
}

.val-left {
    text-align: left;
}

.val-right {
    text-align: right;
}

.val-left.is-higher {
    color: var(--cdhu-red);
}

.val-right.is-higher {
    color: #a9a9a9;
}

.comparison-metric-title {
    font-family: var(--font-body);
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.comparison-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.comparison-bar-fill-left {
    height: 100%;
    background: var(--cdhu-red);
    border-radius: 4px 0 0 4px;
    transition: width 0.4s ease;
}

.comparison-bar-fill-right {
    height: 100%;
    background: #a9a9a9;
    border-radius: 0 4px 4px 0;
    transition: width 0.4s ease;
}

/* ==========================================================================
   Venue Map - Full Width & Responsive Fix
   ========================================================================== */
.cdhu-page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

.cdhu-page-content .sp-template {
    display: none !important;
}

.cdhu-page-content .sp-template-event-venue {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cdhu-page-content .sp-template-event-venue table.sp-event-venue,
.cdhu-page-content .sp-template-event-venue table.sp-event-venue tbody,
.cdhu-page-content .sp-template-event-venue table.sp-event-venue tr,
.cdhu-page-content .sp-template-event-venue table.sp-event-venue td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.cdhu-page-content .sp-template-event-venue caption.sp-table-caption {
    display: block !important;
    font-family: var(--font-heading);
    font-size: 26px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: left;
}

#sp_openstreetmaps_container {
    width: 100% !important;
    height: 400px !important;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cdhu-page-content .sp-event-venue-address {
    margin-top: 18px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .cdhu-page-header {
        padding: 120px 20px 30px;
    }

    .admin-bar .cdhu-page-header {
        padding-top: 150px;
    }

    .match-hero-container {
        flex-direction: column;
        padding: 30px 20px;
    }

    .match-center-block {
        margin: 25px 0;
        padding: 0;
    }

    .team-logo-wrap {
        width: 100px;
        height: 100px;
    }

    .team-logo-wrap img {
        max-width: 70px;
        max-height: 70px;
    }

    .team-name {
        font-size: 22px;
    }

    .match-score {
        font-size: 40px;
        padding: 6px 20px;
    }

    .ficha-clubs-grid {
        grid-template-columns: 1fr;
    }

    .comparison-team-name {
        font-size: 15px;
    }

    .val-left,
    .val-right {
        font-size: 20px;
    }

    #sp_openstreetmaps_container {
        height: 300px !important;
    }

    .match-summary-card {
        padding: 24px 20px;
    }

    .ficha-comparison-box {
        padding: 20px 16px;
    }
}