/* MatchStatusTable – bordkort (75 %) og venteliste (25 %) */

.tts-module.tts-module--match-status-table.tts-module--landing {
    max-width: var(--choose-hero-max-width, 100%);
    width: 100%;
    margin: 0.5rem auto 0;
}

.tts-module--match-status-table .tts-home__panel {
    width: 100%;
    min-width: 0;
    padding: 0.75rem;
}

.match-status-table {
    --mst-bg: #e4e7eb;
    --mst-text: #202124;
    --mst-text-muted: #5f6368;
    --mst-border: #dadce0;
    --mst-card-bg: #ffffff;
    --mst-panel-bg: #eceff1;
    --mst-panel-border: #cfd3d8;
    --mst-accent: #0f766e;
    --mst-drop-bg: #f8fafc;
    --mst-drop-border: #94a3b8;
    --mst-drag-over: #ccfbf1;
    --mst-winner: #0f766e;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(0.75rem, 2.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 0.85rem;
    background: var(--mst-bg);
    color: var(--mst-text);
    box-sizing: border-box;
}

.mst-empty,
.mst-loading {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--mst-text-muted);
    background: var(--mst-panel-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--mst-panel-border);
}

.mst-layout {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    min-height: 0;
}

.mst-boards {
    flex: 3;
    min-width: 0;
}

.mst-queue {
    flex: 1;
    min-width: 0;
    border-left: 1px solid var(--mst-panel-border);
    padding-left: 1rem;
}

.mst-section-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mst-text);
}

.mst-layout--boards-only .mst-boards {
    flex: 1;
}

.mst-hint {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--mst-text-muted);
}

.mst-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.mst-board-card,
.mst-drop-card,
.mst-waiting-item {
    background: var(--mst-card-bg);
    border: 1px solid var(--mst-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.mst-board-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--mst-border);
    background: var(--mst-panel-bg);
    border-radius: 0.75rem 0.75rem 0 0;
}

.mst-board-card__table-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mst-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mst-board-card__table-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mst-accent);
}

.mst-board-card__main {
    padding: 0.85rem;
}

.mst-board-card__players-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.65rem;
    font-weight: 600;
    line-height: 1.35;
}

.mst-board-card__side--winner {
    color: var(--mst-winner);
}

.mst-board-card__vs {
    color: var(--mst-text-muted);
    font-weight: 500;
}

.mst-board-card__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
}

.mst-board-card__inline-label {
    color: var(--mst-text-muted);
    margin-right: 0.25rem;
}

.mst-drop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 6.5rem;
    padding: 0.85rem;
    background: var(--mst-drop-bg);
    border-style: dashed;
    border-color: var(--mst-drop-border);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mst-drop-card--drag-over {
    background: var(--mst-drag-over);
    border-color: var(--mst-accent);
}

.mst-drop-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mst-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mst-drop-card__number {
    margin-top: 0.35rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mst-accent);
}

.mst-queue-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 70vh;
    overflow-y: auto;
}

.mst-waiting-item {
    padding: 0.75rem 0.85rem;
    cursor: grab;
    user-select: none;
}

.mst-waiting-item:active {
    cursor: grabbing;
}

.mst-waiting-item__players {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-weight: 600;
    line-height: 1.35;
}

.mst-waiting-item__vs {
    color: var(--mst-text-muted);
    font-weight: 500;
}

.mst-waiting-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--mst-text-muted);
}

@media (max-width: 900px) {
    .mst-layout {
        flex-direction: column;
    }

    .mst-queue {
        border-left: 0;
        border-top: 1px solid var(--mst-panel-border);
        padding-left: 0;
        padding-top: 1rem;
    }

    .mst-queue-list {
        max-height: none;
    }
}
