/* General Styling System */
.sccwc-wrapper {
    background-color: #f7f9fb;
    color: #1a202c;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    line-height: 1.5;
    margin: 20px 0;
}

.sccwc-wrapper h1, .sccwc-wrapper h2, .sccwc-wrapper h3, .sccwc-wrapper h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #002c17;
    margin: 0;
}

/* 1. Header & Navigation */
.sccwc-header {
    background-color: #002715;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #001f10;
    flex-wrap: wrap;
    gap: 15px;
}

.sccwc-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sccwc-logo-icon {
    font-size: 24px;
}

.sccwc-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.sccwc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.sccwc-nav-item {
    color: #a3bfa8;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 4px;
    display: inline-block;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 3px solid transparent;
}

.sccwc-nav-item:hover, .sccwc-nav-item.active {
    color: #fff;
}

.sccwc-nav-item.active {
    border-bottom-color: #d4af37;
}

.sccwc-live-pill {
    background-color: #052e16;
    border: 1px solid #14532d;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a3e635;
}

.sccwc-live-dot {
    width: 8px;
    height: 8px;
    background-color: #84cc16;
    border-radius: 50%;
    display: inline-block;
    animation: sccwcLivePulse 1.5s infinite;
}

@keyframes sccwcLivePulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* 2. Main Content & Layout */
.sccwc-main-content {
    padding: 30px;
}

.sccwc-tab-pane {
    display: none;
    animation: sccwcFadeIn 0.3s ease-out;
}

.sccwc-tab-pane.active {
    display: block;
}

@keyframes sccwcFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.sccwc-pane-header {
    margin-bottom: 25px;
}

.sccwc-pane-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.sccwc-pane-title {
    font-size: 32px;
    font-weight: 800;
    color: #0b2216;
}

/* 3. Brackets Tab */
.sccwc-bracket-scroller {
    overflow-x: auto;
    padding-bottom: 15px;
    cursor: grab;
}
.sccwc-bracket-scroller:active, .sccwc-bracket-scroller.grabbing {
    cursor: grabbing;
}

.sccwc-bracket-container {
    display: flex;
    gap: 40px;
    min-width: 1720px;
    padding: 20px 10px;
    justify-content: space-between;
    position: relative;
}

.sccwc-bracket-round {
    width: 250px;
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
}

.sccwc-round-title {
    font-size: 12px;
    font-weight: 700;
    color: #002c17;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 2px solid #002c17;
    padding-bottom: 8px;
    text-align: center;
}

.sccwc-round-matches {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    min-height: 1900px;
    gap: 15px;
}

/* Bracket Group Cards */
.sccwc-bracket-group-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    width: 250px;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sccwc-bracket-group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.sccwc-bracket-group-title {
    font-size: 11px;
    font-weight: 800;
    color: #002c17;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 14px 6px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.sccwc-bracket-group-teams {
    padding: 6px 0 0 0;
}
.sccwc-bracket-group-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}
.sccwc-bracket-group-team-row .rank {
    font-size: 10px;
    font-weight: 700;
    color: #004d2c;
    background: #eefdf4;
    border: 1px solid #bbf7d0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}
.sccwc-bracket-group-team-row .pts {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #004d2c;
}

/* Bracket Match Cards */
.sccwc-bracket-match-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 250px;
}

.sccwc-bracket-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.sccwc-match-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 12px 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
}

.sccwc-match-status-badge {
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 3px;
    color: #475569;
}
.sccwc-match-status-badge.live {
    background: #fee2e2;
    color: #ef4444;
    animation: sccwcTextBlink 1.5s infinite;
}
@keyframes sccwcTextBlink {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.sccwc-match-teams {
    padding: 8px 0;
}

.sccwc-match-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.sccwc-match-team-row.winner {
    color: #0f172a;
    font-weight: 700;
}

.sccwc-match-team-row.winner .sccwc-match-score {
    color: #0f172a;
    font-weight: 800;
}

.sccwc-team-flag-code {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sccwc-match-score {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #94a3b8;
    font-size: 16px;
}

/* Bracket connection lines (simulated or simplified using flex spacing) */
/* For fully connected lines in HTML brackets, we structure using flex-column hierarchies */

/* 4. Standings Tab */
.sccwc-groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.sccwc-group-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #eef2f6;
}

.sccwc-group-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #002c17;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 8px;
}

.sccwc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sccwc-table th {
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    padding: 6px 4px;
    text-align: center;
}

.sccwc-table th.text-left, .sccwc-table td.text-left {
    text-align: left;
}

.sccwc-table td {
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid #f8fafc;
    font-weight: 500;
    color: #475569;
}

.sccwc-table tr:last-child td {
    border-bottom: none;
}

