/* Modern Green Theme for Tỷ Lệ Kèo */
/* ===== COLOR VARIABLES - THAY ĐỔI MÀU Ở ĐÂY ===== */
:root {
    /* Màu chủ đạo - Xanh lá gradient (rgb(0, 155, 58) → rgb(0, 57, 34)) */
    --primary-color: #009b3a;        /* Màu chính (rgb(0, 155, 58)) */
    --primary-color-dark: #003922;   /* Màu đậm (rgb(0, 57, 34)) */
    --primary-rgb: 0, 155, 58;      /* RGB cho rgba() */
    
    /* Ví dụ các màu khác bạn có thể dùng:
    --primary-color: #2196f3;        Xanh dương
    --primary-color-dark: #1976d2;   Xanh dương đậm
    --primary-rgb: 33, 150, 243;
    
    --primary-color: #e91e63;       Hồng
    --primary-color-dark: #c2185b;   Hồng đậm
    --primary-rgb: 233, 30, 99;
    
    --primary-color: #ff9800;       Cam
    --primary-color-dark: #f57c00;   Cam đậm
    --primary-rgb: 255, 152, 0;
    
    --primary-color: #9c27b0;        Tím
    --primary-color-dark: #7b1fa2;   Tím đậm
    --primary-rgb: 156, 39, 176;
    */
}

/* Force primary color for all-container - prevent override */
.all-container {
    --primary-color: #009b3a !important;
    --primary-color-dark: #003922 !important;
    --primary-rgb: 0, 155, 58 !important;
}

/* Scoped reset - only affects plugin elements, not global page */
.all-container *,
.ty-le-keo-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove body selector to prevent Flatsome conflicts */

.all-container,
.ty-le-keo-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1f36;
    line-height: 1.6;
    margin: 0 auto;
    padding: 8px;
    max-width: 1400px;
}

/* ===== MAIN HEADER ===== */
.all-header {
    background: #ffffff;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* Top Bar */
.all-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    display: none;
}

.all-brand-section {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.all-logo-wrapper {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
    position: relative;
    overflow: hidden;
}

.all-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.all-logo-icon {
    width: 28px;
    height: 28px;
    color: white;
    z-index: 1;
}

.all-brand-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.all-brand-title {
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.all-brand-subtitle {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

.all-quick-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.all-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 5px;
    color: #ef4444;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}

.all-live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.all-update-time {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.all-update-icon {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
    animation: clockTick 1s infinite;
}

@keyframes clockTick {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

.all-update-value {
    font-size: 13px;
    color: #009b3a;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

/* Filter Section */
.all-filter-section {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.all-filter-section::-webkit-scrollbar {
    height: 4px;
}

.all-filter-section::-webkit-scrollbar-track {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 2px;
}

.all-filter-section::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 2px;
}

.all-filter-section::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.3);
}

.all-match-type-tabs {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.all-match-type-tab {
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    min-height: auto;
    margin-bottom: 0;
}

.all-match-type-tab:hover {
    background: rgba(var(--primary-rgb), 0.15);
}

.all-container .all-match-type-tab.all-tab-active {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.4);
}

.all-match-type-tab.all-tab-active .all-tab-label {
    color: white;
}

.all-tab-label {
    font-size: 12px;
    font-weight: 800;
    color: #1a1f36;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.all-live-tab-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.all-live-tab-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.all-filter-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.all-filter-tabs::-webkit-scrollbar {
    height: 3px;
}

.all-filter-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.all-filter-tabs::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 2px;
}

.all-filter-tab {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: fit-content;
    flex-shrink: 0;
    white-space: nowrap;
}

.all-filter-tab:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.2);
}

.all-filter-tab.all-filter-active {
    background: var(--primary-color);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
}

.all-filter-tab.all-filter-active .all-tab-label-text,
.all-filter-tab.all-filter-active .all-tab-icon {
    color: white;
}

.all-tab-icon {
    width: 18px;
    height: 18px;
    color: #009b3a;
    transition: all 0.3s ease;
}

.all-tab-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.all-tab-label-text {
    font-size: 13px;
    font-weight: 800;
    color: #1a1f36;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.all-tab-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.all-date-picker {
    position: relative;
    flex-shrink: 0;
}

.all-date-input {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 5px;
    height: 33px;
    min-width: 140px;
    color: #009b3a;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 0;
    height: 2.2rem !important;
    min-height: auto;
    line-height: 1;
    transition: all 0.3s ease;
}

.all-date-input:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.1);
}

