.tournament-participants-container {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
}

.participants-count {
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.tournament-participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-height: none;
    overflow: visible;
}

.tournament-participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.tournament-participant-item:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.participant-aka {
    font-family: 'Russo One', sans-serif;
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    word-break: break-word;
    flex: 1;
    margin-right: 10px;
}

.remove-participant-btn {
    background: rgba(255, 107, 53, 0.2) !important;
    border: 2px solid #ff6b35 !important;
    color: #ff6b35 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    width: auto !important;
    margin: 0 !important;
    min-width: auto !important;
    min-height: 32px !important;
    flex-shrink: 0;
}

.remove-participant-btn:hover {
    background: rgba(255, 107, 53, 0.4) !important;
    transform: scale(1.1) !important;
}

.add-participant-btn {
    background: rgba(34, 197, 94, 0.2) !important;
    border: 2px solid #22c55e !important;
    color: #22c55e !important;
    padding: 10px 20px !important;
    margin-top: 10px !important;
    width: 100% !important;
    min-height: 44px !important;
}

.add-participant-btn:hover {
    background: rgba(34, 197, 94, 0.3) !important;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4) !important;
    transform: translateY(-2px) !important;
}

.tournament-phases-config {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tournament-phases-config > h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffd700;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #ff6b35;
}

.tournament-phase-config {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #555;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.tournament-phase-config:hover {
    border-color: #ffd700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.tournament-phase-header {
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.3), rgba(255, 215, 0, 0.3));
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.tournament-phase-header h4 {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffd700;
    margin: 0;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.8), 0 0 20px rgba(255, 215, 0, 0.8);
    background: linear-gradient(45deg, #ffd700, #ff6b35, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    word-break: break-word;
}

.tournament-round-config {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
}

.tournament-round-config label {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.tournament-round-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.tournament-bracket-screen {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.tournament-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.tournament-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.tournament-current-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 25px;
}

.tournament-match-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #555;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tournament-match-card.current-match {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.tournament-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.match-title {
    font-family: 'Russo One', sans-serif;
    color: #ffd700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-phase {
    color: #ff6b35;
    font-weight: 600;
}

.tournament-match-participants {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tournament-participant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 150px;
    text-align: center;
}

.participant-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #ffd700;
    letter-spacing: 1px;
    text-align: center;
    word-break: break-word;
    user-select: none;
}

.participant-stats {
    color: #ccc;
    font-size: 0.9rem;
}

.tournament-vs {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #ff6b35;
    letter-spacing: 2px;
    user-select: none;
}

.tournament-match-config {
    margin-bottom: 20px;
    text-align: center;
}

.config-summary {
    color: #ccc;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    word-break: break-word;
    line-height: 1.4;
}

.start-tournament-match-btn {
    background: linear-gradient(45deg, #ffd700, #ff6b35) !important;
    color: #000 !important;
    font-size: 1.3rem !important;
    padding: 15px 30px !important;
    margin: 0 auto !important;
    display: block !important;
    width: 250px !important;
    border-radius: 10px !important;
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 2px !important;
    min-height: 50px !important;
    max-width: 100% !important;
}

.tournament-all-matchups-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 25px;
}

.tournament-all-matchups-section h3 {
    font-family: 'Russo One', sans-serif;
    color: #ffd700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.tournament-match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #555;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tournament-match-item.current {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.tournament-match-item.completed {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.match-participants {
    display: flex;
    align-items: center;
    gap: 15px;
}

.match-participants .participant-name {
    font-size: 1.2rem;
    color: #fff;
}

.vs-text {
    font-family: 'Bebas Neue', sans-serif;
    color: #ff6b35;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.match-result {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    min-width: 100px;
}

