/* Modern Blue Theme for Tỷ Lệ Kèo */
/* Scoped reset - only affects plugin elements, not global page */
.all-container *,
.ty-le-keo-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.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.4;
    margin: 0 auto;
    padding: 4px;
    max-width: 1400px;
    font-size: 12px;
}

/* ===== MAIN HEADER ===== */
.all-header {
    background: transparent;
    margin-bottom: 0;
}

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

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

.all-logo-wrapper {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 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: 22px;
    height: 22px;
    color: white;
    z-index: 1;
}

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

.all-brand-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

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

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

.all-live-dot {
    width: 6px;
    height: 6px;
    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 4px rgba(239, 68, 68, 0);
    }
}

.all-update-time {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.all-update-icon {
    width: 13px;
    height: 13px;
    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: 11px;
    color: #2196f3;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

/* Filter Section */
.all-filter-section {
    background: white;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

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

.all-filter-section::-webkit-scrollbar-track {
    background: rgba(33, 150, 243, 0.05);
    border-radius: 2px;
}

.all-filter-section::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.2);
    border-radius: 2px;
}

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

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

.all-match-type-tab:hover {
    background: rgba(33, 150, 243, 0.15);
}

.all-match-type-tab.all-tab-active {
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%);
    box-shadow: 0 1px 6px rgba(33, 150, 243, 0.4);
}

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

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

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

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

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

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

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

.all-filter-tabs::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.2);
    border-radius: 2px;
}

.all-filter-tab {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: fit-content;
    flex-shrink: 0;
    white-space: nowrap;
}

.all-filter-tab:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.4);
}

.all-filter-tab.all-filter-active {
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 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: 14px;
    height: 14px;
    color: #2196f3;
    transition: all 0.2s ease;
}

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

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

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

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

.all-date-input {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 4px;
    height: 28px;
    min-width: 130px;
    color: #2196f3;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    margin-bottom: 0;
    height: 1.8rem !important;
    min-height: auto;
    line-height: 1;
    transition: all 0.2s ease;
}

.all-date-input:hover {
    border-color: rgba(33, 150, 243, 0.4);
    background: rgba(33, 150, 243, 0.1);
}

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

.all-refresh-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 4px;
    color: #2196f3;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    margin-bottom: 0;
    min-height: auto;
}

.all-refresh-btn:hover:not(:disabled) {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196f3;
}

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

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

.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: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #22c55e;
    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: 10px;
    color: #22c55e;
    font-weight: 700;
}

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

/* Control Bar */
.all-control-bar {
    background: white;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

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

.all-control-bar::-webkit-scrollbar-track {
    background: rgba(33, 150, 243, 0.05);
    border-radius: 2px;
}

.all-control-bar::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.2);
    border-radius: 2px;
}

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

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

.all-search-input {
    width: 180px;
    min-width: 150px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 4px;
    color: #1a1f36;
    font-size: 12px;
    line-height: 1;
    min-height: auto;
    height: 1.8rem !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: #2196f3;
    background: rgba(33, 150, 243, 0.08);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
    outline: none;
}

.all-search-btn {
    padding: 4px 8px;
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    line-height: 1;
    min-height: auto;
    margin-bottom: 0;
}

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

.all-search-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
}

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

.all-competition-select {
    min-width: 180px;
    max-width: 210px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 4px;
    color: #1a1f36;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 1;
    line-height: 1;
    margin-bottom: 0;
    min-height: auto;
}

.all-competition-select:hover {
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.08);
}

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

.all-stat-card {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

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

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

.all-stat-value {
    font-size: 12px;
    font-weight: 900;
    color: #2196f3;
    line-height: 1;
}

.all-stat-label {
    font-size: 10px;
    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: 300px;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    gap: 12px;
}

.all-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(33, 150, 243, 0.2);
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.all-loading-text {
    font-size: 12px;
    color: #2196f3;
    font-weight: 600;
}

.all-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    gap: 12px;
    padding: 24px;
}

.all-empty-icon {
    width: 48px;
    height: 32px;
    color: #d9d9d9;
}

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

