/* ==========================================================================
   TBS SAN JUAN — EVENT GAMECENTER
   Versión limpia: sticky scoreboard + box score responsive
   Archivo: assets/css/event-gamecenter.css
   Template: single-goat_game.php
   ========================================================================== */

.gamecenter-page {
    --gc-bg: var(--bg-dark, #050506);
    --gc-surface: var(--bg-surface, #101014);
    --gc-surface-2: var(--bg-surface-elevated, #18181d);
    --gc-border: var(--border-subtle, rgba(255, 255, 255, 0.10));
    --gc-border-2: var(--border-highlight, rgba(255, 255, 255, 0.18));
    --gc-text: var(--text-main, #ffffff);
    --gc-muted: var(--text-muted, rgba(255, 255, 255, 0.62));
    --gc-red: var(--primary-red, #e6192b);
    --gc-red-glow: var(--primary-red-glow, rgba(230, 25, 43, 0.42));
    --gc-gold: var(--accent-gold, #d4af37);
    --gc-radius: 18px;
    --gc-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);

    color: var(--gc-text);
    background:
        radial-gradient(circle at 50% 0%, rgba(230, 25, 43, 0.14), transparent 30%),
        radial-gradient(circle at 8% 16%, rgba(212, 175, 55, 0.08), transparent 22%),
        var(--gc-bg);
}

.gamecenter-page *,
.gamecenter-page *::before,
.gamecenter-page *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.gc-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 72px 0 58px;
    border-bottom: 1px solid rgba(230, 25, 43, 0.34);
    background:
        radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.12), transparent 46%),
        linear-gradient(160deg, rgba(8, 0, 0, 0.98) 0%, rgba(28, 8, 10, 0.96) 52%, rgba(5, 5, 7, 0.98) 100%);
}

.gc-hero::before,
.gc-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.gc-hero::before {
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 120px);
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.gc-hero::after {
    left: 50%;
    bottom: -90px;
    width: min(760px, 92vw);
    height: 240px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14), transparent 68%);
    filter: blur(8px);
}

.gc-hero__overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.008) 3px,
            rgba(255, 255, 255, 0.008) 4px);
    pointer-events: none;
}

.gc-container,
.gc-hero__inner {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.gc-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.gc-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 28px;
}

.gc-hero__date,
.gc-hero__time {
    color: var(--gc-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.gc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gc-badge--live {
    color: #fff;
    background: rgba(230, 25, 43, 0.92);
    border: 1px solid rgba(230, 25, 43, 1);
    box-shadow: 0 0 20px rgba(230, 25, 43, 0.34);
}

.gc-badge--final {
    color: var(--gc-muted);
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.gc-badge--upcoming {
    color: var(--gc-gold);
    background: rgba(212, 175, 55, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.30);
}

.gc-badge--postponed {
    color: #ffb347;
    background: rgba(255, 179, 71, 0.10);
    border: 1px solid rgba(255, 179, 71, 0.28);
}

.gc-pulse,
.pulse {
    animation: gc-pulse 1.4s ease-in-out infinite;
}

@keyframes gc-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.48;
    }
}

/* ==========================================================================
   HERO TEAMS
   ========================================================================== */

.gc-hero__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 52px);
}

.gc-team {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 14px;
}

.gc-team--home {
    justify-self: end;
}

.gc-team--away {
    justify-self: start;
}

.gc-hero__vs {
    width: clamp(58px, 8vw, 82px);
    height: clamp(58px, 8vw, 82px);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-red);
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.55rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 70, 70, 0.18), rgba(230, 25, 43, 0.08)),
        linear-gradient(180deg, rgba(28, 10, 14, 0.96), rgba(12, 7, 9, 0.96));
    border: 1px solid rgba(230, 25, 43, 0.5);
    box-shadow:
        0 0 0 5px rgba(230, 25, 43, 0.06),
        0 16px 36px rgba(0, 0, 0, 0.34);
}

.gc-team__logo,
.gc-team__logo-placeholder {
    width: clamp(76px, 11vw, 118px);
    height: clamp(76px, 11vw, 118px);
    flex: 0 0 auto;
}

.gc-team__logo {
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}

.gc-team__logo-placeholder {
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--gc-muted);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    background:
        radial-gradient(circle at 35% 25%, rgba(212, 175, 55, 0.18), transparent 45%),
        var(--gc-surface-2);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.gc-team__name {
    max-width: 260px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2.8vw, 1.72rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0.045em;
    text-align: center;
    text-transform: uppercase;
}

.gc-hero__title {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.gc-section {
    position: relative;
    padding: 56px 0;
}

.gc-section--alt,
.gc-section--summary {
    background:
        radial-gradient(circle at top right, rgba(230, 25, 43, 0.08), transparent 36%),
        rgba(255, 255, 255, 0.018);
}

.gc-section--results {
    background:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 44%),
        rgba(255, 255, 255, 0.012);
}

.gc-section__title {
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.gc-section__title--centered {
    justify-content: center;
    text-align: center;
}

.gc-section__title--gold {
    color: var(--gc-gold);
}

.gc-section__title-icon {
    color: var(--gc-gold);
}

.gc-section__bar {
    width: 5px;
    height: 1.15em;
    border-radius: 999px;
    display: inline-block;
    background: var(--gc-red);
    box-shadow: 0 0 16px rgba(230, 25, 43, 0.32);
}

/* ==========================================================================
   SUMMARY / CONTENT
   ========================================================================== */

.gc-summary-content {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.72;
}

.gc-summary-content p {
    margin: 0 0 1rem;
}

.gc-summary-content iframe,
.gc-summary-content video,
.gc-summary-content embed,
.gc-summary-content object {
    max-width: 100%;
    border-radius: 14px;
}

.gc-summary-content .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
}

.gc-summary-content .wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   SPORTSPRESS OUTPUT
   ========================================================================== */