.match-result.current {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.match-result.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.match-result.pending {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.match-result.upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.tournament-results-screen {
    text-align: center;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tournament-results-header {
    margin-bottom: 30px;
}

.tournament-results-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #ffd700;
    letter-spacing: 2px;
}

.tournament-champion {
    margin-bottom: 40px;
}

.champion-title {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.champion-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 2px 2px 0px #ff6b35, 4px 4px 0px rgba(0,0,0,0.8);
    letter-spacing: 3px;
    margin-bottom: 10px;
    word-break: break-word;
    line-height: 1.1;
    user-select: none;
}

.champion-stats {
    color: #ccc;
    font-size: 1.2rem;
}

.tournament-results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.tournament-final-ranking,
.tournament-phases-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 20px;
}

.tournament-final-ranking h3,
.tournament-phases-summary h3 {
    font-family: 'Russo One', sans-serif;
    color: #ffd700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tournament-ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #444;
}

.ranking-position {
    font-size: 1.2rem;
    min-width: 40px;
}

.ranking-name {
    font-family: 'Russo One', sans-serif;
    color: #ffd700;
    flex: 1;
    text-align: left;
    margin-left: 15px;
    word-break: break-word;
}

.ranking-stats {
    color: #ccc;
    font-size: 0.9rem;
    white-space: nowrap;
}

.tournament-phase-summary {
    margin-bottom: 15px;
}

.tournament-phase-summary h4 {
    font-family: 'Russo One', sans-serif;
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 1rem;
}

.phase-matches {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phase-match {
    color: #ccc;
    font-size: 0.9rem;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    word-break: break-word;
    line-height: 1.3;
}

.tournament-results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Mobile Tournament Adjustments */
@media (max-width: 768px) {
    .tournament-participants-list {
        grid-template-columns: 1fr;
    }
    
    .tournament-participant-item {
        padding: 12px 15px;
    }
    
    .participant-aka {
        font-size: 0.9rem;
    }
    
    .tournament-round-selectors {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .tournament-results-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .champion-name {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .tournament-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tournament-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tournament-match-participants {
        flex-direction: column;
        gap: 10px;
    }
    
    .tournament-vs {
        font-size: 1.5rem;
    }
    
    .participant-name {
        font-size: 1.3rem;
    }
    
    .tournament-match-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px 15px;
    }
    
    .match-participants {
        flex-direction: column;
        gap: 8px;
    }
    
    .match-participants .participant-name {
        font-size: 1.1rem;
    }
    
    .match-result {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
    
    .tournament-phases-config {
        padding: 15px;
        max-width: 100%;
    }
    
    .tournament-phase-header h4 {
        font-size: 1.8rem;
    }
    
    .tournament-phase-config {
        padding: 15px;
    }
    
    .tournament-bracket-screen {
        padding: 15px 10px;
    }
    
    .tournament-current-section,
    .tournament-all-matchups-section {
        padding: 15px;
    }
    
    .tournament-match-card {
        padding: 15px;
    }
    
    .tournament-match-header {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .match-title {
        font-size: 1.1rem;
    }
    
    .config-summary {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .start-tournament-match-btn {
        width: 100% !important;
        max-width: 300px !important;
        font-size: 1.1rem !important;
        padding: 12px 20px !important;
    }
    
    .tournament-ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 12px 15px;
    }
    
    .ranking-name {
        text-align: center;
        margin-left: 0;
        margin: 5px 0;
    }
    
    .tournament-results-actions .control-btn {
        min-width: 200px;
        width: 100%;
        max-width: 300px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .tournament-phase-header h4 {
        font-size: 1.5rem;
    }
    
    .champion-name {
        font-size: 1.8rem;
    }
    
    .tournament-vs {
        font-size: 1.3rem;
    }
    
    .participant-name {
        font-size: 1.1rem;
    }
    
    .match-participants .participant-name {
        font-size: 1rem;
    }
    
    .tournament-results-title {
        font-size: 1.8rem;
    }
    
    .champion-title {
        font-size: 1.2rem;
    }
    
    .tournament-phases-config > h3 {
        font-size: 1.5rem;
    }
    
    .match-title {
        font-size: 1rem;
    }
    
    .tournament-participant-item {
        padding: 10px 12px;
    }
    
    .participant-aka {
        font-size: 0.85rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .tournament-header {
        margin-bottom: 15px;
    }
    
    .tournament-content {
        gap: 20px;
    }
    
    .tournament-current-section,
    .tournament-all-matchups-section {
        padding: 12px;
    }
    
    .tournament-match-card {
        padding: 12px;
    }
    
    .tournament-match-participants {
        gap: 8px;
    }
    
    .participant-name {
        font-size: 1.2rem;
    }
    
    .tournament-vs {
        font-size: 1.3rem;
    }
    
    .champion-name {
        font-size: 2rem;
    }
    
    .tournament-phase-header h4 {
        font-size: 1.6rem;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1023px) {
    .tournament-participants-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tournament-round-selectors {
        grid-template-columns: 1fr 1fr;
    }
    
    .participant-name {
        font-size: 1.8rem;
    }
    
    .tournament-vs {
        font-size: 2.2rem;
    }
    
    .champion-name {
        font-size: 3.5rem;
    }
    
    .tournament-match-participants {
        gap: 25px;
    }
    
    .start-tournament-match-btn {
        width: 220px !important;
        font-size: 1.2rem !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .tournament-phase-header h4 {
        animation: none;
    }
    
    .tournament-match-item:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .champion-name {
        color: #fff;
        text-shadow: 2px 2px 0px #000;
    }
    
    .participant-name {
        color: #fff;
    }
}