.hc-explore-sort-drawer {
    position: fixed;
    z-index: 8400;
    top: 50%;
    left: 0;
    width: 8px;
    height: 32px;
    transform: translateY(-50%);
}

.hc-explore-sort-handle {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 8px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0 7px 7px 0;
    background: color-mix(in srgb, var(--primary) 72%, var(--surface));
    box-shadow: 0 4px 14px color-mix(in srgb, #000 18%, transparent);
    cursor: pointer;
}

.hc-explore-sort-handle span {
    position: absolute;
    top: 50%;
    left: 2px;
    width: 3px;
    height: 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    transform: translateY(-50%);
}

.hc-explore-sort-panel {
    position: absolute;
    top: 50%;
    left: 0;
    width: min(190px, calc(100vw - 18px));
    padding: 10px;
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 16px 16px 0;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 16px 38px color-mix(in srgb, #000 20%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translate(-10px, -50%);
    pointer-events: none;
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.hc-explore-sort-drawer:hover .hc-explore-sort-panel,
.hc-explore-sort-drawer:focus-within .hc-explore-sort-panel,
.hc-explore-sort-drawer.is-open .hc-explore-sort-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.hc-explore-sort-panel > header {
    display: grid;
    gap: 2px;
    padding: 4px 7px 9px;
    border-bottom: 1px solid var(--border);
}

.hc-explore-sort-panel > header strong {
    font-size: 13px;
}

.hc-explore-sort-panel > header small {
    color: var(--muted);
    font-size: 10px;
}

.hc-explore-sort-options {
    display: grid;
    gap: 3px;
    padding-top: 7px;
}

.hc-explore-sort-options form {
    margin: 0;
}

.hc-explore-sort-option {
    display: grid;
    grid-template-columns: 11px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.hc-explore-sort-option:hover,
.hc-explore-sort-option:focus-visible {
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
    background: color-mix(in srgb, var(--primary-soft) 62%, transparent);
    transform: translateX(1px);
    outline: none;
}

.hc-explore-sort-option > i,
.hc-profile-explore-option > i {
    display: block;
    width: 9px;
    height: 9px;
    border: 2px solid color-mix(in srgb, var(--muted) 55%, transparent);
    border-radius: 50%;
    background: transparent;
}

.hc-explore-sort-option.is-selected > i,
.hc-profile-explore-option.is-selected > i,
.hc-profile-explore-option:has(input:checked) > i {
    border-color: #159a55;
    background: #20b765;
    box-shadow: 0 0 0 3px color-mix(in srgb, #20b765 18%, transparent);
}

.hc-explore-sort-option span,
.hc-profile-explore-option span {
    min-width: 0;
}

.hc-explore-sort-option strong,
.hc-explore-sort-option small,
.hc-profile-explore-option strong,
.hc-profile-explore-option small {
    display: block;
}

.hc-explore-sort-option strong {
    font-size: 11px;
}

.hc-explore-sort-option small {
    display: none;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8.5px;
    line-height: 1.35;
}

.hc-explore-sort-option:hover small,
.hc-explore-sort-option:focus-visible small,
.hc-explore-sort-option.is-selected small {
    display: block;
}

.hc-profile-explore-preference {
    margin-top: 14px;
}

.hc-profile-explore-card {
    display: grid;
    gap: 15px;
    padding: clamp(15px, 2vw, 22px);
}

.hc-profile-explore-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.hc-profile-explore-head h2 {
    margin: 3px 0 5px;
    font-size: 20px;
}

.hc-profile-explore-head p {
    margin: 0;
    color: var(--muted);
}

.hc-profile-explore-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 14px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 72%, var(--surface));
}

.hc-profile-explore-form {
    display: grid;
    gap: 13px;
}

.hc-profile-explore-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.hc-profile-explore-option {
    display: grid;
    grid-template-columns: 11px minmax(0, 1fr);
    align-items: flex-start;
    gap: 8px;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.hc-profile-explore-option:hover,
.hc-profile-explore-option.is-selected,
.hc-profile-explore-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
    background: color-mix(in srgb, var(--primary-soft) 62%, var(--surface));
    transform: translateY(-1px);
}

.hc-profile-explore-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.hc-profile-explore-option strong {
    font-size: 12px;
}

.hc-profile-explore-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

@media (max-width: 960px) {
    .hc-profile-explore-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .hc-explore-sort-drawer {
        top: auto;
        bottom: 24%;
        transform: none;
    }

    .hc-explore-sort-panel {
        top: 50%;
        width: min(184px, calc(100vw - 14px));
    }

    .hc-profile-explore-options {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hc-explore-sort-panel,
    .hc-explore-sort-option,
    .hc-profile-explore-option {
        transition: none;
    }
}
