﻿* {
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #f5f5f5;
    margin: 0;
    padding: 40px 0;
}

.players {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.player-card {
    width: 800px;
    margin: 0 auto;
    background: #aa1e2d;
    color: white;
    padding-bottom: 30px;
}

.image-wrapper {
    position: relative;
    width: 600px;
    height: 800px;
    margin: 20px auto 0;
    background: black;
}

    .image-wrapper img {
     
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
    }

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: gold;
    padding: 10px 14px;
    font-weight: bold;
    display: none;
}

.player-card h2 {
    text-align: center;
    margin: 20px 0 10px;
}

.ratings {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    gap: 10px;
    justify-content: center;
}

    .ratings button {
        height: 40px;
        font-weight: bold;
        border: none;
        cursor: pointer;
    }

.stats {
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 900px) {
    .player-card {
        width: 100%;
    }

    .image-wrapper {
        width: 90%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}
.site-header {
    text-align: center;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

    .site-header h1 {
        margin: 15px 0 0;
        font-size: 26px;
    }

.logo {
    height: 80px;
}
.site-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.6);
    color: #ccc;
    font-size: 14px;
}
body {
    background: linear-gradient(180deg, #7a0c14, #111);
    margin: 0;
    padding: 0;
}
/* ===== ADMIN PANEL ===== */

.admin-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: white;
}

    .admin-panel h2 {
        text-align: center;
        margin-bottom: 20px;
    }

.admin-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

    .admin-actions button {
        padding: 10px 16px;
        font-weight: bold;
        cursor: pointer;
    }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.admin-player {
    background: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
}

    .admin-player input {
        transform: scale(1.3);
    }

    .admin-player:hover {
        background: rgba(0,0,0,0.7);
    }

.admin-footer {
    margin-top: 30px;
    text-align: center;
}

    .admin-footer .primary {
        padding: 15px 30px;
        font-size: 18px;
        font-weight: bold;
        background: gold;
        border: none;
        cursor: pointer;
    }
/* ===== TOP MENU ===== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BRAND */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.brand img {
    height: 42px;
}

/* NAV */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 6px;
}

/* Hover underline animation */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: gold;
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    color: white;
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .player-card {
        width: 95%;
        margin: 0 auto;
    }

    .image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 900px) {
    .topbar-inner {
        flex-direction: column;
        gap: 12px;
    }

    .nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .ratings {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .ratings button {
        height: 44px;
        font-size: 16px;
    }
}