.sccwc-table tr.advance-direct td {
    border-left: 3px solid #10b981;
}

.sccwc-table tr.advance-playoff td {
    border-left: 3px solid #f59e0b;
}

.sccwc-table td.pos-num {
    font-weight: 700;
    color: #0f172a;
    width: 25px;
}

.sccwc-table td.team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: color 0.2s;
}

.sccwc-table td.team-cell:hover {
    color: #004d2c;
}

.sccwc-table td.pts-cell {
    font-weight: 700;
    color: #0f172a;
}

/* Custom Flags in CSS */
.sccwc-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    display: inline-block;
    background-size: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    background-position: center;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
}

.sccwc-flag-large {
    width: 48px;
    height: 34px;
    border-radius: 4px;
}

/* Flag backgrounds dynamically served using stylized gradients or letters if image is missing */
.sccwc-flag-fallback {
    background: linear-gradient(135deg, #004d2c 0%, #d4af37 100%);
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    line-height: 14px;
    text-transform: uppercase;
}
.sccwc-flag-large.sccwc-flag-fallback {
    font-size: 14px;
    line-height: 34px;
}

/* 5. Fixtures Tab */
.sccwc-fixtures-filters {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid #eef2f6;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sccwc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.sccwc-filter-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
}

.sccwc-filter-group input, .sccwc-filter-group select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #334155;
    outline: none;
}

.sccwc-filter-group input:focus, .sccwc-filter-group select:focus {
    border-color: #004d2c;
}

.sccwc-fixtures-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sccwc-fixture-group-day {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    background: #edf2f7;
    padding: 8px 16px;
    border-radius: 6px;
}

.sccwc-fixture-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eef2f6;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}

.sccwc-fixture-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
}

.sccwc-fixture-meta {
    flex: 1;
    font-size: 12px;
    color: #64748b;
}

.sccwc-fixture-stage-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    font-weight: bold;
    color: #475569;
    font-size: 10px;
    text-transform: uppercase;
}

.sccwc-fixture-teams-score {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.sccwc-fixture-team {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    width: 160px;
}

.sccwc-fixture-team.home {
    justify-content: flex-end;
    text-align: right;
}

.sccwc-fixture-team.away {
    justify-content: flex-start;
    text-align: left;
}

.sccwc-fixture-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.sccwc-fixture-goals {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.sccwc-fixture-penalties {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.sccwc-fixture-time-scheduled {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #004d2c;
    background: #eefdf4;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}

.sccwc-fixture-venue-info {
    flex: 1;
    text-align: right;
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 768px) {
    .sccwc-fixture-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .sccwc-fixture-team.home, .sccwc-fixture-team.away {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .sccwc-fixture-team.home {
        flex-direction: column-reverse;
    }
    .sccwc-fixture-team.away {
        flex-direction: column;
    }
    .sccwc-fixture-venue-info {
        text-align: center;
    }
}

/* 6. Teams Tab Grid */
.sccwc-teams-search-bar {
    margin-bottom: 25px;
}

.sccwc-teams-search-bar input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.sccwc-teams-search-bar input:focus {
    border-color: #004d2c;
}

.sccwc-teams-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.sccwc-team-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #eef2f6;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sccwc-team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.sccwc-team-card .sccwc-flag {
    margin-bottom: 12px;
}

.sccwc-team-card-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 4px;
}

.sccwc-team-card-group {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* 7. Golden Boot Tab */
.sccwc-goldenboot-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sccwc-podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.sccwc-podium-step {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: relative;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sccwc-podium-step.first {
    width: 250px;
    order: 2;
    z-index: 2;
    border-top: 5px solid #d4af37;
}

.sccwc-podium-step.second {
    width: 210px;
    order: 1;
    border-top: 5px solid #cbd5e1;
}

.sccwc-podium-step.third {
    width: 210px;
    order: 3;
    border-top: 5px solid #b45309;
}

.sccwc-podium-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -16px;
    font-size: 14px;
}

.first .sccwc-podium-rank { background-color: #d4af37; }
.second .sccwc-podium-rank { background-color: #94a3b8; }
.third .sccwc-podium-rank { background-color: #b45309; }

.sccwc-podium-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.first .sccwc-podium-photo {
    width: 110px;
    height: 110px;
    border-color: #fef08a;
}

.sccwc-podium-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 4px;
}

.sccwc-podium-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.sccwc-podium-goals {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #004d2c;
}

.sccwc-podium-goals-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: bold;
}

.sccwc-scorer-table-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.sccwc-scorer-table {
    width: 100%;
    border-collapse: collapse;
}

.sccwc-scorer-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    font-size: 12px;
    padding: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.sccwc-scorer-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.sccwc-scorer-table tr:last-child td {
    border-bottom: none;
}

/* 8. Venues Tab */
.sccwc-venues-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.sccwc-venue-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    height: 220px;
    transition: transform 0.2s;
}

.sccwc-venue-card:hover {
    transform: translateY(-2px);
}

.sccwc-venue-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sccwc-venue-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,44,23,0.9) 20%, rgba(0,44,23,0.4) 60%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
    color: white;
}

.sccwc-venue-tag {
    background: #d4af37;
    color: #002c17;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    align-self: flex-start;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.sccwc-venue-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.sccwc-venue-capacity {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.sccwc-venue-link {
    font-size: 13px;
    font-weight: 600;
    color: #d4af37;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
}

.sccwc-venue-card:hover .sccwc-venue-link {
    transform: translateX(4px);
}

/* 9. Sidebar/Drawer Panel */
.sccwc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 200000;
    visibility: hidden;
    transition: visibility 0.3s;
}

.sccwc-drawer.open {
    visibility: visible;
}

.sccwc-drawer-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.sccwc-drawer.open .sccwc-drawer-overlay {
    opacity: 1;
}

.sccwc-drawer-content {
    position: absolute;
    right: -450px;
    top: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.sccwc-drawer.open .sccwc-drawer-content {
    right: 0;
}

.sccwc-drawer-header {
    background: #002c17;
    color: white;
    padding: 30px 24px;
    position: relative;
}

.sccwc-close-drawer {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.sccwc-close-drawer:hover {
    opacity: 1;
    color: #ff5252;
}

.sccwc-drawer-team-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sccwc-drawer-team-meta h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 2px;
}

.sccwc-drawer-group-badge {
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sccwc-drawer-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sccwc-drawer-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.sccwc-drawer-tab-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    color: #64748b;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.sccwc-drawer-tab-item.active {
    color: #004d2c;
    border-bottom-color: #004d2c;
}

.sccwc-drawer-panes {
    padding: 20px;
    flex: 1;
}

.sccwc-drawer-pane {
    display: none;
}

.sccwc-drawer-pane.active {
    display: block;
}

.sccwc-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sccwc-drawer-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sccwc-drawer-stat-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #f1f5f9;
    text-align: center;
}

.sccwc-drawer-stat-box .stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: bold;
    margin-bottom: 4px;
}