.all-auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    flex-shrink: 0;
    white-space: nowrap;
}

.all-refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 5px;
    color: #009b3a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    margin-bottom: 0;
    min-height: auto;
}

.all-refresh-btn:hover:not(:disabled) {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: #009b3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

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

.all-refresh-icon {
    width: 16px;
    height: 16px;
}

.all-refresh-btn.loading .all-refresh-icon {
    animation: spin 1s linear infinite;
}

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

.all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #009b3a;
    margin-bottom: 0;
}

.all-checkbox-label {
    display: flex;
    gap: 2px;
    cursor: pointer;
    user-select: none;
    align-items: center;
}

.all-checkbox-label span:first-child {
    font-size: 12px;
    color: #009b3a;
    font-weight: 700;
}

.all-refresh-interval {
    font-size: 10px;
    color: rgba(100, 116, 139, 0.7);
    font-weight: 600;
}

/* Control Bar */
.all-control-bar {
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.all-control-bar::-webkit-scrollbar {
    height: 4px;
}

.all-control-bar::-webkit-scrollbar-track {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 2px;
}

.all-control-bar::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 2px;
}

.all-control-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.3);
}

.all-search-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
}

.all-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.all-search-input {
    width: 200px;
    min-width: 180px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 5px;
    color: #1a1f36;
    font-size: 14px;
    line-height: 1;
    min-height: auto;
    height: 2.2rem !important;
    margin-bottom: 0;
}

.all-search-input::placeholder {
    color: rgba(100, 116, 139, 0.5);
}

.all-search-input:hover,
.all-search-input:focus {
    border-color: #009b3a;
    background: rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.all-container .all-search-btn {
    padding: 5px 12px;
    background: var(--primary-color) !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
    line-height: 1;
    min-height: auto;
    margin-bottom: 0;
}

.all-search-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.all-search-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

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

.all-competition-select {
    min-width: 210px;
    max-width: 230px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 5px;
    color: #1a1f36;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 1;
    line-height: 1;
    margin-bottom: 0;
    min-height: auto;
}

.all-competition-select:hover {
    border-color: #009b3a;
    background: rgba(var(--primary-rgb), 0.08);
}

.all-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.all-stat-card {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 5px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.all-stat-icon {
    font-size: 14px;
    filter: grayscale(0.3);
}

.all-stat-content {
    display: flex;
    gap: 4px;
    color: #1a1f36;
    align-items: center;
}

.all-stat-value {
    font-size: 15px;
    font-weight: 900;
    color: #009b3a;
    line-height: 1;
}

.all-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== MAIN CONTENT ===== */
.all-main-content {
    position: relative;
}

.all-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 155, 58, 0.1);
    gap: 16px;
}

.all-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 155, 58, 0.2);
    border-top-color: #009b3a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.all-loading-text {
    font-size: 14px;
    color: #009b3a;
    font-weight: 600;
}

.all-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 155, 58, 0.1);
    gap: 16px;
    padding: 40px;
}

.all-empty-icon {
    width: 64px;
    height: 41px;
    color: #d9d9d9;
}

.all-empty-text {
    font-size: 14px;
    color: rgba(100, 116, 139, 0.7);
    font-weight: 600;
}

.all-container .all-empty-btn {
    padding: 12px 28px;
    background: var(--primary-color) !important;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.all-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* Matches Content */
.all-matches-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.all-competition-section {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 155, 58, 0.1);
}

.all-competition-section:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
}

.all-container .all-competition-header {
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%) !important;
    padding: 3px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.all-competition-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.all-competition-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
}

.all-competition-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.all-flag-container {
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
}

.all-country-flag {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: white;
}

.all-competition-texts {
    display: flex;
    gap: 2px;
    align-items: center;
}

