/* ============================================
   MP247 Tennis Plugin - Compiled Stylesheet
   ============================================ */

/* Variables as CSS Custom Properties */
:root {
    --mp247-color-primary: #231F20;
    --mp247-color-secondary: #DDF912;
    --mp247-color-stroke: #D9D9D9;
    --mp247-color-white: #fff;
    --mp247-color-gray-light: #F1F2F2;
    --mp247-color-gray: #A8A8A8;
    --mp247-color-gray-dark: #374151;
    --mp247-color-success: #10B981;
    --mp247-color-error: #EF4444;
    --mp247-color-warning: #F59E0B;
    --mp247-color-live: #EF4444;
    --mp247-font-main: 'Notos Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mp247-font-title: 'Geologica', var(--mp247-font-main);
    --mp247-radius-sm: 4px;
    --mp247-radius-md: 8px;
    --mp247-radius-lg: 12px;
    --mp247-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mp247-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mp247-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
.mp247-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .mp247-container {
    }
}

.mp247-main {
    padding: 1.5rem 0;
}

@media (min-width: 768px) {
    .mp247-main {
        padding: 2rem 0;
    }
}

.mp247-page-header {
    margin-bottom: 2rem;
}

.mp247-page-header__title {
    font-family: var(--font-title);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mp247-color-primary);
    margin: 0;
}

.mp247-page-header__title.no-border-title {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .mp247-page-header__title {
        font-size: 2rem;
        font-family: var(--font-title);
        padding-bottom: 15px;
    }
}

.mp247-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--mp247-radius-md);
    cursor: pointer;
    transition: all 150ms ease;
    background-color: var(--mp247-color-primary);
    color: var(--mp247-color-white);
}

.mp247-btn:hover:not(:disabled) {
    background-color: var(--color_prime);
}

.mp247-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mp247-btn--secondary {
    background-color: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
}

.mp247-btn--secondary:hover:not(:disabled) {
    background-color: #c9e40e;
}

.mp247-btn--outline {
    background-color: transparent;
    border: 2px solid var(--mp247-color-primary);
    color: var(--mp247-color-primary);
}

.mp247-btn--outline:hover:not(:disabled) {
    background-color: var(--mp247-color-primary);
    color: var(--mp247-color-white);
}

.mp247-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--mp247-color-stroke);
    border-top-color: var(--mp247-color-primary);
    border-radius: 50%;
    animation: mp247-spin 0.8s linear infinite;
}

.mp247-spinner--small {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
}

@keyframes mp247-spin {
    to {
        transform: rotate(360deg);
    }
}

.mp247-error-message {
    background-color: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-lg);
    box-shadow: var(--mp247-shadow-sm);
    padding: 2rem;
    text-align: center;
}

.mp247-error-message h1 {
    font-family: var(--mp247-font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin-bottom: 1rem;
}

.mp247-error-message p {
    font-family: var(--mp247-font-main);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--mp247-color-gray-dark);
    margin-bottom: 1.5rem;
}

.mp247-error {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--mp247-color-error);
    padding: 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: var(--mp247-radius-md);
}

/* Rankings Styles */
.mp247-rankings__filters {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.mp247-rankings__filter-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.mp247-rankings__filter-label {
    font-family: var(--mp247-font-title);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mp247-color-gray);
}

.mp247-rankings__toggle {
    display: flex;
    background-color: var(--mp247-color-white);
    border-radius: var(--mp247-radius-md);
    overflow: hidden;
    border: 1px solid var(--mp247-color-stroke);
}

.mp247-rankings__toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    background-color: transparent;
    color: var(--mp247-color-gray-dark);
    border: none;
    border-radius: 0;
    min-width: 80px;
    cursor: pointer;
    transition: all 150ms ease;
}

.mp247-rankings__toggle-btn:hover:not(.mp247-rankings__toggle-btn--active) {
    background-color: var(--mp247-color-gray-light);
}

.mp247-rankings__toggle-btn--active {
    background-color: var(--mp247-color-primary);
    color: var(--mp247-color-white);
}

.mp247-rankings__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--mp247-color-gray);
}

.mp247-rankings__table-wrapper {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .mp247-rankings__table-wrapper {
        margin: 0;
        padding: 0;
    }
}

.mp247-rankings__table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--mp247-color-white);
    overflow: hidden;
    border: 1px solid var(--mp247-color-stroke);
}

.mp247-rankings__table>thead>tr {
    background: linear-gradient(124deg, rgba(221, 249, 18, 0.00) 26.5%, #DDF912 205.77%);
    background-color: var(--color_prime);
}

.mp247-rankings__th {
    font-family: var(--nx-title-font-family);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: left;
    padding: 1rem;
    color: var(--mp247-color-secondary);
    white-space: nowrap;
}

.mp247-rankings__th--rank {
    width: 60px;
    text-align: center;
}

.mp247-rankings__th--movement {
    width: 50px;
    text-align: center;
    display: none;
}

.mp247-rankings__td--movement {
    display: none;
}

@media (min-width: 768px) {
    .mp247-rankings__th--movement, .mp247-rankings__td--movement {
        display: table-cell;
    }
}

.mp247-rankings__th--points,
.mp247-rankings__th--tournaments {
    text-align: center !important;
    width: 106px;
    font-family: var(--nx-title-font-family);
}

.mp247-rankings__row {
    border-bottom: 1px solid var(--mp247-color-stroke);
    transition: background-color 150ms ease;
}

.mp247-rankings__row:last-child {
    border-bottom: none;
}

.mp247-rankings__row:hover {
    background-color: var(--mp247-color-gray-light);
}

.mp247-rankings__td {
    font-family: var(--nx-title-font-family);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 1rem;
    vertical-align: middle;
    color: var(--mp247-color-gray-dark);
}

.mp247-rankings__td--rank {
    text-align: center;
}

.mp247-rankings__td--movement {
    text-align: center;
}

.mp247-rankings__td--points,
.mp247-rankings__td--tournaments {
    text-align: center !important;

}

.mp247-rankings__rank {
    font-family: var(--mp247-font-title);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    color: var(--mp247-color-primary);
    background: #F1F2F2;
    border-radius: 6px;
}

.mp247-rankings__movement {
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.mp247-rankings__movement--up {
    color: var(--mp247-color-success);
}

.mp247-rankings__movement--down {
    color: var(--mp247-color-error);
}

.mp247-rankings__movement--same {
    color: var(--mp247-color-gray);
}

.mp247-rankings__player-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.mp247-rankings__player-link:hover .mp247-rankings__player-name {
    color: var(--mp247-color-primary);
    text-decoration: underline;
}

.mp247-rankings__player-photo {
    position: relative;
    flex-shrink: 0;
}

.mp247-rankings__headshot {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--mp247-color-gray-light);
    border: 2px solid var(--mp247-color-stroke);
}

.mp247-rankings__flag-badge {
    position: absolute;
    bottom: -2px;
    right: -4px;
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: var(--mp247-shadow-sm);
    border: 1px solid var(--mp247-color-white);
}

.mp247-rankings__flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: var(--mp247-shadow-sm);
}

.mp247-rankings__player-name {
    font-weight: 400;
    color: var(--mp247-color-primary);
    transition: color 150ms ease;
}

.mp247-rankings__points {
    font-weight: 400;
    color: var(--mp247-color-primary);
}

.mp247-rankings__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.mp247-rankings__page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--mp247-color-white);
    color: var(--mp247-color-primary);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-md);
    cursor: pointer;
    transition: all 150ms ease;
}

.mp247-rankings__page-btn:hover:not(:disabled):not(.mp247-rankings__page-btn--active) {
    border-color: var(--mp247-color-primary);
    background-color: var(--mp247-color-gray-light);
}

.mp247-rankings__page-btn--active {
    background-color: var(--mp247-color-primary);
    color: var(--mp247-color-white);
    border-color: var(--mp247-color-primary);
}

.mp247-rankings__page-btn--nav svg {
    width: 16px;
    height: 16px;
}

/* Load More Styles */
.mp247-rankings__load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mp247-color-stroke);
}

.mp247-rankings__load-more-info {
    font-size: 0.875rem;
    color: var(--mp247-color-gray);
}

.mp247-rankings__load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--mp247-font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    background-color: var(--color_prime);
    color: var(--mp247-color-secondary);
    border: none;
    border-radius: var(--mp247-radius-md);
    cursor: pointer;
    transition: all 200ms ease;
}

