* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #003d7a 0%, #0055a4 50%, #0070d1 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 50px;
    text-align: center;
}

h1 {
    color: #0055a4;
    margin-bottom: 40px;
    font-size: 2.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-section {
    background: #f0f7ff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid #0055a4;
}

.form-section h2 {
    color: #0055a4;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
}

input[type="text"] {
    padding: 15px;
    border: 2px solid #0055a4;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #0070d1;
    box-shadow: 0 0 0 4px rgba(0, 85, 164, 0.1);
}

input[type="text"]::placeholder {
    color: #999;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

button {
    flex: 1;
    padding: 15px 25px;
    background: #0055a4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #0070d1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 85, 164, 0.3);
}

button:active {
    transform: translateY(0);
}

.start-btn {
    background: #0070d1;
    font-size: 1.2em;
    padding: 18px;
    margin-top: 10px;
}

.start-btn:hover {
    background: #0055a4;
}

.error-message {
    color: #d32f2f;
    font-size: 0.95em;
    margin-top: 10px;
    padding: 10px;
    background: #ffebee;
    border-radius: 5px;
}

.players-section {
    margin-top: 30px;
}

.players-section h2 {
    color: #0055a4;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.players-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.player-item {
    background: #e8f1ff;
    border-left: 4px solid #0055a4;
    padding: 12px 15px;
    border-radius: 5px;
    color: #0055a4;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-item:hover {
    background: #d0e4ff;
}

.delete-btn {
    background: none;
    border: none;
    color: #d32f2f;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s;
    min-width: auto;
    font-weight: 300;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-bottom: 5px;
}

.delete-btn:hover {
    background: #ffebee;
    color: #c0392b;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2em;
    }

    .form-section {
        padding: 20px;
    }

    button {
        font-size: 1em;
        padding: 12px 20px;
    }
}
