@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

html,
body {
    min-height: 100%;
}

:root {
    --color-bg: #1C1A19;
    --color-header: #100F0E;
    --color-card: #292522;
    --color-nav: #332D29;
    --color-text: #E8E2DB;
    --color-text-muted: #A9A099;
    --color-accent: #D99732;
    --color-accent-hover: #C95032;
    --color-border: #403A35;
    --surface-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font: 13px/1.45 Verdana, Helvetica, sans-serif;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.cc {
    clear: both;
}

.right {
    float: right !important;
}

#header,
#page {
    width: 100%;
}

.page-layout {
    width: 100%;
    max-width: 1532px;
    margin: 0 auto;
    padding: 0 12px;
    position: relative;
    box-sizing: border-box;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

#header {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1532px;
    margin: 0 auto;
    background: transparent;
}

#header::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--color-header);
    border-bottom: 1px solid var(--color-border);
    content: "";
}

#header .xm-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: none;
    padding: 12px 18px;
    margin: 0 auto;
    background: transparent;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--color-text);
}

.xm-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    text-decoration: none;
    line-height: 1;
}

.xm-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    opacity: 0.9;
}

#search-box.xm-header-search {
    width: 340px;
    max-width: 42%;
    min-width: 220px;
    margin: 0 0 0 auto;
    flex: 0 1 340px;
}

#search-box.xm-header-search form {
    width: 100%;
    position: relative;
}

#search-box.xm-header-search .xm-search-input {
    width: 100%;
    height: 42px;
    padding: 0 48px 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: var(--color-card);
    color: var(--color-text);
    font-size: 14px;
    line-height: 42px;
}

#search-box.xm-header-search .xm-search-input::placeholder {
    color: var(--color-text-muted);
}

#search-box.xm-header-search .xm-search-input:focus-visible {
    border-color: var(--color-accent);
}

#search-box.xm-header-search .xm-search-button {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
}

#search-box.xm-header-search .xm-search-button:hover {
    background: var(--color-nav);
}

#search-box.xm-header-search .xm-search-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-note {
    margin-left: auto;
    max-width: 70%;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
}

#menu-up {
    display: none;
}

.xm-nav-bar {
    width: 100%;
    background: var(--color-nav);
    border-bottom: 3px solid var(--color-border);
}

.xm-nav-inner {
    width: 100%;
    max-width: 1532px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 56px;
    flex-wrap: nowrap;
    background: var(--color-nav);
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
}

.xm-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: var(--color-nav);
}

.xm-nav-list li {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.xm-nav-list .xm-nav-home-item {
    flex: 0 0 46px;
}

.xm-nav-list li+li {
    border-left: 1px solid var(--color-border);
}

.xm-nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 16px;
    background: transparent;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.xm-nav-list a:hover {
    color: var(--color-accent);
    background: var(--color-nav);
}

.xm-nav-list a:focus-visible {
    color: var(--color-accent);
    background: var(--color-nav);
}

.xm-nav-list a.is-active,
.xm-nav-list a.is-active:hover {
    background: var(--color-nav);
    color: var(--color-accent);
}

.xm-nav-list .xm-home-link {
    min-width: 44px;
    padding: 8px;
}

.xm-home-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#page {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    background: transparent;
    font-family: Arial, sans-serif;
    padding-top: 0;
    padding-bottom: 0;
    flex: 1 0 auto;
}

#page>.page-layout {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    padding-bottom: 24px;
}

#page .container {
    padding: 6px 7px 2px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: var(--surface-shadow);
    flex: 1 0 auto;
}

.title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 10px 0;
}

.title-box-title {
    margin: 0;
    color: var(--color-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.title-box>span {
    margin: 0;
    padding: 0;
    width: 100%;
    float: none;
    background: none;
    color: var(--color-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}

.title-box-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    margin-left: auto;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-card);
}

.title-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 34px;
    padding: 0 12px;
    border: none;
    border-radius: 0;
    background: var(--color-card);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.title-filter-btn+.title-filter-btn {
    border-left: 1px solid var(--color-border);
}

.title-filter-btn:hover {
    color: #ffffff;
    background: var(--color-accent-hover);
}

.title-filter-btn:focus-visible {
    color: #ffffff;
    background: var(--color-accent-hover);
}

.title-filter-btn.is-active {
    color: var(--color-header);
    background: var(--color-accent);
    box-shadow: none;
}

.thumbs-grid {
    position: relative;
    min-height: 220px;
}

.thumbs-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--color-bg) 94%, transparent);
    z-index: 20;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loader-spinner,
