/* ИДИ НАХУЙ ДОЛБАЕБ HTTPS://WINCHANII.RU */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 60px 20px 100px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.main-title {
    position: relative; 
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 800px;
    text-align: center;
    z-index: 2;
}

.main-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 30px;
    background: linear-gradient(45deg, #5a5a5a, #000000);
    filter: blur(5px);
    z-index: -1;
}

.main-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.add-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 1001; /* Было: 10, стало: 1001 (выше, чем .form-modal: 1000 и .modal: 1000) */
}

.add-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}
.form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.form-content {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    z-index: 1001; 
    /* УБРАНО: box-shadow, backdrop-filter, border, outline, ::before, ::after */
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    z-index: 1002; 

}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input[type="text"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
input[type="file"]:focus {
    border-color: rgba(255, 255, 255, 0.6);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    font-size: 16px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 5px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.allies-board { /* Изменили с .enemies-board */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.ally-card { /* Изменили с .enemy-card */
    position: relative;
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.ally-card:hover { /* Изменили с .enemy-card:hover */
    transform: scale(1.05);
}

.ally-card::before { /* Изменили с .enemy-card::before */
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 20px;
    background: linear-gradient(45deg, #5a5a5a, #000000);
    filter: blur(5px);
    z-index: -1;
}

.ally-card::after { /* Изменили с .enemy-card::after */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.ally-image { /* Изменили с .enemy-image */
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.ally-info { /* Изменили с .enemy-info */
    padding: 15px;
}

.ally-name { /* Изменили с .enemy-name */
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.ally-added-by { /* Изменили с .enemy-added-by */
    font-size: 14px;
    color: #ccc;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000; 
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001; 

}


.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    z-index: 1002;
}

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.modal-description {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ccc;
    white-space: pre-wrap;
}

.modal-added-by {
    font-size: 14px;
    color: #aaa;
}

.contacts-section {
    margin-top: 60px;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.contact-link {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    color: #00ffff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5), 0 0 10px rgba(0, 255, 255, 0.3);
    opacity: 0.8;
    background: transparent;
}

.contact-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .main-title {
        padding: 20px 20px 60px 20px;
    }

    .add-btn {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .container {
        padding: 20px 10px 80px;
    }

    .allies-board { /* Изменили с .enemies-board */
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    .contacts-section {
        margin-top: 40px;
    }
}