/* Multi-Sport Matches - Premium Design v3.0.0 */
/* Inspired by Flashscore, Sofascore, Bet365 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --msm-primary: #1a1f2e;
    --msm-secondary: #252b3d;
    --msm-accent: #00d4aa;
    --msm-accent-glow: rgba(0, 212, 170, 0.3);
    --msm-live: #ff4757;
    --msm-live-glow: rgba(255, 71, 87, 0.3);
    --msm-upcoming: #3742fa;
    --msm-finished: #5f6986;
    --msm-text: #ffffff;
    --msm-text-secondary: #9aa3b8;
    --msm-border: rgba(255, 255, 255, 0.08);
    --msm-card-bg: #1e2433;
    --msm-hover: rgba(255, 255, 255, 0.05);
    --msm-gradient: linear-gradient(135deg, #1a1f2e 0%, #252b3d 100%);
    --msm-radius: 12px;
    --msm-radius-sm: 8px;
    --msm-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --msm-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.multi-sport-matches-wrapper {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--msm-gradient);
    border-radius: var(--msm-radius);
    overflow: hidden;
	max-width: 100%;
    margin: 24px 0;
    box-shadow: var(--msm-shadow);
    color: var(--msm-text);
}

/* ==========================================
   HEADER SECTION
   ========================================== */

.matches-header {
    background: var(--msm-primary);
    padding: 20px 24px;
    border-bottom: 1px solid var(--msm-border);
}

.header-top {
	display: flex;
    align-items: center;
    justify-content: space-between;
	margin-bottom: 20px;
}

.matches-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--msm-text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    font-size: 28px;
}

/* Sport selector - Premium style */
.sport-selector {
    display: flex;
    gap: 4px;
    background: var(--msm-secondary);
    padding: 4px;
    border-radius: var(--msm-radius);
}

.sport-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
	background: transparent;
	border: none;
    color: var(--msm-text-secondary);
	cursor: pointer;
    border-radius: var(--msm-radius-sm);
    transition: var(--msm-transition);
    min-width: 70px;
}

.sport-btn:hover {
    background: var(--msm-hover);
    color: var(--msm-text);
}

.sport-btn.active {
    background: var(--msm-accent);
    color: var(--msm-primary);
}

.sport-btn .sport-icon {
    font-size: 22px;
    line-height: 1;
}

.sport-btn .sport-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   FILTER BAR - Advanced filters
   ========================================== */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 16px 24px;
    background: var(--msm-secondary);
    border-bottom: 1px solid var(--msm-border);
}

/* Status filters */
.status-filters {
    display: flex;
    gap: 0;
    background: var(--msm-primary);
    padding: 3px;
    border-radius: var(--msm-radius-sm);
}

.filter-btn {
    padding: 10px 18px;
    background: transparent;
    color: var(--msm-text-secondary);
    border: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--msm-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    color: var(--msm-text);
    background: var(--msm-hover);
}

.filter-btn.active {
    background: var(--msm-accent);
    color: var(--msm-primary);
}

.filter-btn .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: rgba(255, 71, 87, 0.2);
    color: var(--msm-live);
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.filter-btn.active .count {
    background: var(--msm-primary);
    color: var(--msm-accent);
}

/* Live pulse animation for count */
.filter-btn[data-type="live"] .count {
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 var(--msm-live-glow); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

/* Date navigation */
.date-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--msm-primary);
    padding: 4px;
    border-radius: var(--msm-radius-sm);
    margin-left: auto;
}

.date-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--msm-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--msm-transition);
}

.date-nav-btn:hover {
    background: var(--msm-hover);
    color: var(--msm-text);
}

.date-nav-btn svg {
    width: 18px;
    height: 18px;
}

.current-date {
    font-weight: 600;
    font-size: 13px;
    color: var(--msm-text);
    padding: 0 12px;
    min-width: 140px;
    text-align: center;
}

/* ==========================================
   ADVANCED FILTERS ROW
   ========================================== */

.advanced-filters {
    display: flex;
    gap: 20px;
    padding: 16px 24px;
    background: var(--msm-secondary);
    border-bottom: 1px solid var(--msm-border);
    flex-wrap: nowrap;
    align-items: center;
}

/* Search input */
.search-wrapper {
    flex: 0 0 260px;
    min-width: 180px;
    position: relative;
    margin-right: 40px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--msm-text-secondary);
    pointer-events: none;
    font-size: 16px;
}

.club-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--msm-primary);
    border: 1px solid var(--msm-border);
    border-radius: var(--msm-radius-sm);
	font-size: 14px;
    color: var(--msm-text);
    outline: none;
    transition: var(--msm-transition);
    font-family: inherit;
}

.club-search-input::placeholder {
    color: var(--msm-text-secondary);
}

.club-search-input:focus {
    border-color: var(--msm-accent);
    box-shadow: 0 0 0 3px var(--msm-accent-glow);
}

/* Dropdown filters */
.filter-dropdown {
	position: relative;
    flex-shrink: 0;
    margin-left: 12px;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--msm-primary);
    border: 1px solid var(--msm-border);
    border-radius: var(--msm-radius-sm);
    color: var(--msm-text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-width: 160px;
    transition: var(--msm-transition);
    min-width: 140px;
    font-family: inherit;
}

.dropdown-btn:hover {
    border-color: var(--msm-accent);
    color: var(--msm-text);
}

.dropdown-btn.active {
    border-color: var(--msm-accent);
    background: rgba(0, 212, 170, 0.1);
    color: var(--msm-accent);
}

