.benchmark-home {
    width: min(100%, 1480px);
    margin: 0 auto;
}

.benchmark-home-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0 14px;
    border-bottom: 1px solid var(--border);
}

.benchmark-home-header h1 {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    font-size: clamp(24px, 2.1vw, 32px);
    line-height: 1.15;
    overflow-wrap: anywhere;
    white-space: normal;
}

.benchmark-home-header > div {
    min-width: 0;
}

.benchmark-home-meta {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.benchmark-compare-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
    font-size: 13px;
    font-weight: 750;
}

.benchmark-compare-link:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.benchmark-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--border);
}

.benchmark-home .search-box {
    display: flex;
    align-items: center;
    flex: 0 1 410px;
    min-width: 280px;
    gap: 7px;
    padding: 0;
}

.benchmark-home .search-box input[type="text"] {
    min-width: 0;
    max-width: none;
    height: 36px;
    padding: 8px 13px;
    border-radius: 8px;
}

.benchmark-home .search-box button {
    height: 36px;
    padding: 7px 15px;
    border-radius: 8px;
}

.benchmark-home .search-box .clear-search {
    padding: 6px 4px;
}

.benchmark-home .brand-filter {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 6px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.benchmark-home .brand-filter a {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
}

.benchmark-section {
    padding-top: 18px;
}

.benchmark-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.benchmark-section-head h2 {
    padding: 0;
    font-size: 18px;
}

.benchmark-section-head > a,
.benchmark-section-head > span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.benchmark-section-head > a:hover {
    color: var(--accent);
    text-decoration: none;
}

.benchmark-home .best-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
}

.benchmark-home .best-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.benchmark-home .best-item::before {
    display: none;
}

.benchmark-home .best-item:hover {
    transform: none;
    border-color: var(--accent);
    background: var(--surface-2);
    box-shadow: none;
    text-decoration: none;
}

.benchmark-home .best-emoji {
    font-size: 18px;
}

.best-copy {
    min-width: 0;
}

.benchmark-home .best-label,
.benchmark-home .best-phone {
    display: block;
}

.benchmark-home .best-label {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.benchmark-home .best-phone {
    overflow: hidden;
    margin-top: 3px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.benchmark-home .best-value {
    color: var(--success);
    font-size: 15px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.benchmark-phones {
    padding-bottom: 24px;
}

.benchmark-home .phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    padding: 0;
}

.benchmark-home .phone-grid > .empty-state {
    grid-column: 1 / -1;
}

.benchmark-home .phone-card {
    min-width: 0;
    padding: 0;
    border-radius: 10px;
}

.benchmark-home .phone-card > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 78px;
    padding: 11px 13px;
}

.phone-card-copy {
    display: block;
    min-width: 0;
}

.benchmark-home .phone-brand,
.benchmark-home .phone-model,
.benchmark-home .phone-chipset {
    display: block;
}

.benchmark-home .phone-brand {
    font-size: 10px;
}

.benchmark-home .phone-model {
    overflow: hidden;
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.benchmark-home .phone-chipset {
    overflow: hidden;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-card-arrow {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 15px;
}

.benchmark-home .phone-card:hover .phone-card-arrow {
    color: var(--accent);
}

@media (max-width: 1100px) {
    .benchmark-home .best-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .benchmark-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .benchmark-home .search-box {
        flex-basis: auto;
        width: 100%;
    }

    .benchmark-home .best-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .benchmark-home {
        width: 100%;
        max-width: calc(100vw - 24px);
    }

    .benchmark-home .brand-filter::-webkit-scrollbar,
    .benchmark-home .best-strip::-webkit-scrollbar {
        display: none;
    }

    .benchmark-home-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 16px 0 12px;
    }

    .benchmark-home-header h1 {
        width: min(100%, 330px);
        font-size: 22px;
    }

    .benchmark-home-header > div {
        width: 100%;
    }

    .benchmark-compare-link {
        padding: 8px 11px;
    }

    .benchmark-home .search-box {
        position: relative;
        display: block;
        width: min(100%, 360px);
        max-width: 360px;
        min-width: 0;
    }

    .benchmark-home .search-box input[type="text"] {
        width: 100%;
        padding-right: 66px;
    }

    .benchmark-home .search-box button {
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        width: 58px;
    }

    .benchmark-home .search-box .clear-search {
        display: inline-block;
        margin-top: 5px;
    }

    .benchmark-home .brand-filter {
        width: calc(100% + 24px);
        margin-inline: -12px;
        padding-inline: 12px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .benchmark-section {
        padding-top: 14px;
    }

    .benchmark-section-head {
        margin-bottom: 8px;
    }

    .benchmark-home .best-strip {
        display: flex;
        gap: 8px;
        margin-inline: -12px;
        padding: 0 12px 4px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 12px;
        scroll-snap-type: inline proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .benchmark-home .best-item {
        flex: 0 0 min(84vw, 340px);
        min-height: 68px;
        scroll-snap-align: start;
    }

    .benchmark-home .phone-grid {
        grid-template-columns: 1fr;
    }

    .benchmark-home .phone-card > a {
        min-height: 70px;
    }
}

@media (max-width: 420px) {
    .benchmark-section-head {
        align-items: flex-start;
    }

    .benchmark-section-head h2 {
        font-size: 17px;
    }
}
