:root {
    --bg:          #0f0f12;
    --surface:     #17171c;
    --surface-2:   #1f1f26;
    --line:        #2b2b34;
    --text:        #e9e9ef;
    --muted:       #94949f;
    --accent:      #ff2e63;
    --accent-deep: #9e0a2f;
    --gold:        #ffc94a;

    --max:  1400px;
    --card: 165px;
    --r:    12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

ul, li { list-style: none; margin: 0; padding: 0; }

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

img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.content { width: 100%; max-width: var(--max); margin: 0 auto; }

#contents { scroll-margin-top: 72px; }

p.lead, p.empty {
    margin: 12px 6px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--muted);
    font-size: 15px;
}


.top-menu {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 15, 18, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.top-menu > .content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
}

.logo a {
    display: inline-block;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.logo a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 5px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}

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

.top-nav { flex: 1 1 auto; min-width: 0; }

.top-bar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.top-bar::-webkit-scrollbar { display: none; }

.top-bar a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.top-bar a:hover { color: var(--text); background: var(--surface-2); }
.top-bar li.is-current a { color: #fff; background: var(--accent-deep); }

.search { flex: 0 0 auto; }
.search form { position: relative; display: flex; align-items: center; }

.search input {
    width: 160px;
    height: 38px;
    padding: 0 38px 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: width .25s ease, border-color .2s;
}

.search input:focus { width: 240px; border-color: var(--accent); }

.butt {
    position: absolute;
    right: 4px;
    width: 30px;
    height: 30px;
    border: 0;
    background: url(/img/shover.svg) center / 18px no-repeat;
    cursor: pointer;
    opacity: .7;
}

.butt:hover { opacity: 1; }

.h1-bar {
    position: relative;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 6px 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.h1-bar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(19px, 2.4vw, 26px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.h1-bar h2 { margin: 0; font-size: 18px; font-weight: 700; }

.h1-bar__count {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.categoryes { margin: 12px 6px; }

.categoryes ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.categoryes li {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    overflow: hidden;
}

.categoryes li a {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.categoryes li a:hover { background: var(--accent-deep); color: #fff; }

.categoryes li.is-current {
    padding: 8px 14px;
    border-color: var(--accent);
    background: var(--accent);
    color: #14141a;
    font-size: 14px;
    font-weight: 700;
}

.sortnav ul { justify-content: flex-end; }

.pager ul { justify-content: center; margin-top: 16px; }
.pager__gap { border: 0; background: none; color: var(--muted); padding: 8px 2px; }
.pager__step { white-space: nowrap; }

.cats {
    margin: 14px 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background:
        radial-gradient(120% 100% at 0 0, rgba(255, 46, 99, .10), transparent 60%),
        var(--surface);
}

.cats__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cats__head h2 {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cats__all { font-size: 13px; font-weight: 600; }

.cats__list { display: flex; flex-wrap: wrap; gap: 8px; }

.cats__list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .18s, background .18s, color .18s;
}

.cats__list a::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.cats__list a:hover {
    border-color: var(--accent);
    background: var(--accent-deep);
    color: #fff;
}

.cats__list a:hover::before { transform: scaleX(1); }

.cats__cnt {
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.cats__list a:hover .cats__cnt { color: #fff; background: rgba(0, 0, 0, .25); }

.plinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 12px 6px;
    padding: 11px 16px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r) var(--r) 0;
    background: linear-gradient(90deg, rgba(255, 46, 99, .13), rgba(255, 46, 99, 0) 72%), var(--surface);
}

.plinks__title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.plinks__list { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.plinks__list a {
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px dashed rgba(255, 201, 74, .45);
}

.plinks__list a:hover { color: #fff; border-bottom-color: #fff; }

.article {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card), 1fr));
    gap: 8px;
    margin: 10px 6px;
}

.erotic { min-width: 0; }

.thumbs {
    position: relative;
    border-radius: var(--r);
    background: var(--surface-2);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.thumbs a { display: block; }

.thumbs img {
    width: 100%;
    height: auto;
    aspect-ratio: 300 / 435;
    object-fit: cover;
    background: var(--surface-2);
}

.thumbs:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .9), 0 0 0 1px var(--accent) inset;
}

.erotic-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 10px 9px;
    background: linear-gradient(to top, rgba(8, 8, 11, .94), rgba(8, 8, 11, .72) 45%, transparent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta { margin: 14px 6px; }

.meta > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.meta__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.meta__text {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.meta__text b { color: var(--text); }

.meta__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.meta__nav a {
    display: block;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.meta__nav a:hover { background: var(--accent-deep); color: #fff; }

.tag {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.tag:hover { background: var(--accent-deep); border-color: var(--accent); color: #fff; }
.tag--plain { color: var(--muted); }

.like {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #14141a;
    font: 700 15px/1 inherit;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.like:hover:not(:disabled) { background: var(--gold); }

.like:disabled, .like.is-voted {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
}

.like__icon {
    width: 18px;
    height: 18px;
    background: url(/img/likes.svg) center / contain no-repeat;
}

.like__num { font-variant-numeric: tabular-nums; }

.footer {
    margin-top: 26px;
    padding: 18px 0 28px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.foot { max-width: var(--max); margin: 0 auto; padding: 0 12px; }

.foot__cats { margin-bottom: 12px; color: var(--muted); font-size: 13px; line-height: 2.1; }
.foot__cats a { color: var(--muted); font-weight: 500; }
.foot__cats a:hover { color: var(--accent); }
.foot__cats i { color: var(--line); font-style: normal; }

.foot__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

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

@media (max-width: 640px) {
    .top-menu > .content { flex-wrap: wrap; }
    .logo   { order: 1; }
    .search { order: 2; margin-left: auto; }
    .top-nav { order: 3; flex-basis: 100%; }

    .search input { width: 130px; }
    .search input:focus { width: 190px; }

    .sortnav ul { justify-content: flex-start; }

    .cats__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .cats__list::-webkit-scrollbar { display: none; }
    .cats__list li { scroll-snap-align: start; flex: 0 0 auto; }
    .cats__list a { white-space: nowrap; }
}

@media (min-width: 640px)  { :root { --card: 200px; } }
@media (min-width: 1020px) { :root { --card: 230px; } }
@media (min-width: 1278px) { :root { --card: 250px; } }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    .thumbs:hover { transform: none; }
}