.all-country-name {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.all-competition-name {
    font-size: 13px;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: -0.3px;
}

.all-competition-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-match-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.all-match-count {
    font-size: 14px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.all-match-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-transform: uppercase;
}

.all-expanded-empty {
    text-align: center;
    font-size: 12px;
    font-style: italic;
}

.all-matches-list {
    padding: 6px;
}

.all-match-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 0;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.all-match-card.live {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
    padding: 3px 5px;
}

.all-match-card:hover {
    border-color: #009b3a;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-1px);
}

.all-match-card:last-child {
    margin-bottom: 0;
}

/* Card Header */
.all-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e2e8f0;
}

.all-match-card.live .all-card-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

.all-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.all-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.all-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 10px;
    background: #ef4444;
    color: white;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.all-live-pulse {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.all-match-status {
    font-size: 11px;
    font-weight: 700;
    color: #1a1f36;
    background: white;
    padding: 3px;
    border-radius: 2px;
    border: 1px solid #e2e8f0;
}

.all-match-period {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    background: white;
    padding: 3px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.all-ball-icon {
    width: 12px;
    height: 12px;
    color: #94a3b8;
}

.all-match-minute {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    background: white;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.all-favorite-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: auto;
    margin-bottom: 0;
    line-height: 1;
    margin-right: 0;
}

.all-favorite-btn svg {
    width: 18px;
    height: 18px;
    color: #fbbf24;
}

.all-favorite-btn:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    transform: scale(1.1);
}

.all-match-date {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: white;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.all-match-date svg {
    width: 12px;
    height: 12px;
}

/* Favorite Button */
.all-favorite-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.all-favorite-btn svg {
    width: 16px;
    height: 16px;
    color: #fbbf24;
    transition: all 0.3s ease;
}

.all-favorite-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
    transform: scale(1.1);
}

.all-favorite-btn:active {
    transform: scale(0.95);
}

.all-favorite-btn.all-favorite-active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: #fbbf24;
}

.all-favorite-btn.all-favorite-active svg {
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Favorites Count Badge */
.all-favorites-count {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

/* Card Main Content */
.all-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 60%;
}

.all-team-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.all-team-section.home {
    justify-content: flex-end;
}

.all-team-logo-large {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.all-team-name-large {
    font-size: 13px;
    font-weight: 700;
    color: #1a1f36;
    text-align: center;
}

.all-score-section {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}

.all-score-number {
    font-size: 24px;
    font-weight: 900;
    color: #1a1f36;
    line-height: 1;
    min-width: 20px;
    text-align: center;
}

.all-score-vs {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Card Actions */
.all-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    padding: 5px 3px;
}

.all-container .all-view-detail-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%) !important;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 12px;
    margin-right: 0;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.25);
    white-space: nowrap;
    margin-bottom: 0;
    line-height: 1;
    min-height: auto;
}

.all-view-detail-btn:hover {
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.35);
}

.all-view-detail-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.25);
}

.all-view-icon {
    width: 16px;
    height: 16px;
}

.all-view-text {
    font-size: 12px;
}

/* Load More */
.all-load-more {
    text-align: center;
    padding: 24px;
}

.all-container .all-load-more-btn {
    padding: 14px 36px;
    background: var(--primary-color) !important;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    min-height: auto;
    margin-bottom: 0;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.all-load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.4);
}

.all-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.all-load-more-icon {
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ===== EXPANDED SECTION ===== */
.all-expanded-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 8px 10px;
    border-top: 2px solid #009b3a;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.all-expanded-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
}

.all-spinner-small {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 155, 58, 0.2);
    border-top-color: #009b3a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Odds Container */
.all-odds-container {
    margin-bottom: 6px;
}

.all-odds-grid {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.all-odds-group {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
}

.all-odds-group:hover {
    border-color: #009b3a;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.12);
    transform: translateY(-1px);
}

.all-odds-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
    padding: 4px;
    color: white;
}

.all-odds-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-odds-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 6px;
}

.all-odds-content-1x2 {
    display: flex;
    gap: 4px;
    padding: 6px;
}

.all-odds-cell {
    flex: 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    transition: all 0.3s ease;
    color: #1e293b;
}

