
/* ── Theme: dark ── */
:root {
    --wg-bg: #0f0f0f;
    --wg-bg-surface: #181818;
    --wg-bg-hover: #222;
    --wg-bg-card: #181818;
    --wg-bg-input: #1a1a1a;
    --wg-text: #eee;
    --wg-text-secondary: #999;
    --wg-text-hint: #666;
    --wg-border: #2a2a2a;
    --wg-pill-active-bg: #fff;
    --wg-pill-active-text: #111;
    --wg-btn-primary-bg: #fff;
    --wg-btn-primary-text: #111;
    --wg-btn-ghost-border: #333;
    --wg-skeleton: #222;
    --wg-overlay-bg: rgba(0,0,0,0.85);
    --wg-tag-bg: #222;
    --wg-tag-text: #bbb;
    --wg-card-meta-dots: #555;
    --wg-nav-bg: #0f0f0f;
    --wg-mobile-nav-bg: rgba(15,15,15,0.95);
    --wg-footer-copy: #555;
}

/* ── Theme overrides ── */
body { background: var(--wg-bg) !important; color: var(--wg-text) !important; }
.wg-nav { background: var(--wg-nav-bg) !important; border-bottom-color: var(--wg-border) !important; }
.wg-nav__logo { color: var(--wg-text) !important; }
.wg-nav__explore { color: var(--wg-text-secondary) !important; }
.wg-nav__explore:hover { color: var(--wg-text) !important; }
.wg-nav__search input { background: var(--wg-bg-input) !important; border-color: var(--wg-border) !important; color: var(--wg-text) !important; }
.wg-nav__search input:focus { border-color: var(--wg-text-hint) !important; background: var(--wg-bg-surface) !important; }
.wg-nav__search input::placeholder { color: var(--wg-text-hint) !important; }
.wg-pills { background: var(--wg-bg) !important; border-bottom-color: var(--wg-border) !important; }
.wg-pill { border-color: var(--wg-border) !important; color: var(--wg-text-secondary) !important; }
.wg-pill:hover { border-color: var(--wg-text-hint) !important; color: var(--wg-text) !important; }
.wg-pill--active { background: var(--wg-pill-active-bg) !important; border-color: var(--wg-pill-active-bg) !important; color: var(--wg-pill-active-text) !important; }