.dropdown-icon {
    margin-left: auto;
    transition: transform 0.2s;
}

.dropdown-btn.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
	position: absolute;
    top: 100%;
	left: 0;
    margin-top: 4px;
    background: var(--msm-primary);
    border: 1px solid var(--msm-border);
    border-radius: var(--msm-radius-sm);
    box-shadow: var(--msm-shadow);
    z-index: 100;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    min-width: 200px;
    width: max-content;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--msm-text-secondary);
    cursor: pointer;
    transition: var(--msm-transition);
    white-space: nowrap;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--msm-hover);
    color: var(--msm-text);
}

.dropdown-item.selected {
    background: rgba(0, 212, 170, 0.1);
    color: var(--msm-accent);
}

.dropdown-item .flag {
    font-size: 18px;
}

.dropdown-item .league-badge {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

/* View mode toggle */
.view-toggle {
    display: flex;
    gap: 0;
    background: var(--msm-primary);
    padding: 3px;
    border-radius: var(--msm-radius-sm);
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
	width: 40px;
	height: 40px;
    background: transparent;
    border: none;
    color: var(--msm-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--msm-transition);
}

.view-btn:hover {
    color: var(--msm-text);
    background: var(--msm-hover);
}

.view-btn.active {
    background: var(--msm-accent);
    color: var(--msm-primary);
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* Favorites toggle */
.favorites-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--msm-primary);
    border: 1px solid var(--msm-border);
    border-radius: var(--msm-radius-sm);
    color: var(--msm-text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--msm-transition);
}

.favorites-toggle:hover {
    border-color: #ffd700;
    color: var(--msm-text);
}

.favorites-toggle.active {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.favorites-toggle .star-icon {
    font-size: 16px;
}

/* ==========================================
   MATCHES CONTENT
   ========================================== */

.matches-content {
    padding: 0;
    min-height: 300px;
    background: var(--msm-primary);
}

/* Tournament groups */
.tournament-group {
    border-bottom: 1px solid var(--msm-border);
}

.tournament-group:last-child {
    border-bottom: none;
}

.tournament-header {
	display: flex;
	align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--msm-primary);
    font-weight: 600;
    font-size: 13px;
    color: var(--msm-text);
    border-bottom: 1px solid var(--msm-border);
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.tournament-header:hover {
    background: var(--msm-secondary);
}

.tournament-flag {
    font-size: 18px;
}

.tournament-name {
    flex: 1;
}

.tournament-count {
    font-size: 11px;
    color: var(--msm-text-secondary);
    background: var(--msm-secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

.tournament-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--msm-text-secondary);
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}

.tournament-header:hover .tournament-toggle {
    color: var(--msm-text);
}

.tournament-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.standings-btn {
    background: transparent;
    border: none;
    color: var(--msm-text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--msm-transition);
    width: 24px;
    height: 24px;
}

.standings-btn:hover {
    background: var(--msm-hover);
    color: var(--msm-text);
}

.standings-btn.active {
    background: var(--msm-accent);
    color: var(--msm-primary);
}

.tournament-matches {
    overflow: hidden;
}

.tournament-group.collapsed .tournament-matches {
    display: none;
}

/* ==========================================
   STANDINGS PANEL
   ========================================== */

.standings-panel {
    background: var(--msm-secondary);
    border-top: 1px solid var(--msm-border);
    padding: 20px;
    overflow-x: auto;
}

.standings-loading {
    text-align: center;
    padding: 20px;
    color: var(--msm-text-secondary);
}

.standings-content {
    width: 100%;
}

.standings-league {
    margin-bottom: 30px;
}

.standings-league:last-child {
    margin-bottom: 0;
}

.standings-league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--msm-border);
}

.standings-league-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--msm-text);
}

.standings-country {
    font-size: 12px;
    color: var(--msm-text-secondary);
}

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

.standings-table thead {
    background: var(--msm-primary);
}

.standings-table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--msm-text-secondary);
    border-bottom: 2px solid var(--msm-border);
}

.standings-table th:first-child {
    text-align: center;
    width: 40px;
}

.standings-table th:nth-child(2) {
    min-width: 180px;
}

.standings-table th:nth-child(n+3) {
    text-align: center;
    width: 45px;
}

.standings-table th:last-child {
    text-align: center;
    width: 50px;
    font-weight: 700;
}

.standings-table tbody tr {
    border-bottom: 1px solid var(--msm-border);
    transition: background-color 0.15s ease;
}

.standings-table tbody tr:hover {
    background: var(--msm-hover);
}

.standings-table tbody tr.qualify-cl {
    background: rgba(0, 212, 170, 0.1);
    border-left: 3px solid var(--msm-accent);
}

.standings-table tbody tr.qualify-el {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
}

.standings-table tbody tr.relegation {
    background: rgba(255, 71, 87, 0.1);
    border-left: 3px solid var(--msm-live);
}

.standings-table td {
    padding: 10px 8px;
    color: var(--msm-text);
}

.standings-table td.position {
    text-align: center;
    font-weight: 600;
    color: var(--msm-text-secondary);
}

.standings-table td.team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-logo-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    flex: 1;
    font-weight: 500;
}

.team-form {
    font-size: 11px;
    color: var(--msm-text-secondary);
    font-family: monospace;
    letter-spacing: 1px;
}

.standings-table td:nth-child(n+3) {
    text-align: center;
    color: var(--msm-text-secondary);
}

.standings-table td.goals {
    font-size: 12px;
}

.goal-diff {
    color: var(--msm-text-secondary);
    font-size: 11px;
    margin-left: 4px;
}

