.card-post-background-image {
    background-size: cover;
    background-repeat: no-repeat;
    height: 230px;
    width: 100%;
    background-position: center;
    border-radius: 20px;
}

.post-content p {
    margin-top: max(3.2vmin, 24px);
}

.post-content img,
.kg-gallery-image>img {
    height: auto !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.leage_name span {
    width: auto;
    padding-left: 14px;
    padding-right: 14px;
}

.header_logo img {
    z-index: 999;
}

.border-x {
    border-bottom: 1px solid #59565626;
}

.score_profinner img {
    height: auto !important;
}

.box1_left ul li {
    margin-left: 0;
    width: 2rem;
    text-align: center;
}

.live .box1_left ul li {
    margin-left: 0;
    width: 1.7rem;
    text-align: center;
}

.box1_left ul {
    padding-left: 0;
    width: 16rem;
}

.box_mdlleft .box1_left ul {
    padding-left: 0;
}

.box1_right {
    width: 22%;
}

.box1_right ul li {
    margin-left: 0;
    width: 20px;
    text-align: center;
}

.sponsors {
    margin-top: 10px;
    margin-bottom: 50px;
}

.highlight {
    color: gray;
}

.leader_main2 {
    padding-left: 1.2rem;
    padding-right: 2rem;
    scrollbar-width: thin;
}

.leader_main2::-webkit-scrollbar {
    width: 0.5rem;
}

.leader_main2::-webkit-scrollbar-track {
    background: red;
}

.leader_main2::-webkit-scrollbar-thumb {
    background: #672866;
    border-radius: 1rem;
}

.btn-gameday {
    background-color: #582257;
}

.btn-gameday a {
    color: #fff !important;
    font-size: 1.2rem !important;
}

.result_bottom ul {
    max-height: 35px;
    overflow: hidden;
}

.result_bottom ul li {
    padding: 1rem 0.5rem 1.15rem;
}

.result_bottom ul li a {
    font-size: 0.8rem;
}


@media screen and (min-width: 1200px) and (max-width: 1400px) {
    .card-post-background-image {
        height: 180px;
    }
}

@media screen and (max-width: 993px) {

    .fixed-column-table {
        border-collapse: collapse;
        min-width: 1200px;
    }

    .fixed-column-table th,
    .fixed-column-table td {
        padding: 8px;
        white-space: nowrap;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .card-post-background-image {
        height: 150px;
    }

    .box1_right ul li {
        width: 15px;
    }
}

@media screen and (max-width: 767px) {
    .card-post-background-image {
        height: 170px;
    }

    .score_upperPart {
        display: none;
    }

    .score_upperPart.mobile {
        display: block;
    }

    /* DESIGN UI GAME */
    .match-desktop {
        display: none;
    }

    .match-light {
        display: block;
    }

    .match-light .score_upperPart {
        padding-top: 4rem;
    }

    .match-light .flag-game {
        position: absolute;
        right: 0;
    }

    .match-light .match-linescore {
        margin-top: 30px;
    }

    .match-buttons {
        padding: 0 !important;
    }

    .match-buttons .score_buttonItem {
        grid-gap: 0;
    }

    .score_buttonItem {
        max-width: 100%;
    }

    .scoreb_btn a,
    .scoreb2_btn a,
    .scoreb2_btn a.active {
        border-radius: 0;
    }

    .match-buttons {
        border-top: 2px solid #80808047;
    }

    .match-light.boxscore_area2 {
        padding: 0 0 4rem 0 !important;
    }

    .match-light .boxscore_mainrow2 {
        width: 100%;
        max-width: 100%;
    }

    .match-light .score_table1 {
        box-shadow: unset;
        border-radius: 0;
        padding: 2.5rem 0 3.5rem 0;
    }

    .match-light .score_runBox {
        box-shadow: unset;
        border-radius: 0;
    }

    .match-light .score_profinner img {
        width: 3rem;
    }

    .match-light .score_uprRow3 {
        margin: 0 10%;
        max-width: 80%;
    }

    .match-light .score_profItem {
        justify-content: center;
    }

    .match-light .score_numbHead li,
    .match-light .score_numPoint li {
        width: 20px;
        text-align: center;
    }

    /* END DESIGN UI GAME*/

}

@media screen and (max-width: 575px) {
    .card-post-background-image {
        height: 250px
    }

    .social_upper ul {
        padding-top: 6.8rem;
    }

    .score_upperPart.mobile .score_numb1 li,
    .score_upperPart.mobile .score_numb2 li {
        font-size: 12px;
        width: 10px;
    }

    .score_upperPart.mobile .score_numbHead li,
    .score_upperPart.mobile .score_numPoint li {
        font-size: 15px;
    }

    .score_upperPart.mobile .score_numbHead,
    .score_upperPart.mobile .score_numPoint {
        gap: 8px;
    }

    .match-light .score_uprRow3 {
        margin: 0 0%;
        max-width: 100%;
    }

    .match-light .score_profCnt h4 {
        font-size: 1.3rem;
    }

    .match-light .score_profCnt p {
        font-size: 1.5rem;
    }

}

@media screen and (max-width: 367px) {
    .social_upper ul {
        padding-top: 13.8rem;
    }
}

@media screen and (max-width: 340px) {

    .score_upperPart.mobile .score_numb1 li,
    .score_upperPart.mobile .score_numb2 li {
        width: 12px
    }

    .score_upperPart.mobile .score_numb1 li,
    .score_upperPart.mobile .score_numb2 li {
        font-size: 12px;
    }

    .score_upperPart.mobile .score_numbHead li,
    .score_upperPart.mobile .score_numPoint li {
        font-size: 12px;
    }

    .score_upperPart.mobile .score_profinner img {
        height: auto;
        width: 70%;
    }

    .score_upperPart.mobile .score_profCnt h4 {
        font-size: 13px;
    }


}



/* FOOTER */
.footer-brand-logo {
    max-width: 140px;
    width: 140px;
}

/* ==================== Individual noticia page (article-single) – mobile ==================== */
.article-single {
    overflow-x: hidden;
    max-width: 100%;
}

.article-single .container {
    max-width: 100%;
}

/* Justified body copy (full flush left+right edges; not the title/meta above) */
.article-single .intnews_content,
.article-single .intnews_content .post-content {
    text-align: justify;
}

/* Article + sidebar layout */
.article-single__layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.article-single__main {
    min-width: 0;
}

.article-single__sidebar {
    flex-shrink: 0;
}

.article-sidebar-card {
    background: #fff;
    border: 1px solid rgba(24, 34, 90, 0.1);
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(24, 34, 90, 0.06);
}

.article-sidebar-card:last-child {
    margin-bottom: 0;
}

.article-sidebar__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5c6478;
    margin: 0 0 0.6rem;
}

.article-sidebar__current-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #18225a;
    margin: 0;
}

