/* layout.css */

.title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.update-info {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
}

.update-wrapper {
    display: block;
}

#updateTime {
    font-size: 14px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 0;
}

.update-status,
.stats-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.update-status {
    justify-content: center;
    white-space: nowrap;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.stats-status {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.update-note {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    margin-top: 26px;
    margin-bottom: 12px;
}

.compact-title {
    margin-top: 18px;
}

.loading {
    display: none;
    text-align: center;
    padding: 18px;
    font-size: 15px;
    font-weight: 700;
    color: #6b7280;
}

.loading.show {
    display: block;
}

.result-info {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

@media(max-width:768px) {
    .top-bar {
        align-items: center;
        flex-direction: row;
        gap: 10px;
        margin-bottom: 16px;
    }

    .title {
        font-size: clamp(30px, 8vw, 42px);
        letter-spacing: -0.04em;
    }

    #updateTime,
    .update-status {
        padding: 8px 11px;
        font-size: 13px;
    }
}

@media(max-width:380px) {
    .top-bar {
        gap: 8px;
    }

    .title {
        font-size: 28px;
    }

    #updateTime,
    .update-status {
        padding: 7px 9px;
        font-size: 12px;
    }
}
