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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: #333;
}

.affiliate-banner {
    background: #333333;
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.affiliate-banner a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.affiliate-banner a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid #e9ecef;
}

h1 {
    text-align: center;
    color: #333333;
    margin-bottom: 30px;
    font-size: 2.8em;
    font-weight: 700;
}

h2 {
    color: #333333;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #333333;
    border-radius: 2px;
}

.players-section, .final-section, .results-section {
    margin-bottom: 30px;
}

.add-player {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-player input {
    flex: 1;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.add-player input:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.add-player button {
    padding: 15px 25px;
    background: #333333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.add-player button:hover {
    background: #555555;
    transform: translateY(-1px);
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.player-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.player-info {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}

.remove-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.remove-button:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.final-input {
    display: flex;
    align-items: center;
    gap: 15px;
}

.final-input label {
    font-weight: bold;
    font-size: 16px;
    color: #333333;
}

.final-input input {
    flex: 1;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.final-input input:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

#results {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 16px;
    color: #333333;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 15px 10px;
}

.result-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
}

.summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333333;
}

.add-player input::placeholder,
.final-input input::placeholder {
    color: #6c757d;
    font-style: normal;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.bottom-affiliate {
    background: #f8f9fa;
    color: #333333;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
}

.bottom-affiliate a {
    color: #333333;
    text-decoration: underline;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.bottom-affiliate a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.contribution-input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 16px;
    background: white;
    color: #333;
    text-align: right;
    transition: all 0.3s ease;
}

.contribution-input:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}