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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray-light: #f1f5f9;
    --gray-medium: #94a3b8;
    --white: #ffffff;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f172a 25%, #1e1b4b 50%, #172554 100%);
    background-attachment: fixed;
    color: var(--dark);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: shift 15s ease-in-out infinite;
}

@keyframes shift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header - Glassmorphism */
.header-glass {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo-section h1 {
    font-size: 3em;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 10px 40px rgba(245, 158, 11, 0.2);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3)); }
}

.logo-section .subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 1px;
}

.header-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px #10b981;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.time-display {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    min-width: 110px;
    padding: 14px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--white);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-light), #3b82f6);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
}

.tab-icon {
    font-size: 1.1em;
}

/* Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.tab-content.active {
    display: block;
}

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

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

.content-header h2 {
    font-size: 1.8em;
    color: var(--white);
    font-weight: 700;
}

.search-group {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.search-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.95em;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* Buttons */
.btn-refresh, .btn-search {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--dark);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-refresh:hover, .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-refresh:active, .btn-search:active {
    transform: translateY(0);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--dark);
    border-radius: 50%;
}

.btn-refresh:hover .spinner {
    animation: spin 0.8s linear infinite;
}

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

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 20px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.match-card {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.match-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.2);
}

.match-card:hover::before {
    opacity: 1;
}