.mp247-rankings__load-more-btn:hover:not(:disabled) {
    background-color: var(--mp247-color-primary-dark, #1a1a1a);
    transform: translateY(-1px);
}

.mp247-rankings__load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mp247-rankings__load-more-text {
    font-weight: 600;
}

.mp247-rankings__load-more-count {
    font-weight: 400;
    opacity: 0.8;
}


/* Player Header Styles */
.mp247-player-header {
    background-color: var(--color_prime);
    background-image: linear-gradient(127deg, rgba(221, 249, 18, 0.00) 67.92%, #DDF912 173.72%);
    padding: 1.5rem 0;
}

@media (min-width: 768px) {
    .mp247-player-header {
        padding: 2rem 0;
    }
}

.mp247-player-header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--mp247-color-stroke);
    position: relative;
}

.mp247-player-header__main:before {
    content: "";
    background-image: url("/wp-content/themes/nx-theme-child/assets/images/top_match_svg.svg");
    background-size: contain;
    width: 123px;
    height: 110px;
    position: absolute;
    left: 0;
    top: -2rem;
}

@media (min-width: 768px) {
    .mp247-player-header__main:before {
        width: 175px;
        height: 157px;
    }
}

.mp247-player-header__main:after {
    content: "";
    background-image: url("/wp-content/themes/nx-theme-child/assets/images/bottom_match_svg.svg");
    background-size: contain;
    width: 123px;
    height: 110px;
    position: absolute;
    right: 0;
    bottom: 0;
}

@media (min-width: 768px) {
    .mp247-player-header__main:after {
        width: 175px;
        height: 157px;
    }
}

.mp247-player-header__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mp247-player-header__photo {
    position: relative;
    flex-shrink: 0;
}

.mp247-player-header__headshot {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--mp247-color-gray-light);
    border: 3px solid var(--mp247-color-secondary);
    box-shadow: var(--mp247-shadow-md);
}

@media (min-width: 768px) {
    .mp247-player-header__headshot {
        width: 142px;
        height: 142px;
        border-width: 4px;
    }
}

.mp247-player-header__flag-badge {
    position: absolute;
    bottom: 0;
    right: -5px;
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: var(--mp247-shadow-sm);
    border: 2px solid var(--mp247-color-white);
}

@media (min-width: 768px) {
    .mp247-player-header__flag-badge {
        width: 36px;
        height: 24px;
    }
}

.mp247-player-header__flag {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: var(--mp247-radius-sm);
    box-shadow: var(--mp247-shadow-md);
}

@media (min-width: 768px) {
    .mp247-player-header__flag {
        width: 64px;
        height: 42px;
    }
}

.mp247-player-header__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mp247-player-header__name {
    font-family: var(--mp247-font-title);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mp247-color-white);
    margin: 0;
}

@media (min-width: 768px) {
    .mp247-player-header__name {
        font-size: 1.875rem;
    }
}

.mp247-player-header__country {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--mp247-color-secondary);
}

.mp247-player-header__rankings {
    display: flex;
    gap: 1rem;
}

.mp247-player-header__ranking {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background-color: var(--mp247-color-secondary);
    border-radius: var(--mp247-radius-md);
}

.mp247-player-header__ranking-label {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--mp247-color-secondary) !important;
}

.mp247-player-header__ranking-value {
    font-family: var(--mp247-font-title);
    font-size: 24px;
    font-weight: 700;
    color: var(--mp247-color-white) !important;
}

.mp247-player-header__ranking-points {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mp247-color-white) !important;
    opacity: 0.8;
}

.mp247-player-header__ranking--current {
    background-color: var(--mp247-color-accent);
}

.mp247-player-header__ranking--current .mp247-player-header__ranking-label,
.mp247-player-header__ranking--current .mp247-player-header__ranking-value,
.mp247-player-header__ranking--current .mp247-player-header__ranking-points {
    color: var(--mp247-color-primary);
}

.mp247-player-header__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .mp247-player-header__stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .mp247-player-header__stats {
        grid-template-columns: repeat(6, 1fr);
        padding: 0;
    }
}

.mp247-player-header__stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    padding: 10px;
    align-items: center;
    border-radius: 15px;
}

.mp247-player-header__stat-label {
    font-family: var(--mp247-font-title);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--mp247-color-secondary);
}

.mp247-player-header__stat-value {
    font-family: var(--mp247-font-title);
    font-size: 12px;
    font-weight: 500;
    color: var(--mp247-color-white);
}

/* Player Content */
.mp247-player-content {
    display: grid;
    gap: 2rem;
}

.mp247-player-section__title {
    font-family: var(--mp247-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mp247-color-secondary);
}

.mp247-player-section__empty {
    font-family: var(--mp247-font-main);
    color: var(--mp247-color-gray);
    text-align: center;
    padding: 2rem;
}

/* Player Section Header */
.mp247-player-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mp247-color-secondary);
}

.mp247-player-section__header .mp247-player-section__title {
    margin: 0;
    padding: 0;
    border: none;
}

.mp247-player-section__link {
    font-family: var(--mp247-font-title);
    font-size: 13px;
    font-weight: 500;
    color: #8d8d8d;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
}

.mp247-player-section__link:hover {
    color: var(--color_prime);
}

/* Player Nav (Tab Navigation) */
.mp247-player-nav {
}

.mp247-player-tabs {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem;
    border-radius: 30px;
    overflow-x: auto;
}

.mp247-player-tabs__btn {
    flex: 1;
    min-width: max-content;
    padding: 0.5rem 1.5rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-secondary);
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    transition: all 0.2s;
}

.mp247-player-tabs__btn:hover {
    color: var(--mp247-color-white);
    background: rgba(255, 255, 255, 0.2);
}

.mp247-player-tabs__btn--active {
    background: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mp247-player-tabs {
        gap: 0;
    }
    
    .mp247-player-tabs__btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Matches List */
.mp247-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp247-match-row {
    background-color: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-lg);
    box-shadow: var(--mp247-shadow-sm);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 1rem;
    transition: box-shadow 150ms ease, transform 150ms ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mp247-match-row {
        grid-template-columns: 200px 1fr auto auto;
        align-items: center;
    }
}

.mp247-match-row:hover {
    box-shadow: var(--mp247-shadow-md);
    transform: translateY(-1px);
}

.mp247-match-row--won {
    border-left: 4px solid var(--mp247-color-success);
}

.mp247-match-row--lost {
    border-left: 4px solid var(--mp247-color-error);
}

.mp247-match-row__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .mp247-match-row__info {
        grid-column: auto;
    }
}

.mp247-match-row__competition {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-primary);
}

.mp247-match-row__round,
.mp247-match-row__date {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

.mp247-match-row__players {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mp247-match-row__player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp247-match-row__player--current .mp247-match-row__name {
    font-weight: 700;
}

.mp247-match-row__player--winner .mp247-match-row__name {
    color: var(--mp247-color-success);
}

.mp247-match-row__flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.mp247-match-row__name {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    color: var(--mp247-color-primary);
    text-decoration: none;
}

.mp247-match-row__name:hover {
    text-decoration: underline;
}

.mp247-match-row__score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mp247-match-row__set {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem;
    background-color: var(--mp247-color-gray-light);
    border-radius: var(--mp247-radius-sm);
    min-width: 40px;
    text-align: center;
}

.mp247-match-row__result {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp247-match-row__badge {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background-color: var(--mp247-color-gray-light);
    color: var(--mp247-color-gray);
}

.mp247-match-row__badge--win {
    background-color: var(--mp247-color-success);
    color: var(--mp247-color-white);
}

.mp247-match-row__badge--loss {
    background-color: var(--mp247-color-error);
    color: var(--mp247-color-white);
}

/* News Grid */
.mp247-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .mp247-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mp247-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mp247-news-card {
    background-color: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-lg);
    box-shadow: var(--mp247-shadow-sm);
    overflow: hidden;
    transition: box-shadow 150ms ease, transform 150ms ease;
}

.mp247-news-card:hover {
    box-shadow: var(--mp247-shadow-lg);
    transform: translateY(-2px);
}

.mp247-news-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.mp247-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms ease;
}

.mp247-news-card__image:hover img {
    transform: scale(1.05);
}

.mp247-news-card__content {
    padding: 1rem;
}

.mp247-news-card__date {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
    margin-bottom: 0.25rem;
}

.mp247-news-card__title {
    font-family: var(--mp247-font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp247-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.mp247-news-card__title a:hover {
    color: var(--color_prime);
}

.mp247-news-card__excerpt {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--mp247-color-gray);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Livescore Styles */
.mp247-livescore__calendar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: -1rem;
    padding: 20px;
    border-radius: 20px;
    background-color: var(--color_prime);
    background-image: linear-gradient(273deg, rgba(221, 249, 18, 0.40) -15.59%, rgba(221, 249, 18, 0.00) 59.82%);
}

.mp247-livescore__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: var(--color_prime);
    color: var(--mp247-color-secondary);
    border: 1px solid var(--mp247-color-secondary);
    border-radius: 30px;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.mp247-livescore__nav:hover:not(:disabled) {
    background-color: var(--mp247-color-primary);
    color: var(--mp247-color-white);
}

.mp247-livescore__nav svg {
    width: 24px;
    height: 24px;
}

.mp247-livescore__dates {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    justify-content: space-evenly;
}

.mp247-livescore__dates::-webkit-scrollbar {
    display: none;
}

.mp247-livescore__date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 60px;
    padding: 0.5rem;
    color: var(--mp247-color-white);
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: var(--mp247-radius-md);
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
    font-family: var(--mp247-font-main);
}

@media (min-width: 640px) {
    .mp247-livescore__date-btn {
        min-width: 105px;
    }
}

.mp247-livescore__date-btn:hover:not(.mp247-livescore__date-btn--active) {
    background-color: var(--mp247-color-primary);
    color: var(--mp247-color-white);
}

.mp247-livescore__date-btn--active {
    background-color: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
}

.mp247-livescore__date-btn--active .mp247-livescore__date-num {
    color: var(--mp247-color-primary);
}

.mp247-livescore__date-btn--today {
    border: 2px solid var(--mp247-color-secondary);
}

.mp247-livescore__date-day {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mp247-livescore__date-num {
    font-family: var(--mp247-font-title);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mp247-color-secondary);
}

.mp247-livescore__date-month {
    font-size: 0.75rem;
}

.mp247-livescore__live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: var(--mp247-radius-md);
    margin-bottom: 1.5rem;
}

