.xh-links-page {
    --xh-links-blue: #5878f4;
    --xh-links-blue-2: #4569ed;
    --xh-links-text: var(--main-color, #243044);
    --xh-links-muted: var(--muted-color, #7b8494);
    --xh-links-card: var(--main-bg-color, #fff);
    --xh-links-soft: rgba(244, 247, 252, .95);
    --xh-links-border: rgba(65, 88, 120, .1);
}

.xh-links-page .content-layout {
    overflow: visible;
}

.xh-links-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.xh-links-sidebar {
    align-self: start;
    z-index: 3;
}

.xh-links-side-card {
    display: block;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--xh-links-card);
    box-shadow: 0 12px 34px rgba(38, 59, 112, .08);
}

.xh-links-side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 0 26px;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, var(--xh-links-blue), var(--xh-links-blue-2));
}

.xh-links-side-title .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    font-size: 12px;
}

.xh-links-side-nav {
    padding: 10px 0 18px;
}

.xh-links-side-nav a {
    position: relative;
    display: block;
    padding: 14px 28px 14px 46px;
    color: var(--xh-links-text);
    font-size: 15px;
    line-height: 1.2;
}

.xh-links-side-nav a:before {
    content: "";
    position: absolute;
    left: 30px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
}

.xh-links-side-nav a:hover,
.xh-links-side-nav a.is-active {
    color: var(--xh-links-blue);
    background: rgba(88, 120, 244, .13);
}

.xh-links-submit {
    display: block;
    margin: 0 24px 22px;
    padding: 13px 16px;
    border-radius: 7px;
    color: #fff !important;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    font-weight: 600;
    background: var(--xh-links-blue);
    box-shadow: 0 8px 18px rgba(88, 120, 244, .28);
}

.xh-links-submit:hover,
.xh-links-submit:focus {
    color: #fff !important;
}

.xh-links-main {
    min-width: 0;
}

.xh-links-cover {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    margin-bottom: 28px;
    border-radius: 8px;
    background: #7b879a;
    background-image: linear-gradient(rgba(20, 29, 38, .45), rgba(20, 29, 38, .45)), var(--xh-links-cover);
    background-position: center;
    background-size: cover;
    box-shadow: 0 12px 34px rgba(38, 59, 112, .1);
}

.xh-links-cover-inner {
    position: relative;
    display: flex;
    min-height: 280px;
    padding: 36px 46px 34px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.xh-links-cover h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.xh-links-search-groups {
    display: flex;
    gap: 28px;
    margin-bottom: 14px;
    align-items: center;
    justify-content: center;
}

.xh-links-search-groups button {
    min-width: 58px;
    padding: 10px 12px;
    border: 0;
    border-radius: 4px;
    color: rgba(255, 255, 255, .94);
    font-size: 17px;
    background: transparent;
    cursor: pointer;
}

.xh-links-search-groups button:hover,
.xh-links-search-groups button.is-active {
    background: rgba(255, 255, 255, .14);
}

.xh-links-search-form {
    display: flex;
    width: min(100%, 820px);
    height: 52px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.xh-links-search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 18px;
    color: #333;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.xh-links-search-form button {
    width: 104px;
    border: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    background: var(--xh-links-blue);
    cursor: pointer;
}

.xh-links-search-engines {
    width: min(100%, 760px);
    min-height: 44px;
    margin-top: 18px;
    text-align: center;
}

.xh-links-search-status {
    display: none;
    margin-top: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, .28);
}

.xh-links-search-status.is-visible {
    display: inline-flex;
}

.xh-links-search-status.is-success {
    background: rgba(35, 180, 100, .86);
}

.xh-links-search-status.is-error {
    background: rgba(235, 80, 80, .9);
}

.xh-links-search-status.is-loading {
    background: rgba(0, 0, 0, .36);
}

.xh-links-search-form button:disabled {
    cursor: wait;
    opacity: .75;
}

.xh-links-search-engine-pane {
    display: none;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.xh-links-search-engine-pane.is-active {
    display: flex;
}

.xh-links-search-engine-pane button {
    min-width: 72px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
}

.xh-links-search-engine-pane button:hover,
.xh-links-search-engine-pane button.is-active {
    background: var(--xh-links-blue);
}

.xh-links-section,
.xh-link-detail-card {
    margin-bottom: 26px;
    padding: 26px;
    border-radius: 8px;
    background: var(--xh-links-card);
    box-shadow: 0 12px 34px rgba(38, 59, 112, .07);
}

.xh-links-section-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--xh-links-border);
}

.xh-links-section-head h2,
.xh-link-info h2 {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: var(--xh-links-text);
    font-size: 19px;
    line-height: 1.4;
    font-weight: 500;
}

.xh-links-section-head h2:before,
.xh-link-info h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: .28em;
    width: 4px;
    height: 1.1em;
    border-radius: 2px;
    background: var(--xh-links-blue);
}

.xh-links-section-head span {
    color: var(--xh-links-muted);
    font-size: 15px;
}

.xh-links-list {
    display: grid;
    gap: 14px;
}

.xh-link-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 98px;
    padding: 18px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--xh-links-soft);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.xh-link-item:hover {
    border-color: rgba(88, 120, 244, .18);
    background: rgba(88, 120, 244, .11);
    transform: translateY(-1px);
}