.match-status {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.match-status.live {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.match-status.finished {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.match-status.scheduled {
    background: rgba(148, 163, 184, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.match-teams {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.team {
    flex: 1;
    text-align: center;
}

.team-name {
    font-weight: 600;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-score {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.match-vs {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 10px;
}

.match-info {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.match-info strong {
    color: rgba(255, 255, 255, 0.8);
}

/* Lineups Styles */
.lineup-toggle {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lineup-toggle:hover {
    background: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.view-squads-btn {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: rgba(59, 130, 246, 0.9);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.view-squads-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.lineup-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0;
}

.lineup-section.show {
    max-height: 1500px;
    margin-top: 12px;
}

.no-lineups {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    padding: 15px;
    font-style: italic;
}

.lineups-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 15px 0;
}

.lineup-team {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.lineup-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 15px;
    text-align: center;
}

.players-group {
    margin-bottom: 15px;
}

.players-group h4 {
    color: var(--accent);
    font-size: 0.95em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.players-list {
    display: grid;
    gap: 8px;
}

.player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.player:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.player.sub {
    opacity: 0.7;
    border-left-color: rgba(245, 158, 11, 0.5);
}

.player-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85em;
    min-width: 28px;
}

.player-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9em;
}

.player-pos {
    background: rgba(59, 130, 246, 0.2);
    color: rgba(59, 130, 246, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(245, 158, 11, 0.05));
}

.modal-header h2 {
    color: var(--white);
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.modal-body {
    overflow-y: auto;
    padding: 24px;
    flex: 1;
}

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

.team-squad {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
}

.squad-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
}

.squad-position-group {
    margin-bottom: 16px;
}

.squad-position-label {
    color: var(--accent);
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.squad-players {
    display: grid;
    gap: 6px;
}

.squad-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.squad-player:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.squad-player.bench {
    opacity: 0.7;
    border-left-color: rgba(245, 158, 11, 0.5);
}

.squad-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8em;
    min-width: 24px;
    flex-shrink: 0;
}

.squad-player-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.squad-position-badge {
    background: rgba(59, 130, 246, 0.2);
    color: rgba(59, 130, 246, 0.9);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Bracket Styles */
.bracket-container {
    display: grid;
    gap: 30px;
}

.bracket-stage {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease;
}

.stage-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.3em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.groups-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.group-bracket {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.group-bracket:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-5px);
}

.group-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: 12px 16px;
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

.group-teams {
    padding: 15px;
}

.bracket-team {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease;
}

.bracket-team.qualified {
    background: rgba(16, 185, 129, 0.15);
    border-left: 3px solid #10b981;
}

.bracket-team.qualified:hover {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.bracket-team.eliminated {
    opacity: 0.6;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid rgba(239, 68, 68, 0.4);
}

.bracket-team.eliminated:hover {
    opacity: 0.8;
    background: rgba(239, 68, 68, 0.15);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bracket-badge {
    font-size: 1.4em;
    min-width: 35px;
    text-align: center;
}

.bracket-team-info {
    flex: 1;
}

.bracket-team-name {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95em;
    margin-bottom: 4px;
}

.bracket-team-stats {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.bracket-team-gd {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--accent);
    min-width: 40px;
    text-align: right;
}

.bracket-team.eliminated .bracket-team-gd {
    color: rgba(255, 255, 255, 0.5);
}

.knockout-stage {
    border: 2px dashed rgba(245, 158, 11, 0.3);
}

.knockout-preview {
    padding: 40px 20px;
    text-align: center;
}

.info-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    font-weight: 500;
}

/* Standings */
.standings-container {
    display: grid;
    gap: 25px;
}

.group {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease;
}

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

.group-title {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: 18px 24px;
    font-weight: 700;
    font-size: 1.15em;
    letter-spacing: 0.5px;
}

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

.standings-table th {
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.standings-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.standings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-rank {
    font-weight: 700;
    color: var(--accent);
    min-width: 30px;
    font-size: 1.1em;
}

.team-cell-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.stat-cell {
    text-align: center;
    font-weight: 500;
}

.points-cell {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Scorers Table */
.scorers-wrapper {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease;
}

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

.scorers-table th {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: 18px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.scorers-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.scorers-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
    transform-origin: center;
}

.scorer-rank {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.2em;
    min-width: 30px;
    text-align: center;
}

.scorer-name {
    font-weight: 700;
    color: var(--white);
    font-size: 1.05em;
}

.scorer-team {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
}

.scorer-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.goals-stat {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.goals-stat:hover {
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.assists-stat {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.assists-stat:hover {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.matches-stat {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.matches-stat:hover {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.stat-icon {
    font-size: 1.2em;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--white);
    min-width: 25px;
    text-align: center;
}

/* Fixtures */
.fixtures-container {
    display: grid;
    gap: 20px;
}

.fixture-group {
    animation: slideUp 0.6s ease;
}

.fixture-date {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.fixture-list {
    display: grid;
    gap: 12px;
}

.fixture-item {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent);
    padding: 18px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.fixture-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
}

.fixture-match {
    flex: 1;
}

.fixture-teams {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fixture-team {
    flex: 1;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    min-width: 120px;
}

.fixture-score {
    min-width: 60px;
    text-align: center;
    font-weight: 800;
    font-size: 1.3em;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fixture-time {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.fixture-status {
    min-width: 100px;
    text-align: right;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.fixture-status.scheduled {
    background: rgba(148, 163, 184, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.fixture-status.live {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
    color: #fca5a5;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.fixture-status.finished {
    background: rgba(16, 185, 129, 0.2);
    color: #86efac;
}

/* Teams */
.teams-container {
    display: grid;
}

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

.team-card {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.2);
}

.team-card:hover::before {
    opacity: 1;
}

.team-flag {
    font-size: 4em;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

.team-card:hover .team-flag {
    animation: bounce 0.6s ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.team-name-card {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--white);
    margin-bottom: 8px;
}

.team-code {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    margin-bottom: 16px;
    font-weight: 600;
}

.team-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 10px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Error State */
.error {
    backdrop-filter: blur(10px);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-status {
        align-items: center;
    }

    .content-header {
        flex-direction: column;
    }

    .search-group {
        width: 100%;
    }

    .matches-grid,
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .scorers-table {
        font-size: 0.9em;
    }

    .scorers-table th,
    .scorers-table td {
        padding: 12px 8px;
    }

    .groups-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .lineups-container {
        grid-template-columns: 1fr;
    }

    .squads-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .header-glass {
        padding: 24px;
    }

    .logo-section h1 {
        font-size: 2em;
    }

    .logo-section .subtitle {
        font-size: 1em;
    }

    .tabs-container {
        gap: 8px;
    }

    .tab-btn {
        min-width: 90px;
        padding: 10px 12px;
        font-size: 0.8em;
    }

    .content-header h2 {
        font-size: 1.4em;
    }

    .matches-grid,
    .teams-grid,
    .fixture-list {
        grid-template-columns: 1fr;
    }

    .match-teams {
        gap: 10px;
    }

    .team-score {
        font-size: 2em;
    }

    .fixture-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .fixture-status {
        align-self: flex-start;
        margin-top: 10px;
    }

    .standings-table {
        font-size: 0.9em;
    }

    .standings-table th,
    .standings-table td {
        padding: 12px 8px;
    }

    .team-flag {
        font-size: 3em;
    }

    .scorers-table {
        font-size: 0.85em;
    }

    .scorers-table th,
    .scorers-table td {
        padding: 10px 6px;
    }

    .groups-layout {
        grid-template-columns: 1fr;
    }

    .bracket-team {
        padding: 10px;
        gap: 10px;
    }

    .lineups-container {
        grid-template-columns: 1fr;
    }

    .player {
        padding: 8px;
    }

    .player-name {
        font-size: 0.85em;
    }

    .player-pos {
        font-size: 0.7em;
        padding: 3px 6px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h2 {
        font-size: 1.3em;
    }

    .modal-body {
        padding: 16px;
    }

    .squads-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-squad {
        padding: 16px;
    }

    .squad-player {
        font-size: 0.85em;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .logo-section h1 {
        font-size: 1.5em;
    }

    .tab-btn {
        min-width: 75px;
        font-size: 0.7em;
        padding: 8px 10px;
    }

    .btn-refresh, .btn-search {
        font-size: 0.85em;
        padding: 10px 16px;
    }

    .match-card {
        padding: 16px;
    }

    .team-card {
        padding: 16px;
    }

    .team-flag {
        font-size: 2.5em;
    }

    .scorers-table {
        font-size: 0.75em;
    }

    .scorers-table th,
    .scorers-table td {
        padding: 8px 4px;
    }

    .scorer-rank {
        font-size: 1em;
    }

    .stat-value {
        font-size: 0.9em;
    }

    .bracket-badge {
        font-size: 1.2em;
    }

    .bracket-team-name {
        font-size: 0.9em;
    }

    .bracket-team-stats {
        font-size: 0.7em;
    }

    .player-number {
        width: 24px;
        height: 24px;
        font-size: 0.75em;
    }

    .player-pos {
        font-size: 0.65em;
        min-width: 40px;
    }
}

/* Goal Scorers Display */
.goals-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
}

.team-goals {
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.team-goals.home {
    border-left: 3px solid rgba(59, 130, 246, 0.5);
}

.team-goals.away {
    border-left: 3px solid rgba(245, 158, 11, 0.5);
}

.team-goals strong {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.goal {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 5px;
    margin-bottom: 4px;
    white-space: nowrap;
}

/* Knockout Rounds */
.knockout-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.knockout-round {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease;
}

.knockout-round h3 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.matchups {
    display: grid;
    gap: 15px;
}

.knockout-match {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.knockout-match:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.ko-team {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ko-vs {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-weight: 600;
}

.ko-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin: 0;
}

@media (max-width: 768px) {
    .knockout-container {
        grid-template-columns: 1fr;
    }
}

.ko-banner {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.knockout-match-real {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 60px 1fr 80px;
    gap: 8px;
    align-items: center;
    transition: all 0.3s ease;
}

.knockout-match-real:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.ko-team-real {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ko-score {
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    font-size: 1.1em;
}

.ko-status {
    font-size: 0.75em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.ko-status.live {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.ko-status.finished {
    background: rgba(16, 185, 129, 0.2);
    color: #86efac;
}

.ko-status.scheduled {
    background: rgba(148, 163, 184, 0.2);
    color: rgba(255, 255, 255, 0.5);
}


.knockout-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.knockout-round {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease;
}

.knockout-round h3 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.matchups {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
}

.knockout-match {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.knockout-match:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.ko-team {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    word-wrap: break-word;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ko-vs {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-weight: 600;
}

.knockout-match-real {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 60px 1fr 80px;
    gap: 8px;
    align-items: center;
    transition: all 0.3s ease;
}

.knockout-match-real:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.ko-team-real {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.9em;
    word-wrap: break-word;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ko-score {
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    font-size: 1.1em;
}

.ko-status {
    font-size: 0.75em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.ko-status.live {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.ko-status.finished {
    background: rgba(16, 185, 129, 0.2);
    color: #86efac;
}

.ko-status.scheduled {
    background: rgba(148, 163, 184, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.ko-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin: 0;
}

.ko-banner {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

@media (max-width: 1024px) {
    .knockout-match-real {
        grid-template-columns: 1fr 50px 1fr;
    }
    
    .ko-status {
        grid-column: 1 / -1;
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .knockout-round {
        padding: 16px;
    }
    
    .knockout-match,
    .knockout-match-real {
        padding: 12px;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .ko-vs {
        display: none;
    }
    
    .ko-score {
        grid-column: 1 / -1;
    }
    
    .ko-status {
        grid-column: 1 / -1;
    }
}
