/* Halloween Cup – estilos públicos (fase de liga).
   Estética inspirada en halloweencup.com. Los colores se cambian en las variables de abajo.
   Variante oscura: añade tema="oscuro" a cualquier shortcode. */
.hcup {
    --hc-orange: #e98b35;
    --hc-orange-soft: #fbeedf;
    --hc-purple: #2a2040;
    --hc-ink: #17131f;
    --hc-card: #ffffff;
    --hc-text: #2b2b33;
    --hc-muted: #6b6b78;
    --hc-line: #ececf1;
    --hc-head-bg: #2a2040;
    --hc-head-text: #ffffff;
    --hc-score-bg: #17131f;
    --hc-score-text: #ffffff;
    --hc-shadow: 0 10px 30px rgba(42, 32, 64, 0.08);
    --hc-yellow: #ffd23f;
    --hc-red: #e5383b;
    --hc-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif;
    color: var(--hc-text);
    font-size: 16px;
    line-height: 1.5;
    margin: 1.5em 0;
}
.hcup.hcup-dark {
    --hc-card: #1c1c1f;
    --hc-text: #f1edf7;
    --hc-muted: #a79fb8;
    --hc-line: rgba(255, 255, 255, 0.1);
    --hc-orange-soft: rgba(233, 139, 53, 0.16);
    --hc-head-bg: #120f1b;
    --hc-score-bg: #e98b35;
    --hc-score-text: #17131f;
    --hc-shadow: none;
    background: linear-gradient(160deg, #2e2347, #1a1626);
    border-radius: 18px;
    padding: 28px 22px;
}
.hcup *, .hcup *::before, .hcup *::after { box-sizing: border-box; }
.hcup ul { margin: 0; padding: 0; list-style: none; }

/* Selector de categoría */
.hcup .hcup-jump { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.hcup .hcup-jump a {
    min-width: 120px;
    text-align: center;
    padding: 10px 26px;
    border: 2px solid var(--hc-orange);
    color: var(--hc-orange);
    border-radius: 999px;
    font-family: var(--hc-display);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.hcup .hcup-jump a:hover { background: var(--hc-orange); color: #fff; box-shadow: 0 8px 20px rgba(233, 139, 53, 0.35); }

/* Bloque de categoría */
.hcup .hcup-cat { margin-top: 56px; scroll-margin-top: 90px; }
.hcup .hcup-cat:first-child, .hcup .hcup-jump + .hcup-cat { margin-top: 36px; }
.hcup .hcup-cat-head { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.hcup .hcup-cat-name { font-family: var(--hc-display); font-size: 4.2rem; line-height: 1; letter-spacing: 0.03em; }
.hcup .hcup-pill {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hc-orange-soft);
    color: var(--hc-orange);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hcup .hcup-born { color: var(--hc-muted); }

.hcup .hcup-sub {
    margin: 40px 0 20px;
    padding: 0;
    border: 0;
    font-family: var(--hc-display);
    font-weight: 400;
    font-size: 2.1rem;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    color: var(--hc-text);
}
.hcup .hcup-sub::after { content: ''; display: block; width: 76px; height: 4px; margin: 12px auto 0; border-radius: 4px; background: var(--hc-orange); }
.hcup .hcup-note { text-align: center; color: var(--hc-muted); font-size: 0.8rem; margin: 10px 0 0; }
.hcup .hcup-empty { text-align: center; color: var(--hc-muted); font-style: italic; }

/* Banderas */
.hcup .hcup-flag { display: inline-block; flex: none; width: 27px; height: 18px; border-radius: 3px; overflow: hidden; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14); }
.hcup .hcup-flag svg, .hcup .hcup-flag img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; }

/* Tablas */
.hcup .hcup-tablewrap { overflow-x: auto; border-radius: 16px; box-shadow: var(--hc-shadow); border: 1px solid var(--hc-line); }
.hcup .hcup-table { width: 100%; margin: 0; border-collapse: collapse; border: 0; background: var(--hc-card); color: var(--hc-text); }
.hcup .hcup-table th, .hcup .hcup-table td { padding: 11px 12px; text-align: center; border: 0; border-bottom: 1px solid var(--hc-line); background: transparent; }
.hcup .hcup-table tbody tr:last-child td { border-bottom: 0; }
.hcup .hcup-table th {
    background: var(--hc-head-bg);
    color: var(--hc-head-text);
    font-family: var(--hc-display);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hcup .hcup-table .hcup-left { text-align: left; }
.hcup .hcup-table td.hcup-left { font-weight: 600; }
.hcup .hcup-tname { display: flex; align-items: center; gap: 10px; }
.hcup .hcup-tname small { display: block; color: var(--hc-muted); font-weight: 400; font-size: 0.75rem; line-height: 1.1; }
.hcup .hcup-table .hcup-pts { font-family: var(--hc-display); font-size: 1.4rem; letter-spacing: 0.04em; color: var(--hc-orange); }
.hcup .hcup-standings tbody tr:first-child td { background: var(--hc-orange-soft); }
.hcup .hcup-standings tbody tr:first-child td:first-child { box-shadow: inset 4px 0 0 var(--hc-orange); }

/* Máximo goleador */
.hcup .hcup-scorers { display: grid; gap: 14px; }
.hcup .hcup-scorer-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2e2347 0%, #1c1627 60%, #120f1b 100%);
    color: #fff;
    box-shadow: var(--hc-shadow);
}
.hcup .hcup-scorer-card::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: var(--hc-orange); }
.hcup .hcup-ball { position: absolute; right: -14px; bottom: -34px; font-size: 7.5rem; opacity: 0.08; line-height: 1; pointer-events: none; }
.hcup .hcup-goals-big {
    flex: none;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid var(--hc-orange);
    display: grid;
    place-items: center;
    text-align: center;
    font-family: var(--hc-display);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--hc-orange);
    padding-top: 6px;
}
.hcup .hcup-goals-big small { display: block; font-family: sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #cfc7dd; margin-top: -8px; }
.hcup .hcup-label { color: var(--hc-orange); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; }
.hcup .hcup-sname { font-family: var(--hc-display); font-size: 2.6rem; line-height: 1.05; letter-spacing: 0.03em; text-transform: uppercase; }
.hcup .hcup-smeta { display: flex; align-items: center; gap: 10px; color: #dcd5e8; font-size: 0.95rem; margin-top: 2px; }
.hcup .hcup-others { background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 16px; box-shadow: var(--hc-shadow); padding: 4px 20px; }
.hcup .hcup-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hc-line); }
.hcup .hcup-row:last-child { border-bottom: 0; }
.hcup .hcup-pos { width: 24px; font-family: var(--hc-display); font-size: 1.3rem; color: var(--hc-orange); }
.hcup .hcup-who { flex: 1; font-weight: 600; }
.hcup .hcup-who small { display: block; color: var(--hc-muted); font-weight: 400; font-size: 0.78rem; }
.hcup .hcup-g { font-family: var(--hc-display); font-size: 1.5rem; color: var(--hc-orange); }

/* Jornadas y partidos */
.hcup .hcup-round {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 12px;
    padding: 0;
    font-family: var(--hc-display);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hc-orange);
}
.hcup .hcup-round::after { content: ''; flex: 1; border-top: 2px dashed var(--hc-orange); opacity: 0.55; }
.hcup .hcup-matches { display: grid; gap: 16px; }
.hcup .hcup-match {
    background: var(--hc-card);
    border: 1px solid var(--hc-line);
    border-top: 4px solid var(--hc-orange);
    border-radius: 18px 18px 14px 14px;
    padding: 14px 20px 16px;
    box-shadow: var(--hc-shadow);
}
.hcup .hcup-when { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hc-orange); }
.hcup .hcup-venue { color: var(--hc-muted); font-weight: 500; }
.hcup .hcup-venue::before { content: '·'; margin-right: 12px; }
.hcup .hcup-versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 10px 0 4px; }
.hcup .hcup-team { display: flex; align-items: center; gap: 10px; font-family: var(--hc-display); font-size: 1.7rem; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; }
.hcup .hcup-team.hcup-home { justify-content: flex-end; text-align: right; }
.hcup .hcup-score {
    min-width: 92px;
    text-align: center;
    padding: 4px 16px 2px;
    border-radius: 999px;
    background: var(--hc-score-bg);
    color: var(--hc-score-text);
    font-family: var(--hc-display);
    font-size: 1.9rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
.hcup .hcup-score.hcup-vs { background: var(--hc-orange-soft); color: var(--hc-orange); font-size: 1.3rem; }

.hcup .hcup-events { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--hc-line); font-size: 0.9rem; }
.hcup .hcup-evlist.hcup-home { text-align: right; }
.hcup .hcup-evlist li { margin: 3px 0; padding: 0; }
.hcup .hcup-min { color: var(--hc-muted); font-size: 0.85em; }
.hcup .hcup-ico { display: inline-block; vertical-align: middle; }
.hcup .hcup-cardico { width: 11px; height: 15px; border-radius: 2px; margin: 0 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.hcup .hcup-y { background: var(--hc-yellow); }
.hcup .hcup-r { background: var(--hc-red); }

/* Jugadores */
.hcup .hcup-details { margin-top: 10px; }
.hcup .hcup-details summary {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--hc-orange-soft);
    color: var(--hc-orange);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}