.standings-table td.points {
    text-align: center;
    font-weight: 700;
    color: var(--msm-accent);
    font-size: 14px;
}

.no-standings {
    text-align: center;
    padding: 30px;
    color: var(--msm-text-secondary);
}

/* ==========================================
   STANDINGS SHORTCODE (SEO-friendly table)
   ========================================== */

.multi-sport-standings {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--msm-gradient);
    border-radius: var(--msm-radius);
    overflow: hidden;
    max-width: 100%;
    margin: 24px 0;
    box-shadow: var(--msm-shadow);
    color: var(--msm-text);
}

.standings-wrapper {
    padding: 20px;
}

.standings-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--msm-border);
}

.standings-title {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--msm-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.standings-season {
    font-size: 16px;
    font-weight: 400;
    color: var(--msm-text-secondary);
}

.standings-country {
    font-size: 14px;
    color: var(--msm-text-secondary);
}

.standings-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--msm-primary);
}

.standings-table thead {
    background: var(--msm-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.standings-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--msm-text-secondary);
    border-bottom: 2px solid var(--msm-border);
    white-space: nowrap;
}

.standings-table th:first-child {
    text-align: center;
    width: 45px;
    padding-left: 15px;
}

.standings-table th:nth-child(2) {
    min-width: 200px;
    padding-left: 15px;
}

.standings-table th:nth-child(n+3) {
    text-align: center;
    width: 50px;
}

.standings-table th:last-child {
    text-align: center;
    width: 55px;
    font-weight: 700;
    color: var(--msm-accent);
    padding-right: 15px;
}

.standings-table tbody tr {
    border-bottom: 1px solid var(--msm-border);
    transition: background-color 0.15s ease;
}

.standings-table tbody tr:hover {
    background: var(--msm-hover);
}

.standings-table tbody tr.qualify-cl {
    background: rgba(0, 212, 170, 0.15);
    border-left: 4px solid var(--msm-accent);
}

.standings-table tbody tr.qualify-el {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #ffc107;
}

.standings-table tbody tr.relegation {
    background: rgba(255, 71, 87, 0.15);
    border-left: 4px solid var(--msm-live);
}

.standings-table td {
    padding: 2px 10px;
    color: var(--msm-text);
    vertical-align: middle;
}

.standings-table td.position {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--msm-text-secondary);
    padding-left: 15px;
}

.standings-table td.team {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 15px;
    min-width: 200px;
}

.standings-table td.team .team-logo-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.standings-table td.team .team-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.standings-table td.team .team-form {
    font-size: 11px;
    color: var(--msm-text-secondary);
    font-family: monospace;
    letter-spacing: 1px;
    margin-left: auto;
}

.standings-table td.stat {
    text-align: center;
    color: var(--msm-text-secondary);
    font-weight: 500;
}

.standings-table td.goals {
    text-align: center;
    font-size: 13px;
    color: var(--msm-text-secondary);
}

.standings-table td.goals .goal-diff {
    display: block;
    font-size: 11px;
    color: var(--msm-text-secondary);
    margin-top: 2px;
}

.standings-table td.points {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--msm-accent);
    padding-right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .standings-table {
        font-size: 12px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 8px 6px;
    }
    
    .standings-table th:first-child,
    .standings-table td.position {
        padding-left: 10px;
    }
    
    .standings-table td.team {
        min-width: 150px;
        padding-left: 10px;
    }
    
    .standings-table th:last-child,
    .standings-table td.points {
        padding-right: 10px;
    }
    
    .standings-table td.team .team-form {
        display: none;
    }
}

/* ==========================================
   DATE GROUP (for group_by_date mode)
   ========================================== */

.date-group {
    border-bottom: 1px solid var(--msm-border);
}

.date-group:last-child {
    border-bottom: none;
}

.date-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--msm-primary);
    font-weight: 600;
    font-size: 13px;
    color: var(--msm-text);
    border-bottom: 1px solid var(--msm-border);
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    transition: var(--msm-transition);
    user-select: none;
}

.date-header:hover {
    background: var(--msm-secondary);
}

.date-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.date-count {
    font-size: 12px;
    color: var(--msm-text-secondary);
    font-weight: 500;
}

.date-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--msm-text-secondary);
    transition: var(--msm-transition);
}

.date-header:hover .date-toggle {
    color: var(--msm-text);
}

.date-matches {
    overflow: hidden;
}

.date-group.collapsed .date-matches {
    display: none;
}

/* ==========================================
   MATCH CARD - Compact
   ========================================== */

.match-card-compact {
    border-bottom: 1px solid var(--msm-border);
    transition: all 0.15s ease;
    position: relative;
}

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

.match-card-compact:hover {
    background: var(--msm-hover);
}

/* Live match special styling */
.match-card-compact.is-live {
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.06) 0%, transparent 25%);
    border-left: 3px solid var(--msm-live);
}

.match-card-compact.is-live:hover {
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.1) 0%, var(--msm-hover) 25%);
}

/* Finished match subtle styling */
.match-card-compact.is-finished {
    opacity: 0.85;
}

.match-card-compact.is-finished:hover {
    opacity: 1;
}

/* Match row layout */
.match-row {
    display: grid;
    grid-template-columns: 90px minmax(200px, 1fr) 160px 100px 44px;
    align-items: center;
    padding: 16px 24px;
    gap: 16px;
	cursor: pointer;
}

/* Reorder: Casino before Score */
.match-status-col { order: 1; }
.match-teams-col { order: 2; }
.match-casino-cta { order: 3; }
.match-score-col { order: 4; }
.match-details-btn-small { order: 5; }