.gc-shortcode-out,
.gc-section .sp-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--gc-radius);
    border: 1px solid var(--gc-border);
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    box-shadow: var(--gc-shadow);
}

.gc-shortcode-out {
    padding: 18px;
}

.gc-shortcode-out .sp-template,
.gc-section .sp-table-wrapper .sp-template {
    margin: 0 !important;
}

.gc-shortcode-out .sp-template-title,
.gc-shortcode-out .sp-table-caption,
.gc-shortcode-out .sp-data-table-caption,
.gc-shortcode-out caption,
.gc-section .sp-table-wrapper .sp-template-title,
.gc-section .sp-table-wrapper .sp-table-caption,
.gc-section .sp-table-wrapper .sp-data-table-caption,
.gc-section .sp-table-wrapper caption {
    display: none !important;
}

.gc-shortcode-out table,
.gc-section .sp-table-wrapper table,
.gc-shortcode-out .sp-template table,
.gc-section .sp-table-wrapper .sp-template table {
    width: 100% !important;
    min-width: 520px;
    border-collapse: collapse !important;
    color: var(--gc-text) !important;
    background: transparent !important;
    font-size: 0.88rem !important;
}

.gc-shortcode-out table thead tr,
.gc-section .sp-table-wrapper table thead tr {
    background: rgba(0, 0, 0, 0.36) !important;
}

.gc-shortcode-out table th,
.gc-section .sp-table-wrapper table th {
    padding: 13px 14px !important;
    color: var(--gc-muted) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
    font-family: var(--font-heading) !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.10em !important;
    text-align: left !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.gc-shortcode-out table td,
.gc-section .sp-table-wrapper table td {
    padding: 12px 14px !important;
    color: var(--gc-text) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
    vertical-align: middle !important;
}

.gc-shortcode-out table tr:last-child td,
.gc-section .sp-table-wrapper table tr:last-child td {
    border-bottom: 0 !important;
}

.gc-shortcode-out table tbody tr,
.gc-section .sp-table-wrapper table tbody tr {
    background: rgba(255, 255, 255, 0.02) !important;
    transition: background 0.18s ease;
}

.gc-shortcode-out table tbody tr:hover,
.gc-section .sp-table-wrapper table tbody tr:hover {
    background: rgba(230, 25, 43, 0.06) !important;
}

.gc-shortcode-out table a,
.gc-section .sp-table-wrapper table a {
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.gc-shortcode-out table a:hover,
.gc-section .sp-table-wrapper table a:hover {
    color: var(--gc-gold) !important;
}

.gc-shortcode-out img,
.gc-section .sp-table-wrapper img {
    max-width: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

/* Resultado */
.gc-section--results .gc-shortcode-out,
.gc-section--results .sp-table-wrapper {
    border-color: rgba(212, 175, 55, 0.22);
}

/* ==========================================================================
   RESULT CARD — FINAL SCORE
   ========================================================================== */

.gc-result-card {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 3vw, 34px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    border-radius: calc(var(--gc-radius) + 4px);
    border: 1px solid rgba(212, 175, 55, 0.26);
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.10), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(230, 25, 43, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
    box-shadow: var(--gc-shadow);
    overflow: hidden;
}

.gc-result-team {
    min-width: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    color: #fff;
    text-decoration: none;
}

.gc-result-team:last-child {
    grid-template-columns: auto minmax(0, 1fr) 76px;
}

.gc-result-team:last-child .gc-result-team__logo-wrap {
    order: 3;
}

.gc-result-team:last-child .gc-result-team__name {
    order: 2;
    text-align: right;
}

.gc-result-team:last-child .gc-result-score {
    order: 1;
}

.gc-result-team__logo-wrap {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.08), transparent 48%),
        rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gc-result-team__logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.58));
}

.gc-result-team__placeholder {
    color: var(--gc-gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.gc-result-team__name {
    min-width: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: normal;
}

.gc-result-score {
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 0 22px rgba(255, 255, 255, 0.12);
}

.gc-result-card.is-upcoming-score .gc-result-score {
    color: var(--gc-red);
    text-shadow: 0 0 18px rgba(230, 25, 43, 0.16);
}

.gc-result-team.is-winner .gc-result-score,
.gc-result-team.is-winner .gc-result-team__name {
    color: var(--gc-gold);
}

.gc-result-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-result-status {
    min-width: 62px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-gold);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.32);
}

/* Próximos partidos: el estado VS debe tener más presencia que los guiones */
.gc-result-card.is-upcoming-score .gc-result-status {
    color: var(--gc-gold);
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.36);
}

/* ==========================================================================
   TEAMS / VENUE / OFFICIALS
   ========================================================================== */

.gc-section--venue .gc-shortcode-out,
.gc-section--officials .gc-shortcode-out {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.62;
}

/* Matchup premium manual para la sección Equipos */
.gc-matchup-card {
    width: min(800px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 3vw, 34px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 3vw, 34px);
    border-radius: calc(var(--gc-radius) + 4px);
    border: 1px solid var(--gc-border);
    background:
        radial-gradient(circle at 50% 0%, rgba(230, 25, 43, 0.10), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.07), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    box-shadow: var(--gc-shadow);
    overflow: hidden;
}

.gc-matchup-team {
    width: 100%;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.gc-matchup-team:hover .gc-matchup-name {
    color: var(--gc-gold);
}

.gc-matchup-logo-wrap {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.08), transparent 48%),
        rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gc-matchup-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.58));
}

.gc-matchup-logo-wrap--placeholder {
    color: var(--gc-gold);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.gc-matchup-name {
    max-width: 240px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.gc-matchup-vs {
    align-self: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-red);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 70, 70, 0.20), rgba(230, 25, 43, 0.07)),
        linear-gradient(180deg, rgba(28, 10, 14, 0.96), rgba(12, 7, 9, 0.96));
    border: 1px solid rgba(230, 25, 43, 0.45);
    box-shadow:
        0 0 0 5px rgba(230, 25, 43, 0.055),
        0 16px 34px rgba(0, 0, 0, 0.32);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.gc-empty-state {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 42px) clamp(22px, 4vw, 36px);
    text-align: center;
    border-radius: calc(var(--gc-radius) + 4px);
    border: 1px solid rgba(212, 175, 55, 0.18);
    background:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    box-shadow: var(--gc-shadow);
}