.sccwc-drawer-stat-box .stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

/* Match Event Popup Modal Styles */
.sccwc-f-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 250000;
    display: none;
}
.sccwc-f-modal.open {
    display: block;
}
.sccwc-f-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}
.sccwc-f-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: sccwcPopupScale 0.25s ease-out;
}
@keyframes sccwcPopupScale {
    from { transform: translate(-50%, -45%) scale(0.95); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.sccwc-f-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}
.sccwc-f-modal-close:hover {
    color: #ff5252;
}

/* Match Timeline Styling */
.sccwc-timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.sccwc-timeline-minute {
    font-weight: 700;
    color: #004d2c;
    width: 35px;
}
.sccwc-timeline-desc {
    font-size: 14px;
    color: #334155;
}

/* Footer Styling */
.sccwc-footer {
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
}

.sccwc-footer p {
    margin: 0;
}

.sccwc-footer-links {
    display: flex;
    gap: 15px;
}

.sccwc-footer-links a {
    color: #64748b;
    text-decoration: none;
}

.sccwc-footer-links a:hover {
    color: #004d2c;
}

@media (max-width: 768px) {
    .sccwc-header {
        flex-direction: column;
        align-items: center;
    }
    .sccwc-nav ul {
        justify-content: center;
    }
    .sccwc-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 8. Header Actions & Refresh Button */
.sccwc-header-actions {
    display: flex;
    align-items: center;
}

.sccwc-btn-refresh {
    background: linear-gradient(135deg, #d4af37 0%, #aa8412 100%);
    border: none;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    font-family: inherit;
    outline: none;
    text-decoration: none !important;
}

.sccwc-btn-refresh:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #e5c158 0%, #bc9622 100%);
}

.sccwc-btn-refresh:active:not(:disabled) {
    transform: translateY(1px);
}

.sccwc-btn-refresh:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sccwc-btn-refresh.loading .sccwc-refresh-icon {
    display: inline-block;
    animation: sccwcRotate 1s linear infinite;
}

.sccwc-main-content {
    transition: opacity 0.25s ease-in-out;
}

@keyframes sccwcRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Auto-refresh toggle switch */
.sccwc-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: #a3bfa8;
    margin-left: 15px;
}

.sccwc-toggle-container input {
    display: none;
}

.sccwc-toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background-color: #052e16;
    border: 1px solid #14532d;
    border-radius: 20px;
    transition: background-color 0.2s, border-color 0.2s;
}

.sccwc-toggle-slider::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #a3bfa8;
    border-radius: 50%;
    transition: transform 0.2s, background-color 0.2s;
}

