:root {
    --primary-bg: #0D1117;
    --secondary-bg: #161B22;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-green: #00f260;
    --font-family: 'Poppins', sans-serif;
}

body.modal-open {
    overflow: hidden;
}

.container {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #A0AABA;
    margin-bottom: 3rem;
}

#team-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: left;
}

.team-group {
    background: var(--secondary-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.team-group h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    padding: 1.2rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
    border-left: 6px solid;
}

.player-count {
    font-size: 1rem;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: #A0AABA;
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    padding: 2rem;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 140px;
    background-color: var(--primary-bg);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.player:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 242, 96, 0.15);
}

.player img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    image-rendering: pixelated;
}

.player p {
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-all;
    color: white;
}

.empty-message {
    padding: 2.5rem;
    text-align: center;
    color: #A0AABA;
    font-style: italic;
    width: 100%;
}

#staff-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}

#staff-modal-overlay.visible { opacity: 1; visibility: visible; }

.staff-modal-content {
    background: var(--secondary-bg);
    border-radius: 1rem; max-width: 380px; width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    transform: scale(0.9); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    position: relative; overflow: hidden;
}

#staff-modal-overlay.visible .staff-modal-content { transform: scale(1); opacity: 1; }

.close-btn {
    position: absolute; top: 0.5rem; right: 1rem;
    background: none; border: none; color: white;
    font-size: 2rem; cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
    z-index: 10;
}
.close-btn:hover { opacity: 1; }

.modal-header {
    width: 100%; height: 150px;
    background: var(--primary-bg);
    display: flex; justify-content: center; align-items: flex-end;
}
#modal-player-skin { height: 200px; image-rendering: pixelated; }

.modal-body {
    padding: 1rem; text-align: center;
    margin-top: -50px; position: relative;
}
#modal-player-head {
    width: 100px; height: 100px; border-radius: 8px;
    border: 4px solid var(--secondary-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    image-rendering: pixelated;
}
#modal-player-name { font-size: 2rem; font-weight: 700; color: white; margin-top: 0.5rem; }

#modal-player-roles {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 0.5rem; margin: 1rem 0;
}
.role-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: #E0E6ED;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-info {
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: #A0AABA;
}
.modal-info p { margin: 0.5rem 0; font-size: 1rem; }
.modal-info i { margin-right: 0.5rem; }

@media (max-width: 768px) {
    .page-title { font-size: 2.5rem; }
    .team-list { justify-content: center; }
}