.gc-empty-state strong {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.8vw, 1.18rem);
    font-weight: 900;
    letter-spacing: 0.10em;
    line-height: 1.2;
    text-transform: uppercase;
}

.gc-empty-state p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--gc-muted);
    font-size: clamp(0.92rem, 1.7vw, 1rem);
    line-height: 1.7;
}

/* ==========================================================================
   BACK NAV
   ========================================================================== */

.gc-back-nav {
    padding: 34px 0 64px;
}

.gc-back-nav__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.gc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.2s ease;
}

.gc-btn--ghost {
    color: var(--gc-gold);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(212, 175, 55, 0.32);
}

.gc-btn--ghost:hover {
    color: #fff;
    border-color: var(--gc-gold);
    background: rgba(212, 175, 55, 0.10);
    transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {

    .gc-container,
    .gc-hero__inner {
        width: min(100% - 28px, 1200px);
    }

    .gc-hero {
        min-height: 270px;
        padding: 50px 0 42px;
    }

    .gc-hero__teams {
        grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
        gap: 12px;
    }

    .gc-hero__vs {
        width: 52px;
        height: 52px;
        font-size: 1rem;
    }

    .gc-team__logo,
    .gc-team__logo-placeholder {
        width: 64px;
        height: 64px;
    }

    .gc-team__name {
        max-width: 120px;
        font-size: 0.95rem;
        line-height: 1.08;
    }

    .gc-section {
        padding: 42px 0;
    }

    .gc-section__title {
        max-width: 94%;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.28rem;
        line-height: 1.08;
        letter-spacing: 0.08em;
        text-wrap: balance;
    }

    .gc-shortcode-out,
    .gc-section .sp-table-wrapper {
        max-width: 100%;
        padding: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /*
     * Box Score:
     * Esta tabla puede necesitar scroll horizontal porque tiene muchas columnas.
     */
    .gc-section--performance .gc-shortcode-out table,
    .gc-section--performance .sp-table-wrapper table {
        width: max-content !important;
        min-width: 640px !important;
    }

    .gc-section--results .gc-shortcode-out,
    .gc-section--results .sp-table-wrapper {
        overflow-x: hidden;
    }

    .gc-section--results .gc-shortcode-out table,
    .gc-section--results .sp-table-wrapper table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .gc-section--results .gc-shortcode-out table th,
    .gc-section--results .sp-table-wrapper table th {
        padding: 10px 6px !important;
        font-size: 0.64rem !important;
        letter-spacing: 0.06em !important;
        white-space: normal !important;
    }

    .gc-section--results .gc-shortcode-out table td,
    .gc-section--results .sp-table-wrapper table td {
        padding: 10px 6px !important;
        font-size: 0.82rem !important;
    }

    .gc-section--results .gc-shortcode-out table th:first-child,
    .gc-section--results .sp-table-wrapper table th:first-child {
        width: 40%;
        overflow-wrap: anywhere;
    }

    .gc-section--results .gc-shortcode-out table th:not(:first-child),
    .gc-section--results .sp-table-wrapper table th:not(:first-child),
    .gc-section--results .gc-shortcode-out table td,
    .gc-section--results .sp-table-wrapper table td {
        text-align: center !important;
    }

    /*
     * Detalles del Partido:
     * En móvil deja de ser una tabla con scroll horizontal.
     * Se convierte en una ficha limpia tipo datos rápidos:
     * Fecha / Hora / Liga / Temporada.
     */
    .gc-section--details .gc-shortcode-out,
    .gc-section--details .sp-table-wrapper {
        overflow-x: hidden;
        padding: 16px;
    }

    .gc-section--details .gc-shortcode-out table,
    .gc-section--details .sp-table-wrapper table {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
    }

    .gc-section--details .gc-shortcode-out table thead,
    .gc-section--details .sp-table-wrapper table thead {
        display: none !important;
    }

    .gc-section--details .gc-shortcode-out table tbody,
    .gc-section--details .sp-table-wrapper table tbody {
        display: block;
        width: 100%;
    }

    .gc-section--details .gc-shortcode-out table tr,
    .gc-section--details .sp-table-wrapper table tr {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        background: transparent !important;
    }

    .gc-section--details .gc-shortcode-out table td,
    .gc-section--details .sp-table-wrapper table td {
        display: block !important;
        min-width: 0;
        padding: 14px 14px 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-radius: 14px;
        background:
            radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), transparent 42%),
            rgba(255, 255, 255, 0.035) !important;
        color: var(--gc-text) !important;
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        text-align: left !important;
    }

    .gc-section--details .gc-shortcode-out table td::before,
    .gc-section--details .sp-table-wrapper table td::before {
        display: block;
        margin-bottom: 7px;
        color: var(--gc-muted);
        font-family: var(--font-heading);
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        line-height: 1;
        text-transform: uppercase;
    }

    .gc-section--details .gc-shortcode-out table td:nth-child(1)::before,
    .gc-section--details .sp-table-wrapper table td:nth-child(1)::before {
        content: "Fecha";
    }

    .gc-section--details .gc-shortcode-out table td:nth-child(2)::before,
    .gc-section--details .sp-table-wrapper table td:nth-child(2)::before {
        content: "Hora";
    }

    .gc-section--details .gc-shortcode-out table td:nth-child(3),
    .gc-section--details .sp-table-wrapper table td:nth-child(3) {
        grid-column: 1 / -1;
    }

    .gc-section--details .gc-shortcode-out table td:nth-child(3)::before,
    .gc-section--details .sp-table-wrapper table td:nth-child(3)::before {
        content: "Liga";
    }

    .gc-section--details .gc-shortcode-out table td:nth-child(4),
    .gc-section--details .sp-table-wrapper table td:nth-child(4) {
        grid-column: 1 / -1;
    }

    .gc-section--details .gc-shortcode-out table td:nth-child(4)::before,
    .gc-section--details .sp-table-wrapper table td:nth-child(4)::before {
        content: "Temporada";
    }

    /*
     * Equipos / Sede / Árbitros:
     * Se mantienen fluidos, porque normalmente tienen pocas columnas.
     */
    .gc-section--teams .gc-shortcode-out table,
    .gc-section--teams .sp-table-wrapper table,
    .gc-section--venue .gc-shortcode-out table,
    .gc-section--venue .sp-table-wrapper table,
    .gc-section--officials .gc-shortcode-out table,
    .gc-section--officials .sp-table-wrapper table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .gc-section--details .gc-shortcode-out table th,
    .gc-section--details .gc-shortcode-out table td,
    .gc-section--teams .gc-shortcode-out table th,
    .gc-section--teams .gc-shortcode-out table td,
    .gc-section--venue .gc-shortcode-out table th,
    .gc-section--venue .gc-shortcode-out table td,
    .gc-section--officials .gc-shortcode-out table th,
    .gc-section--officials .gc-shortcode-out table td {
        padding: 12px 10px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        line-height: 1.35 !important;
    }

    .gc-section--details .gc-shortcode-out table th,
    .gc-section--teams .gc-shortcode-out table th,
    .gc-section--venue .gc-shortcode-out table th,
    .gc-section--officials .gc-shortcode-out table th {
        font-size: 0.68rem !important;
        letter-spacing: 0.08em !important;
    }

    .gc-section--details .gc-shortcode-out table td,
    .gc-section--teams .gc-shortcode-out table td,
    .gc-section--venue .gc-shortcode-out table td,
    .gc-section--officials .gc-shortcode-out table td {
        font-size: 0.86rem !important;
    }

    .gc-section--teams .gc-shortcode-out {
        text-align: center;
    }

    .gc-section--teams .gc-shortcode-out img {
        max-width: 46px !important;
        max-height: 46px !important;
        margin: 0 auto 6px !important;
    }

    .gc-section--teams .gc-shortcode-out a,
    .gc-section--teams .gc-shortcode-out td {
        text-align: center !important;
    }

    /*
     * Sede:
     * Como solo muestra el nombre del venue, se centra completo.
     */
    .gc-section--venue .gc-shortcode-out {
        text-align: center;
        overflow-x: hidden;
    }

    .gc-section--venue .gc-shortcode-out table,
    .gc-section--venue .sp-table-wrapper table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .gc-section--venue .gc-shortcode-out table th,
    .gc-section--venue .gc-shortcode-out table td,
    .gc-section--venue .sp-table-wrapper table th,
    .gc-section--venue .sp-table-wrapper table td {
        text-align: center !important;
        width: 100% !important;
    }

    .gc-back-nav__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .gc-btn {
        width: 100%;
    }

    .gc-matchup-card {
        width: min(100%, 560px);
        padding: 22px 18px;
        gap: 16px;
    }

    .gc-matchup-logo-wrap {
        width: 66px;
        height: 66px;
        border-radius: 16px;
    }

    .gc-matchup-logo {
        width: 54px;
        height: 54px;
    }

    .gc-matchup-name {
        max-width: 150px;
        font-size: 1rem;
    }

    .gc-matchup-vs {
        width: 48px;
        height: 48px;
        font-size: 0.82rem;
    }

    .gc-empty-state {
        padding: 28px 20px;
    }

    .gc-result-card {
        width: min(100%, 560px);
        padding: 20px 16px;
        gap: 8px;
    }

    .gc-result-team {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .gc-result-team:last-child {
        grid-template-columns: auto minmax(0, 1fr) 48px;
    }

    .gc-result-team__logo-wrap {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .gc-result-team__logo {
        width: 40px;
        height: 40px;
    }

    .gc-result-team__name {
        font-size: 0.92rem;
        overflow-wrap: normal;
    }

    .gc-result-score {
        font-size: 2rem;
    }

    .gc-result-status {
        min-width: 52px;
        min-height: 32px;
        padding: 7px 9px;
        font-size: 0.70rem;
    }
}

@media (max-width: 480px) {

    .gc-container,
    .gc-hero__inner {
        width: min(100% - 24px, 1200px);
    }

    .gc-hero__meta {
        margin-bottom: 20px;
    }

    .gc-hero__date,
    .gc-hero__time {
        font-size: 0.76rem;
    }

    .gc-hero__teams {
        grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
        gap: 8px;
    }

    .gc-hero__vs {
        width: 46px;
        height: 46px;
        font-size: 0.9rem;
    }

    .gc-team__logo,
    .gc-team__logo-placeholder {
        width: 56px;
        height: 56px;
    }

    .gc-team__name {
        max-width: 104px;
        font-size: 0.84rem;
    }

    .gc-section {
        padding: 38px 0;
    }

    .gc-section__title {
        font-size: 1.14rem;
        line-height: 1.12;
        letter-spacing: 0.075em;
    }

    .gc-shortcode-out,
    .gc-section .sp-table-wrapper {
        padding: 10px;
        border-radius: 14px;
    }

    /*
     * Box Score:
     * Mantiene scroll horizontal controlado solo donde hace falta.
     */
    .gc-section--performance .gc-shortcode-out table,
    .gc-section--performance .sp-table-wrapper table {
        width: max-content !important;
        min-width: 620px !important;
    }

    .gc-section--performance .gc-shortcode-out table th,
    .gc-section--performance .sp-table-wrapper table th {
        padding: 11px 12px !important;
        font-size: 0.66rem !important;
    }

    .gc-section--performance .gc-shortcode-out table td,
    .gc-section--performance .sp-table-wrapper table td {
        padding: 11px 12px !important;
        font-size: 0.84rem !important;
    }

    /*
     * Detalles:
     * Mantener formato ficha en celulares pequeños.
     */
    .gc-section--details .gc-shortcode-out table,
    .gc-section--details .sp-table-wrapper table {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto !important;
    }

    .gc-section--details .gc-shortcode-out table tr,
    .gc-section--details .sp-table-wrapper table tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gc-section--details .gc-shortcode-out table td,
    .gc-section--details .sp-table-wrapper table td {
        padding: 13px 12px 15px !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        font-size: 0.9rem !important;
    }

    .gc-section--details .gc-shortcode-out table td:nth-child(3),
    .gc-section--details .gc-shortcode-out table td:nth-child(4),
    .gc-section--details .sp-table-wrapper table td:nth-child(3),
    .gc-section--details .sp-table-wrapper table td:nth-child(4) {
        grid-column: 1 / -1;
    }

    .gc-section--teams .gc-shortcode-out img {
        max-width: 42px !important;
        max-height: 42px !important;
    }

    .gc-matchup-card {
        grid-template-columns: 1fr;
        width: min(calc(100% - 40px), 360px);
        padding: 24px 18px;
        gap: 16px;
        justify-items: center;
    }

    .gc-matchup-team {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .gc-matchup-team--away {
        grid-template-columns: 1fr;
    }

    .gc-matchup-team--away .gc-matchup-logo-wrap,
    .gc-matchup-team--away .gc-matchup-name {
        order: initial;
        justify-self: center;
        text-align: center;
    }

    .gc-matchup-logo-wrap {
        width: 66px;
        height: 66px;
        border-radius: 15px;
    }

    .gc-matchup-logo {
        width: 54px;
        height: 54px;
    }

    .gc-matchup-name {
        max-width: 100%;
        font-size: 1rem;
        text-align: center;
        line-height: 1.1;
    }

    .gc-matchup-vs {
        width: 42px;
        height: 42px;
        margin: 2px auto;
        font-size: 0.76rem;
    }

    .gc-result-card {
        grid-template-columns: 1fr;
        width: min(100%, 360px);
        padding: 24px 18px;
        gap: 14px;
        justify-items: stretch;
    }

    .gc-result-team,
    .gc-result-team:last-child {
        width: 100%;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        justify-items: start;
        align-items: center;
        gap: 12px;
    }

    .gc-result-team:first-child {
        order: 1;
    }

    .gc-result-center {
        order: 2;
    }

    .gc-result-team:last-child {
        order: 3;
    }

    .gc-result-team:last-child .gc-result-team__logo-wrap,
    .gc-result-team:last-child .gc-result-team__name,
    .gc-result-team:last-child .gc-result-score {
        order: initial;
        text-align: left;
    }

    .gc-result-team__logo-wrap {
        width: 58px;
        height: 58px;
    }

    .gc-result-team__logo {
        width: 48px;
        height: 48px;
    }

    .gc-result-team__name {
        font-size: 0.96rem;
        text-align: left;
    }

    .gc-result-score {
        justify-self: end;
        font-size: 2.2rem;
    }

    .gc-result-status {
        min-width: 58px;
    }
}

/* ==========================================================================
   VENUE CENTER FIX — DESKTOP + MOBILE
   Sede solo muestra el venue, por eso todo debe quedar centrado.
   ========================================================================== */

.gc-section--venue .gc-shortcode-out,
.gc-section--venue .sp-table-wrapper {
    max-width: 840px;
    margin-inline: auto;
    text-align: center !important;
}

.gc-section--venue .gc-shortcode-out table,
.gc-section--venue .sp-table-wrapper table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    margin-inline: auto !important;
}

.gc-section--venue .gc-shortcode-out table thead,
.gc-section--venue .gc-shortcode-out table tbody,
.gc-section--venue .gc-shortcode-out table tr,
.gc-section--venue .sp-table-wrapper table thead,
.gc-section--venue .sp-table-wrapper table tbody,
.gc-section--venue .sp-table-wrapper table tr {
    text-align: center !important;
}

.gc-section--venue .gc-shortcode-out table th,
.gc-section--venue .gc-shortcode-out table td,
.gc-section--venue .sp-table-wrapper table th,
.gc-section--venue .sp-table-wrapper table td {
    width: 100% !important;
    color: var(--gc-text) !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.gc-section--venue .gc-shortcode-out table th,
.gc-section--venue .sp-table-wrapper table th {
    color: var(--gc-muted) !important;
}

.gc-section--venue .gc-shortcode-out table tbody tr:empty,
.gc-section--venue .sp-table-wrapper table tbody tr:empty {
    display: none !important;
}

/* ==========================================================================
   FLOATING COMPACT SCOREBOARD — MOBILE
   JS controla la clase .is-visible.
   Compacto, fixed, responsive y por encima del header.
   ========================================================================== */

.gc-sticky-score {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    display: block !important;
    padding: 5px 0 !important;
    background:
        linear-gradient(180deg, rgba(8, 8, 10, .98), rgba(5, 5, 6, .94));
    border-bottom: 1px solid rgba(212, 175, 55, .20);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .34);
    opacity: 0;
    transform: translateY(-110%);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.gc-sticky-score.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}

.gc-sticky-score__inner {
    width: min(100% - 20px, 1200px);
    min-height: 38px !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-inline: auto;
}

.gc-sticky-score__team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
}

.gc-sticky-score__team--home {
    justify-content: flex-start;
}

.gc-sticky-score__team--away {
    justify-content: flex-end;
}

.gc-sticky-score__logo {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45));
}