.mp247-livescore__live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--mp247-color-live);
    border-radius: 50%;
    animation: mp247-pulse 1.5s infinite;
}

@keyframes mp247-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.mp247-livescore__live-text {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-live);
}

.mp247-livescore__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--mp247-color-gray);
}

.mp247-livescore__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mp247-livescore__competition {
    background-color: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    box-shadow: var(--mp247-shadow-sm);
}

.mp247-livescore__competition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--color_prime);
    color: var(--mp247-color-white);
    text-decoration: none;
    transition: background-color 150ms ease;
    position: sticky;
    top: 94px;
}

.mp247-livescore__competition-header:hover {
    background-color: var(--color_prime);
}

.mp247-livescore__competition-name {
    font-family: var(--mp247-font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp247-color-white);
    margin: 0;
}

.mp247-livescore__competition-category {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.mp247-livescore__competition-badge {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    background-color: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
    border-radius: var(--mp247-radius-sm);
}

.mp247-livescore__matches {
    display: flex;
    flex-direction: column;
}

.mp247-livescore__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    text-align: center;
}

.mp247-livescore__empty svg {
    width: 64px;
    height: 64px;
    color: var(--mp247-color-gray);
}

.mp247-livescore__empty-text {
    font-family: var(--mp247-font-main);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--mp247-color-gray);
}

/* Match Component */
.mp247-match {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--mp247-color-stroke);
    transition: background-color 150ms ease;
    cursor: pointer;
}

.mp247-match:last-child {
    border-bottom: none;
}

.mp247-match:hover {
    background-color: var(--mp247-color-gray-light);
}

.mp247-match__player-name {
    cursor: pointer;
    transition: color 150ms ease;
}

.mp247-match__player-name:hover {
    color: var(--mp247-color-secondary);
    text-decoration: underline;
}

.mp247-match--live,
.mp247-match--inprogress {
    background-color: rgba(239, 68, 68, 0.05);
}

.mp247-match--live:hover,
.mp247-match--inprogress:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.mp247-match__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mp247-match__round {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

.mp247-match__status {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: var(--mp247-radius-sm);
    background-color: var(--mp247-color-gray-light);
    color: var(--mp247-color-gray);
}

.mp247-match__status--live,
.mp247-match__status--inprogress {
    background-color: var(--mp247-color-live);
    color: var(--mp247-color-white);
    animation: mp247-pulse 1.5s infinite;
}

.mp247-match__status--ended,
.mp247-match__status--closed {
    background-color: var(--mp247-color-primary);
    color: var(--mp247-color-white);
}

.mp247-match__status--cancelled,
.mp247-match__status--postponed {
    background-color: var(--mp247-color-warning);
    color: var(--mp247-color-white);
}

.mp247-match__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp247-match__competitor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mp247-match__competitor--winner .mp247-match__player-name {
    font-weight: 700;
}

.mp247-match__competitor--winner .mp247-match__set-score--won {
    background-color: var(--mp247-color-secondary);
}

.mp247-match__player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.mp247-match__flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.mp247-match__player-name {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    color: var(--mp247-color-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp247-match__player-name:hover {
    text-decoration: underline;
}

.mp247-match__seed {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

.mp247-match__scores {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.mp247-match__set-score {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    padding: 2px 0.25rem;
    background-color: var(--mp247-color-gray-light);
    border-radius: var(--mp247-radius-sm);
}

.mp247-match__set-score sup {
    font-size: 0.75rem;
    margin-left: 1px;
}

.mp247-match__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mp247-color-stroke);
}

.mp247-match__venue {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

.mp247-match__time {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mp247-color-primary);
}

/* Match Live Indicator Dot */
.mp247-match__live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 0.25rem;
    animation: mp247-pulse 1.5s infinite;
}

/* Match Card Variant (for grids like tournament matches) */
.mp247-tournament-matches .mp247-match,
.mp247-tournament-round__matches .mp247-match {
    background: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-lg);
    padding: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.mp247-tournament-matches .mp247-match:hover,
.mp247-tournament-round__matches .mp247-match:hover {
    border-color: var(--mp247-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: var(--mp247-color-white);
}

.mp247-tournament-matches .mp247-match--live,
.mp247-tournament-round__matches .mp247-match--live,
.mp247-tournament-matches .mp247-match--in-progress,
.mp247-tournament-round__matches .mp247-match--in-progress {
    border-color: var(--mp247-color-live);
}

/* Player Matches Grid (Overview) */
.mp247-player-matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.mp247-player-matches-grid .mp247-match {
    background: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-lg);
    padding: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.mp247-player-matches-grid .mp247-match:hover {
    border-color: var(--mp247-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: var(--mp247-color-white);
}

.mp247-player-matches-grid .mp247-match--live,
.mp247-player-matches-grid .mp247-match--in-progress {
    border-color: var(--mp247-color-live);
}

/* Widget Styles */
.mp247-widget__title {
    font-family: var(--mp247-font-title);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mp247-color-secondary);
}

.mp247-widget__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp247-widget__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--mp247-color-stroke);
}

.mp247-widget__item:last-child {
    border-bottom: none;
}

.mp247-widget__rank {
    font-family: var(--mp247-font-title);
    font-size: 14px;
    font-weight: 400;
    min-width: 28px;
    text-align: center;
    color: var(--color_prime);
}

.mp247-widget__player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.mp247-widget__flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: var(--mp247-shadow-sm);
    flex-shrink: 0;
}

.mp247-widget__name {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mp247-color-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp247-widget__name:hover {
    text-decoration: underline;
}

.mp247-widget__points {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    flex-shrink: 0;
}

.mp247-widget__more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid var(--mp247-color-primary);
    color: var(--mp247-color-primary);
    border-radius: var(--mp247-radius-md);
    transition: all 150ms ease;
}

.mp247-widget__more:hover {
    background-color: var(--mp247-color-primary);
    color: var(--mp247-color-white);
}

.mp247-widget__empty {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    color: var(--mp247-color-gray);
    text-align: center;
    padding: 1rem;
}

.mp247-widget--shortcode {
    background-color: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-lg);
    box-shadow: var(--mp247-shadow-sm);
    padding: 1rem;
}

/* Player Embed (shortcode) */
.mp247-player-embed {
    background-color: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-lg);
    box-shadow: var(--mp247-shadow-sm);
    padding: 1rem;
    max-width: 400px;
}

.mp247-player-embed__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mp247-color-stroke);
}

.mp247-player-embed__flag {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: var(--mp247-radius-sm);
    box-shadow: var(--mp247-shadow-sm);
}

.mp247-player-embed__info {
    flex: 1;
}

.mp247-player-embed__name {
    font-family: var(--mp247-font-title);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin: 0;
}

.mp247-player-embed__name a {
    color: inherit;
    text-decoration: none;
}

.mp247-player-embed__name a:hover {
    text-decoration: underline;
}

.mp247-player-embed__country {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    color: var(--mp247-color-gray);
}

.mp247-player-embed__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mp247-player-embed__stat {
    display: flex;
    flex-direction: column;
}