.xh-link-item.is-search-hidden,
.xh-links-section.is-search-hidden {
    display: none;
}

.xh-link-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd84d, #ff8a35);
    box-shadow: 0 8px 18px rgba(40, 54, 82, .08);
}

.xh-link-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xh-link-logo.is-large {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    font-size: 36px;
}

.xh-link-body {
    min-width: 0;
}

.xh-link-name {
    display: inline-block;
    max-width: 100%;
    color: var(--xh-links-text);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xh-link-body p {
    margin: 6px 0 5px;
    color: var(--xh-links-muted);
    font-size: 14px;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xh-link-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--xh-links-muted);
    font-size: 13px;
}

.xh-link-stars {
    display: inline-flex;
    gap: 1px;
    color: rgba(170, 176, 188, .45);
    letter-spacing: 0;
}

.xh-link-stars .is-on {
    color: #ffbd2e;
}

.xh-link-actions,
.xh-link-detail-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.xh-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--xh-links-blue);
    border-radius: 5px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.xh-link-btn.is-ghost {
    color: var(--xh-links-blue) !important;
    background: transparent;
}

.xh-link-btn.is-primary {
    color: #fff !important;
    background: var(--xh-links-blue);
}

.xh-link-breadcrumb {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 18px;
    color: var(--xh-links-muted);
    font-size: 15px;
}

.xh-link-breadcrumb a {
    color: var(--xh-links-blue);
}

.xh-link-breadcrumb em {
    font-style: normal;
}

.xh-link-detail-top {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.xh-link-detail-main h1 {
    margin: 0 0 8px;
    color: var(--xh-links-text);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 500;
}

.xh-link-url {
    display: inline-block;
    max-width: 100%;
    margin-top: 8px;
    color: var(--xh-links-blue);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xh-link-detail-line {
    height: 1px;
    margin: 24px 0;
    background: var(--xh-links-border);
}

.xh-link-info {
    margin-top: 20px;
}

.xh-link-info-box {
    margin-top: 14px;
    padding: 18px;
    border-radius: 8px;
    color: var(--xh-links-text);
    background: var(--xh-links-soft);
}

.xh-link-info-box.is-grid {
    display: flex;
    gap: 20px 28px;
    flex-wrap: wrap;
}

.xh-link-info-box b {
    font-weight: 500;
}

.xh-link-back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 26px;
    padding: 12px 18px;
    border-radius: 7px;
    color: var(--xh-links-text);
    background: var(--xh-links-soft);
}

.xh-links-empty {
    padding: 40px;
    border-radius: 8px;
    color: var(--xh-links-muted);
    text-align: center;
    background: var(--xh-links-card);
}

body.dark-theme .xh-links-page,
body.dark .xh-links-page,
html.dark .xh-links-page,
[data-theme="dark"] .xh-links-page,
.dark-theme .xh-links-page {
    --xh-links-text: rgba(255, 255, 255, .88);
    --xh-links-muted: rgba(255, 255, 255, .58);
    --xh-links-card: rgba(35, 38, 46, .92);
    --xh-links-soft: rgba(255, 255, 255, .06);
    --xh-links-border: rgba(255, 255, 255, .1);
}

body.dark-theme .xh-links-search-form,
body.dark .xh-links-search-form,
html.dark .xh-links-search-form,
[data-theme="dark"] .xh-links-search-form,
.dark-theme .xh-links-search-form,
body.dark-theme .xh-links-search-form input,
body.dark .xh-links-search-form input,
html.dark .xh-links-search-form input,
[data-theme="dark"] .xh-links-search-form input,
.dark-theme .xh-links-search-form input {
    color: #e9edf5;
    background: rgba(32, 35, 42, .96);
}

@media (max-width: 1199px) {
    .xh-links-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    .xh-links-cover-inner {
        padding-left: 26px;
        padding-right: 26px;
    }
}

@media (max-width: 991px) {
    .xh-links-layout {
        display: block;
    }

    .xh-links-sidebar {
        position: static;
        margin-bottom: 18px;
    }

    .xh-links-side-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }

    .xh-links-side-nav a {
        min-width: max-content;
        padding: 16px 22px 16px 34px;
    }

    .xh-links-submit {
        margin-top: 16px;
    }
}

@media (max-width: 767px) {
    .xh-links-cover,
    .xh-links-cover-inner {
        min-height: 260px;
    }

    .xh-links-cover-inner {
        padding: 28px 16px 24px;
    }

    .xh-links-cover h1 {
        font-size: 24px;
    }

    .xh-links-search-groups {
        gap: 8px;
        flex-wrap: wrap;
    }

    .xh-links-search-groups button {
        font-size: 14px;
    }

    .xh-links-search-form {
        height: 46px;
    }

    .xh-links-search-form input {
        padding: 0 12px;
        font-size: 14px;
    }

    .xh-links-search-form button {
        width: 72px;
        font-size: 14px;
    }

    .xh-link-item {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .xh-link-logo {
        width: 50px;
        height: 50px;
    }

    .xh-link-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 64px;
    }

    .xh-links-section,
    .xh-link-detail-card {
        padding: 18px;
    }

    .xh-link-detail-top {
        display: block;
    }

    .xh-link-logo.is-large {
        margin-bottom: 16px;
    }

    .xh-link-detail-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }
}