.all-odds-cell:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
}

.all-handicap-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid #009b3a;
    flex-shrink: 0;
}

.all-no-odds {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 6px;
}

.all-no-odds-icon {
    font-size: 24px;
    opacity: 0.5;
}

.all-no-odds-text {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

/* Predictions Section */
.all-predictions-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(124, 58, 237, 0.02) 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 6px;
}

.all-predictions-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-prediction-icon {
    font-size: 14px;
}

.all-prediction-text {
    font-size: 11px;
    font-weight: 900;
    color: #8b5cf6;
}

.all-predictions-bar {
    display: flex;
    width: 100%;
    height: 24px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.all-prediction-home {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
    transition: all 0.3s ease;
}

.all-prediction-draw {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transition: all 0.3s ease;
}

.all-prediction-away {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.all-prediction-value {
    font-size: 11px;
    font-weight: 900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.all-predictions-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.all-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.all-legend-color-home {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
}

.all-legend-color-draw {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.all-legend-color-away {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--primary-color);
}

.all-legend-text {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
}

/* Recent Form Section */
.all-recent-form-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 8px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border-top: 1px solid rgba(0, 155, 58, 0.1);
}

.all-recent-form-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #009b3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-form-icon {
    font-size: 14px;
}

.all-form-title {
    font-size: 11px;
    font-weight: 900;
    color: #009b3a;
}

.all-form-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.all-form-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.all-form-team-name {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    flex: 1;
}

.all-form-matches {
    display: flex;
    gap: 4px;
}

.all-form-match {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.all-form-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.all-form-win {
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
}

.all-form-draw {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.all-form-lose {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 930px) {
    .all-top-bar {
        flex-direction: column;
    }

    .all-quick-actions {
        width: 100%;
        justify-content: space-between;
    }

    .all-filter-section {
        flex-direction: column;
        padding: 8px 10px;
        gap: 3px;
    }

    .all-match-type-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .all-match-type-tab {
        flex: 1;
        justify-content: center;
    }

    .all-filter-tabs {
        width: 100%;
        gap: 8px;
    }

    .all-control-bar {
        flex-direction: column;
        padding: 10px 10px;
        gap: 8px;
    }

    .all-search-section {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .all-search-wrapper {
        width: 100%;
    }

    .all-search-input {
        width: 100%;
    }

    .all-competition-select {
        width: 100%;
        min-width: 100%;
    }

    .all-stats-bar {
        width: 100%;
        justify-content: space-between;
    }

    .all-stat-card, .all-update-time {
        flex: 1;
        background: transparent;
        padding: 0;
        border: 0;
    }
}

@media (max-width: 768px) {
    .all-hidden-mobile {
        display: none;
    }

    .all-filter-tab {
        padding: 8px 12px;
        gap: 6px;
    }

    .all-tab-label-text {
        font-size: 11px;
    }

    .all-competition-header {
        padding: 5px 10px;
    }

    .all-competition-name {
        font-size: 12px;
    }

    .all-competition-info {
        gap: 6px;
    }

    .all-flag-container {
        width: 18px;
        height: 18px;
    }

    .all-country-name {
        font-size: 9px;
        padding: 1px 6px;
    }

    /* Match Card Mobile */
    .all-matches-list {
        padding: 4px;
    }

    .all-match-card {
        margin-bottom: 4px;
        border-radius: 6px;
    }

    .all-card-header {
        padding: 5px 8px;
        flex-wrap: wrap;
    }

    .all-header-left {
        gap: 4px;
    }

    .all-header-right {
        gap: 4px;
    }

    .all-live-badge {
        font-size: 9px;
        padding: 2px 6px;
        gap: 3px;
    }

    .all-live-pulse {
        width: 5px;
        height: 5px;
    }

    .all-match-status {
        font-size: 10px;
        padding: 2px 6px;
    }

    .all-match-period {
        font-size: 10px;
        padding: 2px 5px;
        gap: 2px;
    }

    .all-ball-icon {
        width: 10px;
        height: 10px;
    }

    .all-match-minute {
        font-size: 10px;
        padding: 2px 5px;
    }

    .all-favorite-btn {
        width: 24px;
        height: 24px;
    }

    .all-favorite-btn svg {
        width: 22px;
        height: 22px;
    }

    .all-match-date {
        font-size: 10px;
        padding: 2px 5px;
        gap: 2px;
    }

    .all-match-date svg {
        width: 10px;
        height: 10px;
    }

    .all-favorite-btn {
        width: 24px;
        height: 24px;
    }

    .all-card-main {
        padding: 6px 5px;
        gap: 8px;
        order: 1;
        width: 100%;
    }

    .all-team-section {
        gap: 4px;
    }

    .all-team-logo-large {
        width: 28px;
        height: 28px;
    }

    .all-team-name-large {
        font-size: 11px;
    }

    .all-score-number {
        font-size: 20px;
        min-width: 24px;
    }

    .all-score-vs {
        font-size: 10px;
    }

    .all-card-actions {
        padding: 5px 8px;
        gap: 4px;
    }

    .all-view-detail-btn {
        padding: 6px 12px;
        font-size: 11px;
        gap: 4px;
    }

    .all-view-text {
        display: none;
    }

    .all-view-icon {
        width: 14px;
        height: 14px;
    }

    /* Expanded Section Mobile */
    .all-expanded-section {
        padding: 6px 8px;
    }

    .all-odds-grid {
        flex-direction: column;
        gap: 4px;
    }

    .all-odds-cell {
        padding: 4px 6px;
        font-size: 11px;
        min-width: 35px;
    }

    .all-handicap-badge {
        padding: 4px 8px;
        font-size: 11px;
    }

    .all-predictions-section {
        padding: 4px 6px;
    }

    .all-predictions-bar {
        height: 20px;
    }

    .all-prediction-value {
        font-size: 10px;
    }

    .all-predictions-legend {
        gap: 8px;
    }

    .all-legend-color-home,
    .all-legend-color-draw,
    .all-legend-color-away {
        width: 10px;
        height: 10px;
    }

    .all-legend-text {
        font-size: 9px;
    }

    .all-recent-form-section {
        padding: 4px 6px;
    }

    .all-form-team {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .all-form-team-name {
        font-size: 10px;
    }

    .all-form-match {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    /* Match Comparison Mobile */
    .all-comparison-logo {
        width: 28px;
        height: 28px;
    }

    .all-comparison-name {
        font-size: 12px;
    }

    .all-comparison-bar-label {
        font-size: 10px;
    }

    .all-comparison-bar-value {
        min-width: 32px;
        font-size: 10px;
    }

    .all-comparison-bar-track {
        height: 18px;
    }
}
@media (max-width: 549px) {
    .all-score-section {
        padding: 3px 0;
        gap: 0;
    }
    .all-match-badge {
        padding: 2px 5px;
    }
    .all-view-detail-btn {
        padding: 2px 4px;
    }
    .all-score-number {
        min-width: 20px;
        font-size: 18px;
    }
    .all-card-header {
        padding: 2px 5px;
        flex-wrap: wrap;
    }
    .all-team-name-large {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===== MATCH COMPARISON SECTION ===== */
.all-comparison-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.all-comparison-header {
    margin-bottom: 12px;
}

.all-comparison-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.all-comparison-team {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.all-comparison-team:hover {
    transform: scale(1.05);
}

.all-comparison-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.all-comparison-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.all-comparison-vs {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.all-comparison-bars {
    background: linear-gradient(135deg, #fefefe 0%, #fafbfc 100%);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.all-comparison-title {
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
    text-align: center;
}

.all-comparison-bar-item {
    margin-bottom: 8px;
}

.all-comparison-bar-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.all-comparison-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-comparison-bar-value {
    min-width: 38px;
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    text-align: center;
}

.all-comparison-bar-track {
    flex: 1;
    height: 22px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.all-comparison-bar-fill-home {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.all-comparison-bar-fill-away {
    height: 100%;
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== EVENTS TIMELINE SECTION ===== */
.all-events-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.all-events-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 2px solid #009b3a;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-events-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.all-events-title {
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Events Filters */
.all-events-filters {
    background: #f8fafc;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.all-half-selector {
    display: flex;
    gap: 4px;
    background: #ffffff;
    border-radius: 8px;
    padding: 3px;
    border: 1px solid #e5e7eb;
}

.all-half-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.all-half-btn:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.all-half-btn.all-half-active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

.all-type-selector {
    display: flex;
    gap: 6px;
}

.all-type-btn {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.all-type-btn:hover {
    border-color: #009b3a;
    color: #009b3a;
    background: #eff6ff;
}

.all-type-btn.all-type-active {
    border: 1px solid #009b3a;
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
    color: #ffffff;
}

.all-type-btn span:first-child {
    font-size: 14px;
}

.all-events-container {
    max-height: 400px;
    overflow-y: auto;
}

.all-events-container::-webkit-scrollbar {
    width: 4px;
}

.all-events-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.all-events-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.all-events-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.all-event-row {
    display: grid;
    grid-template-columns: 60px 40px 40px 1fr auto;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.all-event-row:hover {
    background: #f8fafc !important;
    transform: translateX(4px);
    box-shadow: inset 4px 0 0 0 #009b3a;
}

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

.all-goal-event {
    background: linear-gradient(90deg, rgba(0, 155, 58, 0.05) 0%, transparent 100%) !important;
}

.all-goal-event:hover {
    background: linear-gradient(90deg, rgba(0, 155, 58, 0.1) 0%, transparent 100%) !important;
}

.all-event-time {
    display: flex;
    justify-content: center;
}

.all-time-badge {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.all-time-minute {
    font-size: 13px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.all-time-extra {
    font-size: 9px;
    font-weight: 600;
    color: #ef4444;
    margin-left: 2px;
}

.all-event-icon-cell {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    position: relative;
}

.all-event-icon-cell:after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    z-index: -1;
}

.all-event-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.all-event-team {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: relative;
}

.all-event-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
}

.all-team-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: -2px;
    right: -2px;
}

.all-home-team {
    background: var(--primary-color);
}

.all-away-team {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.all-event-player {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.all-player-name {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.all-goal-badge {
    background: linear-gradient(135deg, rgb(0, 155, 58) 0%, rgb(0, 57, 34) 100%);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.all-assist-info {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.all-assist-icon {
    color: #009b3a;
    font-weight: 700;
}

.all-assist-name {
    color: #009b3a;
    font-weight: 600;
}

.all-assist-label {
    color: #94a3b8;
    font-size: 9px;
    font-style: italic;
}

.all-event-detail {
    padding: 0 8px;
    display: flex;
    justify-content: flex-end;
}

.all-event-type-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Mobile styles for Events Timeline */
@media (max-width: 930px) {
    .all-events-header {
        padding: 6px 10px;
    }

    .all-events-icon {
        font-size: 14px;
    }

    .all-events-title {
        font-size: 11px;
    }

    .all-events-filters {
        flex-direction: column;
        gap: 8px;
        padding: 8px 10px;
    }

    .all-half-selector,
    .all-type-selector {
        width: 100%;
        justify-content: center;
    }

    .all-half-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .all-type-btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    .all-type-btn span:first-child {
        font-size: 12px;
    }

    .all-events-container {
        max-height: 300px;
    }

    .all-event-row {
        grid-template-columns: 50px 32px 32px 1fr auto;
        padding: 8px 10px;
    }

    .all-time-badge {
        padding: 4px 6px;
    }

    .all-time-minute {
        font-size: 11px;
    }

    .all-time-extra {
        font-size: 8px;
    }

    .all-event-icon-cell {
        width: 30px;
        height: 30px;
    }

    .all-event-icon {
        font-size: 14px;
    }

    .all-event-team-logo {
        width: 20px;
        height: 20px;
    }

    .all-team-indicator {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }

    .all-event-player {
        padding: 0 6px;
    }

    .all-player-name {
        font-size: 11px;
    }

    .all-goal-badge {
        font-size: 7px;
        padding: 1px 4px;
    }

    .all-assist-info {
        font-size: 10px;
    }

    .all-assist-label {
        font-size: 8px;
    }

    .all-event-detail {
        padding: 0 4px;
    }

    .all-event-type-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}