/* Status Column */
.match-status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 80px;
}

.match-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-date-small {
    font-size: 13px;
    color: var(--msm-text-secondary);
    font-weight: 500;
}

.match-time-small {
    font-size: 15px;
    color: var(--msm-text);
    font-weight: 600;
}

/* Hide favorite stars */
.favorite-star {
    display: none !important;
}

/* Hide favorites toggle button */
.favorites-toggle {
    display: none !important;
}

/* Hide view toggle */
.view-toggle {
    display: none !important;
}

/* Status column */
.match-status-col {
	display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 95px;
}

.status-badge {
    display: inline-flex;
	align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.live {
    background: var(--msm-live);
    color: #fff;
    animation: live-pulse 1.5s ease-in-out infinite;
}

.status-badge.live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--msm-live-glow); }
    50% { box-shadow: 0 0 12px 4px var(--msm-live-glow); }
}

.status-badge.finished {
    background: var(--msm-finished);
    color: #fff;
}

.status-badge.upcoming {
    background: var(--msm-upcoming);
    color: #fff;
}

.match-time-small {
	font-size: 13px;
    color: var(--msm-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Date and time stacked */
.match-datetime {
	display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.match-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--msm-text);
}

.match-time-hour {
	font-size: 12px;
    color: var(--msm-text-secondary);
    font-weight: 500;
}

/* Teams column */
.match-teams-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    flex: 1;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-row.winner .team-name-small {
    color: var(--msm-accent);
    font-weight: 700;
}

.team-name-small {
    font-size: 14px;
    font-weight: 500;
    color: var(--msm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.team-logo-small {
    width: 24px;
    height: 24px;
	border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--msm-primary);
    padding: 2px;
}

.team-logo-small.placeholder {
    background: linear-gradient(135deg, var(--msm-accent) 0%, #00a88a 100%);
	display: flex;
	align-items: center;
	justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--msm-primary);
	border-radius: 4px;
}

.team-name-small {
	font-size: 14px;
	font-weight: 500;
    color: var(--msm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
    line-height: 1.4;
}

.team-name-small.winner {
	font-weight: 600;
    color: var(--msm-accent);
}

/* Favorite star */
.favorite-star {
    margin-left: auto;
    background: none;
    border: none;
	cursor: pointer;
    font-size: 16px;
    color: var(--msm-text-secondary);
    opacity: 0;
    transition: var(--msm-transition);
    padding: 4px;
}

.match-row:hover .favorite-star {
    opacity: 1;
}

.favorite-star:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.favorite-star.active {
    color: #ffd700;
    opacity: 1;
}

/* Score column */
.match-score-col {
	display: flex;
    flex-direction: column;
	align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--msm-secondary);
    padding: 10px 16px;
    border-radius: 10px;
    min-width: 80px;
    flex-shrink: 0;
}

.match-score-col.is-live {
    background: var(--msm-live);
    box-shadow: 0 2px 12px var(--msm-live-glow);
}

.score-line {
	display: flex;
	align-items: center;
    gap: 8px;
    font-weight: 700;
	font-size: 18px;
}

.score-line .score-num {
    min-width: 16px;
    text-align: center;
}

.score-line .score-divider {
    opacity: 0.4;
    font-size: 12px;
}

.score-minute {
    font-size: 10px;
    color: var(--msm-text-secondary);
    font-weight: 600;
}

.match-score-col.is-live .score-minute {
    color: rgba(255, 255, 255, 0.85);
}

/* Esports specific score styling */
.match-score-col.esports-score {
    min-width: 90px;
}

.score-format {
    font-size: 10px;
    color: var(--msm-text-secondary);
    font-weight: 600;
	text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-duration {
    font-size: 9px;
    color: var(--msm-text-secondary);
    opacity: 0.8;
}

.match-score-col.is-live .score-format,
.match-score-col.is-live .score-duration {
    color: rgba(255, 255, 255, 0.85);
}

.score-num.winner {
    color: var(--msm-accent);
    font-weight: 800;
}

/* Esports Maps Row */
.esports-maps-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.map-item {
	display: flex;
	align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--msm-secondary);
	border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.map-item.team1-won {
    border-left: 3px solid var(--msm-accent);
}

.map-item.team2-won {
    border-right: 3px solid var(--msm-accent);
}

.map-name {
    font-weight: 600;
    color: var(--msm-text);
    min-width: 60px;
}

.map-score {
	display: flex;
	align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 13px;
}

.map-score .winner {
    color: var(--msm-accent);
}

.map-divider {
    color: var(--msm-text-secondary);
    font-weight: 400;
}

.map-duration {
    font-size: 10px;
    color: var(--msm-text-secondary);
    margin-left: 4px;
}

/* Esports Details Panel */
.esports-details-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--msm-secondary);
    border-radius: 8px;
    margin-bottom: 16px;
}

.esports-format-badge {
    background: #9146FF;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.esports-duration {
    color: var(--msm-text-secondary);
    font-size: 13px;
}

.esports-stream-link {
    background: #FF0000;
    color: white !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
	font-size: 12px;
    text-decoration: none;
    margin-left: auto;
    transition: all 0.2s ease;
}

.esports-stream-link:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* Esports Games Section */
.esports-games-section {
    margin-bottom: 20px;
}

.esports-games-section .section-title,
.esports-streams .section-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--msm-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
	gap: 8px;
}

