.tournament-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 10px;
}

.tournament-banner img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.tournaments-list .tournament-header,
.tournament-card .tournament-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 8px;
}

.tournament-flag img {
    height: 32px;
    border-radius: 4px;
}

.tournaments-list .tournament-title,
.tournament-card .tournament-title {
    color: var(--text-color);
}

.tournaments-list .tournament-title a,
.tournament-card .tournament-title a {
    text-decoration: none;
}

.tournaments-list .tournament-title a:hover,
.tournament-card .tournament-title a:hover {
    color: var(--accent-color) !important;
}

.tournament-place-info {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tournament-place-flag {
    height: 18px;
    width: 24px;
    object-fit: cover;
    border-radius: 3px;
}

.tournament-info {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.tournament-dates {
    font-size: 0.95em;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(var(--text-secondary-rgb), 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tournament-dates:hover {
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
}

.tournament-card:has(.tournament-banner) .tournament-dates {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tournament-card:has(.tournament-banner) .tournament-dates:hover {
    background: rgba(var(--accent-color-rgb), 0.8);
    color: white;
}

.tournament-card.with-banner .tournament-dates {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tournament-card.with-banner .tournament-dates:hover {
    background: rgba(var(--accent-color-rgb), 0.8);
    color: white;
}

.tournament-winner {
    margin-top: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tournaments-list .team-logo {
    height: 24px;
    width: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.tournament-mvp {
    margin-top: 6px;
    font-size: 0.98em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mvp-label {
    font-weight: bold;
    color: #FFD700;
}

.player-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
}

.mvp-nickname {
    font-weight: 500;
    color: var(--text-color);
}

.player-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.player-name-link:hover {
    color: var(--accent-color);
}

.tournament-logo-small {
    height: 32px;
    width: 32px;
    object-fit: contain;
    border-radius: 6px;
    margin-right: 10px;
    vertical-align: middle;
}

.tournament-result-logo {
    height: 48px !important;
    width: 48px !important;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin-right: 10px;
}

.team-link-title {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 10px;
    transition: color 0.2s;
}

.team-link-title:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

[data-theme="light"] .dark-logo {
    display: none;
}

[data-theme="dark"] .light-logo {
    display: none;
}

[data-theme="dark"] .tournament-dates {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

[data-theme="dark"] .tournament-dates:hover {
    background: rgba(var(--accent-color-rgb), 0.2);
    color: var(--accent-color);
}

[data-theme="dark"] .tournament-card:has(.tournament-banner) .tournament-dates,
[data-theme="dark"] .tournament-card.with-banner .tournament-dates {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

[data-theme="dark"] .tournament-card:has(.tournament-banner) .tournament-dates:hover,
[data-theme="dark"] .tournament-card.with-banner .tournament-dates:hover {
    background: rgba(var(--accent-color-rgb), 0.9);
    color: white;
}
