[data-bs-theme="dark"] .fm-card{
    background: #222;
    color: white;
}

[data-bs-theme="dark"] .table{
    --bs-table-bg: transparent;
}

[data-bs-theme="dark"] .match-card{
    background-color: #25140a;
    color: white;
}

[data-bs-theme="dark"] .stat-item{
    background-color: #25140a;
}

[data-bs-theme="dark"] .stat-name{
    color: white;
}

[data-bs-theme="dark"] .stat-item:hover .stat-name{
    color: black;
}

[data-bs-theme="dark"] .carousel-btn{
    background: #25140a;
    color: white;
}

[data-bs-theme="dark"] .round-title{
    color: white;
}

[data-bs-theme="dark"] .match-link{
    color: white !important;
} 



.qual-bar{
    width:4px;
    height:18px;
    display:flex;
    margin-right:8px;
    vertical-align:middle;
    border-radius:2px;
}

.match-link{
    text-decoration: none !important; 
    color: black !important;
} 

.stat-name{
    font-weight: 400;
}

.equipe-header { 
    background: var(--primary-gradient); 
    padding: 2.5rem 0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}
.fm-card { 
    background: white; 
    border-radius: 12px; 
    padding: 1.5rem; 
    margin-bottom: 1.5rem; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    border: 1px solid #eee; 
}
.nav-pills .nav-link { 
    color: #64748b; 
    font-weight: 600; 
    transition: 0.3s; 
}
.nav-pills .nav-link.active { 
    background-color: #D0662A; 
    color: white !important; 
}
.match-row { 
    border-bottom: 1px solid #f1f5f9; 
    padding: 0.8rem 0; 
}
.score-badge { 
    min-width: 45px; 
    font-weight: bold; 
}
.bracket-match { 
    border: 2px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 1rem; 
    background: #fff; 
}

[data-bs-theme="dark"] .bracket-match { 
    background: #25140a; 
}

#fixtures {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Coupe tout ce qui dépasse horizontalement */
}

.active{
    color: black !important;
}

/* Carousel */
.fixtures-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 12px;
    background-color: rgba(208, 102, 42, 0.3)
;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: 0.3s;
    color: #D0662A;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: #D0662A ;
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #D0662A #f0f0f0;
}

/* Matchs */
.match-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    background: white;
    transition: 0.3s;
}

.match-card:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    border-color: #D0662A;
}

.match-content {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    gap: 1rem;
}

.match-home, .match-away {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-away {
    justify-content: flex-end;
}

.match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-display {
    font-size: 1.5rem;
    color: #D0662A;
    min-width: 60px;
    text-align: center;
}

.match-datetime {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
}

.round-title {
    border-bottom: 3px solid #D0662A;
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

/* Stats */
.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #D0662A;
    transition: 0.3s;
}

.stat-item:hover {
    background: #f0f2f5;
    transform: translateX(4px);
}

.stat-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #D0662A;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-team {
    font-size: 0.8rem;
    color: #999;
    margin-top: 2px;
}

.stat-value {
    color: #D0662A;
    font-size: 1.1rem;
    flex-shrink: 0;
    min-width: 45px;
    text-align: right;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge{
    background-color: #D0662A;
}

/*---------------------------------------------------------------------------------*/

.team-badge { 
    width: 160px; 
    height: 160px; 
    background: white; 
    border-radius: 24px; 
    padding: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.team-badge:hover { transform: translateY(-5px) scale(1.05); }
.team-badge img { max-width: 100%; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2)); }