.article-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.article-sidebar__item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}

.article-sidebar__item:hover {
    opacity: 0.85;
}

.article-sidebar__thumb-wrap {
    flex-shrink: 0;
    width: 112px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef1fb;
}

.article-sidebar__thumb {
    display: block;
    width: 112px;
    height: 63px;
    object-fit: cover;
}

/* Match main noticias grid: site logo when cover fails to load */
.article-sidebar__thumb-wrap--logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.article-sidebar__thumb-wrap--logo-fallback .article-sidebar__thumb {
    width: auto;
    height: auto;
    max-width: 68%;
    max-height: 68%;
    object-fit: contain;
    object-position: center;
}

.article-sidebar__item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2a3144;
    display: block;
    min-width: 0;
}

@media screen and (min-width: 1024px) {
    .article-single__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        gap: 2rem 2.25rem;
        align-items: start;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .article-single__sidebar {
        position: sticky;
        top: 1rem;
    }
}

/* ——— Individual noticia: desktop ——— tighter type, hero 784×441, main column */
@media screen and (min-width: 768px) {
    .article-single .interior_newswrap {
        padding: 1.75rem 0 1.25rem !important;
    }

    .article-single .intnews_content {
        padding: 1.25rem 0 2rem !important;
    }

    .article-single .intnews_upper {
        border-bottom-color: rgba(24, 34, 90, 0.12);
    }

    .article-single .intnews_thumb {
        max-width: 784px;
        margin-left: auto;
        margin-right: auto;
    }

    .article-single .intnews_thumb img,
    .article-single .article-single__hero-img {
        display: block;
        width: 100%;
        max-width: 784px;
        height: auto;
        aspect-ratio: 784 / 441;
        object-fit: cover;
        border-radius: 12px;
    }

    .article-single .intnews_uprCntinner {
        justify-content: flex-start !important;
        align-items: center;
        gap: 0.75rem 1.25rem;
        flex-wrap: wrap;
    }

    .article-single .intnews_uprCntleft {
        width: auto !important;
        flex: 0 0 auto;
    }

    .article-single .intnews_uprCnt ul {
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0.75rem;
    }

    .article-single .intnews_uprCnt ul li {
        margin-left: 0 !important;
    }

    .article-single .intnews_uprCnt {
        padding: 0.75rem 0 0 !important;
    }

    .article-single .intnews_uprCnt h6 {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase;
        color: #5c6478 !important;
        margin: 0 0 0.4rem !important;
    }

    .article-single .intnews_uprCnt h4 {
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        letter-spacing: -0.02em !important;
        margin: 0 0 0.85rem !important;
    }

    .article-single .intnews_uprCnt p {
        font-size: 0.8125rem !important;
        color: #5c6478 !important;
    }

    .article-single .intnews_content p,
    .article-single .intnews_content .post-content,
    .article-single .post-content {
        font-size: 1rem !important;
        line-height: 1.65 !important;
        letter-spacing: 0.01em !important;
        margin-bottom: 1.1rem !important;
        color: #2a3144 !important;
    }

    .article-single .post-content p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .article-single .post-content :is(h1, h2, h3) {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
        margin: 1.35rem 0 0.65rem !important;
        font-weight: 700 !important;
        color: #18225a !important;
    }

    .article-single .post-content h2 {
        font-size: 1.2rem !important;
    }

    .article-single .post-content h3 {
        font-size: 1.1rem !important;
    }

    .article-single .article-single__main .share_area {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1.25rem 0 2rem !important;
    }

    .article-single .share_area h4 {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #5c6478 !important;
        margin-bottom: 0.75rem !important;
    }
}