.all-empty-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.all-empty-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

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

.all-competition-section {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(33, 150, 243, 0.1);
}

.all-competition-section:hover {
    border-color: rgba(33, 150, 243, 0.3);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.all-competition-header {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    padding: 2px 8px;
    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: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 4px;
}

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

.all-flag-container {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    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 {
    gap: 2px;
    align-items: center;
}

.all-country-name {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.all-competition-name {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: white !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.3px;
    display: inline !important;
    line-height: 1.4 !important;
    border: none !important;
}

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

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

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

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

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

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

/* ===== NEW MATCH CARD STRUCTURE ===== */
.all-match-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.all-match-card.live {
    border-color: rgba(239, 68, 68, 0.4);
    border-left: 3px solid #ef4444;
}

.all-match-card:hover {
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

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

/* Card Body - Grid: time | teams | scores | actions */
.all-card-body {
    display: grid;
    grid-template-columns: 56px 1fr 36px 32px;
    align-items: center;
    padding: 6px 8px;
    gap: 8px;
}

/* Actions Column */
.all-actions-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.all-match-card.live .all-card-body {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.04) 0%, transparent 40%);
}

/* Time Column */
.all-time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.all-match-time {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.all-match-datestr {
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1;
}

.all-match-minute {
    font-size: 14px;
    font-weight: 900;
    color: #ef4444;
    line-height: 1.2;
}

.all-match-halftime {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    line-height: 1;
}

/* Teams Column */
.all-teams-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.all-team-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

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

.all-team-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Score Column */
.all-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.all-score-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    background: #e8f0fe;
    color: #1976d2;
    font-size: 13px;
    font-weight: 900;
    border-radius: 4px;
    line-height: 1;
}

.all-match-card.live .all-score-num {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

/* Card Footer - Actions */
.all-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px 5px;
    border-top: 1px solid #f1f5f9;
}

.all-favorite-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    min-height: auto;
    margin-bottom: 0;
    line-height: 1;
    flex-shrink: 0;
}

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

.all-favorite-btn:hover {
    background: rgba(251, 191, 36, 0.1);
}

.all-favorite-btn.all-favorite-active svg {
    color: #f59e0b;
}

@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: 9px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 8px;
    margin-left: 3px;
    min-width: 14px;
    text-align: center;
}

.all-view-detail-btn {
    width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fe;
    border: none;
    border-radius: 6px;
    color: #1976d2;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    min-height: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

.all-view-detail-btn:hover {
    background: #d0e3ff;
}

.all-view-detail-btn svg {
    width: 16px;
    height: 16px;
}

.all-expand-btn {
    width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: auto;
    margin-bottom: 0;
    line-height: 1;
    flex-shrink: 0;
}

.all-expand-btn:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
}

/* Desktop/Mobile view toggle */
.all-mobile-view { display: none; }
.all-desktop-view { display: block; }

/* ===== DESKTOP CARD LAYOUT ===== */
.all-card-header {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    gap: 8px;
}

.all-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    flex-shrink: 0;
}

.all-match-status {
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
}

.all-match-period {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
}

.all-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
}

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

.all-card-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
}

.all-team-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

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

