* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

body {
    overflow: hidden;
}

.app-shell {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    padding: 18px 20px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
}

.topbar h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.topbar p {
    color: #9ca3af;
    font-size: 14px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 240px;
}

.controls label {
    font-size: 13px;
    color: #cbd5e1;
}

.controls select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #f8fafc;
    font-size: 14px;
    outline: none;
}

.content {
    flex: 1;
    min-height: 0;
}

.table-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    overflow: hidden;
}

.table-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #1f2937;
    color: #cbd5e1;
    font-size: 14px;
}

.table-container {
    flex: 1;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #1f2937;
    white-space: nowrap;
}

th {
    position: sticky;
    top: 0;
    background: #172033;
    cursor: pointer;
    user-select: none;
    z-index: 2;
}

th:hover {
    background: #1e293b;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.sort-indicator {
    margin-left: 8px;
    font-size: 12px;
    color: #93c5fd;
}

.loading,
.error,
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: #9ca3af;
    font-size: 16px;
}

@media (max-width: 900px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .controls {
        min-width: unset;
    }
}
.match-row {
    cursor: pointer;
}

.match-row:hover td {
    background: rgba(59, 130, 246, 0.08);
}

.details-row td {
    padding: 0;
    background: #0b1220;
}

.details-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 18px;
}

.details-group {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 14px;
}

.details-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 12px;
}

.details-grid {
    display: grid;
    gap: 10px;
}

.details-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1f2937;
}

.details-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.details-label {
    color: #9ca3af;
    font-size: 13px;
}

.details-value {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.details-empty {
    padding: 18px;
    color: #9ca3af;
}
