.homepage-page {
    width: min(100% - 2rem, 1120px);
    margin: 0 auto;
    padding: 24px 0 48px;
}

.homepage-search-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.homepage-search {
    position: relative;
    width: min(100%, 560px);
}

.homepage-search svg {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    fill: #9ca3af;
    transform: translateY(-50%);
    pointer-events: none;
}

.homepage-search input {
    width: 100%;
    height: 52px;
    padding: 0 20px 0 48px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    color: #111827;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.homepage-section {
    margin-bottom: 36px;
}

.homepage-section__title {
    margin: 0 0 24px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    position: relative;
}

.homepage-section__title::before,
.homepage-section__title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 180px);
    height: 1px;
    background: #d1d5db;
}

.homepage-section__title::before {
    left: 0;
}

.homepage-section__title::after {
    right: 0;
}

.homepage-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.homepage-panel {
    min-width: 0;
}

.homepage-panel__title {
    margin: 0 0 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.homepage-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    background: #f3f4f6;
}

.homepage-tab {
    height: 38px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.homepage-tab:last-child {
    border-right: 0;
}

.homepage-tab.active {
    background: #fff;
    color: #111827;
    border-bottom: 2px solid #374151;
    margin-bottom: -1px;
}

.homepage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #d1d5db;
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: #fff;
}

.homepage-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.homepage-list__item:last-child {
    border-bottom: 0;
}

.homepage-list__empty {
    padding: 18px 14px;
    color: #6b7280;
    text-align: center;
}

.homepage-list__coin {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.homepage-list__logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.homepage-list__logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}

.homepage-list__coin a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.homepage-list__coin a:hover {
    text-decoration: underline;
}

.homepage-list__algorithm {
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
}

.homepage-list--price .homepage-list__values {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-shrink: 0;
    min-width: 150px;
}

.homepage-list__values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.homepage-list__price {
    color: #111827;
    font-weight: 400;
    white-space: nowrap;
}

.homepage-list__change {
    font-weight: 600;
}

.homepage-list__change.green {
    color: #16a34a;
}

.homepage-list__change.red {
    color: #dc2626;
}

.homepage-panel__footer {
    margin-top: 12px;
    text-align: center;
}

.homepage-panel__footer--price {
    padding-top: 4px;
}

.homepage-panel__divider {
    border: 0;
    border-top: 1px dotted #d1d5db;
    margin: 10px 0;
}

.homepage-panel__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.homepage-panel__link svg {
    width: 16px;
    height: 16px;
    fill: #2563eb;
    flex-shrink: 0;
}

.homepage-panel__link:hover {
    text-decoration: underline;
}

.homepage-panel__note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.homepage-panel__note--standalone {
    margin-top: 12px;
}

.homepage-panel__note svg {
    width: 14px;
    height: 14px;
    fill: #f59e0b;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .homepage-columns {
        grid-template-columns: 1fr;
    }

    .homepage-section__title::before,
    .homepage-section__title::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .homepage-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-tab:nth-child(2n) {
        border-right: 0;
    }

    .homepage-tab:nth-child(-n+2) {
        border-bottom: 1px solid #d1d5db;
    }
}