.all-team-logo-large {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.all-team-name-large {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.all-score-number {
    font-size: 16px;
    font-weight: 900;
    color: #1976d2;
    min-width: 20px;
    text-align: center;
}

.all-score-vs {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

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

.all-match-date {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
}

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

.all-load-more-btn {
    padding: 8px 24px;
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    min-height: auto;
    margin-bottom: 0;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.all-load-more-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.4);
}

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

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

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

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

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

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

.all-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(33, 150, 243, 0.2);
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

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

.all-odds-group:hover {
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.all-odds-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 2px;
    color: white;
}

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

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

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

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

.all-odds-cell:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

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

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

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

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

/* Predictions Section */
.all-predictions-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 3px 6px;
    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: 4px;
}

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

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

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

.all-predictions-bar {
    display: flex;
    width: 100%;
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.all-prediction-home {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.2s ease;
}

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

.all-prediction-away {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%);
    transition: all 0.2s ease;
}

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

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

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

.all-legend-color-home {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

.all-legend-color-away {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%);
}

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

/* Recent Form Section */
.all-recent-form-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 3px 6px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.all-recent-form-header {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #2196f3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.all-form-title {
    font-size: 10px;
    font-weight: 900;
    color: #2196f3;
}

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

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

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

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

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

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

.all-form-win {
    background: linear-gradient(135deg, #10b981 0%, #059669 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: 6px;
        gap: 6px;
        margin-bottom: 6px;
    }

    .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: 4px;
    }

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

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

    .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-container,
    .ty-le-keo-container {
        padding: 1px;
    }

    .all-filter-section,
    .all-control-bar {
        border-radius: 8px;
        margin-bottom: 4px;
    }

    .all-hidden-mobile {
        display: none;
    }

    .all-filter-tab {
        padding: 2px 6px;
        gap: 3px;
    }

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

    .all-competition-header {
        padding: 2px 6px;
        border-radius: 0;
    }

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

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

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

    .all-country-name {
        font-size: 8px;
        padding: 0 3px;
    }

    .all-competition-badges {
        gap: 2px;
    }

    .all-match-badge {
        padding: 0 3px;
    }

    .all-match-count {
        font-size: 9px;
    }

    .all-match-label {
        font-size: 7px;
    }

    .all-competition-logo {
        width: 14px;
        height: 14px;
        margin-right: 2px;
    }

    /* Show mobile view, hide desktop view */
    .all-desktop-view { display: none !important; }
    .all-mobile-view { display: block !important; }

    /* ===== MATCH CARD MOBILE ===== */
    .all-matches-content {
        gap: 0;
    }

    .all-matches-list {
        padding: 0;
    }

    .all-competition-section {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .all-match-card {
        margin-bottom: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #eef1f5;
        border-top: none;
    }

    .all-match-card.live {
        border-left: 3px solid #ef4444;
    }

    .all-match-card:hover {
        transform: none;
        box-shadow: none;
    }

    .all-card-body {
        grid-template-columns: 48px 1fr 30px 28px;
        padding: 5px 6px;
        gap: 6px;
    }

    .all-match-time {
        font-size: 12px;
    }

    .all-match-datestr {
        font-size: 8px;
    }

    .all-match-minute {
        font-size: 13px;
    }

    .all-match-halftime {
        font-size: 8px;
    }

    .all-teams-col {
        gap: 2px;
    }

    .all-team-row {
        gap: 5px;
    }

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

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

    .all-score-col {
        gap: 2px;
    }

    .all-score-num {
        width: 26px;
        height: 20px;
        font-size: 12px;
        border-radius: 3px;
    }

    .all-actions-col {
        gap: 2px;
    }

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

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

    .all-expand-btn {
        width: 24px;
        height: 22px;
        border-radius: 4px;
    }

    /* ===== EXPANDED SECTION MOBILE ===== */
    .all-expanded-section {
        padding: 3px 4px;
    }

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

    .all-odds-header {
        padding: 1px;
    }

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

    .all-odds-content,
    .all-odds-content-1x2 {
        padding: 2px;
        gap: 2px;
    }

    .all-odds-cell {
        padding: 2px 3px;
        font-size: 10px;
        min-width: 28px;
    }

    .all-handicap-badge {
        padding: 2px 4px;
        font-size: 10px;
    }

    .all-no-odds {
        padding: 4px;
        gap: 3px;
    }

    .all-no-odds-icon {
        font-size: 12px;
    }

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

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

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

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

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

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

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

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

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

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

    .all-form-match {
        width: 15px;
        height: 15px;
        font-size: 7px;
        border-radius: 2px;
    }

    /* Match Comparison Mobile */
    .all-comparison-section {
        padding: 4px;
        margin-top: 2px;
        border-radius: 0;
    }

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

    .all-comparison-teams {
        gap: 6px;
    }

    .all-comparison-logo {
        width: 18px;
        height: 18px;
    }

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

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

    .all-comparison-bar-label {
        font-size: 8px;
        margin-bottom: 1px;
    }

    .all-comparison-bar-value {
        min-width: 24px;
        font-size: 8px;
    }

    .all-comparison-bar-track {
        height: 12px;
    }

    .all-comparison-bars {
        padding: 4px;
    }

    .all-comparison-title {
        font-size: 10px;
        margin: 0 0 4px 0;
    }

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

    .all-comparison-bar-wrapper {
        gap: 2px;
    }

    /* Load More Mobile */
    .all-load-more {
        padding: 6px;
    }

    .all-load-more-btn {
        padding: 6px 16px;
        font-size: 11px;
        border-radius: 6px;
        gap: 4px;
    }

    .all-load-more-icon {
        font-size: 12px;
    }

    /* Stats bar mobile */
    .all-stat-icon {
        font-size: 10px;
    }

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

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

@media (max-width: 549px) {
    .all-card-body {
        grid-template-columns: 42px 1fr 22px 24px;
        padding: 4px 5px;
        gap: 4px;
    }

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

    .all-match-datestr {
        font-size: 7px;
    }

    .all-match-minute {
        font-size: 12px;
    }

    .all-match-halftime {
        font-size: 7px;
    }

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

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

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

    .all-teams-col {
        gap: 1px;
    }

    .all-score-num {
        width: 22px;
        height: 18px;
        font-size: 11px;
        border-radius: 2px;
    }

    .all-score-col {
        gap: 1px;
    }

    .all-actions-col {
        gap: 1px;
    }

    .all-expand-btn {
        width: 22px;
        height: 20px;
    }

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

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

    .all-match-type-tab {
        padding: 3px 5px;
    }

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

    .all-filter-section {
        padding: 4px;
    }

    .all-control-bar {
        padding: 4px;
    }

    .all-search-input {
        font-size: 11px;
        padding: 2px 6px;
        height: 1.6rem !important;
    }

    .all-competition-select {
        font-size: 10px;
        padding: 2px 6px;
    }

    .all-refresh-btn {
        padding: 2px 6px;
        font-size: 10px;
    }

    .all-date-input {
        font-size: 10px;
        padding: 2px 4px;
        height: 1.5rem !important;
        min-width: 110px;
    }

    .all-checkbox {
        width: 12px;
        height: 12px;
    }

    .all-checkbox-label span:first-child {
        font-size: 9px;
    }
}

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

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

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

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

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

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

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

.all-comparison-vs {
    font-size: 13px;
    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: 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.all-comparison-title {
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 6px 0;
    text-align: center;
}

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

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

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

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

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

.all-comparison-bar-fill-home {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    transition: width 0.6s ease;
}

.all-comparison-bar-fill-away {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    transition: width 0.6s ease;
}

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

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

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

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

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

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

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

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

.all-half-btn.all-half-active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
}

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

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

.all-type-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.all-type-btn.all-type-active {
    border: 1px solid #3b82f6;
    background: #3b82f6;
    color: #ffffff;
}

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

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

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

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

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

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

.all-event-row {
    display: grid;
    grid-template-columns: 50px 32px 32px 1fr auto;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

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

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

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

.all-goal-event:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 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: 2px 5px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

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

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

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

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

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

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

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

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

.all-home-team {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

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

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

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

.all-goal-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

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

.all-assist-icon {
    color: #10b981;
    font-weight: 700;
}

.all-assist-name {
    color: #10b981;
    font-weight: 600;
}

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

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

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

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

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

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

    .all-events-filters {
        flex-direction: column;
        gap: 4px;
        padding: 3px 6px;
    }

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

    .all-half-btn {
        padding: 2px 6px;
        font-size: 9px;
    }

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

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

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

    .all-event-row {
        grid-template-columns: 40px 26px 26px 1fr auto;
        padding: 3px 6px;
    }

    .all-time-badge {
        padding: 1px 3px;
    }

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

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

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

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

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

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

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

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

    .all-goal-badge {
        font-size: 6px;
        padding: 0 3px;
    }

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

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

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

    .all-event-type-badge {
        font-size: 7px;
        padding: 1px 3px;
    }
}