.hcup .hcup-details summary::-webkit-details-marker { display: none; }
.hcup .hcup-details summary::after { content: ' ▾'; }
.hcup .hcup-details[open] summary::after { content: ' ▴'; }
.hcup .hcup-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.hcup .hcup-lineup > strong { display: flex; align-items: center; gap: 8px; font-family: var(--hc-display); font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 400; }
.hcup .hcup-lineup ul, .hcup .hcup-teamcard ul { margin: 6px 0 0; }
.hcup .hcup-lineup li, .hcup .hcup-teamcard li { padding: 5px 0; margin: 0; border-bottom: 1px solid var(--hc-line); font-size: 0.92rem; }
.hcup .hcup-lineup li:last-child, .hcup .hcup-teamcard li:last-child { border-bottom: 0; }
.hcup .hcup-num { display: inline-block; min-width: 28px; margin-right: 8px; text-align: center; color: var(--hc-orange); font-family: var(--hc-display); font-size: 1.15rem; letter-spacing: 0.04em; }

/* Equipos (shortcode [hcup_equipos]) */
.hcup .hcup-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hcup .hcup-teamcard {
    background: var(--hc-card);
    border: 1px solid var(--hc-line);
    border-top: 4px solid var(--hc-orange);
    border-radius: 18px 18px 14px 14px;
    padding: 16px 20px 14px;
    box-shadow: var(--hc-shadow);
}
.hcup .hcup-teamcard h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 0; font-family: var(--hc-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hc-text); }
.hcup .hcup-teamcard h4 small { display: block; font-family: sans-serif; font-size: 0.72rem; letter-spacing: 0; text-transform: none; color: var(--hc-muted); }

@media (max-width: 600px) {
    .hcup .hcup-cat-name { font-size: 3.4rem; }
    .hcup .hcup-sub { font-size: 1.8rem; }
    .hcup .hcup-versus { grid-template-columns: 1fr; gap: 6px; }
    .hcup .hcup-team, .hcup .hcup-team.hcup-home { justify-content: center; text-align: center; }
    .hcup .hcup-score { justify-self: center; }
    .hcup .hcup-events, .hcup .hcup-lineups { grid-template-columns: 1fr; }
    .hcup .hcup-evlist.hcup-home { text-align: left; }
    .hcup .hcup-table th, .hcup .hcup-table td { padding: 9px 7px; font-size: 0.9rem; }
    .hcup .hcup-scorer-card { padding: 18px; gap: 14px; }
    .hcup .hcup-sname { font-size: 2rem; }
    .hcup .hcup-goals-big { width: 74px; height: 74px; font-size: 2.6rem; }
}