/* Device toggle */
.wg-device-toggle {
    display: flex;
    background: var(--wg-bg-surface);
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}
.wg-device-btn {
    display: flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 500;
    color: var(--wg-text-hint);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.wg-device-btn:hover { color: var(--wg-text-secondary); }
.wg-device-btn--active {
    background: var(--wg-bg-hover);
    color: var(--wg-text) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.wg-device-btn svg { flex-shrink: 0; }
.wg-pills__sep {
    display: block;
    width: 1px;
    height: 22px;
    background: var(--wg-border);
    flex-shrink: 0;
    margin: 0 4px;
}
.wg-btn--dark { background: var(--wg-btn-primary-bg) !important; color: var(--wg-btn-primary-text) !important; }
.wg-btn--ghost { border-color: var(--wg-btn-ghost-border) !important; color: var(--wg-text) !important; }
.wg-btn--ghost:hover { background: var(--wg-bg-hover) !important; }
.wg-btn--sizes { border-color: var(--wg-btn-ghost-border) !important; color: var(--wg-text) !important; }
.wg-btn--sizes:hover { background: var(--wg-bg-hover) !important; }
.wg-card__img-wrap { background: var(--wg-skeleton) !important; }

/* Portrait card — phone wallpapers show in portrait aspect ratio */
.wg-card--portrait .wg-card__img-wrap { aspect-ratio: 9/16 !important; }

/* Device empty CTA */
.wg-device-empty {
    text-align: center; padding: 60px 20px;
    max-width: 400px; margin: 0 auto;
}
.wg-device-empty__icon { color: var(--wg-text-hint); margin-bottom: 12px; }
.wg-device-empty__text { font-size: 15px; color: var(--wg-text-secondary); margin-bottom: 20px; }
.wg-device-empty__btn {
    display: inline-block; padding: 10px 24px; border-radius: 10px;
    font-size: 14px; font-weight: 600; text-decoration: none;
    background: var(--wg-btn-primary-bg); color: var(--wg-btn-primary-text);
    transition: opacity 0.2s;
}
.wg-device-empty__btn:hover { opacity: 0.85; }

/* Explore by device section */
.wg-explore-device {
    max-width: var(--max-w); margin: 0 auto 40px; padding: 0 var(--pad-x);
}
.wg-device-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.wg-device-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--wg-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    background: var(--wg-bg-surface);
}
.wg-device-card:hover {
    border-color: var(--wg-text-hint);
    transform: translateY(-2px);
}
.wg-device-card__previews {
    display: flex; gap: 4px;
    padding: 16px 16px 0;
    height: 140px; overflow: hidden;
}
.wg-device-card__previews img {
    flex: 1; min-width: 0;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.7;
}
.wg-device-card__previews--portrait {
    height: 180px;
}
.wg-device-card__previews--portrait img {
    flex: 0 0 30%;
    aspect-ratio: 9/16;
}
.wg-device-card__info {
    padding: 16px 20px 20px;
}
.wg-device-card__icon {
    color: var(--wg-text-hint);
    margin-bottom: 8px;
}
.wg-device-card__title {
    font-size: 16px; font-weight: 600;
    color: var(--wg-text);
    margin-bottom: 4px;
}
.wg-device-card__desc {
    font-size: 13px; line-height: 1.5;
    color: var(--wg-text-secondary);
}
@media (max-width: 640px) {
    .wg-device-cards {
        grid-template-columns: 1fr;
    }
    .wg-device-card--phone { order: -1; }
}
.wg-card__title { color: var(--wg-text-secondary) !important; }
.wg-card__title:hover { color: var(--wg-text) !important; }
.wg-card__more { color: var(--wg-card-meta-dots) !important; }
.wg-card__more:hover { color: var(--wg-text-secondary) !important; }
.wg-single-card { border-color: var(--wg-border) !important; }
.wg-single-img-wrap { background: var(--wg-bg-card) !important; }

/* Portrait wallpaper layout — two columns on desktop only */
@media (min-width: 861px) {
    .wg-single-card--portrait {
        display: flex !important;
        align-items: stretch !important;
        border: 1px solid var(--wg-border) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        max-width: 920px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .wg-single-card--portrait .wg-single-img-wrap {
        width: 38% !important;
        flex-shrink: 0 !important;
        padding: 20px !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }
    .wg-single-card--portrait .wg-single-img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        aspect-ratio: 9/19.5 !important;
    }
    .wg-single-card--portrait .wg-single-details {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 24px 28px 20px 8px !important;
    }
    /* Info first, action bar last */
    .wg-single-card--portrait .wg-single-info {
        order: 1 !important;
        flex: 1 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .wg-single-card--portrait .wg-action-bar {
        order: 2 !important;
        border-top: 1px solid var(--wg-border) !important;
        border-bottom: none !important;
        margin-top: auto !important;
        padding-top: 14px !important;
    }
    /* Reorder info children: category > title > desc > author > tags > colors */
    .wg-single-card--portrait .wg-single-category-link { order: 1 !important; margin-bottom: 8px !important; }
    .wg-single-card--portrait .wg-single-title { order: 2 !important; font-size: 22px !important; font-weight: 500 !important; line-height: 1.25 !important; margin-bottom: 10px !important; }
    .wg-single-card--portrait .wg-single-desc { order: 3 !important; margin-bottom: 16px !important; }
    .wg-single-card--portrait .wg-single-collections { order: 4 !important; }
    .wg-single-card--portrait .wg-single-author { order: 5 !important; margin-bottom: 14px !important; }
    .wg-single-card--portrait .wg-single-tags { order: 6 !important; margin-bottom: 14px !important; }
    .wg-single-card--portrait .wg-color-strip { order: 7 !important; margin-bottom: 0 !important; }
    /* Description: full text, no truncation */
    .wg-single-card--portrait .wg-desc-ellipsis { display: none !important; }
    .wg-single-card--portrait .wg-desc-full { display: inline !important; }
    .wg-single-card--portrait .wg-desc-short { display: none !important; }
    .wg-single-card--portrait .wg-desc-toggle { display: none !important; }
}
/* Mobile: always stacked vertically, portrait class has no effect */
.wg-action-bar { border-bottom-color: var(--wg-border) !important; }
.wg-action-btn__inner { color: var(--wg-text-secondary) !important; }
.wg-action-btn__inner:hover { background: var(--wg-bg-hover) !important; color: var(--wg-text) !important; }
.wg-single-title { color: var(--wg-text) !important; }
.wg-single-author__name { color: var(--wg-text-secondary) !important; }
.wg-single-tags .wg-single-tag { background: var(--wg-tag-bg) !important; color: var(--wg-tag-text) !important; }
.wg-single-tags .wg-single-tag:hover { background: var(--wg-bg-hover) !important; color: var(--wg-text) !important; }
.wg-sizes-dropdown { background: var(--wg-bg-surface) !important; border-color: var(--wg-border) !important; }
.wg-size-item { color: var(--wg-text-secondary) !important; border-bottom-color: var(--wg-border) !important; }
.wg-size-item:hover { background: var(--wg-bg-hover) !important; }
.wg-size-item__res { color: var(--wg-text-hint) !important; }
.wg-more-menu { background: var(--wg-bg-surface) !important; border-color: var(--wg-border) !important; }
.wg-more-menu__item { color: var(--wg-text-secondary) !important; border-bottom-color: var(--wg-border) !important; }
.wg-more-menu__item:hover { background: var(--wg-bg-hover) !important; }
.wg-share-menu { background: var(--wg-bg-surface) !important; border-color: var(--wg-border) !important; }
.wg-share-menu .wg-more-menu__item { color: var(--wg-text-secondary) !important; }
.wg-report-modal__box { background: var(--wg-bg-surface) !important; }
.wg-report-modal__header { border-bottom-color: var(--wg-border) !important; }
.wg-report-modal__title { color: var(--wg-text) !important; }
.wg-report-modal__desc { color: var(--wg-text-secondary) !important; }
.wg-report-modal__footer { border-top-color: var(--wg-border) !important; }
.wg-report-select, .wg-report-textarea, .wg-report-input { background: var(--wg-bg-input) !important; border-color: var(--wg-border) !important; color: var(--wg-text) !important; }
.wg-report-label { color: var(--wg-text-secondary) !important; }
.wg-pagination .page-numbers { border-color: var(--wg-border) !important; color: var(--wg-text-secondary) !important; }
.wg-pagination .page-numbers:hover { border-color: var(--wg-text-hint) !important; color: var(--wg-text) !important; }
.wg-pagination .page-numbers.current { background: var(--wg-btn-primary-bg) !important; border-color: var(--wg-btn-primary-bg) !important; color: var(--wg-btn-primary-text) !important; }
.wg-footer { border-top-color: var(--wg-border) !important; }
.wg-footer__logo { color: var(--wg-text) !important; }
.wg-footer__links a { color: var(--wg-text-hint) !important; }
.wg-footer__links a:hover { color: var(--wg-text) !important; }
.wg-footer__copy { color: var(--wg-footer-copy) !important; }
.wg-mobile-nav { background: var(--wg-mobile-nav-bg) !important; border-top-color: var(--wg-border) !important; }
.wg-mobile-nav__item { color: var(--wg-text-hint) !important; }
.wg-mobile-nav__item:hover, .wg-mobile-nav__item.active { color: var(--wg-text) !important; }
.wg-mobile-nav__item--upload { background: var(--wg-btn-primary-bg) !important; color: var(--wg-btn-primary-text) !important; }
.wg-empty { color: var(--wg-text-hint) !important; }
.wg-404__code { color: var(--wg-text) !important; }
.wg-404__msg { color: var(--wg-text-secondary) !important; }
.wg-related__title { color: var(--wg-text) !important; }
.wg-cat-header__title { color: var(--wg-text) !important; }
.wg-cat-header__desc { color: var(--wg-text-secondary) !important; }
.wg-collection-hero { background: var(--wg-bg-card) !important; }
.wg-explore-title { color: var(--wg-text) !important; }
.wg-explore-sub { color: var(--wg-text-hint) !important; }
.wg-explore-section__title { color: var(--wg-text) !important; }
.wg-explore-cat__img-wrap { background: var(--wg-bg-card) !important; }
.wg-explore-col__img-wrap { background: var(--wg-bg-card) !important; }
.wg-explore-section__desc { color: var(--wg-text-hint) !important; font-size: 13px; margin: -2px 0 14px; }

/* ── Color spectrum feature on explore ── */
.wg-picker-row { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 8px 0; border-radius: 12px; transition: background 0.6s; }
.wg-spectrum-wrap { flex: 1; position: relative; height: 48px; cursor: pointer; touch-action: none; border-radius: 10px; -webkit-user-select: none; user-select: none; }
.wg-spectrum-bar { width: 100%; height: 100%; border-radius: 10px; background: linear-gradient(90deg,#c0392b 0%,#d35400 12%,#d4ac0d 24%,#27ae60 36%,#16a085 48%,#2980b9 60%,#8e44ad 72%,#c44569 84%,#e84393 100%); position: relative; overflow: hidden; }
.wg-spectrum-hover { position: absolute; inset: 0; display: flex; }
.wg-spectrum-seg { flex: 1; transition: background 0.1s; }
.wg-spectrum-seg:hover { background: rgba(255,255,255,0.12); }
.wg-spectrum-seg.on { background: rgba(255,255,255,0.18); }
.wg-spectrum-pin { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%) scale(1); pointer-events: none; z-index: 10; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, left 0.05s linear; box-shadow: 0 0 8px rgba(255,255,255,0.3), 0 2px 6px rgba(0,0,0,0.5); }
.wg-spectrum-pin.grab { transform: translate(-50%,-50%) scale(1.7); box-shadow: 0 0 24px rgba(255,255,255,0.5), 0 4px 14px rgba(0,0,0,0.6); }
.wg-spectrum-pin.drop { transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s, left 0.05s linear; }
.wg-spectrum-pin::after { content: ''; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,0.2); transform: translate(-50%,-50%); }
.wg-spectrum-sides { display: flex; flex-direction: row; gap: 4px; }
.wg-spectrum-sb { width: 22px; height: 48px; border-radius: 8px; cursor: pointer; transition: all 0.15s; border: 1.5px solid transparent; }
.wg-spectrum-sb:hover { transform: scale(1.08); }
.wg-spectrum-sb.on { transform: scale(1.1); }
.wg-sb-white { background: #e0e0e0; border-color: #bbb; }
.wg-sb-white:hover { border-color: #ddd; }
.wg-sb-white.on { border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.3); }
.wg-sb-dark { background: #0e0e16; border-color: #2a2a2a; }
.wg-sb-dark:hover { border-color: #444; }
.wg-sb-dark.on { border-color: #666; box-shadow: 0 0 10px rgba(255,255,255,0.12); }
.wg-color-quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 4px; }
.wg-color-qcard { border-radius: 8px; height: 56px; display: flex; align-items: flex-end; padding: 8px 10px; cursor: pointer; transition: transform 0.15s; overflow: hidden; }
.wg-color-qcard:hover { transform: scale(1.02); }
.wg-color-qcard span { font-size: 11px; color: #eee; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.wg-color-results { margin-top: 18px; }
.wg-color-results__header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wg-color-results__dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid transparent; transition: background 0.3s; }
.wg-color-results__name { font-size: 16px; font-weight: 500; color: #ddd; }
.wg-color-results__count { font-size: 12px; color: #555; margin-left: auto; }
.wg-color-loadmore { display: block; width: 100%; text-align: center; padding: 10px; background: transparent; border: 1px solid #333; border-radius: 8px; color: #eee; font-size: 13px; cursor: pointer; margin-top: 12px; transition: all 0.15s; font-family: inherit; }
.wg-color-loadmore:hover { background: #1a1a1a; border-color: #555; }
.wg-color-loadmore:active { transform: scale(0.98); }
.wg-color-seeall { display: block; text-align: center; padding: 8px; color: #555 !important; font-size: 12px; text-decoration: none; margin-top: 6px; }
.wg-color-seeall:hover { color: #888 !important; }
@media (max-width:600px) {
    .wg-color-quick { grid-template-columns: repeat(2,1fr); }
}
.wg-page-main { color: var(--wg-text) !important; }
.wg-page-wrap h1, .wg-page-wrap h2, .wg-page-wrap h3 { color: var(--wg-text) !important; }
.wg-page-wrap p, .wg-page-wrap li { color: var(--wg-text-secondary) !important; }
.wg-page-wrap a { color: var(--wg-text) !important; }
.wg-page-wrap .tml { background: var(--wg-bg-surface) !important; border-color: var(--wg-border) !important; }
.wg-page-wrap .tml::before { color: var(--wg-text) !important; }
.wg-page-wrap .tml-label { color: var(--wg-text-secondary) !important; }
.wg-page-wrap .tml-field { background: var(--wg-bg-input) !important; border-color: var(--wg-border) !important; color: var(--wg-text) !important; }
.wg-page-wrap .tml-button { background: var(--wg-btn-primary-bg) !important; color: var(--wg-btn-primary-text) !important; }
.wg-page-wrap .tml-links a { color: var(--wg-text-secondary) !important; }
.wg-page-wrap .tml-links { border-top-color: var(--wg-border) !important; }
.wg-page-wrap .tml-rememberme-wrap { color: var(--wg-text-secondary) !important; }
.wg-page-wrap table td { border-color: var(--wg-border) !important; color: var(--wg-text-secondary) !important; }
.wg-page-wrap table td:first-child { background: var(--wg-bg-surface) !important; color: var(--wg-text-secondary) !important; }
.wg-blog-card { border-color: var(--wg-border) !important; background: var(--wg-bg-surface) !important; }
.wg-blog-card:hover { border-color: var(--wg-text-hint) !important; }
.wg-blog-card__img-wrap { background: var(--wg-bg-card) !important; }
.wg-blog-card__cat { color: var(--wg-text-hint) !important; }
.wg-blog-card__title { color: var(--wg-text) !important; }
.wg-blog-card__excerpt { color: var(--wg-text-hint) !important; }
.wg-blog-card__name { color: var(--wg-text-secondary) !important; }
.wg-blog-title { color: var(--wg-text) !important; }
.wg-blog-sub { color: var(--wg-text-hint) !important; }
.wg-profile-header { border-bottom-color: var(--wg-border) !important; }
.wg-profile-name { color: var(--wg-text) !important; }
.wg-profile-meta { color: var(--wg-text-secondary) !important; }
.wg-profile-tabs { border-bottom-color: var(--wg-border) !important; }
.wg-profile-tab { color: var(--wg-text-hint) !important; }
.wg-profile-tab:hover, .wg-profile-tab--active { color: var(--wg-text) !important; }
.wg-profile-tab--active { border-bottom-color: var(--wg-text) !important; }
.wg-profile-footer { border-top-color: var(--wg-border) !important; }
.wg-post-comments { border-top-color: var(--wg-border) !important; }
.wg-post-comments .comment { border-bottom-color: var(--wg-border) !important; }
.wg-post-comments .comment-content p { color: var(--wg-text-secondary) !important; }
.wg-post-comments .comment-form textarea,
.wg-post-comments .comment-form input[type="text"],
.wg-post-comments .comment-form input[type="email"],
.wg-post-comments .comment-form input[type="url"] { background: var(--wg-bg-input) !important; border-color: var(--wg-border) !important; color: var(--wg-text) !important; }
.wg-post-comments .form-submit .submit { background: var(--wg-btn-primary-bg) !important; color: var(--wg-btn-primary-text) !important; }
.wg-post-meta__author { color: var(--wg-text-secondary) !important; }
.wg-submit-title { color: var(--wg-text) !important; }
.wg-submit-sub { color: var(--wg-text-secondary) !important; }
.wg-submit-form { background: var(--wg-bg-surface) !important; border-color: var(--wg-border) !important; }

/* ── Slider overrides (cache-safe) ── */
.wg-slide__title { text-transform: none !important; font-size: 22px !important; font-weight: 600 !important; }

/* ── Category rows (curated homepage) ── */
.wg-cat-row { margin-bottom: 32px; }
.wg-cat-row__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wg-cat-row__text { flex: 1; min-width: 0; }
.wg-cat-row__title { font-size: 17px; font-weight: 600; color: var(--wg-text); margin: 0; }
.wg-cat-row__sub { font-size: 12px; color: #555; margin: 2px 0 0; }
.wg-cat-row__count { font-size: 12px; color: #555; }
.wg-cat-row__link { flex-shrink: 0; font-size: 12px; color: #555; text-decoration: none; transition: color 0.15s; }
.wg-cat-row__link:hover { color: #7eb8f7; }
@media (max-width: 480px) {
    .wg-cat-row__title { font-size: 15px; }
    .wg-cat-row__sub { display: none; }
    .wg-cat-row__head { margin-bottom: 10px; }
}

.wg-latest-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; margin-top: 10px; }
.wg-latest-head h2 { font-size: 17px; font-weight: 600; color: var(--wg-text); margin: 0; }
.wg-latest-head a { margin-left: auto; font-size: 12px; color: #555; text-decoration: none; }
.wg-latest-head a:hover { color: #7eb8f7; }
.wg-slide__desc { text-transform: none !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: normal !important; opacity: 0.65 !important; }
.wg-slide__info { max-width: 480px !important; }
.wg-slide__overlay { background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%) !important; }
.wg-slide__pill { display: inline-block; font-size: 10px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); margin-bottom: 8px; letter-spacing: 0.02em; }
.wg-slider .splide__pagination { flex-direction: row !important; bottom: 24px !important; right: 28px !important; left: auto !important; top: auto !important; transform: none !important; gap: 5px !important; }
.wg-slider .splide__pagination__page { width: 6px !important; height: 6px !important; border-radius: 50% !important; background: rgba(255,255,255,0.3) !important; }
.wg-slider .splide__pagination__page.is-active { width: 20px !important; border-radius: 3px !important; background: #fff !important; }
@media (max-width: 768px) {
    .wg-slide { aspect-ratio: 2/1 !important; }
    .wg-slide__overlay { background: rgba(255,255,255,0.06), linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%) !important; }
    .wg-slide__title { font-size: 13px !important; }
    .wg-slide__desc { display: none !important; }
    .wg-slide__pill { font-size: 9px !important; padding: 2px 8px !important; margin-bottom: 5px !important; }
    .wg-slide__info { bottom: 12px !important; left: 14px !important; max-width: 70% !important; }
    .wg-slider .splide__pagination { bottom: 12px !important; right: 14px !important; gap: 4px !important; }
    .wg-slider .splide__pagination__page { width: 5px !important; height: 5px !important; }
    .wg-slider .splide__pagination__page.is-active { width: 16px !important; height: 5px !important; }
}

/* ── Wallpaper description expand/collapse ── */
.wg-single-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin: 8px 0 14px;
    max-width: 600px;
}
.wg-desc-full { display: none; }
.wg-desc-full:not([hidden]) { display: inline; }
.wg-desc-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #7eb8f7 !important;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wg-desc-toggle:hover { color: #a8d0fa !important; }

/* ── Category header ── */
.wg-cat-header { padding: 0 0 20px; }
.wg-cat-header__inner { }
.wg-cat-header__title { font-size: 22px; font-weight: 700; color: #111; margin: 0 0 6px; }
.wg-cat-header__desc { font-size: 14px; color: #666; margin: 0; line-height: 1.6; max-width: 560px; }

/* ── Single page tags ── */
.wg-single-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.wg-single-tag { font-size:12px; color:#555; background:#f2f2f2; border-radius:999px; padding:4px 12px; text-decoration:none; transition:background .15s; }
.wg-single-tag:hover { background:#e5e5e5; color:#111; }

/* ── Color bar strip ── */
.wg-color-strip { margin: 14px 0 12px; }
.wg-color-strip__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.wg-color-strip__label { font-size: 12px; color: #666; }
.wg-color-strip__cta { font-size: 11px; color: #7eb8f7 !important; text-decoration: none; }
.wg-color-strip__cta:hover { text-decoration: underline; }
.wg-color-strip__bar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; gap: 2px; }
.wg-color-strip__seg { transition: opacity 0.15s; cursor: pointer; min-width: 8px; }
.wg-color-strip__seg:first-child { border-radius: 6px 0 0 6px; }
.wg-color-strip__seg:last-child { border-radius: 0 6px 6px 0; }
.wg-color-strip__seg:only-child { border-radius: 6px; }
.wg-color-strip__seg:hover { opacity: 0.75; }

/* ── Hide all public counters ── */
.wp_ulike_counter_up,
.wp-ulike-counter,
.wg-like-count,
.wg-dl-count,
.wg-view-count,
.post-views { display: none !important; }

/* ── Card image skeleton (only images fade in, titles always visible) ── */
.wg-card__img-wrap img { opacity: 0; transition: opacity 0.4s ease; }
.wg-card.wg-loaded .wg-card__img-wrap img { opacity: 1; }

/* ── CTA bar: clean, no fake community ── */
.wg-cta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--wg-bg-surface, #181818);
    border: 1px solid var(--wg-border, #2a2a2a);
    margin: 8px 0 28px;
}
.wg-cta-bar__text { flex: 1; }
.wg-cta-bar__title { display: block; font-size: 14px; font-weight: 500; color: var(--wg-text, #eee); }
.wg-cta-bar__sub { display: block; font-size: 12px; color: #555; margin-top: 2px; }
.wg-cta-bar__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 999px;
    background: #2AABEE; color: #fff;
    font-size: 13px; font-weight: 500;
    text-decoration: none; white-space: nowrap;
    transition: opacity 0.15s; font-family: inherit;
}
.wg-cta-bar__btn:hover { opacity: 0.85; }
@media (max-width: 600px) {
    .wg-cta-bar { flex-direction: column; text-align: center; gap: 12px; }
}

/* ── Blog post meta ── */
.wg-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 24px;
    font-size: 13px;
    color: var(--wg-text-hint);
}
.wg-post-meta__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.wg-post-meta__author { font-weight: 500; color: var(--wg-text-secondary); }
.wg-post-meta__sep { color: var(--wg-border); }
.wg-post-meta__cat { color: var(--wg-text-hint); text-decoration: none; }
.wg-post-meta__cat:hover { color: var(--wg-text); }

/* ── Blog archive ── */
.wg-blog-main { padding-top: 20px; }
.wg-blog-header { margin-bottom: 24px; }
.wg-blog-title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--wg-text); margin-bottom: 4px; }
.wg-blog-sub { font-size: 13px; color: var(--wg-text-hint); }
.wg-blog-grid { display: flex; flex-direction: column; gap: 16px; }
.wg-blog-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--wg-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--wg-bg-surface);
    transition: border-color 0.15s;
}
.wg-blog-card:hover { border-color: var(--wg-text-hint); }
.wg-blog-card__img-wrap { overflow: hidden; background: var(--wg-bg-card); }
.wg-blog-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.wg-blog-card:hover .wg-blog-card__img { transform: scale(1.03); }
.wg-blog-card__body { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.wg-blog-card__cat { font-size: 10px; font-weight: 600; color: var(--wg-text-hint); letter-spacing: 0.04em; text-transform: uppercase; }
.wg-blog-card__title { font-size: 16px; font-weight: 600; color: var(--wg-text); margin: 5px 0 8px; line-height: 1.35; letter-spacing: -0.01em; }
.wg-blog-card__excerpt { font-size: 13px; color: var(--wg-text-secondary); line-height: 1.55; margin-bottom: 12px; }
.wg-blog-card__author { display: flex; align-items: center; gap: 6px; }
.wg-blog-card__avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.wg-blog-card__name { font-size: 11px; color: var(--wg-text-hint); font-weight: 500; }
@media (max-width: 768px) {
    .wg-blog-card { grid-template-columns: 1fr; }
    .wg-blog-card__img-wrap { aspect-ratio: 16/10; }
    .wg-blog-title { font-size: 20px; }
}

/* ── Blog post images ── */
.wg-page-wrap .entry-content img {
    border-radius: 10px;
    margin: 8px 0;
}
.wg-page-wrap .entry-content a { text-decoration: none; }

/* ── Blog comments ── */
.wg-post-comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wg-border); }
.wg-post-comments .comments-title { font-size: 16px; font-weight: 600; color: var(--wg-text); margin-bottom: 16px; }
.wg-post-comments .comment-list { list-style: none; padding: 0; }
.wg-post-comments .comment { padding: 14px 0; border-bottom: 1px solid var(--wg-border); }
.wg-post-comments .comment-author { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wg-post-comments .comment-author img { border-radius: 50%; width: 28px; height: 28px; }
.wg-post-comments .comment-author .fn { font-size: 13px; font-weight: 500; color: var(--wg-text); }
.wg-post-comments .comment-content p { font-size: 14px; color: var(--wg-text-secondary); line-height: 1.6; }
.wg-post-comments .comment-metadata { font-size: 11px; color: var(--wg-text-hint); margin-bottom: 4px; }
.wg-post-comments .comment-respond { margin-top: 24px; }
.wg-post-comments .comment-reply-title { font-size: 15px; font-weight: 600; color: var(--wg-text); margin-bottom: 12px; }
.wg-post-comments .comment-form-comment textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--wg-border); border-radius: 8px;
    font-size: 14px; font-family: inherit; background: var(--wg-bg-input); color: var(--wg-text); resize: vertical; min-height: 80px;
}
.wg-post-comments .comment-form-comment textarea:focus { border-color: var(--wg-text-hint); background: var(--wg-bg-surface); outline: none; }
.wg-post-comments .form-submit .submit {
    background: var(--wg-btn-primary-bg); color: var(--wg-btn-primary-text); border: none; padding: 8px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; margin-top: 8px;
}
.wg-post-comments .form-submit .submit:hover { opacity: 0.85; }
.wg-post-comments .comment-form input[type="text"],
.wg-post-comments .comment-form input[type="email"],
.wg-post-comments .comment-form input[type="url"] {
    width: 100%; padding: 8px 12px; border: 1px solid var(--wg-border); border-radius: 8px;
    font-size: 14px; font-family: inherit; background: var(--wg-bg-input); color: var(--wg-text); margin-bottom: 8px;
}
.wg-post-comments .comment-form input:focus { border-color: var(--wg-text-hint); background: var(--wg-bg-surface); outline: none; }
.wg-post-comments .comment-form label { font-size: 12px; font-weight: 500; color: var(--wg-text-secondary); display: block; margin-bottom: 4px; }

/* ── Hero Feature Card ── */
.wg-hero-card {
    max-width: var(--max-w); margin: 24px auto 40px; padding: 0 var(--pad-x);
}
.wg-hero-card__inner {
    background: linear-gradient(135deg, rgba(20,20,22,0.95), rgba(12,12,14,0.98));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    min-height: 400px;
    position: relative;
}
.wg-hero-card__inner::before {
    content: '';
    position: absolute; top: -30%; right: -15%;
    width: 50%; height: 130%;
    background: radial-gradient(ellipse, rgba(100,70,180,0.04) 0%, rgba(50,100,200,0.02) 40%, transparent 70%);
    pointer-events: none;
}
.wg-hero-card__left {
    flex: 1; padding: 48px 44px;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; z-index: 1;
}
.wg-hero-card__eyebrow {
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--wg-text-hint); margin-bottom: 16px; font-weight: 500;
}
.wg-hero-card__headline {
    font-size: 38px; font-weight: 800; line-height: 1.1;
    letter-spacing: -0.02em; margin-bottom: 16px; color: var(--wg-text);
}
.wg-hero-card__headline span {
    display: block; color: var(--wg-text-hint);
}
.wg-hero-card__sub {
    font-size: 15px; line-height: 1.65; color: var(--wg-text-hint);
    margin-bottom: 28px; max-width: 380px;
}
.wg-hero-card__actions { display: flex; align-items: center; gap: 20px; }
.wg-hero-card__btn {
    display: inline-block; padding: 12px 28px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    background: linear-gradient(135deg, #7c5bf5, #5b8cf5);
    color: #fff; text-decoration: none;
    box-shadow: 0 4px 16px rgba(100,80,220,0.2);
    transition: all 0.25s;
}
.wg-hero-card__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(100,80,220,0.3);
}
.wg-hero-card__link {
    font-size: 13px; color: var(--wg-text-hint); text-decoration: none;
    display: flex; align-items: center; gap: 5px; transition: color 0.2s;
}
.wg-hero-card__link:hover { color: var(--wg-text-secondary); }
.wg-hero-card__link svg { transition: transform 0.2s; }
.wg-hero-card__link:hover svg { transform: translateX(3px); }
.wg-hero-card__right {
    width: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1; padding: 32px;
    background: transparent;
}
.wg-hero-card__img {
    width: 100%; height: auto;
    border-radius: 0; box-shadow: none; display: block;
}
.wg-hero-card__placeholder {
    width: 100%; min-height: 320px; border-radius: 12px;
    background: rgba(20,20,25,0.6); border: 1px dashed rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--wg-text-hint); font-size: 13px;
}
@media (max-width: 860px) {
    .wg-hero-card__inner { flex-direction: column-reverse; min-height: auto; }
    .wg-hero-card__left { padding: 24px 24px 28px; }
    .wg-hero-card__headline { font-size: 26px; }
    .wg-hero-card__right { width: 100% !important; padding: 20px 20px 0 !important; }
    .wg-hero-card__img { border-radius: 12px !important; }
}

/* ── Collection Grid ── */
.wg-coll-grid-section {
    max-width: var(--max-w); margin: 0 auto 40px; padding: 0 var(--pad-x);
}
.wg-coll-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.wg-coll-card {
    position: relative; border-radius: 12px; overflow: hidden;
    aspect-ratio: 16/10;
    text-decoration: none; display: block;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wg-coll-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.wg-coll-card__img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.6; transition: opacity 0.3s;
}
.wg-coll-card:hover .wg-coll-card__img { opacity: 0.8; }
.wg-coll-card__no-img {
    background: var(--wg-bg-surface);
}
.wg-coll-card__overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex; justify-content: space-between; align-items: flex-end;
}
.wg-coll-card__name {
    font-size: 12px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.wg-coll-card__count {
    font-size: 11px; color: rgba(255,255,255,0.4);
}

/* Phone collection: horizontal scroll with portrait cards */
.wg-coll-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.wg-coll-scroll::-webkit-scrollbar { display: none; }
.wg-coll-scroll .wg-coll-card--portrait {
    flex: 0 0 160px;
    aspect-ratio: 9/16;
    border-radius: 14px;
}
.wg-coll-card--portrait .wg-coll-card__img {
    aspect-ratio: 9/16;
    object-fit: cover;
}

@media (max-width: 768px) {
    .wg-coll-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .wg-coll-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .wg-coll-card__name { font-size: 10px; }
}