.team-info .team-name { 
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.live-badge { 
    display: inline-block; 
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    margin-top: 8px;
    animation: blink 1.5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.player-row {
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
}

.player-row:hover {
    background: rgba(208, 102, 42, 0.05);
}

.player-row:last-child {
    border-bottom: none;
}

.num-badge {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: black;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    font-size: 1.1rem;
}

[data-bs-theme="dark"] .num-badge {
    color: white;
}

.player-name {
    font-weight: 600;
    flex: 1;
}

.player-meta {
    margin-top: 2px;
}

/* Transfer Cards - Design Minimaliste */
.transfer-card { 
    background: white;
    border-radius: 8px; 
    padding: 12px 16px; 
    margin-bottom: 10px; 
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .transfer-card { 
    background: #25140a;
}

.transfer-card:hover {
    box-shadow: 0 4px 12px rgba(208, 102, 42, 0.12);
    border-color: #D0662A;
}

.transfer-card.loan {
    border-left: 3px solid #3b82f6;
}

.transfer-card.out { 
    border-left: 3px solid #dc2626;
}

.transfer-card:not(.out):not(.loan) {
    border-left: 3px solid #10b981;
}

.transfer-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 10px;
}

.transfer-name { 
    font-size: 1rem; 
    font-weight: 700;
    color: #1f2937;
}

.transfer-position { 
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
}

.transfer-date {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.transfer-route {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.club-item {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.club-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.club-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transfer-arrow {
    display: grid;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.transfer-arrow svg {
    width: 24px;
    height: 16px;
}

.transfer-fee-minimal {
    font-size: 0.85rem;
    font-weight: 700;
    color: #D0662A;
    white-space: nowrap;
}

.transfer-fee-minimal.loan {
    color: #6d79b2;
}

.transfer-fee-minimal.free {
    color: #509d64;
}

/* Responsive */
@media (max-width: 768px) {
    .transfer-card {
        padding: 10px 12px;
    }
    
    .transfer-route {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .club-item {
        justify-content: flex-start;
    }
    
    .transfer-arrow {
        justify-content: center;
    }
    
    .transfer-arrow svg {
        transform: rotate(90deg);
    }
}

.club-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.club-badge-container:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.club-badge-container.current-club {
    background: rgba(208, 102, 42, 0.1);
    border: 2px solid rgba(208, 102, 42, 0.3);
}

.club-badge {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.club-badge-container:hover .club-badge {
    transform: scale(1.1) rotate(5deg);
}

.club-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.arrow-container svg {
    animation: slideArrow 1.5s ease-in-out infinite;
}

@keyframes slideArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.transfer-details { 
    font-size: 0.8rem; 
    color: #64748b;
    font-weight: 500;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}



.club-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.club-badge-container:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}
.club-badge-container.current-club {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
}
.club-badge {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.club-badge-container:hover .club-badge {
    transform: scale(1.1) rotate(5deg);
}
.club-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes slideArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}
.transfer-details { 
    font-size: 0.9rem; 
    color: #475569;
    font-weight: 500;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.trophy-card { 
    background: transparent;
    border-radius: 16px; 
    padding: 25px; 
    margin-bottom: 20px; 
    color: #000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    border: 2px solid #fbbf24;
    transition: all 0.3s ease;
}
.trophy-card:hover {
    box-shadow: 0 8px 35px rgba(245, 158, 11, 0.5);
    transform: translateY(-5px) scale(1.02);
}
.trophy-name { 
    font-size: 1.3rem; 
    font-weight: 800; 
    color: black;
}

[data-bs-theme="dark"] .trophy-name { 
    color: white;
}

.trophy-stat {
    background-color: white;
}

[data-bs-theme="dark"] .trophy-stat {
    background-color: #25140a;
}

.league-header { 
    color: black; 
    padding: 20px 25px; 
    border-radius: 12px; 
    margin-bottom: 20px; 
    font-weight: 800; 
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(208, 102, 42, 0.3);
}

[data-bs-theme="dark"] .league-header {
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.fade:not(.show) {
    display: none;
}

.competition-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: relative;
}

.nav-arrow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-arrow:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.competition-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.competition-nav::-webkit-scrollbar {
    display: none;
}

.competition-btn {
    padding: 0.2rem 3rem;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s;
    color: #333;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .competition-btn{
    background-color: #25140a;
    color: white;
}

.competition-btn:hover {
    border-color: #D0662A;
    color: #D0662A;
    transform: translateY(-2px);
}

.competition-btn.active {
    background-color: #D0662A;
    color: white !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(208, 102, 42, 0.3);
}

.match-count {
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.competition-btn.active .match-count {
    background: rgba(255, 255, 255, 0.3);
}

.competition-content {
    animation: fadeInCompetition 0.5s ease;
}

@keyframes fadeInCompetition {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.competition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f1f5f9;
}

.competition-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.competition-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.competition-title h3 {
    margin: 0;
    font-size: 1.8rem;
    color: black;
}

[data-bs-theme="dark"] .competition-title h3 {
    color: white;
}

.competition-stats {
    display: flex;
    gap: 10px;
}
.stat-badge {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    color: black;
    border: 2px solid #e2e8f0;
}

[data-bs-theme="dark"] .stat-badge {
    background: #25140a;
    color: white;
}

.matches-grid {
    display: grid;
    gap: 20px;
}

.live{
    width: 80%;
    font-size: x-small;
}

.table-primary{
    --bs-table-bg: rgba(208, 102, 42, 0.3);
}

[data-bs-theme="dark"] .table-primary{
    --bs-table-bg: rgba(208, 102, 42, 0.3);
    --bs-table-color: white;
}





@keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }


@media (max-width: 768px) {
    .competition-nav-wrapper {
        padding: 15px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .competition-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .competition-title h3 {
        font-size: 1.3rem;
    }
    
    .competition-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .player-row { grid-template-columns: 50px 1fr; }
    .match-content {
        gap: 0.5rem;
    }

    .match-content .match-away span {
        display: none;
    }

    .match-content .match-home span {
        display: none;
    }
    
    .match-home, .match-away, .match-score {
        width: 100%;
    }

    .transfer-route {
        flex-direction: column;
        gap: 10px;
    }
    .club-name {
        max-width: 200px;
    }

    .carousel-btn{
        width: 30px;
        height: 30px;
    }
}

[data-bs-theme="dark"] .club-item span {
    color: white;
}