.mp247-player-embed__stat-label {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

.mp247-player-embed__stat-value {
    font-family: var(--mp247-font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
}

.mp247-player-embed__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background-color: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
    border: none;
    border-radius: var(--mp247-radius-md);
    transition: all 150ms ease;
}

.mp247-player-embed__link:hover {
    background-color: #c9e40e;
}

.mp247-player-embed__link svg {
    width: 16px;
    height: 16px;
}

/* Player Card (shortcode) */
.mp247-player-card {
    background-color: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-lg);
    box-shadow: var(--mp247-shadow-sm);
    padding: 1rem;
    display: inline-block;
    min-width: 200px;
}

.mp247-player-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mp247-player-card__flag {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 2px;
}

.mp247-player-card__info {
    flex: 1;
}

.mp247-player-card__name {
    font-family: var(--mp247-font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin: 0;
}

.mp247-player-card__name a {
    color: inherit;
    text-decoration: none;
}

.mp247-player-card__name a:hover {
    text-decoration: underline;
}

.mp247-player-card__country {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

.mp247-player-card__rankings {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mp247-player-card__ranking {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--mp247-color-gray-light);
    border-radius: var(--mp247-radius-sm);
}

.mp247-player-card__ranking-type {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

.mp247-player-card__ranking-value {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
}

/* ============================================
   Match Single Page Styles
   ============================================ */

.mp247-match-header {
    color: var(--mp247-color-white);
    padding: 1.25rem;

    background-image: linear-gradient(127deg, rgba(221, 249, 18, 0.00) 67.92%, #DDF912 173.72%);
    background-color: var(--color_prime);
    margin: -1.5rem -1rem 2rem;
}

@media (min-width: 768px) {
    .mp247-match-header {

        padding: 2rem;
        border-radius: var(--mp247-radius-lg);
        margin: 0 0 2rem;
    }
}

.mp247-match-header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;

}

.mp247-match-header__competition {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.mp247-match-header__competition-link {
    color: var(--mp247-color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.mp247-match-header__competition-link:hover {
    text-decoration: underline;
}

.mp247-match-header__round,
.mp247-match-header__surface {
    color: rgba(255, 255, 255, 0.7);
}

.mp247-match-header__round::before,
.mp247-match-header__surface::before {
    content: "•";
    margin-right: 0.5rem;
}

.mp247-match-header__status {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    border-radius: var(--mp247-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.mp247-match-header__status--live,
.mp247-match-header__status--inprogress {
    background: var(--mp247-color-live);
    color: white;
    animation: mp247-pulse 2s infinite;
}

.mp247-match-header__status--ended,
.mp247-match-header__status--closed {
    background: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
}

.mp247-match-header__status--not_started {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mp247-match-header__status--cancelled,
.mp247-match-header__status--postponed {
    background: var(--mp247-color-warning);
    color: white;
}

.mp247-match-header__versus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding: 2rem 1rem;
    margin-inline: -1.25rem;
    position: relative;
}

.mp247-match-header__versus:before {
    content: "";
    background-image: url("/wp-content/themes/nx-theme-child/assets/images/top_match_svg.svg");
    background-size: contain;
    width: 123px;
    height: 110px;
    position: absolute;
    left: 0;
    top: 0;
}

@media (min-width: 768px) {
    .mp247-match-header__versus:before {
        width: 175px;
        height: 157px;
    }
}

.mp247-match-header__versus:after {
    content: "";
    background-image: url("/wp-content/themes/nx-theme-child/assets/images/bottom_match_svg.svg");
    background-size: contain;
    width: 123px;
    height: 110px;
    position: absolute;
    right: 0;
    bottom: 0;
}

@media (min-width: 768px) {
    .mp247-match-header__versus:after {
        width: 175px;
        height: 157px;
    }
}

@media (min-width: 768px) {
    .mp247-match-header__versus {
        gap: 5rem;
        margin-inline: -2rem;
    }
}

.mp247-match-header__category {
display: none;
}
@media (min-width: 768px) {
   .mp247-match-header__category {
       display: block;
    }
}

.mp247-match-header__player {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.mp247-match-header__player--winner .mp247-match-header__player-name {
    color: var(--mp247-color-secondary);
}

.mp247-match-header__player-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.mp247-match-header__player-link:hover {
    transform: scale(1.05);
}

.mp247-match-header__player-photo {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .mp247-match-header__player-photo {
        width: 142px;
        height: 142px;
    }
}

.mp247-match-header__player-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mp247-color-secondary);
}

.mp247-match-header__player-flag {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mp247-match-header__player-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

@media (min-width: 768px) {
    .mp247-match-header__player-name {
        font-size: 1.25rem;
    }
}

.mp247-match-header__player-seed {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.7;
}

.mp247-match-header__winner-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.mp247-match-header__vs {
    font-size: 38px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--color_secondary);
    text-align: center;
}
@media (min-width: 768px) {
    .mp247-match-header__vs {
        font-size: 70px;
    }
}

.mp247-match-header__vs-wrapper
{
    text-align: center;
}

.mp247-match-header__score {
}

.mp247-match-header__score-sets {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;

}

.mp247-match-header__score-set {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--mp247-radius-md);
    flex: 1;
    max-width: 210px;
    justify-content: center;
}

.mp247-match-header__score-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.mp247-match-header__score-values {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.mp247-match-header__score-values sup {
    font-size: 0.625rem;
    font-weight: 400;
    margin-left: 1px;
}

.mp247-match-header__score-separator {
    opacity: 0.5;
}

.mp247-match-header__score-value--won {
    color: var(--mp247-color-secondary);
}

.mp247-match-header__score-set--live {
    background: rgb(221 249 18 / 8%);
    border: 1px solid rgb(221 249 18);
}

.mp247-match-header__score-set--live .mp247-match-header__score-label {
    color: #FFF;
    opacity: 1;
    font-weight: 600;
}

.mp247-match-header__score-value--serving {
    position: relative;
}

.mp247-match-header__score-value--serving::before {
    content: "•";
    position: absolute;
    left: -12px;
    color: var(--mp247-color-secondary);
    font-size: 1rem;
}

.mp247-match-header__point-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mp247-color-secondary);
}

.mp247-match-header__info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .mp247-match-header__info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        display: none;
    }
}

.mp247-match-header__date,
.mp247-match-header__venue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp247-match-header__date svg,
.mp247-match-header__venue svg {
    opacity: 0.7;
}

.mp247-match-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mp247-match-section {
    background: var(--mp247-color-white);
    border-radius: var(--mp247-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--mp247-shadow-sm);
    border: 1px solid var(--mp247-color-stroke);
}

.mp247-match-section__title {
    font-family: var(--mp247-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--mp247-color-secondary);
}

.mp247-match-section__empty {
    color: var(--mp247-color-gray);
    text-align: center;
    padding: 2rem;
}

/* Head to Head */
.mp247-h2h__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--mp247-color-primary) 0%, var(--color_prime) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--mp247-radius-md);
    margin-bottom: 1.5rem;
}

.mp247-h2h__player {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.mp247-h2h__player--right {
    align-items: flex-end;
    text-align: right;
}

.mp247-h2h__player-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.mp247-h2h__wins {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mp247-color-secondary);
}

.mp247-h2h__center {
    text-align: center;
}

.mp247-h2h__total {
    font-size: 0.875rem;
    opacity: 0.7;
}

.mp247-h2h__matches {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp247-h2h__matches-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.mp247-h2h__match {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--mp247-radius-md);
    background: var(--mp247-color-gray-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.mp247-h2h__match:hover {
    background: #e5e7eb;
    transform: translateX(4px);
}

.mp247-h2h__match-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--mp247-color-gray);
}

.mp247-h2h__match-year {
    font-weight: 700;
    color: var(--mp247-color-primary);
    min-width: 40px;
}

.mp247-h2h__match-competition {
    font-weight: 600;
    color: var(--mp247-color-gray-dark);
}

.mp247-h2h__match-round {
    padding: 0.125rem 0.5rem;
    background: var(--mp247-color-white);
    border-radius: var(--mp247-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.mp247-h2h__match-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: right;
}

.mp247-h2h__match-winner-name {
    font-weight: 600;
    color: var(--mp247-color-primary);
    font-size: 0.875rem;
}

.mp247-h2h__match-score-sets {
    font-family: var(--mp247-font-mono, monospace);
    font-size: 0.8125rem;
    color: var(--mp247-color-gray-dark);
    letter-spacing: 0.02em;
}

.mp247-h2h__match-surface {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--mp247-color-primary);
    color: var(--mp247-color-secondary);
    border-radius: var(--mp247-radius-sm);
    font-weight: 600;
    text-transform: capitalize;
}

.mp247-h2h__no-matches {
    font-size: 0.875rem;
    color: var(--mp247-color-gray);
    font-style: italic;
    padding: 1rem 0;
}