.sccwc-toggle-container input:checked + .sccwc-toggle-slider {
    background-color: #d4af37;
    border-color: #aa8412;
}

.sccwc-toggle-container input:checked + .sccwc-toggle-slider::before {
    transform: translateX(16px);
    background-color: #fff;
}

.sccwc-toggle-container input:checked ~ .sccwc-toggle-label {
    color: #fff;
}

/* 10. Carousel Slider Widget & Cards CSS */
.sccwc-carousel-container-outer {
    margin: 20px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sccwc-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.sccwc-carousel-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sccwc-carousel-refresh-btn {
    background: linear-gradient(135deg, #d4af37 0%, #aa8412 100%);
    border: none;
    color: #fff !important;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.sccwc-carousel-refresh-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #e5c158 0%, #bc9622 100%);
}

.sccwc-carousel-refresh-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.sccwc-carousel-refresh-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sccwc-carousel-refresh-btn.loading .sccwc-refresh-icon {
    display: inline-block;
    animation: sccwcRotate 1s linear infinite;
}

.sccwc-carousel-header h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #002c17;
    margin: 0;
}

.sccwc-carousel-title-btn {
    background: linear-gradient(135deg, #004d2c 0%, #002c17 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 77, 44, 0.15);
}

.sccwc-carousel-title-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #006037 0%, #003c20 100%);
    box-shadow: 0 4px 12px rgba(0, 77, 44, 0.25);
}

.sccwc-carousel-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 0 50px !important;
}

.sccwc-carousel-track-viewport {
    flex: 1;
    overflow: hidden;
    margin: 0 !important;
    padding: 10px 0;
}

.sccwc-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Match Cards styling matching user design */
.sccwc-carousel-card {
    flex: 0 0 auto;
    width: calc((100% - 48px) / 4);
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 10px 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .sccwc-carousel-card {
        width: calc((100% - 32px) / 3) !important;
    }
}

@media (max-width: 768px) {
    .sccwc-carousel-card {
        width: calc((100% - 16px) / 2) !important;
    }
}

@media (max-width: 480px) {
    .sccwc-carousel-card {
        width: 100% !important;
    }
}

.sccwc-carousel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sccwc-carousel-card-flag {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.sccwc-carousel-card-flag:hover {
    transform: scale(1.15);
}

.sccwc-carousel-card-flag svg,
.sccwc-carousel-card-flag span {
    width: 20px !important;
    height: 14px !important;
    object-fit: cover;
}

/* Nav Buttons styling matching design */
.sccwc-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #004d2c;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sccwc-carousel-nav-btn:hover {
    background-color: #002c17;
    transform: translateY(-50%) scale(1.05);
}

.sccwc-carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.sccwc-carousel-nav-btn.prev-btn {
    left: 8px !important;
}

.sccwc-carousel-nav-btn.next-btn {
    right: 8px !important;
}

/* Modals comparison progress bars styling */
.sccwc-comparison-stat {
    margin-bottom: 18px;
}

.sccwc-comparison-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    align-items: center;
}

.sccwc-comparison-name {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
}

.sccwc-comparison-bar-outer {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.sccwc-comparison-bar-home {
    background: #0e5994;
    height: 100%;
    transition: width 0.4s ease-out;
}

.sccwc-comparison-bar-away {
    background: #c2410c;
    height: 100%;
    transition: width 0.4s ease-out;
}

/* Team Stats Modal grid & form history styles */
.sccwc-team-modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sccwc-team-modal-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sccwc-team-modal-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.sccwc-team-modal-stat-lbl {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

.sccwc-team-modal-form {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 15px;
    align-items: center;
}

.sccwc-form-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sccwc-form-dot.win { background-color: #10b981; }
.sccwc-form-dot.loss { background-color: #ef4444; }
.sccwc-form-dot.draw { background-color: #f59e0b; }

@media (max-width: 576px) {
    .sccwc-carousel-track-viewport {
        margin: 0 36px;
    }
    .sccwc-carousel-nav-btn {
        width: 28px;
    }
}

/* --- 11. Statistics Tab Layout --- */
.sccwc-stats-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sccwc-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.sccwc-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.sccwc-stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.sccwc-stat-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sccwc-stat-icon {
    font-size: 20px;
}

.sccwc-stat-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    margin-bottom: 12px;
}

.sccwc-stat-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 8px;
}

.sccwc-stat-card-team {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: fit-content;
}

.sccwc-stat-card-team:hover {
    background-color: #f1f5f9;
}

.sccwc-stat-team-name {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.sccwc-stat-team-group {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.sccwc-stat-subtext {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.sccwc-stat-highlight {
    font-weight: 700;
    color: #0e5994;
}