.thumbs-loader .page-loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: page-loader-spin 0.8s linear infinite;
}

.thumbs-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.th_container {
    list-style-type: none;
    position: relative;
    margin: 10px 0 0;
    padding: 0;
    visibility: hidden;
}

.th_container.mosaic-ready {
    visibility: visible;
}

.video-page .thumbs-grid {
    min-height: 0;
}

.video-th-container {
    list-style-type: none;
    position: relative;
    margin: 10px 0 0;
    padding: 0;
    visibility: visible;
}

.video-page .video-th-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    visibility: visible;
}

.video-page .video-th-container li {
    width: auto;
}

.video-page .video-th-container li img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.th_container li,
.video-th-container li {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.th_container li:hover,
.video-th-container li:hover {
    border-color: var(--color-accent);
}

.th_container li img,
.video-th-container li img {
    display: block;
    width: 100%;
    height: auto;
}

.th_container li p,
.video-th-container li p {
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    font-weight: 400;
    margin: 8px;
}

.th_container a,
.video-th-container a {
    position: relative;
    display: block;
}

.category-badge {
    position: absolute;
    right: 0;
    bottom: 0px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px 0 0 0;
    background: color-mix(in srgb, var(--color-header) 82%, transparent);
    color: var(--color-text-muted);
    /* border: 1px solid var(--color-border); */
    border-right: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
}

.category-badge span {
    opacity: 1;
}

.xm-entity-counts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 38px;
    padding: 6px 8px;
    background: var(--color-card);
}

.xm-entity-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.xm-entity-count+.xm-entity-count::before {
    content: "|";
    margin-right: 4px;
    color: var(--color-text-muted);
    font-weight: 400;
}

.xm-entity-count svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.xm-entity-counts a:hover,
.xm-entity-counts a:focus-visible {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.xm-entity-counts a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.duration-badge {
    right: 6px;
    bottom: 6px;
    padding: 4px 7px;
    font-size: 12px;
    font-weight: 300;
    border-radius: 4px;
}


@media only screen and (max-width: 1200px) {
    .video-page .video-th-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 920px) {
    .video-page .video-th-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 640px) {
    .video-page .video-th-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 420px) {
    .video-page .video-th-container {
        grid-template-columns: 1fr;
    }
}

.archive {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    float: none !important;
    clear: both;
    box-sizing: border-box;
    padding: 12px 0;
    margin: 20px 0 15px;
}

.archive a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-nav);
    color: var(--color-text);
    font-size: 18px;
    font-weight: 700;
}

.archive a:hover {
    border-color: var(--color-accent-hover);
    background: var(--color-accent-hover);
    color: #ffffff;
}

.archive a:focus-visible {
    border-color: var(--color-accent-hover);
    background: var(--color-accent-hover);
    color: #ffffff;
}

.archive a svg {
    display: block;
}

#footer {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1532px;
    margin-right: auto;
    margin-left: auto;
    flex: 0 0 auto;
    margin-top: auto;
    padding-bottom: 0;
    background: transparent;
    color: var(--color-text-muted);
}

#footer::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--color-header);
    border-top: 1px solid var(--color-border);
    content: "";
}

#footer-bottom {
    padding: 14px 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#footer p {
    margin: 14px 0;
    color: var(--color-text);
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

#footer p.copy {
    color: var(--color-text-muted);
    font-size: 13px;
}

#footer .xm-footer-links a,
#footer p.copy a {
    color: var(--color-accent);
    font-weight: 700;
}

#footer .xm-footer-links a:hover,
#footer p.copy a:hover {
    color: var(--color-accent-hover);
}

@media only screen and (max-width: 1000px) {
    #header .xm-header-inner {
        justify-content: space-between;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #header .xm-header-inner,
    .xm-nav-inner,
    #page .container,
    #footer-bottom {
        padding-left: 12px;
        padding-right: 12px;
    }

    #page .container {
        padding-left: 6px;
        padding-right: 6px;
    }

    .xm-logo {
        width: auto;
        flex: 0 0 auto;
        justify-content: center;
    }

    .xm-logo img {
        width: auto;
        max-width: 100%;
    }

    .header-note {
        display: none;
    }
}

.xm-gallery-page {
    padding: 12px 0 0;
}

.xm-gallery-shell {
    width: 100%;
    max-width: 1508px;
    margin: 8px auto;
    padding: 16px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--surface-shadow);
}

.xm-gallery-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--color-border);
}

.xm-gallery-breadcrumb {
    grid-column: 1 / -1;
    color: var(--color-text-muted);
    font-size: 13px;
}

.xm-gallery-breadcrumb a {
    color: var(--color-accent);
}

