/* PREMIUM MATCH CARDS (Yalla Shoot style) */
.match-card-premium {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: block;
    border: 1px solid #efefef;
    transition: all 0.25s ease;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    direction: rtl;
}

[data-theme="dark"] .match-card-premium,
.dark-mode .match-card-premium,
.dark .match-card-premium {
    background: #1a1d2e;
    border-color: rgba(255, 255, 255, 0.06);
}

.match-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
    border-color: var(--Primary-A-Color);
}

.mcp-header {
    background: linear-gradient(90deg, #c41e24 0%, #e31e24 100%);
    padding: 7px 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mcp-comp {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
    flex: 1;
    min-width: 0;
}

.mcp-comp span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcp-comp img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.mcp-dots {
    opacity: 0.7;
    font-size: 13px;
    flex-shrink: 0;
}

.mcp-body {
    padding: 12px 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    background: #fff;
}

[data-theme="dark"] .mcp-body,
.dark-mode .mcp-body,
.dark .mcp-body {
    background: #1a1d2e;
}

.mcp-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    min-width: 0;
}

.mcp-logo {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.mcp-name {
    font-size: 12px;
    font-weight: 800;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    max-width: 110px;
}

[data-theme="dark"] .mcp-name,
.dark-mode .mcp-name,
.dark .mcp-name {
    color: #f0f0f0;
}

.mcp-time-pill {
    background: #fff;
    border: 2px solid #e31e24;
    padding: 8px 15px;
    border-radius: 35px;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

[data-theme="dark"] .mcp-time-pill,
.dark-mode .mcp-time-pill,
.dark .mcp-time-pill {
    background: #141724;
    border-color: #e31e24;
}

.mcp-time {
    font-size: 15px;
    font-weight: 900;
    color: #e31e24;
    line-height: 1;
    white-space: nowrap;
}

.mcp-date {
    font-size: 11px;
    color: #555;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

[data-theme="dark"] .mcp-date,
.dark-mode .mcp-date,
.dark .mcp-date {
    color: #ccc;
}

/* REFINED SIDEBAR STYLE */
.league-group-sidebar {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    background: #fff;
    direction: rtl;
}

[data-theme="dark"] .league-group-sidebar,
.dark-mode .league-group-sidebar,
.dark .league-group-sidebar {
    background: #1a1e2e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-cup-name {
    background: #e31e24;
    color: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-cup-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 11px;
}

.sidebar-cup-right img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sidebar-cup-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar-quick-link {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-match-body {
    padding: 12px 8px;
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .sidebar-match-body,
.dark-mode .sidebar-match-body,
.dark .sidebar-match-body {
    border-color: rgba(255, 255, 255, 0.05);
}

.smb-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    min-width: 0;
}

.smb-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.smb-name {
    font-size: 11px;
    font-weight: 800;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    text-align: center;
}

[data-theme="dark"] .smb-name,
.dark-mode .smb-name,
.dark .smb-name {
    color: #eee;
}

.smb-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.smb-score-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smb-score {
    font-size: 18px;
    font-weight: 900;
    color: #222;
    min-width: 20px;
    text-align: center;
}

[data-theme="dark"] .smb-score,
.dark-mode .smb-score,
.dark .smb-score {
    color: #fff;
}

.smb-circle-box {
    width: 44px;
    height: 44px;
    position: relative;
    flex-shrink: 0;
}

.circular-progress-svg {
    width: 44px;
    height: 44px;
    overflow: visible;
}

.progress-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 2.2;
}

[data-theme="dark"] .progress-bg,
.dark-mode .progress-bg,
.dark .progress-bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.progress-text {
    font-size: 8px;
    font-weight: 900;
    fill: #e31e24;
    text-anchor: middle;
    dominant-baseline: central;
    font-family: 'monospace', sans-serif;
}

.progress-bar {
    fill: none;
    stroke: #e31e24;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.smb-status {
    font-size: 7.5px;
    font-weight: 800;
    color: #e31e24;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
}

.smb-upcoming-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.smb-upcoming-date {
    font-size: 9px;
    font-weight: 800;
    color: #777;
    text-transform: uppercase;
}

.smb-upcoming-time {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 800;
    color: #e31e24;
    border: 1px solid #e31e24;
    white-space: nowrap;
}

[data-theme="dark"] .smb-upcoming-time,
.dark-mode .smb-upcoming-time,
.dark .smb-upcoming-time {
    background: #141724;
    color: #fff;
    border-color: #e31e24;
}

@keyframes circle-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

.smb-circle-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid #e31e24;
    border-radius: 50%;
    animation: circle-pulse 2s infinite;
    pointer-events: none;
}

@media (max-width: 600px) {
    .smb-name {
        font-size: 10px;
        max-width: 70px;
    }
    .smb-score {
        font-size: 15px;
    }
    .smb-circle-box {
        width: 38px;
        height: 38px;
    }
    .circular-progress-svg {
        width: 38px;
        height: 38px;
    }
}

/* Standings Page Specific - Aligning headers with smaller card width */
.standings-cup-name,
.Round-Header {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.Round-Header {
    margin-bottom: 15px !important;
}

.standings-cup-name {
    margin-bottom: 0px !important; /* Attach to Round Header */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

@media (max-width: 600px) {
    .match-card-premium,
    .standings-cup-name,
    .Round-Header {
        max-width: 100% !important;
    }
}