/* Legacy H2H styles (for backwards compatibility) */
.mp247-h2h__match-info {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

.mp247-h2h__match-score {
    font-size: 0.875rem;
}

.mp247-h2h__match-vs {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.mp247-h2h__match-winner {
    font-weight: 600;
    color: var(--mp247-color-primary);
}

@media (max-width: 640px) {
    .mp247-h2h__match {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .mp247-h2h__match-result {
        justify-content: flex-start;
        text-align: left;
    }
    
    .mp247-h2h__match-surface {
        justify-self: flex-start;
    }
}

/* Statistics */
.mp247-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mp247-stats__row {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .mp247-stats__row {
        grid-template-columns: 80px 1fr 80px;
    }
}

.mp247-stats__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mp247-color-gray);
}

.mp247-stats__value--home {
    text-align: right;
}

.mp247-stats__value--away {
    text-align: left;
}

.mp247-stats__value--better {
    color: var(--mp247-color-primary);
}

.mp247-stats__bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp247-stats__label {
    font-size: 0.75rem;
    text-align: center;
    color: var(--mp247-color-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.mp247-stats__bars {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.mp247-stats__bar {
    flex: 1;
    height: 8px;
    background: var(--mp247-color-gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.mp247-stats__bar--home {
    display: flex;
    justify-content: flex-end;
}

.mp247-stats__bar--away {
    display: flex;
    justify-content: flex-start;
}

.mp247-stats__bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mp247-stats__bar-fill--home {
    background: var(--mp247-color-secondary);
    border-radius: 4px 0 0 4px;
}

.mp247-stats__bar-fill--away {
    background: var(--mp247-color-primary);
    border-radius: 0 4px 4px 0;
}

.mp247-stats__bar-fill--better.mp247-stats__bar-fill--home {
    background: var(--mp247-color-secondary);
}

.mp247-stats__bar-fill--better.mp247-stats__bar-fill--away {
    background: var(--mp247-color-primary);
}

/* ============================================
   Competition Page Styles
   ============================================ */

.mp247-competition-header {
    background: linear-gradient(108deg, var(--color_prime) 71.95%, #DDF912 149.84%), var(--color_prime);
    color: var(--mp247-color-white);
    padding: 2rem;
    border-radius: var(--mp247-radius-lg);
    margin-bottom: 2rem;
}

.mp247-competition-header__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .mp247-competition-header__main {
        flex-direction: column;
        gap: 1rem;
    }
}

.mp247-competition-header__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mp247-competition-header__category {
    font-size: 0.875rem;
    color: var(--mp247-color-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mp247-competition-header__name {
    font-family: var(--mp247-font-title);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

@media (min-width: 768px) {
    .mp247-competition-header__name {
        font-size: 2.25rem;
    }
}

.mp247-competition-header__season {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.mp247-competition-header__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mp247-competition-header__badge,
.mp247-competition-header__surface {
    padding: 0.375rem 0.75rem;
    border-radius: var(--mp247-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mp247-competition-header__badge {
    background: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
}

.mp247-competition-header__surface {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mp247-competition-header__venue,
.mp247-competition-header__prize {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.mp247-competition-header__venue svg,
.mp247-competition-header__prize svg {
    opacity: 0.7;
}

/* Tabs */
.mp247-tabs__nav {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.mp247-tabs__btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--mp247-font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mp247-color-gray);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.mp247-tabs__btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 2px 2px 0 0;
    transition: background 0.2s;
}

.mp247-tabs__btn:hover {
    color: var(--mp247-color-primary);
}

.mp247-tabs__btn--active {
    color: var(--mp247-color-primary);
}

.mp247-tabs__btn--active::after {
    background: var(--mp247-color-secondary);
}

.mp247-tabs__panel {
    display: none;
}

.mp247-tabs__panel--active {
    display: block;
}

.mp247-tabs__empty {
    text-align: center;
    padding: 3rem;
    color: var(--mp247-color-gray);
    background: var(--mp247-color-gray-light);
    border-radius: var(--mp247-radius-md);
}

/* Rounds Navigation */
.mp247-rounds__nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.mp247-rounds__nav::-webkit-scrollbar {
    height: 4px;
}

.mp247-rounds__nav::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 2px;
}

.mp247-rounds__nav::-webkit-scrollbar-thumb {
    background: var(--mp247-color-primary);
    border-radius: 2px;
}

.mp247-rounds__btn {
    padding: 0.5rem 1rem;
    background: var(--mp247-color-gray-light);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-family: var(--mp247-font-main);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mp247-color-gray);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.mp247-rounds__btn:hover {
    background: #e5e7eb;
    color: var(--mp247-color-primary);
}

.mp247-rounds__btn--active {
    background: var(--mp247-color-primary);
    border-color: var(--mp247-color-primary);
    color: var(--mp247-color-secondary);
}

/* Round Content */
.mp247-round {
    margin-bottom: 2rem;
}

.mp247-round__title {
    font-family: var(--mp247-font-title);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mp247-color-secondary);
}

.mp247-round__matches {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp247-round__match {
    display: block;
    background: var(--mp247-color-gray-light);
    border-radius: var(--mp247-radius-md);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.mp247-round__match:hover {
    background: white;
    border-color: #e5e7eb;
    box-shadow: var(--mp247-shadow-sm);
}

.mp247-round__match--live,
.mp247-round__match--inprogress {
    border-left: 3px solid var(--mp247-color-live);
}

.mp247-round__match-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mp247-round__match-status-label {
    font-family: var(--mp247-font-main);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.mp247-round__match-status--live,
.mp247-round__match-status--inprogress {
    background: var(--mp247-color-live);
    color: white;
}

.mp247-round__match-status--ended,
.mp247-round__match-status--closed {
    background: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
}

.mp247-round__match-status--not_started {
    background: #e5e7eb;
    color: var(--mp247-color-gray);
}

.mp247-round__match-time {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

.mp247-round__match-players {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp247-round__match-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp247-round__match-player--winner .mp247-round__match-name {
    font-weight: 600;
    color: var(--mp247-color-primary);
}

.mp247-round__match-player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mp247-round__match-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.mp247-round__match-name {
    font-family: var(--mp247-font-main);
    font-size: 0.9375rem;
    color: var(--mp247-color-gray);
}

.mp247-round__match-seed {
    font-size: 0.75rem;
    opacity: 0.7;
}

.mp247-round__match-scores {
    display: flex;
    gap: 0.75rem;
}

.mp247-round__match-set {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mp247-color-gray);
    min-width: 20px;
    text-align: center;
}

.mp247-round__match-set--won {
    font-weight: 700;
    color: var(--mp247-color-primary);
}

/* View Toggle */
.mp247-bracket-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mp247-bracket-toggle__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--mp247-color-gray-light);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mp247-color-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.mp247-bracket-toggle__btn svg {
    opacity: 0.6;
}

.mp247-bracket-toggle__btn:hover {
    background: var(--mp247-color-stroke);
    color: var(--mp247-color-primary);
}

.mp247-bracket-toggle__btn:hover svg {
    opacity: 1;
}

.mp247-bracket-toggle__btn--active {
    background: var(--mp247-color-primary);
    border-color: var(--mp247-color-primary);
    color: var(--mp247-color-secondary);
}

.mp247-bracket-toggle__btn--active svg {
    opacity: 1;
    stroke: var(--mp247-color-secondary);
}

/* Tournament Bracket */
.mp247-bracket {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Header Wrapper with Navigation */
.mp247-bracket__header-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--mp247-color-stroke);
    min-height: 45px;
    background: #f1f2f2;
}

.mp247-bracket__header {
    display: flex;
    flex: 1;
    gap: 0;
    margin-bottom: 0;
}

.mp247-bracket__round-header {
    font-family: var(--mp247-font-title);
    flex: 1;
    padding: 0.875rem 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color_prime);
    background: var(--mp247-color-gray-light);
    border-right: 1px solid var(--mp247-color-stroke);
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.mp247-bracket__round-header:last-child {
    border-right: none;
}

.mp247-bracket__round-header--visible {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.mp247-bracket__round-header:hover {
    background: var(--mp247-color-stroke);
    color: var(--mp247-color-primary);
}

/* Navigation Arrows - Now in header */
.mp247-bracket__nav {
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mp247-color-gray-light);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mp247-bracket__nav svg {
    stroke: var(--mp247-color-gray);
    transition: stroke 0.2s;
}

.mp247-bracket__nav:hover {
    background: var(--mp247-color-primary);
}

.mp247-bracket__nav:hover svg {
    stroke: var(--mp247-color-secondary);
}

.mp247-bracket__nav:disabled,
.mp247-bracket__nav[style*="visibility: hidden"] {
    opacity: 0.3;
    cursor: not-allowed;
}

.mp247-bracket__nav--prev {
    border-right: 1px solid var(--mp247-color-stroke);
}

.mp247-bracket__nav--next {
    border-left: 1px solid var(--mp247-color-stroke);
}

.mp247-bracket__container {
    padding: 0;
    background: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-top: none;
    min-height: 400px;
    overflow: hidden;
}

.mp247-bracket__track {
    display: flex;
    height: 100%;
}

.mp247-bracket__round {
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    padding: 1.5rem 0;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mp247-bracket__round:last-child {
    border-right: none;
}

.mp247-bracket__round--visible {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for rounds */
.mp247-bracket__round--visible:nth-child(1) {
    transition-delay: 0s;
}

.mp247-bracket__round--visible:nth-child(2) {
    transition-delay: 0.1s;
}

.mp247-bracket__round--visible:nth-child(3) {
    transition-delay: 0.2s;
}

/* Animation for match wrappers */
.mp247-bracket__match-wrapper {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mp247-bracket__round--visible .mp247-bracket__match-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for matches */
.mp247-bracket__round--visible .mp247-bracket__match-wrapper:nth-child(1) { transition-delay: 0.05s; }
.mp247-bracket__round--visible .mp247-bracket__match-wrapper:nth-child(2) { transition-delay: 0.1s; }
.mp247-bracket__round--visible .mp247-bracket__match-wrapper:nth-child(3) { transition-delay: 0.15s; }
.mp247-bracket__round--visible .mp247-bracket__match-wrapper:nth-child(4) { transition-delay: 0.2s; }
.mp247-bracket__round--visible .mp247-bracket__match-wrapper:nth-child(5) { transition-delay: 0.25s; }
.mp247-bracket__round--visible .mp247-bracket__match-wrapper:nth-child(6) { transition-delay: 0.3s; }
.mp247-bracket__round--visible .mp247-bracket__match-wrapper:nth-child(7) { transition-delay: 0.35s; }
.mp247-bracket__round--visible .mp247-bracket__match-wrapper:nth-child(8) { transition-delay: 0.4s; }

.mp247-bracket__match-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    flex: 1;
}

/* Bracket Connector Lines */
.mp247-bracket__connector {
    position: absolute;
    right: -1rem;
    top: 0;
    bottom: 0;
    width: 2rem;
    pointer-events: none;
}

.mp247-bracket__connector-line {
    position: absolute;
    background: var(--mp247-color-stroke);
}

.mp247-bracket__connector-line--horizontal {
    width: 100%;
    height: 2px;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
}

.mp247-bracket__connector-line--vertical-down {
    width: 2px;
    height: 50%;
    right: 6px;
    top: 50%;
}

.mp247-bracket__connector-line--vertical-up {
    width: 2px;
    height: 50%;
    right: 6px;
    bottom: 50%;
}

/* Add horizontal line from vertical to next match */
.mp247-bracket__connector-line--vertical-down::after,
.mp247-bracket__connector-line--vertical-up::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 2px;
    background: var(--mp247-color-stroke);
    right: 0;
}

.mp247-bracket__connector-line--vertical-down::after {
    bottom: 0;
    transform: translateX(100%);
}

.mp247-bracket__connector-line--vertical-up::after {
    top: -2px;
    transform: translateX(100%);
}

.mp247-bracket__match {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border: 1px solid var(--mp247-color-stroke);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-height: 91px;
}

.mp247-bracket__match:hover {
    border-color: var(--mp247-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mp247-bracket__match--live,
.mp247-bracket__match--inprogress {
    border-left: 3px solid var(--mp247-color-live);
}

.mp247-bracket__player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid var(--mp247-color-gray-light);
    transition: background 0.15s;
    gap: 0.5rem;
}

.mp247-bracket__player:nth-child(2) {
    border-bottom: none;
}

.mp247-bracket__player:hover {
    background: var(--mp247-color-gray-light);
}

.mp247-bracket__player--winner {
    background: linear-gradient(90deg, rgba(221, 249, 18, 0.1) 0%, transparent 100%);
}

.mp247-bracket__player--winner .mp247-bracket__name {
    font-weight: 600;
    color: var(--mp247-color-primary);
}

.mp247-bracket__player--bye {
    opacity: 0.5;
    background: var(--mp247-color-gray-light);
}

.mp247-bracket__player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

/* Player initials circle */
.mp247-bracket__initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mp247-color-gray-light);
    color: var(--mp247-color-gray-dark);
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.mp247-bracket__player--winner .mp247-bracket__initials {
    background: var(--mp247-color-primary);
    color: var(--mp247-color-secondary);
}

.mp247-bracket__flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.mp247-bracket__name {
    font-size: 0.8125rem;
    color: var(--mp247-color-gray-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp247-bracket__seed {
    font-size: 0.6875rem;
    color: var(--mp247-color-gray);
    margin-left: 0.125rem;
}

.mp247-bracket__bye-text {
    font-size: 0.8125rem;
    color: var(--mp247-color-gray);
    font-style: italic;
}

.mp247-bracket__scores {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.mp247-bracket__winner-mark {
    color: var(--mp247-color-success);
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.25rem;
}

.mp247-bracket__set {
    min-width: 18px;
    height: 20px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mp247-color-gray);
    padding: 0 0.25rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp247-bracket__set--won {
    font-weight: 700;
    color: var(--mp247-color-primary);
    background: rgba(221, 249, 18, 0.3);
}

.mp247-bracket__match-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.375rem;
    background: var(--mp247-color-gray-light);
    border-top: 1px solid var(--mp247-color-stroke);
}

.mp247-bracket__action-btn {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--mp247-color-gray);
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--mp247-color-stroke);
    border-radius: 4px;
    background: white;
    transition: all 0.15s;
}

.mp247-bracket__action-btn:hover {
    border-color: var(--mp247-color-primary);
    color: var(--mp247-color-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mp247-bracket__nav {
        width: 36px;
    }
    
    .mp247-bracket__match {
        max-width: none;
        min-width: 0;
    }
    
    .mp247-bracket__name {
        font-size: 0.75rem;
    }
    
    .mp247-bracket__round-header {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    /* Mobile: Show one round with peek of next */
    .mp247-bracket--mobile .mp247-bracket__container {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .mp247-bracket--mobile .mp247-bracket__container::-webkit-scrollbar {
        display: none;
    }
    
    .mp247-bracket--mobile .mp247-bracket__track {
        flex-wrap: nowrap;
    }
}

/* Competition Info */
.mp247-competition-info__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .mp247-competition-info__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .mp247-competition-info__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mp247-competition-info__item {
    background: var(--mp247-color-gray-light);
    padding: 1rem;
    border-radius: var(--mp247-radius-md);
}

.mp247-competition-info__label {
    display: block;
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.mp247-competition-info__value {
    font-family: var(--mp247-font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--mp247-color-primary);
}

.mp247-competition-info__seasons {
    margin-top: 2rem;
}

.mp247-competition-info__seasons-title {
    font-family: var(--mp247-font-title);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin-bottom: 1rem;
}

.mp247-competition-info__seasons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mp247-competition-info__season {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--mp247-color-gray-light);
    border-radius: 20px;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    color: var(--mp247-color-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.mp247-competition-info__season:hover {
    background: var(--mp247-color-primary);
    color: var(--mp247-color-secondary);
}

/* Season Selector */
.mp247-season-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--mp247-color-gray-light);
    border-radius: var(--mp247-radius-md);
}

.mp247-season-selector__label {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-gray-dark);
}

.mp247-season-selector__select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-primary);
    background: var(--mp247-color-white);
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-md);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.mp247-season-selector__select:hover {
    border-color: var(--mp247-color-primary);
}

.mp247-season-selector__select:focus {
    outline: none;
    border-color: var(--mp247-color-secondary);
    box-shadow: 0 0 0 2px rgba(221, 249, 18, 0.2);
}

.mp247-season-selector__current {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-primary);
}

.is-flexed-header{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 16px;
}

.mp247-player-header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .is-flexed-header{
        flex-direction: row;
    }

    .mp247-player-header__wrapper {
        padding: 0;
    }

    .mp247-player-header__ranking-value {
        font-size: 36px;
    }
}

/* ==========================================
   TOURNAMENT PAGE STYLES
   ========================================== */

.mp247-tournament-section {
    padding: 2rem 0;
}

/* Tournament Header */
.mp247-tournament-header {
    border-radius: 0;
    padding: 2rem;
    margin: -1.25rem -1rem 1.5rem;
    background: linear-gradient(108deg, var(--color_prime) 71.95%, #DDF912 149.84%), var(--color_prime);
    color: var(--mp247-color-white);
}

.mp247-tournament-header__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.mp247-tournament-header__logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.mp247-tournament-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--mp247-radius-md);
}

.mp247-tournament-header__info {
    flex: 1;
    min-width: 200px;
}

.mp247-tournament-header__roofline {
    display: inline-block;
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mp247-color-white);
    background: var(--mp247-color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.mp247-tournament-header__name {
    font-family: var(--mp247-font-title);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.mp247-tournament-header__location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    color: var(--mp247-color-secondary);
}

.mp247-tournament-header__location svg {
    color: var(--mp247-color-secondary);
}

.mp247-tournament-header__meta {
    display: none;
    gap: 0.75rem;
    flex-shrink: 0;
}

.mp247-tournament-header__surface {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.mp247-surface--hard {
    background: #3b82f6;
    color: white;
}

.mp247-surface--clay {
    background: #dc6946;
    color: white;
}

.mp247-surface--grass {
    background: #22c55e;
    color: white;
}

.mp247-surface--indoor {
    background: #8b5cf6;
    color: white;
}

.mp247-tournament-header__court {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--mp247-color-stroke);
    color: var(--mp247-color-primary);
    border-radius: 20px;
}

/* Tournament Events Selector */
.mp247-tournament-events {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mp247-color-stroke);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
}

.mp247-tournament-events__label {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Mobile Dropdown Toggle - Hidden on desktop */
.mp247-tournament-events__toggle {
    display: none;
}

.mp247-tournament-events__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mp247-tournament-events__item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-family: var(--mp247-font-main);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mp247-color-white);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
}

.mp247-tournament-events__item:hover {
    background: var(--mp247-color-secondary);
    color: var(--color_prime);
}

.mp247-tournament-events__item--active {
    background: var(--mp247-color-secondary);
    color: var(--color_prime);
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .mp247-tournament-events {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding-top: 0;
        border-top: 0;
    }
    
    .mp247-tournament-events__label {
        display: none;
    }
    
    .mp247-tournament-events__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem 0;
        cursor: pointer;
        font-family: var(--mp247-font-main);
        font-size: 0.875rem;
        font-weight: 500;
        color: #ffffff;
        transition: all 0.2s;
        border-bottom: 1px solid #ffffff;
    }
    
    .mp247-tournament-events__toggle:hover,
    .mp247-tournament-events__toggle:focus {
    }
    
    .mp247-tournament-events__toggle-icon {
        transition: transform 0.2s ease;
    }
    
    .mp247-tournament-events[data-open="true"] .mp247-tournament-events__toggle-icon {
        transform: rotate(180deg);
    }
    
    .mp247-tournament-events__list {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: calc(100% + 0.25rem);
        left: 0;
        right: 0;
        background: #090c0c;
        box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
        z-index: 100;
        overflow: hidden;
    }
    
    .mp247-tournament-events[data-open="true"] .mp247-tournament-events__list {
        display: flex;
    }
    
    .mp247-tournament-events__item {
        padding: 0.875rem 1rem;
        border-radius: 0;
        background: transparent;
        color: #ffffff;
        font-size: 0.875rem;
        border-bottom: 1px solid #000000;
    }
    
    .mp247-tournament-events__item:last-child {
        border-bottom: none;
    }
    
    .mp247-tournament-events__item:hover {
        background: var(--mp247-color-stroke);
        color: var(--color_prime);
    }
    
    .mp247-tournament-events__item--active {
        background: var(--mp247-color-secondary);
        color: var(--color_prime);
        font-weight: 600;
    }
}

/* Tournament Tabs */
.mp247-tournament-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--color_prime);
    padding: 0.35rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.mp247-tournament-tabs__btn {
    flex: 1;
    min-width: max-content;
    padding: 0.5rem 1.5rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-secondary);
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    transition: all 0.2s;
}

.mp247-tournament-tabs__btn:hover {
    color: var(--mp247-color-primary);
    background: rgba(255, 255, 255, 0.5);
}

.mp247-tournament-tabs__btn--active {
    background: var(--mp247-color-secondary);
    color: var(--mp247-color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tournament Overview */
.mp247-tournament-overview {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}

@media (min-width: 1024px) {
    
    .mp247-tournament-overview__scores {
        grid-column: span 2;
    }
}

.mp247-tournament-overview h2 {
    font-family: var(--mp247-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin: 0 0 1rem;
}

/* Match Cards */
.mp247-tournament-matches {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .mp247-tournament-matches {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mp247-tournament-matches {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mp247-match-card {
    display: block;
    background: white;
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-md);
    padding: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.mp247-match-card:hover {
    border-color: var(--mp247-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mp247-match-card--live {
    border-color: #ef4444;
}

.mp247-match-card__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mp247-match-card__live-indicator {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mp247-match-card__status-text {
    font-family: var(--mp247-font-main);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mp247-color-gray);
}

.mp247-match-card--live .mp247-match-card__status-text {
    color: #ef4444;
}

.mp247-match-card__players {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp247-match-card__player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mp247-match-card__player--winner {
    font-weight: 700;
}

.mp247-match-card__player-name {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    color: var(--mp247-color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp247-match-card__player-score {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
}

.mp247-match-card__time {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mp247-color-stroke);
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
    text-align: center;
}

/* News Grid */
.mp247-tournament-news-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .mp247-tournament-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mp247-news-card {
    background: white;
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

.mp247-news-card:hover {
    border-color: var(--mp247-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mp247-news-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.mp247-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mp247-news-card:hover .mp247-news-card__image img {
    transform: scale(1.05);
}

.mp247-news-card__content {
    padding: 1rem;
}

.mp247-news-card__title {
    font-family: var(--mp247-font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mp247-color-primary);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.mp247-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.mp247-news-card__title a:hover {
    color: var(--mp247-color-secondary);
}

.mp247-news-card__date {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
}

/* Tournament Info Grid */
.mp247-tournament-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .mp247-tournament-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mp247-tournament-info-item {
    background: white;
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-md);
    padding: 1rem;
}

.mp247-tournament-info-item__label {
    display: block;
    font-family: var(--mp247-font-main);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--mp247-color-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.mp247-tournament-info-item__value {
    font-family: var(--mp247-font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--mp247-color-primary);
}

.mp247-tournament-description {
    background: white;
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-md);
    padding: 1.5rem;
}

.mp247-tournament-description p {
    font-family: var(--mp247-font-main);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--mp247-color-gray-dark);
    margin: 0 0 1rem;
}

.mp247-tournament-description p:last-child {
    margin-bottom: 0;
}

/* Tournament News List */
.mp247-tournament-news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mp247-news-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

.mp247-news-item:hover {
    border-color: var(--mp247-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mp247-news-item__image {
    display: block;
    width: 200px;
    flex-shrink: 0;
}

.mp247-news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp247-news-item__content {
    flex: 1;
    padding: 1.25rem;
}

.mp247-news-item__title {
    font-family: var(--mp247-font-main);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--mp247-color-primary);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.mp247-news-item__title a {
    color: inherit;
    text-decoration: none;
}

.mp247-news-item__title a:hover {
    color: var(--mp247-color-secondary);
}

.mp247-news-item__date {
    font-family: var(--mp247-font-main);
    font-size: 0.75rem;
    color: var(--mp247-color-gray);
    margin-bottom: 0.75rem;
    display: block;
}

.mp247-news-item__excerpt {
    font-family: var(--mp247-font-main);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--mp247-color-gray-dark);
    margin: 0;
}

@media (max-width: 640px) {
    .mp247-news-item {
        flex-direction: column;
    }
    
    .mp247-news-item__image {
        width: 100%;
        height: 180px;
    }
}

/* Tournament Rounds (Scores Tab) */
.mp247-tournament-round {
    margin-bottom: 2rem;
}

.mp247-tournament-round__title {
    font-family: var(--mp247-font-title);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mp247-color-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mp247-color-stroke);
}

.mp247-tournament-round__matches {
    display: grid;
    gap: 0.75rem;
}

/* Empty Message */
.mp247-empty-message {
    font-family: var(--mp247-font-main);
    font-size: 0.9375rem;
    color: var(--mp247-color-gray);
    text-align: center;
    padding: 3rem 1rem;
    background: var(--mp247-color-gray-light);
    border-radius: var(--mp247-radius-md);
}

/* Buttons */
.mp247-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--mp247-radius-md);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.mp247-btn--primary {
    background: var(--mp247-color-primary);
    color: white;
}

.mp247-btn--primary:hover {
    background: var(--mp247-color-gray-dark);
}

.mp247-btn--outline {
    background: transparent;
    color: var(--mp247-color-primary);
    border: 1px solid var(--mp247-color-primary);
}

.mp247-btn--outline:hover {
    background: var(--mp247-color-primary);
    color: white;
}

/* Tournament Nav (Tabs + Year Selector) */
.mp247-tournament-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.mp247-tournament-nav .mp247-tournament-tabs {
    margin-bottom: 0;
}

/* Year/Season Selector */
.mp247-year-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mp247-year-selector__label {
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-gray-dark);
    white-space: nowrap;
}

.mp247-year-selector__select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-family: var(--mp247-font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp247-color-primary);
    background: #f1f2f2;
    border: 1px solid var(--mp247-color-stroke);
    border-radius: 30px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    min-width: 80px;
}

.mp247-year-selector__select:hover {
    border-color: var(--mp247-color-primary);
}

.mp247-year-selector__select:focus {
    outline: none;
    border-color: var(--mp247-color-secondary);
    box-shadow: 0 0 0 2px rgba(221, 249, 18, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mp247-tournament-header {
        padding: 1.5rem 1rem;
    }
    
    .mp247-tournament-header__main {
        flex-direction: row-reverse;
        align-items: flex-start;
    }
    
    .mp247-tournament-header__name {
        font-size: 1.5rem;
    }
    
    .mp247-tournament-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mp247-tournament-tabs {
        gap: 0;
    }
    
    .mp247-tournament-tabs__btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    
    .mp247-year-selector {
        justify-content: flex-end;
        padding-top: 0.5rem;
    }
}
@media (min-width: 768px) {
    .mp247-tournament-header {
        margin: 0 0 1.5rem;
        border-radius: var(--mp247-radius-lg);
    }

    .mp247-tournament-header__meta {
        display: flex;
    }

    .mp247-bracket__header-wrapper {
        min-height: 51px;
    }
}

/* ===================================
   TOURNAMENTS CALENDAR PAGE
   =================================== */

.mp247-tournaments-page {
    min-height: 100vh;
    padding: 2rem 0;
}

.mp247-tournaments-page__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mp247-tournaments-page__header {
    margin-bottom: 2rem;
}

.mp247-tournaments-page__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--mp247-text, #1a1a1a);
}

/* Calendar Navigation - Livescore Style */
.mp247-tournaments-calendar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 20px;
    border-radius: 20px;
    background-color: var(--color_prime, #1a1a2e);
    background-image: linear-gradient(273deg, rgba(221, 249, 18, 0.40) -15.59%, rgba(221, 249, 18, 0.00) 59.82%);
}

.mp247-tournaments-calendar__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: var(--color_prime, #1a1a2e);
    color: var(--mp247-color-secondary, #ddf912);
    border: 1px solid var(--mp247-color-secondary, #ddf912);
    border-radius: 30px;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.mp247-tournaments-calendar__nav:hover:not(:disabled) {
    background-color: var(--mp247-color-primary, #1a1a2e);
    color: var(--mp247-color-white, #fff);
}
@media (max-width: 768px) {
    .mp247-tournaments-calendar__nav--prev::before {
        content: "";
        position: absolute;
        top: -20px;
        bottom: -20px;
        right: -40px;
        width: 32px;
        background: linear-gradient(to right, #090c0c, transparent);
        pointer-events: none;
        z-index: -1;
    }

    .mp247-tournaments-calendar__nav--next::after {
        content: "";
        position: absolute;
        top: -20px;
        bottom: -20px;
        left: -35px;
        width: 32px;
        background: linear-gradient(to left, #3d470b, transparent);
        pointer-events: none;
        z-index: -1;
    }
}

.mp247-tournaments-calendar__nav svg {
    width: 24px;
    height: 24px;
}

.mp247-tournaments-calendar__months {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    justify-content: space-evenly;
}

.mp247-tournaments-calendar__months::-webkit-scrollbar {
    display: none;
}

.mp247-tournaments-calendar__month {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 60px;
    padding: 0.5rem;
    background: transparent;
    color: var(--mp247-color-white, #fff);
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: var(--mp247-radius-md, 8px);
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
    font-family: var(--mp247-font-main, inherit);
}

@media (min-width: 640px) {
    .mp247-tournaments-calendar__month {
        min-width: 65px;
    }
}

.mp247-tournaments-calendar__month-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.mp247-tournaments-calendar__month-year {
    font-size: 0.6875rem;
    opacity: 0.7;
}

.mp247-tournaments-calendar__month:hover:not(.mp247-tournaments-calendar__month--active) {
    background-color: var(--mp247-color-primary, #1a1a2e);
    color: var(--mp247-color-white, #fff);
}

.mp247-tournaments-calendar__month--active {
    background-color: var(--mp247-color-secondary, #ddf912);
    color: var(--mp247-color-primary, #1a1a2e);
    border-color: var(--mp247-color-secondary, #ddf912);
}

.mp247-tournaments-calendar__month--active .mp247-tournaments-calendar__month-name,
.mp247-tournaments-calendar__month--active .mp247-tournaments-calendar__month-year {
    color: var(--mp247-color-primary, #1a1a2e);
    opacity: 1;
}

/* Tournaments List */
.mp247-tournaments-list {
    overflow: hidden;
}

.mp247-tournaments-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--color_prime);
}

.mp247-tournaments-list__month-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--mp247-color-white);
}

.mp247-tournaments-list__count {
    font-size: 0.875rem;
    color: var(--mp247-text-secondary, #666);
}

.mp247-tournaments-list__empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--mp247-text-secondary, #666);
}

.mp247-tournaments-list__items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
}

/* Tournament Row */
.mp247-tournament-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    border: 1px solid var(--mp247-color-stroke);
    border-radius: var(--mp247-radius-lg, 12px);
    flex-wrap: wrap;
}

.mp247-tournament-row:hover {
    background: var(--mp247-surface-hover, #f8f9fa);
}

.mp247-tournament-row__logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.mp247-tournament-row__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--mp247-radius, 8px);
    filter: grayscale(1) invert(1);
}

.mp247-tournament-row__logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mp247-surface-alt, #f0f0f0);
    border-radius: var(--mp247-radius, 8px);
    color: var(--mp247-text-muted, #999);
}

.mp247-tournament-row__logo-placeholder .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.mp247-tournament-row__info {
    flex: 1;
    min-width: 0;
}

.mp247-tournament-row__name {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    color: var(--mp247-text, #1a1a1a);
}

.mp247-tournament-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.mp247-tournament-row__roofline {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--mp247-primary-light, #e6f0ff);
    color: var(--mp247-primary, #0066cc);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.mp247-tournament-row__location,
.mp247-tournament-row__surface {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--mp247-text-secondary, #666);
}

.mp247-tournament-row__location .dashicons,
.mp247-tournament-row__surface .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.mp247-tournament-row__dates {
    text-align: right;
    flex: 0 0 100%;
    justify-content: space-between;
    display: flex;
}

.mp247-tournament-row__date-range {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mp247-text-secondary, #666);
    white-space: nowrap;
}

/* Tournament Status Badge */
.mp247-tournament-row__status {
    display: inline-block;
    font-family: var(--font-title);
    padding: 0.2rem 0.5rem 0.15rem;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    vertical-align: middle;
}

.mp247-tournament-row__status--live {
    background: var(--mp247-error, #d63638);
    color: #fff;
    animation: mp247-pulse-frontend 2s ease-in-out infinite;
}

.mp247-tournament-row__status--upcoming {
    background: var(--mp247-primary, #0066cc);
    color: #fff;
}

.mp247-tournament-row__status--finished {
    background: var(--mp247-text-muted, #8c8f94);
    color: #fff;
}

@keyframes mp247-pulse-frontend {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Loading State */
.mp247-tournaments-list__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.mp247-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--mp247-border, #e0e0e0);
    border-top-color: var(--mp247-primary, #0066cc);
    border-radius: 50%;
    animation: mp247-spin 0.8s linear infinite;
}

@keyframes mp247-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mp247-tournaments-calendar {
        padding: 12px;
    }

    .mp247-tournaments-calendar__month {
        min-width: 50px;
        padding: 0.375rem;
    }

    .mp247-tournaments-calendar__month-name {
        font-size: 0.75rem;
    }

    .mp247-tournaments-calendar__month-year {
        font-size: 0.625rem;
    }

    .mp247-tournament-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .mp247-tournament-row__logo {
        width: 48px;
        height: 48px;
    }

    .mp247-tournament-row__info {
        flex: 1 1 calc(100% - 60px);
    }

    .mp247-tournament-row__name {
        font-size: 0.9375rem;
    }

    .mp247-tournament-row__meta {
        gap: 0.5rem;
    }

    .mp247-tournament-row__dates {
        flex: 0 0 100%;
        text-align: left;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .mp247-tournaments-calendar__month {
        min-width: 45px;
    }

    .mp247-tournaments-calendar__nav {
        width: 32px;
        height: 32px;
    }

    .mp247-tournaments-calendar__nav svg {
        width: 20px;
        height: 20px;
    }
}

