* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1e1e1e;
    --accent-red: #ff2b2b;
    --accent-red-dark: #e61e1e;
    --accent-red-light: #ff4d4d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #2d2d2d;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
    --gradient-red: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    --gradient-bg: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
}

body {
    background: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 43, 43, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 43, 43, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 43, 43, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}


.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.admin-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-red) 50%, var(--accent-red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 50px;
    margin-top: 20px;
    position: relative;
}

.admin-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-red);
    border-radius: 2px;
}


.back-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--gradient-red);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 43, 43, 0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 43, 43, 0.5);
}


.admin-section {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 
        0 20px 40px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-red);
    transition: left 0.5s ease;
}

.admin-section:hover::before {
    left: 0;
}

.admin-section:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 43, 43, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 2px;
}


.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.admin-table th {
    background: var(--gradient-red);
    padding: 18px 15px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border: none;
    position: relative;
    color: var(--text-primary);
}

.admin-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.admin-table td {
    padding: 16px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    font-weight: 500;
}

.admin-table tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:nth-child(even) {
    background: rgba(26, 26, 26, 0.5);
}

.admin-table tbody tr:hover {
    background: rgba(255, 43, 43, 0.1);
    transform: scale(1.01);
}


.admin-table tbody tr:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, transparent 100%);
}

.admin-table tbody tr:nth-child(2) {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15) 0%, transparent 100%);
}

.admin-table tbody tr:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, transparent 100%);
}

.admin-table tbody tr:nth-child(1):hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 43, 43, 0.1) 100%);
}

.admin-table tbody tr:nth-child(2):hover {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.25) 0%, rgba(255, 43, 43, 0.1) 100%);
}

.admin-table tbody tr:nth-child(3):hover {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.25) 0%, rgba(255, 43, 43, 0.1) 100%);
}


.admin-table tbody tr:nth-child(1) td:first-child {
    color: #ffd700;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.admin-table tbody tr:nth-child(2) td:first-child {
    color: #c0c0c0;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.admin-table tbody tr:nth-child(3) td:first-child {
    color: #cd7f32;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.team-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left !important;
    padding-left: 15px;
}

.team-logo {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 15px;
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 43, 43, 0.3);
    transition: all 0.2s ease;
}

.team-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 43, 43, 0.5);
}

.team-name {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}


.table-legend {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    margin: 40px auto 0;
    box-shadow: 
        0 20px 40px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    position: relative;
    overflow: hidden;
}

.table-legend::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-red);
    transition: left 0.5s ease;
}

.table-legend:hover::before {
    left: 0;
}

.legend-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.legend-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 2px;
}

.legend-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.legend-list li {
    padding: 12px 16px;
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.legend-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: var(--gradient-red);
    transition: left 0.3s ease;
}

.legend-list li:hover::before {
    left: 0;
}

.legend-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 43, 43, 0.3);
    box-shadow: 0 8px 20px rgba(255, 43, 43, 0.15);
}

.legend-list strong {
    color: var(--accent-red);
    font-weight: 700;
    margin-right: 8px;
    font-size: 15px;
}


.admin-table tbody tr:only-child {
    position: relative;
}

.admin-table tbody tr:only-child td {
    padding: 40px;
    font-size: 16px;
    color: var(--text-secondary);
}


@media (max-width: 968px) {
    .admin-container {
        padding: 30px 15px;
    }

    .admin-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .admin-section {
        padding: 20px;
        margin-bottom: 25px;
        border-radius: 16px;
    }

    .legend-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0 !important;
    }

    .admin-container {
        padding: 20px 10px;
    }

    .admin-title {
        font-size: 1.8rem;
        margin-top: 10px;
        margin-bottom: 25px;
        padding: 0 8px;
    }

    .back-btn {
        padding: 12px 20px;
        font-size: 13px;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }

    .admin-section {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    
    .admin-table-wrapper {
        border-radius: 8px;
        margin: 0 -4px;
    }

    .admin-table {
        font-size: 12px;
        width: 100%;
        min-width: 320px;
    }

    .admin-table th, .admin-table td {
        padding: 10px 6px;
        white-space: nowrap;
    }

    .admin-table th {
        font-size: 11px;
        padding: 12px 6px;
    }

    
    .team-cell {
        padding-left: 8px;
        min-width: 120px;
    }

    .team-logo {
        width: 30px;
        height: 30px;
        margin-right: 8px;
        border-radius: 6px;
    }

    .team-name {
        font-size: 11px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    
    .table-legend {
        padding: 16px;
        margin: 25px auto 0;
        border-radius: 12px;
    }

    .legend-title {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .legend-list {
        font-size: 13px;
        gap: 8px;
    }

    .legend-list li {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .legend-list strong {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 16px 8px;
    }

    .admin-title {
        font-size: 1.5rem;
        margin-top: 5px;
        margin-bottom: 20px;
        padding: 0 4px;
    }

    .back-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .admin-section {
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    
    .admin-table {
        font-size: 10px;
    }

    .admin-table th, .admin-table td {
        padding: 6px 4px;
    }

    .admin-table th {
        font-size: 9px;
        padding: 8px 4px;
    }

    .team-cell {
        padding-left: 4px;
        min-width: 100px;
    }

    .team-logo {
        width: 24px;
        height: 24px;
        margin-right: 6px;
        border-radius: 4px;
    }

    .team-name {
        font-size: 9px;
        max-width: 60px;
    }

    
    .table-legend {
        padding: 12px;
        margin: 20px auto 0;
        border-radius: 8px;
    }

    .legend-title {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .legend-list {
        font-size: 11px;
        gap: 6px;
    }

    .legend-list li {
        padding: 8px 10px;
        border-radius: 6px;
    }

    .legend-list strong {
        font-size: 12px;
    }
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-red);
    border-radius: 10px;
    border: 1px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 100%);
}


::selection {
    background: rgba(255, 43, 43, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(255, 43, 43, 0.3);
    color: var(--text-primary);
}


button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}


.admin-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.table-legend {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.admin-table tbody tr,
.legend-list li,
.back-btn {
    will-change: transform;
}


@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --bg-tertiary: #222222;
        --bg-card: #1a1a1a;
        --accent-red: #ff0000;
        --accent-red-dark: #cc0000;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-color: #444444;
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}