.esports-game-row {
    display: grid;
    grid-template-columns: 60px 1fr 200px auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: var(--msm-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.esports-game-row:hover {
    background: rgba(145, 70, 255, 0.1);
}

.esports-game-row.live {
    border-left: 3px solid var(--msm-live);
    animation: esports-pulse 2s infinite;
}

@keyframes esports-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(145, 70, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(145, 70, 255, 0); }
}

.esports-game-row.team1-winner {
    border-left: 3px solid var(--msm-accent);
}

.esports-game-row.team2-winner {
    border-right: 3px solid var(--msm-accent);
}

.game-number {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--msm-text-secondary);
    font-weight: 600;
}

.game-map {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-thumbnail {
    width: 48px;
    height: 32px;
    object-fit: cover;
	border-radius: 4px;
}

.map-label {
    font-weight: 600;
    color: var(--msm-text);
}

.game-scores {
	display: flex;
	align-items: center;
    gap: 12px;
	justify-content: center;
}

.game-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-team.winner .round-score {
    color: var(--msm-accent);
}

.team-abbrev {
    font-size: 12px;
    color: var(--msm-text-secondary);
    font-weight: 500;
}

.round-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--msm-text);
    min-width: 24px;
	text-align: center;
}

.game-scores .vs {
    font-size: 11px;
    color: var(--msm-text-secondary);
    text-transform: uppercase;
}

.game-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.game-duration {
	font-size: 11px;
    color: var(--msm-text-secondary);
}

