:root {
    --color-bg-darkest: rgb(23, 23, 23);
    --color-bg-even-darker: rgb(163, 163, 163);
    --color-bg-darker: rgb(212, 212, 212);
    --color-bg-dark: rgb(229, 229, 229);
    --color-bg-light: rgb(245, 245, 245);
    --color-bg-lightest: rgb(250, 250, 250);
    --color-border-default: rgb(229, 229, 229);
}

* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background-color: white;
    font-family: sans-serif;
    overflow: hidden;
}

header {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-shrink: 0;
}

#top-nav {
    height: 56px;
    background-color: var(--color-bg-darkest);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

#nav-links {
    display: flex;
    gap: 15px;
}

.nav-item {
    width: 64px;
    height: 24px;
    background-color: rgb(38 38 38);
    border-radius: 2px;
}

.nav-item:first-child {
    width: 96px;
    background-color: rgb(64 64 64);
}

.nav-profile {
    width: 32px;
    height: 32px;
    background-color: rgb(64 64 64);
    border-radius: 4px;
}

#match-banner {
    background-color: rgb(38 38 38);
    padding: 20px;
    display: flex;
    justify-content: center;
}

.banner-content {
    width: 100%;
    max-width: 896px;
    display: flex;
    flex-direction: column;
}

.teams-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-details.align-end {
    align-items: flex-end;
}

.team-logo {
    width: 48px;
    height: 48px;
    background-color: rgb(82 82 82);
    border-radius: 4px;
}

.team-name-placeholder {
    width: 80px;
    height: 20px;
    background-color: rgb(82 82 82);
    border-radius: 4px;
}

.team-score-placeholder {
    width: 128px;
    height: 32px;
    background-color: rgb(115 115 115);
    border-radius: 4px;
}

.match-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-status-text {
    width: 64px;
    height: 16px;
    background-color: rgb(82 82 82);
    border-radius: 4px;
    margin-bottom: 8px;
}

.match-live-badge {
    width: 96px;
    height: 24px;
    background-color: rgb(239 68 68 / 0.3);
    border-radius: 4px;
}

.match-summary-bar {
    width: 288px;
    height: 20px;
    background-color: rgb(64 64 64);
    border-radius: 4px;
    margin: 16px auto 0 auto;
}

#layout-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    padding: 16px;
    gap: 20px;
    background-color: white;
    overflow: hidden;
}

main {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

main nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-border-default);
    padding-bottom: 8px;
    min-height: 40px;
}

.tab-btn {
    height: 32px;
    width: 96px;
    border-radius: 4px;
}

.tab-btn.active {
    background-color: var(--color-bg-darkest);
}

.tab-btn.inactive {
    background-color: var(--color-bg-light);
}

#score-table {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--color-border-default);
    overflow: hidden;
}

.table-header {
    height: 40px;
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.cell-name-header {
    width: 192px;
    height: 16px;
    background-color: var(--color-bg-darker);
    border-radius: 4px;
}

.cell-spacer {
    flex: 1;
}

.cell-stat-header {
    width: 48px;
    height: 16px;
    background-color: var(--color-bg-darker);
    border-radius: 4px;
    margin-left: 16px;
}

.table-row {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-top: 1px solid var(--color-bg-light);
}

.cell-name-row {
    width: 192px;
    height: 16px;
    background-color: var(--color-border-default);
    border-radius: 4px;
}

.cell-stat-row {
    width: 48px;
    height: 16px;
    background-color: var(--color-bg-light);
    border-radius: 4px;
    margin-left: 16px;
}

aside {
    width: 320px;
    border-left: 1px solid var(--color-border-default);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.sidebar-title {
    height: 24px;
    width: 96px;
    background-color: var(--color-border-default);
    border-radius: 4px;
}

.sidebar-widget {
    padding: 12px;
    background-color: var(--color-bg-light);
    border-radius: 8px;
}

.widget-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.widget-label {
    height: 20px;
    width: 48px;
    background-color: var(--color-bg-darker);
    border-radius: 4px;
}

.widget-icon {
    height: 16px;
    width: 16px;
    background-color: var(--color-border-default);
    border-radius: 4px;
}

.widget-bar {
    height: 16px;
    width: 100%;
    background-color: var(--color-border-default);
    border-radius: 4px;
}