@media screen and (min-width: 992px) {
    .article-single .intnews_upper {
        display: block;
        padding-bottom: 1.5rem;
    }

    .article-single .intnews_thumb {
        margin: 0;
    }

    .article-single .intnews_uprCnt {
        padding: 0.75rem 0 0 !important;
    }
}

@media screen and (max-width: 767px) {
    .article-single {
        padding: 0;
    }

    .article-single .interior_newswrap {
        padding: 1.25rem 1rem 1.5rem !important;
        max-width: 100%;
    }

    .article-single .intnews_thumb {
        margin: 0 auto;
        width: 100%;
        max-width: 784px;
    }

    .article-single .intnews_thumb img,
    .article-single .article-single__hero-img {
        width: 100%;
        max-width: 784px;
        height: auto;
        aspect-ratio: 784 / 441;
        object-fit: cover;
        border-radius: 10px;
        display: block;
    }

    .article-single .intnews_uprCnt {
        padding: 1rem 0 1.25rem !important;
    }

    .article-single .intnews_uprCnt h6 {
        font-size: 0.75rem !important;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
    }

    .article-single .intnews_uprCnt h4 {
        font-size: 1.25rem !important;
        line-height: 1.35;
        margin: 0.5rem 0 1rem !important;
        letter-spacing: 0.02em;
    }

    .article-single .intnews_uprCnt p {
        font-size: 0.8125rem !important;
    }

    .article-single .intnews_uprCntinner {
        justify-content: flex-start !important;
        flex-wrap: wrap;
        gap: 0.75rem;
        row-gap: 0.5rem;
        align-items: center;
    }

    .article-single .intnews_uprCntleft {
        width: auto !important;
        flex: 0 0 auto;
    }

    .article-single .intnews_uprCnt ul {
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0;
        gap: 0.75rem;
    }

    .article-single .intnews_uprCnt ul li {
        margin-left: 0 !important;
    }

    .article-single .intnews_uprCnt ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .article-single .intnews_uprCnt ul li img {
        width: 1.25rem;
        height: 1.25rem;
        max-width: 100%;
    }

    .article-single .intnews_content {
        padding: 0 0 1.5rem !important;
    }

    .article-single .intnews_content p,
    .article-single .post-content {
        font-size: 0.9rem !important;
        line-height: 1.62;
        letter-spacing: 0.01em;
        margin-bottom: 0.9rem !important;
    }

    .article-single .post-content p {
        font-size: 0.9rem !important;
    }

    .article-single .post-content p {
        margin-top: 0.75rem !important;
    }

    .article-single .post-content img,
    .article-single .post-content iframe,
    .article-single .post-content video {
        max-width: 100% !important;
        height: auto !important;
    }

    .article-single .post-content {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .article-single .share_area {
        padding: 1.5rem 1rem !important;
    }

    .article-single .share_area h4 {
        font-size: 0.875rem !important;
    }

    .article-single .share_area ul {
        padding-top: 1rem !important;
        gap: 1rem;
    }

    .article-single .share_area ul li a {
        width: 2.75rem !important;
        height: 2.75rem !important;
        margin: 0 !important;
    }

    .article-single .share_area ul li a img {
        width: 1rem;
        height: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .article-single .interior_newswrap {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .article-single .intnews_uprCnt h4 {
        font-size: 1.125rem !important;
    }
}

/* ==================== Calendar (Results & Calendar) – pick a day + next two + date picker ==================== */
.calendar-modern .calendar-toolbar {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.calendar-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.calendar-toolbar-inner--single {
    justify-content: center;
}

.calendar-toolbar-btn {
    background: transparent;
    border: 1px solid var(--primery-color, #18225a);
    color: var(--primery-color, #18225a);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.calendar-toolbar-btn--primary:hover,
.calendar-toolbar-btn--primary.active {
    background: var(--primery-color, #18225a);
    color: #fff;
}

.calendar-dropdown-wrap {
    position: relative;
}

.calendar-toolbar-btn--picker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-height: 40px;
}

.calendar-picker-label-text {
    font-weight: 500;
}

.calendar-picker-range {
    color: #555;
    font-weight: 400;
}

.calendar-picker-chevron {
    font-size: 0.7rem;
    opacity: 0.8;
}

.calendar-toolbar-btn--picker:hover {
    background: rgba(24, 34, 90, 0.06);
}

.calendar-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem;
    z-index: 100;
    min-width: 280px;
}

.calendar-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.calendar-dropdown-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.calendar-dropdown-nav {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.calendar-dropdown-nav:hover {
    background: var(--primery-color, #18225a);
    color: #fff;
}

.calendar-dropdown-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.calendar-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-dropdown-day {
    aspect-ratio: 1;
    min-width: 32px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-dropdown-day--pad {
    cursor: default;
    pointer-events: none;
}

.calendar-dropdown-day:not(.calendar-dropdown-day--pad):hover {
    background: rgba(24, 34, 90, 0.1);
}

.calendar-dropdown-day--today {
    background: rgba(24, 34, 90, 0.12);
    color: var(--primery-color, #18225a);
}

.calendar-dropdown-day--range {
    background: rgba(24, 34, 90, 0.15);
}

.calendar-dropdown-day--selected {
    background: var(--primery-color, #18225a);
    color: #fff;
}

.calendar-dropdown-hint {
    margin: 0.75rem 0 0;
    font-size: 0.7rem;
    color: #888;
}

.calendar-days-wrapper {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calendar-day-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.calendar-day-header {
    background: linear-gradient(135deg, var(--primery-color, #18225a) 0%, rgba(24, 34, 90, 0.85) 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.calendar-day-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.calendar-day-date {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.95;
}

.calendar-day-games {
    padding: 1.25rem;
    min-height: 80px;
}

/* Widen the calendar's Bootstrap .container at all desktop/tablet viewports (≥770px) so
   each day card has the full screen width to lay out cards in. Without this, Bootstrap's
   max-width caps at 1320 even on a 1920 monitor, which forces 3-cards-per-row instead of 4. */
@media (min-width: 770px) {
    .calendar-modern > .container,
    .calendar-modern .calendar-toolbar > .container {
        max-width: none;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Game grid: each track is 380px (matches simplified final/live card width). Cards still
   keep their own design max-widths via per-variant rules below; they never stretch beyond
   them and never shrink below. Partial rows align to the left. */
.calendar-day-games.resultados-inner-wp {
    padding-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, 380px);
    gap: 1.5rem 1rem;
    /* stretch = every card in a row matches the tallest card's height (live → final/scheduled
       grow to match), so the action-buttons row aligns across the row */
    align-items: stretch;
    justify-content: start;
}

/* Live cards: fill the full grid track (they need every pixel for the inline R/H/E + bases panel) */
.calendar-day-games.resultados-inner-wp .hero-match-card--home-simplified.hero-match-card--live,
.calendar-day-games.resultados-inner-wp .hero-match-card--live-linescore {
    flex: unset;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin-inline: 0;
    justify-self: stretch;
}

/* Final + scheduled cards: wide enough for W/L/SV on one line; centered in grid track. */
.calendar-day-games.resultados-inner-wp .hero-match-card--home-simplified.hero-match-card--final,
.calendar-day-games.resultados-inner-wp .hero-match-card--home-simplified.hero-match-card--scheduled {
    flex: unset;
    min-width: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    box-sizing: border-box;
    margin-inline: auto;
    justify-self: stretch;
}

/* The final/scheduled cards are flex-column with min-height: 0; for them to actually grow
   in stretched grid mode, the footer (pitching + actions on finals) or actions row sticks
   to the bottom. */
.calendar-day-games.resultados-inner-wp .hero-match-card--home-simplified .home-hero-card__footer-stack {
    margin-top: auto;
}

.calendar-day-games.resultados-inner-wp
    .hero-match-card--home-simplified
    .home-hero-card__footer-stack
    .home-hero-card__actions {
    margin-top: 0;
}

.calendar-day-games.resultados-inner-wp .hero-match-card--home-simplified .home-hero-card__actions {
    margin-top: auto;
}

.calendar-day-empty {
    margin: 0;
    color: #888;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .calendar-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-toolbar-btn--picker {
        justify-content: space-between;
    }

    .calendar-dropdown-panel {
        left: 0;
        right: 0;
        min-width: 0;
    }

    /* On mobile, drop the 380px min so the single-column card fills the screen */
    .calendar-day-games.resultados-inner-wp {
        grid-template-columns: 1fr;
    }

    .calendar-day-games.resultados-inner-wp .hero-match-card {
        width: 100%;
        margin-inline: 0;
    }
}

/* ==================== Home: news (featured + grid, single layout) ==================== */
.home-news-section {
    padding: 3rem 0 2.75rem;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 55%);
    border-bottom: 1px solid rgba(24, 34, 90, 0.06);
}

.home-news__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 0.25rem;
}

.home-news__all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primery-color, #582257);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.home-news__all-link:hover {
    opacity: 0.88;
    text-decoration: underline;
}

.home-news__all-arrow {
    font-size: 1.1em;
    line-height: 1;
}

.home-news__layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media screen and (min-width: 992px) {
    .home-news__layout {
        grid-template-columns: 1.12fr 1fr;
        gap: 1.75rem;
        align-items: stretch;
    }

    /* Featured card fills row height so its bottom lines up with the 2×3 grid */
    .home-news__featured {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
    }

    .home-news__featured-link {
        flex: 1;
        min-height: 0;
        height: 100%;
    }

    .home-news__featured-link .home-news__media--featured {
        flex-shrink: 0;
    }

    .home-news__featured-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 0;
    }
}

.home-news__featured-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 28px rgba(24, 34, 90, 0.07);
    border: 1px solid rgba(24, 34, 90, 0.07);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-news__featured-link:hover {
    box-shadow: 0 14px 40px rgba(24, 34, 90, 0.11);
    transform: translateY(-2px);
}

.home-news__media {
    position: relative;
    overflow: hidden;
    background: #e8eaf2;
}

.home-news__media--featured {
    aspect-ratio: 16 / 9;
}

.home-news__media--card {
    aspect-ratio: 16 / 9;
}

.home-news__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-news__media--fallback img {
    object-fit: contain;
    padding: 1rem;
    background: #f0f0f0;
}

.home-news__featured-body {
    padding: 1.2rem 1.35rem 1.45rem;
}

.home-news__date {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #5c6478;
    display: block;
    margin-bottom: 0.45rem;
}

.home-news__date--small {
    font-size: 0.68rem;
    margin-bottom: 0.35rem;
}

.home-news__featured-headline {
    font-size: clamp(1.12rem, 2vw, 1.42rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: #18225a;
    margin: 0;
}

.home-news__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media screen and (min-width: 576px) {
    .home-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 992px) {
    .home-news__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem 1rem;
    }
}

.home-news__card {
    margin: 0;
    min-width: 0;
}

.home-news__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(24, 34, 90, 0.08);
    box-shadow: 0 4px 16px rgba(24, 34, 90, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-news__card-link:hover {
    box-shadow: 0 8px 24px rgba(24, 34, 90, 0.09);
    transform: translateY(-2px);
}

.home-news__card-body {
    padding: 0.85rem 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-news__card-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: #18225a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (min-width: 992px) {
    .home-news__grid .home-news__card-title {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* ==================== Home / team hub hero ==================== */
/* Section min-height keeps layout stable. Live cards intentionally do NOT use hero-only compact overrides so they match the calendar page (see style.css + .calendar-day-games.resultados-inner-wp). */
.hero-area {
    min-height: 240px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.hero-area--initial-load .hero-wrapper--initial-load {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-area__loading-msg {
    padding: 2rem;
    text-align: center;
    color: #5c6478;
    font-weight: 600;
}

.hero-area .hero-slider {
    padding-bottom: 76px;
}

.hero-area .hero-slider .swiper-pagination {
    bottom: 8px !important;
    margin-top: 0;
}

/* Final + scheduled cards in the hero carousel match the live card's height. Swiper already
   makes every .swiper-slide div the same height (= tallest slide), so all we need is the
   card itself to fill its slide. Live + linescore variants already get height:100% via the
   live card overrides; this adds the same for final/scheduled so the actions row aligns
   across the carousel. */
.hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--final)
    .hero-match-card--home-simplified.hero-match-card--final,
.hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--scheduled)
    .hero-match-card--home-simplified.hero-match-card--scheduled,
.hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--live)
    .hero-match-card--home-simplified.hero-match-card--live,
.hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--live-linescore)
    .hero-match-card--home-simplified.hero-match-card--live-linescore,
.hero-area .hero-slider .swiper-slide:has(.hero-match-card--final-with-innings)
    .hero-match-card--final-with-innings {
    height: 100%;
}

/* Pin footer (finals: pitching + actions) or standalone actions to the bottom in the hero carousel. */
.hero-area .hero-slider .swiper-slide .hero-match-card--home-simplified .home-hero-card__footer-stack {
    margin-top: auto;
}

.hero-area
    .hero-slider
    .swiper-slide
    .hero-match-card--home-simplified
    .home-hero-card__footer-stack
    .home-hero-card__actions {
    margin-top: 0;
}

.hero-area .hero-slider .swiper-slide .hero-match-card--home-simplified .home-hero-card__actions {
    margin-top: auto;
}

/* Desktop: pin date switcher to top of hero instead of vertical center — avoids jump when hero height changes */
@media (min-width: 768px) {
    .hero-area .hero-date-switcher {
        top: 28px;
        transform: none;
    }

    /* Pad the wrapper so the swiper area starts to the right of the absolutely-positioned date
       picker (~120-130px wide at left:0 of .hero-area). */
    .hero-area .hero-wrapper {
        padding-left: 110px;
    }

    /* style.css overrides Swiper's default `overflow: hidden` to `visible`, which lets Swiper's
       pre-rendered off-screen neighbor slides bleed leftward across the picker zone. Restore
       hidden on desktop so anything outside the swiper viewport is clipped. */
    .hero-area .hero-slider {
        overflow: hidden;
    }
}

/* Tablet / small desktop Swiper (2 per view): drop style.css slide min-widths so Swiper can size columns. */
@media (min-width: 768px) and (max-width: 1399px) {
    .hero-area .hero-slider .swiper-slide,
    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--live),
    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--final),
    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--scheduled),
    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--final-with-innings) {
        min-width: 0;
        max-width: none;
    }
}

/* Three-across hero (≥1400, Swiper slidesPerView: auto): each slide width matches its card so
   spaceBetween is the real gap between card edges (mixed live + finals no longer has “slack”
   inside wide columns next to narrow cards). */
@media (min-width: 1400px) {
    .hero-area .hero-slider .swiper-slide {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-shrink: 0;
        width: 380px;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }

    .hero-area .hero-slider
        .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--final):not(:has(.hero-match-card--final-with-innings)) {
        width: 380px;
    }

    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--final-with-innings) {
        width: min(100%, 380px);
    }

    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--scheduled) {
        width: 380px;
    }

    .hero-area .hero-slider .swiper-slide .hero-match-card--home-simplified.hero-match-card--final,
    .hero-area .hero-slider .swiper-slide .hero-match-card--home-simplified.hero-match-card--final-with-innings {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        align-self: stretch;
    }

    .hero-area .hero-slider .swiper-slide .hero-match-card--home-simplified.hero-match-card--scheduled {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .hero-area .hero-slider .swiper-slide .hero-match-card--home-simplified {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
    }
}

@media (max-width: 767px) {
    .hero-area {
        padding-top: 10px;
        padding-bottom: 18px;
    }

    .hero-area .hero-slider {
        padding-bottom: 48px;
        /* Clip neighbor slides so a single card always fills the screen with nothing peeking */
        overflow-x: clip;
    }

    .hero-area .hero-slider .swiper-pagination {
        bottom: 6px !important;
    }

    /* Mobile: drop the per-variant 380/420/etc min-widths so the slide is exactly viewport-wide
       and the card fills it with no partial neighbor visible on either side. */
    .hero-area .hero-slider .swiper-slide,
    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--live),
    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--final),
    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--home-simplified.hero-match-card--scheduled),
    .hero-area .hero-slider .swiper-slide:has(.hero-match-card--final-with-innings) {
        min-width: 0;
        max-width: 100%;
    }

    /* Centre the card inside the slide so the active card is centred on the phone screen */
    .hero-area .hero-slider .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: stretch;
    }

    .hero-area .hero-slider .swiper-slide .hero-match-card--home-simplified {
        margin-inline: auto;
    }
}

/* ==================== Estadísticas: sticky column headers (bateo / pitcheo / fildeo) ==================== */
/* `overflow: hidden` on the table clips `position: sticky` on thead cells; `border-collapse: collapse`
   breaks sticky in some browsers — use separate + zero spacing inside the scrollport. */
.estadistica-table-scroll > .estadistica-table.estadistica-table--sortable {
    overflow: visible;
    border-collapse: separate;
    border-spacing: 0;
}

.estadistica-table-scroll > .estadistica-table.estadistica-table--sortable thead th.sortable {
    position: sticky;
    top: 0;
    z-index: 4;
    background: linear-gradient(180deg, var(--primery-color, #18225a) 0%, #29275e 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media screen and (max-width: 991px) {
    .estadistica-table-scroll > .estadistica-table.estadistica-table--sortable thead th.sortable:first-child {
        left: 0;
        z-index: 6;
        box-shadow: 4px 2px 10px rgba(0, 0, 0, 0.2);
    }

    .estadistica-table-scroll > .estadistica-table.estadistica-table--sortable thead th.sortable:not(:first-child) {
        z-index: 5;
    }
}

@keyframes loading-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Player names: link to `/jugador/:id/:slug` (see PlayerNameLink.jsx) */
a.player-name-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}
a.player-name-link:hover {
    text-decoration: underline;
}

.pitcher-name h5 .player-name-link {
    font-size: inherit;
}

.loading-spinner-ring {
    display: inline-block;
    box-sizing: border-box;
    border-radius: 50%;
    animation: loading-spinner-rotate 0.65s linear infinite;
}