.fs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.fs-match-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fs-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fs-team {
    text-align: center;
    flex: 1;
}

.fs-vs {
    margin: 0 20px;
    font-weight: bold;
    color: #666;
}

.fs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 5px;
}

.fs-btn-primary {
    background: #2271b1;
    color: white;
}

.fs-btn:hover {
    opacity: 0.9;
}

.fs-team-builder {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.fs-players-section, .fs-selected-team-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fs-player-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
}

.fs-player-card:hover {
    background: #f9f9f9;
}

.fs-player-card.selected {
    background: #f0f6fc;
    border-color: #2271b1;
}

.fs-add-player {
    padding: 5px 10px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.fs-add-player:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.fs-selected-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 4px;
}

.fs-remove-player {
    padding: 5px 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.fs-credits-left {
    color: #28a745;
    font-weight: bold;
}

.fs-credits-over {
    color: #dc3545;
    font-weight: bold;
}

.fs-save-team {
    padding: 12px 24px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.fs-save-team:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#fs-team-name {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fs-captain-option {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.fs-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.fs-players-filters {
    margin-bottom: 20px;
}

.fs-players-filters select {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* My Teams Styles */
.fs-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.fs-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fs-empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.fs-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.fs-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.fs-team-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.fs-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fs-team-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.fs-team-points {
    font-size: 1.1em;
    font-weight: bold;
    color: #2271b1;
}

.fs-composition-bars {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.fs-role-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.fs-role-label {
    font-size: 0.8em;
    color: #666;
}

.fs-role-count {
    width: 30px;
    height: 30px;
    background: #2271b1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.fs-captain-info {
    margin: 15px 0;
}

.fs-captain-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 5px 0;
}

.fs-label {
    color: #666;
    font-weight: 500;
}

/* My Contests Styles */
.fs-contests-tabs {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fs-tab-headers {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.fs-tab-header {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.fs-tab-header.active {
    background: #fff;
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
}

.fs-tab-content {
    display: none;
    padding: 20px;
}

.fs-tab-content.active {
    display: block;
}

.fs-contest-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #2271b1;
    position: relative;
}

.fs-live-contest {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff8, #f0fff0);
}

.fs-completed-contest {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.fs-contest-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.fs-contest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fs-contest-name {
    font-weight: bold;
    color: #333;
}

.fs-contest-prize {
    font-weight: bold;
    color: #28a745;
}

.fs-contest-details {
    margin: 15px 0;
}

.fs-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.fs-contest-progress {
    margin: 15px 0;
}

.fs-progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 5px;
}

.fs-progress-fill {
    background: #2271b1;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.fs-progress-text {
    font-size: 0.8em;
    color: #666;
    text-align: center;
}

.fs-live-stats, .fs-final-stats {
    margin: 15px 0;
}

.fs-stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
}

.fs-winning-amount {
    color: #28a745;
    font-weight: bold;
}

/* Leaderboard Styles */
.fs-user-rank-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fs-rank-badge {
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.fs-user-info {
    flex: 1;
}

.fs-user-name {
    font-size: 1.2em;
    font-weight: bold;
}

.fs-leaderboard-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fs-table-header {
    display: grid;
    grid-template-columns: 80px 1fr 100px 100px;
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: bold;
    border-bottom: 1px solid #dee2e6;
}

.fs-table-body {
    max-height: 600px;
    overflow-y: auto;
}

.fs-table-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px 100px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.fs-table-row:hover {
    background: #f8f9fa;
}

.fs-col-rank {
    display: flex;
    align-items: center;
}

.fs-rank-number {
    font-weight: bold;
    color: #666;
}

.fs-col-team {
    display: flex;
    flex-direction: column;
}

.fs-team-name {
    font-weight: 500;
    color: #333;
}

.fs-user-name {
    font-size: 0.9em;
    color: #666;
}

.fs-col-points {
    font-weight: bold;
    color: #2271b1;
    text-align: center;
}

.fs-col-winning {
    text-align: center;
}

/* Modal Styles */
.fs-modal {
    display: none;
    position: fixed !important;
    z-index: 1000;
    /*left: 50% !important;*/
    /*top: 50% !important;*/
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.fs-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.fs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.fs-modal-header h3 {
    margin: 0;
    color: #333;
}

.fs-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.fs-close:hover {
    color: #000;
}

.fs-modal-body {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fs-page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .fs-teams-grid {
        grid-template-columns: 1fr;
    }
    
    .fs-tab-headers {
        flex-direction: column;
    }
    
    .fs-table-header,
    .fs-table-row {
        grid-template-columns: 60px 1fr 80px;
    }
    
    .fs-col-winning {
        display: none;
    }
    
    .fs-contest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}