/* ===============================
   GLOBAL
=================================*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin:0;
    font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background:#f2f4f8;
    color:#222;
    -webkit-font-smoothing: antialiased;
    line-height:1.5;
}

/* ===============================
   HEADER
=================================*/

.header {
    background:linear-gradient(135deg,#0b1c5c,#1b5ea8);
    color:white;
    padding:50px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
}

.header-left {
    max-width:600px;
}

.header h1 {
    margin:0 0 12px 0;
    font-size:34px;
    font-weight:600;
    letter-spacing:0.5px;
}

.header p {
    margin:6px 0;
    opacity:0.9;
    font-size:15px;
}

/* ===============================
   PHOTO
=================================*/

.photo {
    width:170px;
    height:170px;
    border-radius:50%;
    overflow:hidden;
    background:#ccc;
    flex-shrink:0;
    border:4px solid rgba(255,255,255,0.2);
}

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

/* ===============================
   CONTENT
=================================*/

.container {
    max-width:1100px;
    margin:50px auto;
    padding:0 20px;
}

.section-title {
    font-size:26px;
    margin-bottom:25px;
    font-weight:600;
}

/* ===============================
   GRID
=================================*/

.grid {
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:25px;
}

.card {
    background:white;
    padding:25px;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.05);
    transition:all 0.2s ease;
}

.card:hover {
    transform:translateY(-4px);
}

/* ===============================
   BUTTONS
=================================*/

.button {
    display:inline-block;
    padding:10px 18px;
    background:#1b5ea8;
    color:white;
    text-decoration:none;
    border-radius:8px;
    font-size:14px;
    font-weight:500;
    transition:all 0.2s ease;
}

.button:hover {
    background:#144a85;
}

/* ===============================
   RESPONSIVE
=================================*/

@media (max-width: 992px) {
    .container {
        max-width:95%;
    }
}

@media (max-width: 768px) {

    .header {
        flex-direction:column;
        text-align:center;
        padding:35px 20px;
    }

    .header h1 {
        font-size:26px;
    }

    .photo {
        width:140px;
        height:140px;
    }

    .container {
        margin:30px auto;
    }

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

    .section-title {
        font-size:22px;
    }
}
form input,
form select,
form textarea {
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
    padding:10px;
    width:100%;
}

form label {
    font-weight:600;
    display:block;
    margin-bottom:4px;
}

form button {
    cursor:pointer;
}
/* ================= LOGIN ================= */

.login-wrapper {
    min-height: 100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#0b1c5c,#1b5ea8);
    padding:20px;
}

.login-card {
    background:white;
    padding:40px 30px;
    border-radius:16px;
    box-shadow:0 20px 60px rgba(0,0,0,0.2);
    width:100%;
    max-width:420px;
}

.login-title {
    margin:0 0 25px 0;
    text-align:center;
    font-weight:600;
}

.login-form .form-group {
    margin-bottom:18px;
}

.login-form label {
    display:block;
    font-weight:600;
    margin-bottom:6px;
}

.login-form input {
    width:100%;
    padding:12px;
    border-radius:10px;
    border:1px solid #ddd;
    font-size:14px;
    transition:0.2s ease;
}

.login-form input:focus {
    border-color:#1b5ea8;
    outline:none;
    box-shadow:0 0 0 3px rgba(27,94,168,0.1);
}

.login-button {
    width:100%;
    margin-top:10px;
    font-size:15px;
    padding:12px;
}

.login-error {
    background:#ffe6e6;
    color:#b00020;
    padding:10px 12px;
    border-radius:8px;
    margin-bottom:15px;
    font-size:14px;
}

/* ===== Mobile ===== */

@media (max-width: 480px) {
    .login-card {
        padding:30px 20px;
    }
}
/* ================= DASHBOARD ================= */

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

.players-table {
    margin-top:15px;
}

.player-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
    border-bottom:1px solid #eee;
    flex-wrap:wrap;
    gap:10px;
}

.player-info {
    font-size:15px;
}

.player-actions {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

/* button variants */

.button.small {
    padding:6px 10px;
    font-size:13px;
}

.button.green {
    background:#2f7d32;
}

.button.green:hover {
    background:#246528;
}

.button.danger {
    background:#b00020;
}

.button.danger:hover {
    background:#8a0018;
}

/* mobile */

@media (max-width: 600px) {

    .dashboard-header {
        flex-direction:column;
        align-items:flex-start;
    }

    .player-row {
        flex-direction:column;
        align-items:flex-start;
    }

    .player-actions {
        width:100%;
    }

}
/* ================= STATS ================= */

.stats-card {
    display:flex;
    gap:40px;
    margin-bottom:20px;
}

.stat-item strong {
    font-size:28px;
    display:block;
}

.stat-item span {
    opacity:.7;
}

/* ================= SEARCH ================= */

.search-form {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.search-form input,
.search-form select {
    padding:8px;
    border-radius:8px;
    border:1px solid #ddd;
}

/* ================= AVATAR ================= */

.avatar {
    width:42px;
    height:42px;
    border-radius:50%;
    overflow:hidden;
    background:#eee;
    margin-right:12px;
}

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

.avatar-placeholder {
    display:flex;
    align-items:center;
    justify-content:center;
    height:100%;
    font-weight:bold;
}

/* ================= TOP ================= */

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

.top-actions {
    display:flex;
    gap:10px;
}

/* ================= DARK MODE ================= */

.dark-mode {
    background:#111;
    color:#eee;
}

.dark-mode .card {
    background:#1e1e1e;
    color:#eee;
}

.dark-mode .button {
    opacity:.9;
}
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.detail-card {
    background: #f1f2f4;
    padding: 18px 22px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.detail-card span:first-child {
    font-weight: 500;
    opacity: 0.7;
}

.detail-card span:last-child {
    font-weight: 600;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.detail-row {
    background: #e9e9ea;
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-weight: 600;
    color: #1d1d3c;
}

.detail-value {
    font-weight: 500;
    color: #1d1d3c;
    text-align: right;
}

/* mobile */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}
.page-footer {
    text-align:center;
    padding:25px 15px;
    font-size:14px;
    opacity:.7;
    margin-top:60px;
}
/* ================= MOBILE HEADER CLEAN ================= */

@media (max-width: 768px) {

    /* скрываем возраст и страну в шапке */
    .header-left p {
        display: none;
    }

}