.game-live-badge {
    background: var(--msm-live);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.game-winner {
    font-size: 11px;
    color: var(--msm-accent);
}

/* Esports Summary */
.esports-summary {
    padding: 16px;
    background: var(--msm-secondary);
    border-radius: 8px;
    margin-bottom: 16px;
}

.match-winner {
	font-size: 16px;
    color: var(--msm-text);
    margin-bottom: 8px;
}

.match-forfeit {
    color: #f39c12;
	font-size: 14px;
}

.match-draw {
    color: var(--msm-text-secondary);
	font-size: 14px;
}

/* Esports Streams */
.esports-streams {
    margin-top: 16px;
}

.stream-link {
	display: inline-block;
    background: var(--msm-secondary);
    color: var(--msm-text) !important;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.stream-link:hover {
    background: #9146FF;
    color: white !important;
}

/* Responsive esports styles */
@media (max-width: 768px) {
    .esports-game-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .game-scores {
        justify-content: center;
    }
    
    .game-info {
        justify-content: center;
    }
    
    .esports-details-header {
        flex-wrap: wrap;
    }
    
    .esports-stream-link {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Inline Casino CTA */
.match-casino-cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
	gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 40px;
    overflow: hidden;
}

.match-casino-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.match-casino-cta .casino-cta-logo {
    width: 28px;
    height: 28px;
	object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.match-casino-cta .casino-cta-text {
	font-size: 12px;
    font-weight: 600;
    color: var(--msm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-casino-cta .casino-cta-label {
    font-size: 10px;
    color: var(--msm-accent);
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
	font-weight: 500;
}

.match-casino-cta:hover .casino-cta-label {
    opacity: 1;
}

/* Casino logo placeholder (when no image) */
.casino-cta-logo-placeholder {
    width: 28px;
    height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
    background: linear-gradient(135deg, var(--msm-accent) 0%, #00a88a 100%);
    color: #fff;
    font-weight: 700;
	font-size: 14px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Details button */
.match-details-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--msm-secondary);
    border: none;
    border-radius: 8px;
	cursor: pointer;
    color: var(--msm-text-secondary);
    transition: all 0.2s ease;
    font-family: inherit;
    flex-shrink: 0;
}

.match-card-compact:hover .match-details-btn-small {
    background: var(--msm-border);
    color: var(--msm-text);
}

.match-details-btn-small:hover {
    background: var(--msm-accent) !important;
    color: var(--msm-primary);
}

.match-details-btn-small .btn-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.match-card-compact.expanded .match-details-btn-small .btn-icon {
    transform: rotate(180deg);
}

.match-details-btn-small .btn-text {
    display: none;
}

/* ==========================================
   MATCH DETAILS PANEL
   ========================================== */

.match-details-panel {
    background: var(--msm-primary);
    border-top: 1px solid var(--msm-border);
}

.details-content {
    padding: 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Match info section */
.match-info-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--msm-border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.info-row {
	display: flex;
	align-items: center;
	gap: 10px;
    padding: 10px 14px;
    background: var(--msm-secondary);
    border-radius: var(--msm-radius-sm);
}

.info-icon {
	font-size: 18px;
}

.info-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 10px;
    color: var(--msm-text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 13px;
    color: var(--msm-text);
	font-weight: 500;
}

/* Half-time scores */
.halftime-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px;
    background: var(--msm-secondary);
    border-radius: var(--msm-radius-sm);
    margin-bottom: 16px;
}

.ht-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ht-label {
    font-size: 12px;
    color: var(--msm-text-secondary);
}

.ht-score {
    font-weight: 700;
    font-size: 15px;
    color: var(--msm-text);
    background: var(--msm-primary);
    padding: 4px 12px;
    border-radius: 6px;
}

/* Events timeline */
.events-timeline {
    padding: 0;
}

.events-header {
    display: flex;
    align-items: center;
	gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--msm-border);
    font-weight: 700;
    font-size: 14px;
    color: var(--msm-text);
}

.event-row {
	display: grid;
    grid-template-columns: 1fr 70px 1fr;
    align-items: center;
    padding: 14px 0;
    gap: 20px;
    border-bottom: 1px solid var(--msm-border);
}

.event-row:last-child {
    border-bottom: none;
}

.event-home,
.event-away {
    display: flex;
    align-items: center;
	gap: 12px;
    min-width: 0;
}

.event-home {
    justify-content: flex-end;
    text-align: right;
}

.event-away {
    justify-content: flex-start;
    text-align: left;
}

.event-minute {
    text-align: center;
	font-size: 12px;
    font-weight: 700;
    color: var(--msm-text-secondary);
    background: var(--msm-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
}

.event-icon {
	font-size: 16px;
}

.event-icon.goal { color: var(--msm-accent); }
.event-icon.sub { color: #3b82f6; }
.event-icon.yellow { color: #fbbf24; }
.event-icon.red { color: var(--msm-live); }

.event-score {
	font-size: 10px;
    font-weight: 700;
    background: var(--msm-accent);
    color: var(--msm-primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.event-players {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.player-main {
    font-size: 14px;
    font-weight: 600;
    color: var(--msm-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-secondary {
    font-size: 11px;
    color: var(--msm-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-goal .player-main { color: var(--msm-accent); }
.event-sub .player-secondary { color: var(--msm-live); }

/* Odds section */
.details-odds {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--msm-border);
}

.odds-header {
	font-size: 12px;
    font-weight: 700;
    color: var(--msm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.odds-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.odd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--msm-secondary);
    border: 1px solid var(--msm-border);
    border-radius: var(--msm-radius-sm);
    padding: 12px 24px;
    min-width: 70px;
    cursor: pointer;
    transition: var(--msm-transition);
}

.odd-item:hover {
    border-color: var(--msm-accent);
    background: rgba(0, 212, 170, 0.1);
}

.odd-label {
    font-size: 11px;
    color: var(--msm-text-secondary);
    font-weight: 600;
}

.odd-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--msm-accent);
}

/* ==========================================
   LOADING & STATES
   ========================================== */

.loading {
    text-align: center;
    padding: 60px 24px;
    color: var(--msm-text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--msm-border);
    border-top-color: var(--msm-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.loading p {
    font-size: 14px;
	font-weight: 500;
}

.no-matches {
    text-align: center;
    padding: 80px 24px;
    color: var(--msm-text-secondary);
    background: var(--msm-primary);
}

.no-matches-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-matches-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--msm-text);
    margin-bottom: 10px;
}

.no-matches-hint {
    font-size: 14px;
    color: var(--msm-text-secondary);
	margin-top: 8px;
}

.error-message {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--msm-live);
    color: var(--msm-live);
    padding: 20px 24px;
    text-align: center;
    border-radius: var(--msm-radius);
    margin: 24px;
}

/* ==========================================
   REFRESH INFO
   ========================================== */

.refresh-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
	text-align: center;
    padding: 14px 24px;
	font-size: 12px;
    color: var(--msm-text-secondary);
    background: var(--msm-primary);
    border-top: 1px solid var(--msm-border);
}

.refresh-dot {
    width: 6px;
    height: 6px;
    background: var(--msm-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.last-update {
    font-weight: 600;
    color: var(--msm-text);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 992px) {
    .sport-selector {
        display: none;
    }
    
    .filter-bar {
        padding: 12px 16px;
    }
    
    .advanced-filters {
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .matches-header {
        padding: 16px;
    }
    
    .matches-header h2 {
        font-size: 20px;
    }
    
    .header-top {
		flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .status-filters {
        justify-content: center;
    }
    
    .date-navigation {
        margin: 0 auto;
    }
    
    .advanced-filters {
        flex-wrap: wrap;
    }
    
    .search-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .filter-dropdown {
        flex: 1 1 45%;
        min-width: 140px;
    }
    
    .dropdown-btn {
		width: 100%;
        min-width: auto;
    }
    
    .match-row {
        grid-template-columns: 70px minmax(150px, 1fr) 110px 70px 36px;
        padding: 12px 16px;
        gap: 10px;
    }
    
    .match-status-col {
        min-width: 65px;
    }
    
    .match-teams-col {
        min-width: 140px;
    }
    
    .team-name-small {
        max-width: 150px;
        font-size: 13px;
    }
    
    .match-score-col {
        padding: 8px 12px;
        min-width: 70px;
    }
    
    .match-details-btn-small {
        width: 36px;
        height: 36px;
	}
	
    .match-casino-cta {
        padding: 6px 10px;
        height: 34px;
        gap: 6px;
    }
    
    .match-casino-cta .casino-cta-logo,
    .casino-cta-logo-placeholder {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .match-casino-cta .casino-cta-text {
        font-size: 10px;
    }
    
    .match-casino-cta .casino-cta-label {
		display: none;
	}
	
    .team-name-small {
        font-size: 13px;
        max-width: 140px;
    }
    
    .match-score-col {
        padding: 8px 12px;
    }
    
    .score-line {
        font-size: 16px;
    }
    
    .tournament-header {
        padding: 12px 16px;
    }
    
    .info-grid {
		grid-template-columns: 1fr;
	}
    
    .details-content {
        padding: 16px;
    }
    
    .event-row {
        grid-template-columns: 1fr 40px 1fr;
    }
    
    .halftime-scores {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .current-date {
        font-size: 12px;
        min-width: 120px;
    }
    
    .match-row {
        grid-template-columns: 55px minmax(120px, 1fr) 80px 60px 32px;
        padding: 10px 12px;
        gap: 6px;
    }
    
    .match-status-col {
        min-width: 50px;
    }
    
    .team-logo-small {
        width: 18px;
        height: 18px;
    }
    
    .team-name-small {
        font-size: 11px;
        max-width: 100px;
    }
    
    .match-score-col {
        min-width: 60px;
        padding: 6px 8px;
    }
    
    .score-line {
        font-size: 14px;
    }
    
    .match-details-btn-small {
        width: 32px;
        height: 32px;
    }
    
    .player-main {
        font-size: 12px;
    }
    
    .player-secondary {
        font-size: 10px;
    }
}

/* ==========================================
   SPORT TABS (MOBILE)
   ========================================== */

.sport-tabs-mobile {
    display: none;
    padding: 12px 16px;
    background: var(--msm-secondary);
    border-bottom: 1px solid var(--msm-border);
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
@media (max-width: 992px) {
    .sport-tabs-mobile {
        display: flex;
        gap: 8px;
    }
}

.sport-tabs-mobile .sport-btn {
    flex-shrink: 0;
    flex-direction: row;
    padding: 10px 16px;
    min-width: auto;
}

.sport-tabs-mobile .sport-btn .sport-label {
    font-size: 12px;
}

/* Hide old sport tabs */
.sport-tabs {
    display: none;
}

/* Club search wrapper hide */
.club-search-wrapper {
    display: none;
}

/* ==========================================
   THEME VARIATIONS
   ========================================== */

/* Light Theme */
.msm-theme-light {
    --msm-gradient: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    --msm-text-secondary: #6b7280;
    --msm-border: rgba(0, 0, 0, 0.1);
    --msm-hover: rgba(0, 0, 0, 0.04);
    --msm-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.msm-theme-light .sport-btn,
.msm-theme-light .filter-btn,
.msm-theme-light .dropdown-btn,
.msm-theme-light .favorites-toggle {
	color: #6b7280;
}

.msm-theme-light .sport-btn:hover,
.msm-theme-light .filter-btn:hover,
.msm-theme-light .dropdown-btn:hover {
    color: var(--msm-text);
}

.msm-theme-light .current-date {
    color: var(--msm-text);
}

.msm-theme-light .match-time-small {
    color: #6b7280;
}

.msm-theme-light .team-logo-small.placeholder {
    background: linear-gradient(135deg, var(--msm-accent) 0%, #0052cc 100%);
    color: #fff;
}

/* Navy Blue Theme */
.msm-theme-blue {
    --msm-gradient: linear-gradient(135deg, #0a1e3e 0%, #1a3a5f 100%);
    --msm-text-secondary: #8fa3bf;
    --msm-border: rgba(255, 255, 255, 0.1);
}

/* Forest Green Theme */
.msm-theme-green {
    --msm-gradient: linear-gradient(135deg, #1a2f1a 0%, #243524 100%);
    --msm-text-secondary: #8faf8f;
    --msm-border: rgba(255, 255, 255, 0.1);
}

/* Purple Theme */
.msm-theme-purple {
    --msm-gradient: linear-gradient(135deg, #1e1a2e 0%, #2a2540 100%);
    --msm-text-secondary: #a09abf;
    --msm-border: rgba(255, 255, 255, 0.1);
}

/* Accent glow for different themes */
.msm-theme-light .match-card-compact.is-live {
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.08) 0%, transparent 50%);
}

.msm-theme-light .status-badge.live {
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.4);
}

.msm-theme-light .match-score-col.is-live {
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

/* Filter button accent color for each theme */
.msm-theme-light .filter-btn.active {
    background: var(--msm-accent);
    color: #ffffff;
}

.msm-theme-light .sport-btn.active {
    background: var(--msm-accent);
    color: #ffffff;
}

/* Dropdown menu for light theme */
.msm-theme-light .dropdown-menu {
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.msm-theme-light .dropdown-item:hover {
    background: #f5f7fa;
}

.msm-theme-light .dropdown-item.selected {
    background: rgba(0, 102, 255, 0.1);
    color: var(--msm-accent);
}

/* Match details panel for light theme */
.msm-theme-light .match-details-panel {
    background: #f5f7fa;
}

.msm-theme-light .halftime-scores {
    background: #e8ecf2;
}

.msm-theme-light .info-row {
    background: #ffffff;
}

.msm-theme-light .event-minute {
    background: #e8ecf2;
    color: #4b5563;
}

/* View toggle for light theme */
.msm-theme-light .view-btn.active {
    background: var(--msm-accent);
    color: #ffffff;
}

/* ==========================================
   CASINO / BOOKMAKER SECTION
   ========================================== */

.msm-casino-section {
    padding: 24px;
    background: var(--msm-primary);
    border-top: 1px solid var(--msm-border);
}

.casino-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.casino-section-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--msm-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.casino-section-header h3::before {
    content: '🎰';
}

.casino-count {
    font-size: 12px;
    color: var(--msm-text-secondary);
    background: var(--msm-secondary);
    padding: 6px 12px;
    border-radius: 20px;
}

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

.casino-card {
    display: grid;
    grid-template-columns: 40px 80px 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--msm-secondary);
    border: 1px solid var(--msm-border);
    border-radius: var(--msm-radius);
    position: relative;
    transition: var(--msm-transition);
}

.casino-card:hover {
    border-color: var(--msm-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.casino-card.featured {
    border-color: var(--msm-accent);
    background: linear-gradient(135deg, var(--msm-secondary) 0%, rgba(0, 212, 170, 0.1) 100%);
}

/* Casino Badge */
.casino-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.casino-badge.badge-popular {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
}

.casino-badge.badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.casino-badge.badge-recommended {
    background: linear-gradient(135deg, var(--msm-accent) 0%, #00a88a 100%);
    color: #fff;
}

.casino-badge.badge-exclusive {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.casino-badge.badge-best {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a1f2e;
}

/* Casino Rank */
.casino-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--msm-primary);
    border: 2px solid var(--msm-border);
    border-radius: 50%;
	font-size: 14px;
    font-weight: 700;
    color: var(--msm-text-secondary);
}

.casino-card.featured .casino-rank {
    background: var(--msm-accent);
    border-color: var(--msm-accent);
    color: var(--msm-primary);
}

/* Casino Logo */
.casino-logo-wrap {
    width: 70px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--msm-radius-sm);
    overflow: hidden;
    padding: 4px;
}

.casino-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.casino-logo-placeholder {
		width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--msm-accent) 0%, #00a88a 100%);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: var(--msm-radius-sm);
}

/* Casino Info */
.casino-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.casino-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--msm-text);
}

.casino-rating {
    font-size: 12px;
    letter-spacing: 1px;
}

/* Casino Bonus */
.casino-bonus {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.bonus-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--msm-text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bonus-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--msm-accent);
    max-width: 200px;
    text-align: right;
}

/* Casino CTA Button */
.casino-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--msm-accent);
    color: var(--msm-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--msm-radius-sm);
    transition: var(--msm-transition);
    white-space: nowrap;
}

.casino-cta:hover {
    background: #00e6b8;
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--msm-accent-glow);
}

/* Casino Disclaimer */
.casino-disclaimer {
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--msm-border);
    font-size: 11px;
    color: var(--msm-text-secondary);
	text-align: center;
}

.casino-disclaimer a {
    color: var(--msm-accent);
    text-decoration: none;
}

.casino-disclaimer a:hover {
    text-decoration: underline;
}

/* Casino section responsive */
@media (max-width: 992px) {
    .casino-card {
        grid-template-columns: 30px 60px 1fr auto;
        gap: 12px;
        padding: 14px 16px;
    }
    
    .casino-bonus {
		display: none;
	}
	
    .casino-cta {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .casino-card {
		grid-template-columns: 1fr;
	text-align: center;
        padding: 20px;
    }
    
    .casino-rank {
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .casino-logo-wrap {
        margin: 0 auto;
    }
    
    .casino-info {
        align-items: center;
    }
    
    .casino-bonus {
        display: flex;
        align-items: center;
    }
    
    .bonus-value {
	text-align: center;
    }
    
    .casino-cta {
        width: 100%;
        justify-content: center;
    }
    
    .casino-badge {
        top: auto;
        bottom: -8px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* Light theme casino adjustments */
.msm-theme-light .casino-logo-wrap {
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
}

.msm-theme-light .casino-rank {
    background: #f5f7fa;
}

/* ==========================================
   DETAILS LOADING STATE
   ========================================== */

.details-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--msm-text-secondary);
	font-size: 14px;
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--msm-border);
    border-top-color: var(--msm-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==========================================
   MATCH STATISTICS
   ========================================== */

.match-statistics {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--msm-border);
}

.stats-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--msm-text);
    margin-bottom: 16px;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 12px;
}

.stat-value-home,
.stat-value-away {
    font-size: 14px;
    font-weight: 600;
    color: var(--msm-text);
}

.stat-value-home {
    text-align: right;
}

.stat-value-away {
    text-align: left;
}

.stat-bar-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--msm-text-secondary);
	text-align: center;
}

.stat-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--msm-border);
}

.stat-bar-home {
    background: var(--msm-accent);
    transition: width 0.5s ease;
}

.stat-bar-away {
    background: var(--msm-live);
    transition: width 0.5s ease;
}

/* ==========================================
   MATCH LINEUPS
   ========================================== */

.match-lineups {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--msm-border);
}

.lineups-header {
	font-size: 14px;
    font-weight: 600;
    color: var(--msm-text);
    margin-bottom: 16px;
}

.lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lineup-team {
    background: var(--msm-secondary);
    border-radius: var(--msm-radius-sm);
    padding: 16px;
}

.lineup-team .lineup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--msm-border);
}

.lineup-team .team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--msm-text);
}

.lineup-team .formation {
    font-size: 12px;
    color: var(--msm-accent);
    font-weight: 600;
    background: rgba(0, 212, 170, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.lineup-coach {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--msm-text-secondary);
    margin-bottom: 12px;
}

.lineup-coach .coach-name {
    color: var(--msm-text);
    font-weight: 500;
}

.lineup-players {
    margin-top: 12px;
}

.players-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--msm-text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.lineup-player {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--msm-border);
}

.lineup-player:last-child {
    border-bottom: none;
}

.lineup-player .player-number {
    color: var(--msm-accent);
    font-weight: 600;
    text-align: center;
}

.lineup-player .player-name {
    color: var(--msm-text);
}

.lineup-player .player-pos {
    color: var(--msm-text-secondary);
    font-size: 11px;
    text-align: center;
}

.lineup-players.substitutes {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--msm-border);
}

.lineup-player.sub {
    opacity: 0.7;
}

/* Responsive lineups */
@media (max-width: 768px) {
    .lineups-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-row {
        grid-template-columns: 50px 1fr 50px;
    }
}

/* Light theme adjustments */
.msm-theme-light .match-statistics .stat-label,
.msm-theme-light .lineup-coach,
.msm-theme-light .players-label,
.msm-theme-light .lineup-player .player-pos {
    color: #666;
}

.msm-theme-light .lineup-team {
    background: #f5f7fa;
}

.msm-theme-light .stat-bar {
    background: #e5e7eb;
}