.xm-gallery-title {
    min-width: 0;
    color: var(--color-text);
    font-size: 24px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.xm-gallery-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 16px;
    padding-top: 16px;
}

.xm-gallery-main {
    min-width: 0;
}

.xm-gallery-images {
    columns: 4 190px;
    column-gap: 8px;
}

.xm-gallery-image {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    break-inside: avoid;
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.xm-gallery-image img {
    display: block;
    width: 100%;
    height: auto;
}

.xm-gallery-image:hover {
    border-color: var(--color-accent);
}

.xm-gallery-ad--inline {
    margin-bottom: 8px;
    break-inside: avoid;
}

.xm-gallery-ad__unit {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 5;
    overflow: hidden;
    background: var(--color-card);
    isolation: isolate;
}

.xm-gallery-ad__unit::before {
    position: absolute;
    z-index: 2;
    top: 4px;
    left: 4px;
    padding: 2px 5px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--color-header) 86%, transparent);
    color: var(--color-text-muted);
    content: "Ad";
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}

.xm-gallery-ad__frame {
    position: absolute !important;
    top: 0;
    left: 50%;
    display: block !important;
    width: 300px !important;
    height: 250px !important;
    transform: translateX(-50%);
    transform-origin: top center;
    max-width: none !important;
    border: 0;
}

.xm-gallery-ad--sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    max-width: 100%;
}

.xm-gallery-ad-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 16px 0 8px;
}

.xm-gallery-channel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--color-accent);
    color: var(--color-header);
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
    transition: background-color .18s ease;
}

.xm-gallery-channel-cta:hover,
.xm-gallery-channel-cta:focus-visible {
    background: var(--color-accent-hover);
    color: #ffffff;
}

.xm-gallery-side {
    display: grid;
    gap: 12px;
}

.xm-gallery-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
}

.xm-gallery-card__title {
    padding: 10px 12px;
    background: var(--color-nav);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
}

.xm-gallery-card__body {
    padding: 12px;
}

.xm-gallery-stats {
    display: grid;
    gap: 8px;
    color: var(--color-text);
    font-size: 14px;
}

.xm-gallery-stat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.xm-gallery-like-slot {
    margin-top: 12px;
}

