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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #030712;
    color: #f3f4f6;
    min-height: 100vh;
    padding: 1.5rem
}

.wrap {
    max-width: 48rem;
    margin: 0 auto
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem
}

.sub {
    color: #9ca3af;
    font-size: .875rem;
    margin-bottom: 1rem
}

.sub span {
    color: #60a5fa
}

.top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap
}

.avg-box {
    border-radius: .5rem;
    padding: .75rem 1rem;
    font-weight: 700;
    text-align: center
}

.avg-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .8
}

.avg-num {
    font-size: 1.5rem
}

.avg-txt {
    font-size: .875rem
}

.filters {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.fbtn {
    padding: .375rem .75rem;
    border-radius: .375rem;
    font-size: .875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    background: #1f2937;
    color: #d1d5db
}

.fbtn .btn-label {
    display: inline
}

@media(max-width:400px) {
    .fbtn .btn-label {
        display: none
    }
}

.fbtn:hover {
    background: #374151
}

.fbtn.active {
    background: #2563eb;
    color: #fff
}

.list {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s
}

.card:hover {
    border-color: #4b5563
}

.row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem
}

.badge {
    width: 4rem;
    text-align: center
}

.badge span {
    display: inline-block;
    border-radius: .25rem;
    padding: .25rem .5rem;
    font-size: .75rem;
    font-weight: 700
}

.info {
    flex: 1;
    min-width: 0
}

.tk {
    font-weight: 600;
    font-size: .875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.st {
    font-size: .75rem;
    color: #9ca3af
}

.bar-wrap {
    width: 8rem;
    background: #1f2937;
    border-radius: 9999px;
    height: .625rem;
    display: none
}

@media(min-width:640px) {
    .bar-wrap {
        display: block
    }
}

.bar-fill {
    height: .625rem;
    border-radius: 9999px;
    transition: width .3s
}

.arrow {
    color: #6b7280;
    font-size: .75rem;
    width: 1rem;
    text-align: center
}

.detail {
    padding: .5rem .75rem .75rem;
    font-size: .875rem;
    color: #d1d5db;
    border-top: 1px solid #1f2937
}

.footer {
    text-align: center;
    font-size: .75rem;
    color: #374151;
    margin-top: 1rem
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh
}

.pulse {
    animation: pulse 1.5s infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

.nav-link {
    color: #60a5fa;
    font-size: .875rem;
    text-decoration: none;
    cursor: pointer
}

.nav-link:hover {
    text-decoration: underline
}