.gc-sticky-score__abbr {
    max-width: 42px;
    overflow: hidden;
    color: rgba(255, 255, 255, .68);
    font-family: var(--font-heading, inherit);
    font-size: 10px !important;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.gc-sticky-score__points {
    color: #fff;
    font-family: var(--font-heading, inherit);
    font-size: 20px !important;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.gc-sticky-score__team.is-winner .gc-sticky-score__points {
    color: var(--gc-gold, #d4af37);
}

.gc-sticky-score__center {
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-sticky-score__center span {
    padding: 4px 8px !important;
    border-radius: 999px;
    color: var(--gc-gold, #d4af37);
    background: rgba(212, 175, 55, .10);
    border: 1px solid rgba(212, 175, 55, .24);
    font-family: var(--font-heading, inherit);
    font-size: 8px !important;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .gc-sticky-score {
        top: 81px !important;
    }

    .gc-sticky-score__inner {
        width: calc(100% - 28px);
        grid-template-columns: minmax(0, 1fr) minmax(58px, max-content) minmax(0, 1fr);
        gap: 8px;
    }

    .gc-sticky-score__team {
        min-width: 0;
        gap: 7px;
        padding-inline: 2px;
    }

    .gc-sticky-score__logo {
        display: block;
    }

    .gc-sticky-score__abbr {
        min-width: 0;
        max-width: 44px;
        flex: 0 1 44px;
    }

    .gc-sticky-score__points {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (min-width: 769px) {
    .gc-sticky-score {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .gc-sticky-score__inner {
        width: calc(100% - 24px);
        min-height: 36px !important;
        gap: 6px;
    }

    .gc-sticky-score__abbr {
        display: block;
        max-width: 32px;
        font-size: 9px !important;
    }

    .gc-sticky-score__points {
        font-size: 19px !important;
    }

    .gc-sticky-score__center {
        min-width: 46px;
    }

    .gc-sticky-score__center span {
        padding-inline: 7px !important;
        font-size: 7.5px !important;
    }
}

/* Fallback shown only when the official renderer has no markup. */
.tbs-box-score-section {
    position: relative;
}

/* =========================================================
   Goat League Boxscore - TBS San Juan Premium Skin
   Visual layer only. Functional layout belongs to Goat UI Kit.
   ========================================================= */
body.single-goat_game .goat-native-gamecenter.goat-native-gamecenter--module {
    --goat-gc-bg: var(--bg-dark, #050506);
    --goat-gc-surface: var(--bg-surface, #101014);
    --goat-gc-surface-2: var(--bg-surface-elevated, #17171b);
    --goat-gc-border: var(--border-subtle, rgba(255, 255, 255, 0.10));
    --goat-gc-border-2: var(--border-highlight, rgba(255, 255, 255, 0.18));
    --goat-gc-text: var(--text-main, #ffffff);
    --goat-gc-muted: var(--text-muted, rgba(255, 255, 255, 0.62));
    --goat-gc-accent: var(--accent-gold, #d4af37);
    --goat-gc-accent-2: var(--primary-red, #e6192b);
    --goat-gc-danger: var(--primary-red, #e6192b);
    --goat-gc-font-heading: var(--goat-arena-font-display);
    --goat-gc-font-body: var(--goat-arena-font-ui);
    --goat-gc-radius: 18px;
    --goat-gc-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

body.single-goat_game .goat-native-gamecenter {
    background: #050506;
    color: var(--goat-gc-text);
    font-family: var(--goat-gc-font-body);
    letter-spacing: 0;
    line-height: 1.5;
}

body.single-goat_game .goat-native-gamecenter .goat-native-boxscore-renderer__header {
    background: rgba(255, 255, 255, 0.04);
    border-left: 5px solid #e6192b;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.single-goat_game .goat-native-gamecenter .goat-native-boxscore-renderer__header h2,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-team__title,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-section-row td,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-stat-header-row td,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-mobile-toggle {
    font-family: var(--font-heading, "Oswald", sans-serif);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.single-goat_game .goat-native-gamecenter .goat-native-boxscore-renderer__header h2,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-team__title {
    color: #ffffff;
    font-weight: 900;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-team__title {
    font-size: clamp(20px, 2.6vw, 30px);
    line-height: 1;
}

body.single-goat_game .goat-native-gamecenter .goat-native-boxscore-renderer__header p {
    color: rgba(255, 255, 255, 0.62);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-team {
    background:
        radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
    border-color: rgba(212, 175, 55, 0.18);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-team__header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-team__title::before {
    background: #e6192b;
    box-shadow: 0 0 18px rgba(230, 25, 43, 0.45);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-mobile-toggle {
    color: rgba(255, 255, 255, 0.72);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-mobile-toggle__switch {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.25);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-mobile-toggle__knob {
    background: rgba(185, 185, 185, 0.95);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-toggle-input:checked ~ .goat-boxscore-team__header .goat-boxscore-mobile-toggle {
    color: #ffffff;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-toggle-input:checked ~ .goat-boxscore-team__header .goat-boxscore-mobile-toggle__switch {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(255, 255, 255, 0.12);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-toggle-input:checked ~ .goat-boxscore-team__header .goat-boxscore-mobile-toggle__knob {
    background: #050506;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-panel {
    background: rgba(6, 6, 8, 0.55);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-fixed {
    background: rgba(10, 10, 12, 0.72);
    border-right-color: rgba(255, 255, 255, 0.10);
    box-shadow: 20px 0 34px rgba(0, 0, 0, 0.22);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-scroll {
    scrollbar-color: rgba(212, 175, 55, 0.70) rgba(255, 255, 255, 0.08);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #e6192b, #d4af37);
    border-radius: 999px;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-fixed-table td,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-stats-table td {
    border-bottom-color: rgba(255, 255, 255, 0.075);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-section-row td,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-stat-header-row td {
    background: rgba(0, 0, 0, 0.088);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    border-top-color: rgba(212, 175, 55, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-stat-header-row td {
    letter-spacing: 0.06em;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-fixed-table tbody tr:not(.goat-boxscore-section-row),
body.single-goat_game .goat-native-gamecenter .goat-boxscore-stats-table tbody tr:not(.goat-boxscore-section-row) {
    background: rgba(255, 255, 255, 0.018);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-fixed-table tbody tr:nth-child(even):not(.goat-boxscore-section-row),
body.single-goat_game .goat-native-gamecenter .goat-boxscore-stats-table tbody tr:nth-child(even):not(.goat-boxscore-section-row) {
    background: rgba(255, 255, 255, 0.032);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-link,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-name {
    color: #ffffff;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-link:hover,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-link:hover .goat-boxscore-player-number,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-link:focus-visible,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-link:focus-visible .goat-boxscore-player-number {
    color: #d4af37;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-number {
    color: rgba(255, 255, 255, 0.52);
}

body.single-goat_game .goat-native-gamecenter .goat-player-badge {
    background: rgba(230, 25, 43, 0.92);
    color: #ffffff;
}

body.single-goat_game .goat-native-gamecenter .goat-player-badge--gold {
    background: #d4af37;
    color: #050506;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-stats-table .is-strong,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-stats-table .is-eff {
    color: #d4af37;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-dnp-row td {
    background: rgba(230, 25, 43, 0.035);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-dnp {
    color: rgba(255, 255, 255, 0.58);
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-fixed-table tfoot td,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-stats-table tfoot td {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.20), rgba(212, 175, 55, 0.085));
    border-bottom-color: transparent;
    color: #ffffff;
    font-weight: 900;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-fixed-table .goat-boxscore-total-row td {
    color: #d4af37;
    font-family: var(--font-heading, "Oswald", sans-serif);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-percent-row td {
    background: #08090b;
    border-top-color: rgba(212, 175, 55, 0.18);
    border-bottom-color: transparent;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 900;
}

body.single-goat_game .goat-native-gamecenter .goat-boxscore-note,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-note--plus-minus {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.5;
    margin: -12px 0 0;
}

body.single-goat_game .goat-native-gamecenter.goat-native-gamecenter--module .goat-ui-container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

@media (max-width: 768px) {
    body.single-goat_game .goat-native-gamecenter.goat-native-gamecenter--module .goat-ui-container {
        width: calc(100% - 28px);
    }
}

@media (max-width: 480px) {
    body.single-goat_game .goat-native-gamecenter.goat-native-gamecenter--module .goat-ui-container {
        width: calc(100% - 24px);
    }
}

/* Mobile refinements for the official Goat renderer and TBS game page. */
@media (max-width: 768px) {
    body.single-goat_game .goat-native-gamecenter .goat-boxscore-panel {
        --goat-player-lane: 176px;
    }

    body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-link {
        gap: 3px;
    }

    body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-name {
        max-width: calc(var(--goat-player-lane) - 52px);
    }

    body.single-goat_game .goat-native-gamecenter .goat-boxscore-player-number {
        margin-left: 2px;
    }

    body.single-goat_game .goat-native-gamecenter .goat-player-badge {
        margin-left: 2px;
    }

    /*
     * The checked state expands the stats table to 1040px. Its DNP cell spans
     * every column, so this visual indent centers the existing label in the
     * currently visible stats lane without changing the table or its colspan.
     */
    body.single-goat_game .goat-native-gamecenter .goat-boxscore-toggle-input:checked ~ .goat-boxscore-panel .goat-boxscore-dnp {
        text-indent: calc(100vw - 1244px);
    }

    body.single-goat_game .goat-native-gamecenter .goat-boxscore-scroll {
        scrollbar-width: thin;
    }

    body.single-goat_game .goat-native-gamecenter .goat-boxscore-scroll::-webkit-scrollbar {
        height: 8px;
    }

    body.single-goat_game .goat-native-gamecenter .goat-boxscore-scroll::-webkit-scrollbar-track {
        border: 2px solid rgba(5, 5, 6, 0.72);
    }

    body.single-goat_game .gc-section--results .gc-shortcode-out {
        padding-block-end: 16px;
        scrollbar-width: thin;
        scrollbar-color: rgba(212, 175, 55, 0.70) rgba(255, 255, 255, 0.06);
    }

    body.single-goat_game .gc-section--results .gc-shortcode-out::-webkit-scrollbar {
        height: 8px;
    }

    body.single-goat_game .gc-section--results .gc-shortcode-out::-webkit-scrollbar-track {
        margin-inline: 10px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 999px;
    }

    body.single-goat_game .gc-section--results .gc-shortcode-out::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #e6192b, #d4af37);
        border-radius: 999px;
    }

}

@media (max-width: 480px) {
    body.single-goat_game .goat-native-gamecenter .goat-boxscore-panel {
        --goat-player-lane: 168px;
    }

    /* The UI Kit uses a 1010px stats table at this breakpoint. */
    body.single-goat_game .goat-native-gamecenter .goat-boxscore-toggle-input:checked ~ .goat-boxscore-panel .goat-boxscore-dnp {
        text-indent: calc(100vw - 1202px);
    }
}

@media (max-width: 380px) {
    body.single-goat_game .goat-native-gamecenter .goat-boxscore-panel {
        --goat-player-lane: 152px;
    }

    body.single-goat_game .goat-native-gamecenter .goat-boxscore-toggle-input:checked ~ .goat-boxscore-panel .goat-boxscore-dnp {
        text-indent: calc(100vw - 1186px);
    }
}

/* Goat Arena typography is scoped to the Gamecenter only. */
body.single-goat_game {
    --goat-arena-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --goat-arena-font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.single-goat_game .gamecenter-page,
body.single-goat_game .goat-native-gamecenter {
    --font-heading: var(--goat-arena-font-display);
    --font-body: var(--goat-arena-font-ui);
    font-family: var(--goat-arena-font-ui);
}

body.single-goat_game .gamecenter-page :is(
    button,
    input,
    select,
    textarea,
    .gc-badge,
    .gc-result-status,
    .gc-sticky-score__abbr,
    .gc-detail-card__label,
    .gc-details-officials__item,
    table
) {
    --font-heading: var(--goat-arena-font-ui);
    font-family: var(--goat-arena-font-ui);
}

body.single-goat_game .gc-hero__date,
body.single-goat_game .gc-hero__time,
body.single-goat_game .gc-result-score,
body.single-goat_game .gc-sticky-score__points,
body.single-goat_game .gamecenter-page table,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-fixed-table,
body.single-goat_game .goat-native-gamecenter .goat-boxscore-stats-table {
    font-family: var(--goat-arena-font-ui);
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
}

/* Gamecenter match details use the theme's dedicated card markup. */
body.single-goat_game .gc-section--details .gc-details-combined {
    display: grid;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(212, 175, 55, 0.10);
    background:
        radial-gradient(circle at 92% 0, rgba(92, 15, 27, 0.07), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.018), rgba(5, 5, 6, 0.14));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 12px 30px rgba(0, 0, 0, 0.16);
}

body.single-goat_game .gc-section--details .gc-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.single-goat_game .gc-section--details .gc-detail-card {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.022), rgba(39, 8, 13, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 5px 12px rgba(0, 0, 0, 0.11);
}

body.single-goat_game .gc-section--details .gc-detail-card:hover {
    border-color: rgba(212, 175, 55, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 7px 15px rgba(0, 0, 0, 0.14);
}

body.single-goat_game .gc-section--details .gc-detail-card--league {
    grid-column: 1 / -1;
    order: 5;
    background:
        radial-gradient(circle at 12% 0, rgba(212, 175, 55, 0.07), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(39, 8, 13, 0.10));
    border-color: rgba(212, 175, 55, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 12px 24px rgba(0, 0, 0, 0.18);
}

body.single-goat_game .gc-section--details .gc-detail-card--date {
    order: 1;
}

body.single-goat_game .gc-section--details .gc-detail-card--time {
    order: 2;
}

body.single-goat_game .gc-section--details .gc-detail-card--phase {
    order: 3;
}

body.single-goat_game .gc-section--details .gc-detail-card--season {
    order: 4;
}

body.single-goat_game .gc-section--details .gc-detail-card__label {
    margin: 0;
    color: var(--gc-gold);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
}

body.single-goat_game .gc-section--details .gc-detail-card__value {
    margin: 0;
    color: #f8f5ef;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-align: left;
}

body.single-goat_game .gc-section--details .gc-details-officials {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.single-goat_game .gc-details-officials__title {
    margin: 0;
    color: var(--gc-gold);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.single-goat_game .gc-details-officials__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.single-goat_game .gc-details-officials__item {
    max-width: 100%;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(39, 8, 13, 0.10));
    color: #f8f5ef;
    line-height: 1.35;
    overflow-wrap: anywhere;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 10px rgba(0, 0, 0, 0.11);
}

body.single-goat_game .gc-details-officials__item:hover {
    border-color: rgba(212, 175, 55, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 5px 11px rgba(0, 0, 0, 0.14);
}

body.single-goat_game .gc-section--teams .gc-matchup-staff {
    display: grid;
    width: 100%;
    gap: 6px;
    margin-top: 2px;
    padding-top: 13px;
    border-top: 1px solid var(--gc-border);
    text-align: center;
}

body.single-goat_game .gc-section--teams .gc-matchup-staff__label {
    color: var(--gc-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

body.single-goat_game .gc-section--teams .gc-matchup-staff__line {
    display: block;
    color: var(--gc-text);
    line-height: 1.4;
    text-align: center;
}

body.single-goat_game .gc-section--teams .gc-matchup-staff__role {
    display: inline;
    color: var(--gc-gold);
    font-family: var(--goat-arena-font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
    margin-right: 4px;
}

body.single-goat_game .gc-section--teams .gc-matchup-staff__names {
    display: inline;
    min-width: 0;
    font-family: var(--goat-arena-font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.single-goat_game .gc-section--venue .gc-shortcode-out {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 26px;
    text-align: center;
}

body.single-goat_game .gc-section--venue .gc-shortcode-out p {
    max-width: 100%;
    margin: 0;
    color: var(--gc-text);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
    body.single-goat_game .gc-section--details .gc-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.single-goat_game .gc-section--details .gc-details-combined {
        gap: 18px;
        padding: 18px;
    }

    body.single-goat_game .gc-section--details .gc-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.single-goat_game .gc-section--details .gc-detail-card--phase,
    body.single-goat_game .gc-section--details .gc-detail-card--league,
    body.single-goat_game .gc-section--details .gc-detail-card--season {
        grid-column: 1 / -1;
    }

    body.single-goat_game .gc-section--details .gc-detail-card--league {
        order: 4;
    }

    body.single-goat_game .gc-section--details .gc-detail-card--season {
        order: 5;
    }

    body.single-goat_game .gc-section--details .gc-detail-card {
        padding: 13px 14px 14px;
    }

    body.single-goat_game .gc-section--details .gc-details-officials {
        gap: 10px;
        padding-top: 18px;
    }

    body.single-goat_game .gc-details-officials__list {
        gap: 7px;
        justify-content: center;
    }

    body.single-goat_game .gc-section--venue .gc-shortcode-out {
        padding: 20px 16px;
    }

    body.single-goat_game .gc-section--teams .gc-matchup-staff__names {
        font-size: 14px;
    }
}

@media (max-width: 359px) {
    body.single-goat_game .gc-section--details .gc-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.single-goat_game .gc-section--details .gc-detail-card--date,
    body.single-goat_game .gc-section--details .gc-detail-card--time {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    body.single-goat_game .gc-section--teams .gc-matchup-card {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    body.single-goat_game .gc-section--teams .gc-matchup-vs {
        margin: 2px auto;
    }
}
