/* Live tournament cards + dialog (shared across tournaments/index/live/linktree) */

.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tournament-card {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 62px;
    padding: 8px 10px;
    font-family: Arial, sans-serif;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    border: 0.75px solid #ff0000;
    border-radius: 8px;
    cursor: pointer;
}

.tournament-card:hover,
.tournament-card:focus-visible {
    background: rgba(255, 0, 0, 0.08);
    outline: none;
}

.tournament-card--confidential {
    background: rgba(255, 64, 129, 0.15);
}

.tournament-card__flyer {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #ff0000;
    font-size: 20px;
    font-weight: bold;
}

.tournament-card__flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-card__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    margin-left: 12px;
}

.tournament-card__title {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    line-height: 1.3;
}

.tournament-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tournament-card__meta-item svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    color: #ff0000;
}

.tournament-card__info-line {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tournament-card__live-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 78px;
    min-height: 25px;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: #ff0000;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
}

.tournament-card__live-action:hover,
.tournament-card__live-action:focus-visible {
    background: #cc0000;
    outline: none;
}

.tournament-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.tournament-dialog-overlay[hidden] {
    display: none;
}

.tournament-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: min(100%, 520px);
    padding: 16px 28px;
    color: #ffffff;
    background: rgba(20, 20, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.tournament-dialog h2 {
    margin: 0 28px;
    font-size: 18px;
}

.tournament-dialog p {
    margin: 0;
    color: #e0e0e0;
    line-height: 1.5;
}

.tournament-dialog a.view-more-link {
    color: #999;
    font-style: italic;
    text-decoration: none;
}

.tournament-dialog__soon {
    margin: 0;
    color: #e0e0e0;
    font-style: italic;
    line-height: 1.5;
}

.tournament-dialog__close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    color: #ffffff;
    background: transparent;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.tournament-dialog__url {
    overflow-wrap: anywhere;
    color: #aaaaaa;
}

.tournament-dialog__url a {
    color: #aaaaaa;
}

.tournament-dialog__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.tournament-dialog__actions--live {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.tournament-dialog__open-app {
    min-width: 160px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color: #ffffff;
    background: #ff0000;
    border: 1px solid #ff0000;
}

.tournament-dialog__live-stub {
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 8px;
    font: inherit;
    font-weight: bold;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: not-allowed;
    opacity: 0.65;
}

.tournament-dialog__live-stub:disabled {
    pointer-events: none;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .tournament-card {
        align-items: center;
    }

    .tournament-card__actions {
        flex-direction: row;
    }
}