.xm-gallery-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    width: 100%;
    padding: 0 12px;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    color: var(--color-header);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.xm-gallery-like-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.xm-gallery-like-button:hover {
    color: #ffffff;
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.xm-gallery-like-button:disabled {
    cursor: wait;
    opacity: .75;
}

.xm-gallery-liked {
    color: var(--color-accent);
    font-weight: 700;
}

.xm-gallery-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.xm-gallery-meta-list a {
    display: inline-flex;
    padding: 5px 8px;
    background: var(--color-nav);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 12px;
}

.xm-gallery-meta-list a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.xm-gallery-empty {
    padding: 32px 16px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-align: center;
}

.xm-paysites-section {
    padding: 0;
}

.xm-category-index {
    padding: 14px 0 28px;
}

.xm-category-index__section {
    width: 100%;
}

.xm-category-index__heading {
    margin-bottom: 16px;
}

.xm-category-index__heading h1 {
    color: var(--color-text);
    font-size: 23px;
    line-height: 1.25;
}

.xm-category-index__card {
    position: relative;
    display: block;
    overflow: hidden;
}

.xm-category-index__card:hover img,
.xm-category-index__card:focus-visible img {
    opacity: .9;
}

.xm-category-index__label {
    position: absolute;
    top: 0;
    left: 0;
    max-width: calc(100% - 12px);
    padding: 7px 10px;
    overflow: hidden;
    border-radius: 5px 0 0 0;
    background: color-mix(in srgb, var(--color-header) 84%, transparent);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xm-category-index__card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.xm-category-index__empty {
    width: 100%;
    padding: 24px;
    color: var(--color-text);
    text-align: center;
}

.xm-paysites-heading {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.xm-paysites-heading h1 {
    color: var(--color-text);
    font-size: 23px;
    line-height: 1.25;
}

.xm-paysites-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 22px;
}

.xm-paysites-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 3px;
    color: var(--color-accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.xm-paysites-nav__link--all {
    min-width: 52px;
}

.xm-paysites-nav__link:hover,
.xm-paysites-nav__link:focus-visible,
.xm-paysites-nav__link.is-active {
    background: var(--color-accent);
    color: var(--color-header);
}

.xm-paysites-group {
    margin: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--color-border);
}

.xm-paysites-group+.xm-paysites-group {
    margin-top: 16px;
}

.xm-paysites-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.xm-paysites-letter {
    margin-bottom: 12px;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.xm-paysites-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px 12px;
}

.xm-paysites-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.xm-paysites-link__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
    text-decoration: none;
}

.xm-paysites-link__counts {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.xm-paysites-link__count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.xm-paysites-link__count+.xm-paysites-link__count::before {
    content: "|";
    margin-right: 4px;
    color: var(--color-border);
    font-weight: 400;
}

.xm-paysites-link__count svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.xm-paysites-link:hover,
.xm-paysites-link:focus-visible {
    background: var(--color-nav);
    border-color: var(--color-accent-hover);
}

.xm-paysites-link__name:hover,
.xm-paysites-link:focus-within .xm-paysites-link__name {
    color: var(--color-accent);
    text-decoration: underline;
}

.xm-paysites-link__count:hover,
.xm-paysites-link:focus-within .xm-paysites-link__count {
    color: var(--color-accent);
    text-decoration: underline;
}

.xm-paysites-empty {
    padding: 18px 0;
    color: var(--color-text);
    text-align: center;
}

.xm-paysites-pagination {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.xm-paysites-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    background: var(--color-card);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
}

.xm-paysites-pagination a:hover {
    border-color: var(--color-accent-hover);
    background: var(--color-accent-hover);
    color: #ffffff;
}

.xm-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

@media only screen and (max-width: 900px) {
    .xm-gallery-content {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .xm-gallery-images {
        columns: 3 170px;
    }

    .xm-paysites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media only screen and (max-width: 640px) {
    .xm-gallery-shell {
        padding: 10px;
    }

    .xm-gallery-heading {
        grid-template-columns: minmax(0, 1fr);
    }

    .xm-gallery-breadcrumb {
        grid-column: auto;
    }

    .xm-gallery-title {
        font-size: 21px;
    }

    .xm-gallery-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .xm-gallery-ad--sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xm-gallery-ad-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xm-gallery-ad-strip .xm-gallery-ad__unit:nth-child(n + 3) {
        display: none;
    }

    .xm-gallery-images {
        columns: 2 130px;
    }

    .xm-paysites-section {
        padding: 0;
    }

    .xm-category-index__label {
        padding: 6px 8px;
        font-size: 14px;
    }

    .xm-paysites-heading h1 {
        font-size: 20px;
    }

    .xm-paysites-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .xm-paysites-link {
        padding: 10px 12px;
    }

    .xm-paysites-link__counts {
        gap: 12px;
    }

    .xm-paysites-link__count {
        gap: 5px;
        font-size: 18px;
    }

    .xm-paysites-link__count svg {
        width: 22px;
        height: 22px;
    }

    .xm-entity-counts {
        gap: 16px;
        min-height: 46px;
        padding: 8px;
    }

    .xm-entity-count {
        gap: 5px;
        font-size: 18px;
    }

    .xm-entity-count svg {
        width: 22px;
        height: 22px;
    }
}

@media only screen and (max-width: 360px) {
    .xm-gallery-images {
        columns: 1;
    }
}

@media only screen and (min-width: 601px) and (max-width: 960px) {
    .xm-nav-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .xm-nav-list {
        flex: 1 0 100%;
        gap: 0;
    }

    .xm-nav-list a {
        font-size: 14px;
        padding: 9px 12px;
    }

}

@media only screen and (max-width: 760px) {
    #header .xm-header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding: 16px 12px 14px;
    }

    #header .xm-logo {
        width: 100%;
        justify-content: center;
    }

    #header .xm-logo img {
        max-width: min(100%, 450px);
    }

    #search-box.xm-header-search {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        margin: 0 auto;
        flex: 0 1 auto;
    }
}

@media only screen and (max-width: 600px) {
    .xm-nav-inner {
        min-width: 0;
        padding: 6px 8px;
        flex-wrap: wrap;
        gap: 6px 12px;
        min-height: 0;
    }

    .xm-nav-list {
        display: flex;
        flex: 1 0 100%;
        gap: 0;
        order: 1;
    }

    .xm-nav-list .xm-nav-home-item {
        flex-basis: 38px;
    }

    .xm-nav-list a {
        min-height: 40px;
        padding: 8px 5px;
        font-size: 13px;
    }

    #search-box.xm-header-search .xm-search-input {
        height: 44px;
        line-height: 44px;
    }

    #search-box.xm-header-search .xm-search-button {
        width: 36px;
        height: 36px;
    }
}

@media only screen and (max-width: 360px) {
    .xm-nav-list a {
        padding-right: 2px;
        padding-left: 2px;
        font-size: 11px;
    }
}
