/* ==========================================================================
   Sexcurator — собственное оформление сайта KVS (замена стоковых all-responsive-*.css).
   Без внешних шрифтов и ресурсов. Структура: переменные → база → шапка/меню → раскладка → карточки →
   пагинация → страница видео → формы/таблицы/сообщения → подвал → адаптив.
   ========================================================================== */
:root {
  --bg: #0e0f12;
  --bg2: #15171c;
  --bg3: #1d2027;
  --bg4: #262a33;
  --line: #2b2f39;
  --text: #e8eaf0;
  --dim: #9aa1b2;
  --faint: #6c7384;
  --accent: #5b8cff;
  --accent2: #3a6af0;
  --good: #3ecf8e;
  --bad: #ff5a6e;
  --warn: #f7b733;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 14px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: .1px;
}
a { color: var(--text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
img { max-width: 100%; border: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .1px; }
p { margin: 0 0 10px; }
.hidden { display: none; }
.sc-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* ---------- шапка ---------- */
.sc-top { background: #08090b; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.sc-top .sc-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; flex-wrap: wrap; }
.sc-top ul { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; }
.sc-top a { color: var(--dim); }
.sc-top a:hover { color: #fff; }
.sc-top .disabled { opacity: .5; pointer-events: none; }
.sc-header { background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
.sc-header-row { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.sc-logo { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-weight: 700; font-size: 20px; letter-spacing: .3px; }
.sc-logo img { max-height: 40px; width: auto; display: block; }
.sc-search { flex: 1 1 auto; max-width: 620px; margin-left: auto; position: relative; }
.sc-search form { margin: 0; }
.sc-search .search-text { position: relative; }
.sc-search input[type=text] {
  width: 100%; height: 42px; padding: 0 48px 0 18px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--bg3); color: var(--text); font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.sc-search input[type=text]::placeholder { color: var(--faint); }
.sc-search input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, .22); }
.sc-search .search-button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: transparent; overflow: hidden; cursor: pointer; font-size: 0;
}
.sc-search .search-button::before { content: ''; position: absolute; left: 8px; top: 7px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; }
.sc-search .search-button::after { content: ''; position: absolute; left: 19px; top: 19px; width: 7px; height: 2px; background: #fff; transform: rotate(45deg); transform-origin: left center; }
.sc-nav { background: var(--bg2); border-bottom: 1px solid var(--line); }
.sc-nav ul { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 0; }
.sc-nav li > a, .sc-nav li > span { display: block; padding: 8px 16px; border-radius: 20px; color: var(--dim); font-weight: 500; transition: background .15s, color .15s; cursor: pointer; }
.sc-nav li > a:hover { background: var(--bg3); color: #fff; }
.sc-nav li.selected > a { background: linear-gradient(to bottom, var(--accent), var(--accent2)); color: #fff; }
.sc-nav li.highlight > a { color: var(--warn); }
.sc-nav li.drop { position: relative; }
.sc-nav li.drop ul { display: none; position: absolute; left: 0; top: 100%; z-index: 60; min-width: 180px; padding: 6px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm); flex-direction: column; box-shadow: var(--shadow); }
.sc-nav li.drop:hover ul { display: flex; }
.sc-nav-toggle { display: none; background: var(--bg3); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer; }

/* ---------- раскладка страницы ---------- */
.sc-container { padding-top: 22px; padding-bottom: 40px; min-height: 60vh; }
.sc-page { display: flex; flex-direction: column; gap: 22px; }
.sc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.sc-layout > .sc-main:only-child { grid-column: 1 / -1; }
.sc-aside { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 18px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.sc-aside .headline { margin-bottom: 8px; }
.sc-aside .headline h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.sc-aside .headline a { color: inherit; }
.sc-aside ul.list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--text); }
.sc-aside ul.list a:hover { background: var(--bg3); }
.sc-aside ul.list .rating { color: var(--dim); font-size: 12px; background: var(--bg3); padding: 1px 8px; border-radius: 10px; }
.sc-aside .alphabet { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-aside .alphabet a { padding: 3px 8px; border-radius: 6px; background: var(--bg3); color: var(--dim); cursor: pointer; }
.sc-aside .alphabet a:hover { background: var(--accent); color: #fff; }
.sc-aside .filter label.group { display: block; margin: 8px 0 4px; color: var(--dim); text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; }
.sc-aside .filter li { padding: 3px 0; }
.sc-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sc-seo { color: var(--dim); font-size: 13px; max-width: 900px; padding: 4px 2px; }

/* ---------- заголовок блока и сортировка ---------- */
.headline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.headline h1, .headline h2, .headline h3 { font-size: 20px; color: #fff; margin-right: auto; }
.headline h2 a { color: inherit; }
.headline .more { color: var(--accent); font-size: 13px; }
.sort { position: relative; }
.sort > strong { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 18px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 13px; cursor: pointer; }
.sort > strong::after { content: ''; width: 6px; height: 6px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-2px); }
.sort .icon { display: none; }
.sort ul { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; padding: 6px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.sort:hover ul { display: block; }
.sort ul a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); cursor: pointer; }
.sort ul a:hover { background: var(--bg4); color: #fff; }
.list-sort { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.list-sort li > span, .list-sort li > a { display: block; padding: 7px 14px; border-radius: 18px; background: var(--bg3); border: 1px solid var(--line); color: var(--dim); cursor: pointer; }
.list-sort li > span { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- сетки и карточки ---------- */
.box { background: transparent; }
.margin-fix { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
.list-models .margin-fix, .list-playlists .margin-fix { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.list-categories .margin-fix, .list-sponsors .margin-fix, .list-channels .margin-fix, .list-albums .margin-fix { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
.list-videos-screenshots .margin-fix { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.item { position: relative; display: block; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.item:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.item > a, a.item { display: block; color: inherit; }
.item .img { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.list-models .item .img, .list-albums .item .img { aspect-ratio: 3 / 4; }
.item .img .thumb, .item .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, filter .2s; }
.item:hover .img img { transform: scale(1.05); }
.item .no-thumb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12.5px; }
.item .title { display: block; padding: 10px 12px 4px; font-weight: 500; font-size: 14px; line-height: 1.35; color: var(--text); min-height: 2.9em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 12px 8px; color: var(--dim); font-size: 12.5px; }
.item .wrap:last-child { padding-bottom: 12px; }
.item .duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .75); color: #fff; padding: 1px 7px; border-radius: 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.sc-vid .wrap .duration { position: static; background: none; padding: 0; color: var(--dim); }
.sc-badge { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.sc-badge span, .is-hd { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px; letter-spacing: .04em; }
.is-hd { position: absolute; left: 8px; top: 8px; }
.line-private, .line-premium, .line-disabled, .line-error, .line-processing { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 10px; font-size: 11.5px; font-weight: 600; background: rgba(0, 0, 0, .7); }
.line-private { color: var(--warn); } .line-premium { color: var(--good); } .line-error { color: var(--bad); }
.rating { font-weight: 600; font-variant-numeric: tabular-nums; }
.rating.positive { color: var(--good); }
.rating.negative { color: var(--bad); }
.item .added em, .item .views { font-style: normal; }
.sc-vid .views::before { content: '\25B6\00a0'; font-size: 9px; color: var(--faint); }
.empty-content { padding: 40px 12px; text-align: center; color: var(--dim); grid-column: 1 / -1; background: var(--bg2); border: 1px dashed var(--line); border-radius: var(--r); }
.page-error { font-size: 22px; font-weight: 600; text-align: center; padding: 40px 12px 10px; }
.item .videos { color: var(--dim); }
.sc-ent .img { aspect-ratio: 16 / 10; }

/* облако тегов, списки тегов */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }
.tags-cloud a, .list-tags a { display: inline-block; padding: 4px 12px; border-radius: 16px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); line-height: 1.4; }
.tags-cloud a:hover, .list-tags a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tags-cloud a.all { color: var(--accent); }
.list-tags .margin-fix { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- пагинация ---------- */
.pagination { margin: 22px 0 6px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination li a, .pagination li span { display: block; min-width: 38px; padding: 8px 12px; text-align: center; border-radius: var(--r-sm); background: var(--bg3); border: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums; cursor: pointer; }
.pagination li a:hover { border-color: var(--accent); color: #fff; }
.pagination li.page-current span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pagination li.prev span, .pagination li.next span, .pagination li.first span, .pagination li.last span { opacity: .4; }
.load-more { text-align: center; margin: 18px 0; }
.load-more a { display: inline-block; padding: 10px 26px; border-radius: 24px; background: var(--bg3); border: 1px solid var(--line); cursor: pointer; }
.load-more a:hover { border-color: var(--accent); color: #fff; }

/* ---------- страница видео ---------- */
.block-video { display: flex; flex-direction: column; gap: 16px; }
.video-holder { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 1100px; margin: 0 auto; }
.player { background: #000; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.player .player-holder, .player .embed-wrap, .player .player-wrap, .player .no-player { position: relative; width: 100%; }
.player .embed-wrap iframe, .player .embed-wrap object, .player .embed-wrap embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* плеер KVS задаёт себе inline position:relative и height:100% от блока высотой 0 — без !important видео схлопывается */
.player .player-wrap > div, .player .player-wrap #kt_player { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
.no-player { display: flex; align-items: center; justify-content: center; background: #000; }
.no-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.no-player .message { position: relative; z-index: 2; max-width: 520px; padding: 16px; text-align: center; color: var(--text); }
.btn-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); z-index: 2; }
.btn-play::after { content: ''; position: absolute; left: 30px; top: 22px; border-left: 24px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video-info { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }
.info-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rating-container { display: flex; align-items: center; gap: 10px; }
.rate-like, .rate-dislike { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 36px; border-radius: 18px; background: var(--bg3); border: 1px solid var(--line); color: transparent; font-size: 0; position: relative; cursor: pointer; }
.rate-like::before, .rate-dislike::before { content: ''; border: 7px solid transparent; position: absolute; }
.rate-like::before { border-bottom: 10px solid var(--good); top: 10px; }
.rate-dislike::before { border-top: 10px solid var(--bad); top: 15px; }
.rate-like:hover { border-color: var(--good); } .rate-dislike:hover { border-color: var(--bad); }
.rate-like.disabled, .rate-dislike.disabled { opacity: .4; pointer-events: none; }
.rating-container .rating { min-width: 160px; }
.rating-container .voters { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 4px; }
.scale-holder { display: block; height: 5px; border-radius: 3px; background: var(--bg4); overflow: hidden; }
.scale { display: block; height: 100%; background: var(--good); }
.scale-holder.negative .scale { background: var(--bad); }
.btn-favourites { position: relative; }
.btn-favourites > a { display: inline-flex; width: 40px; height: 36px; align-items: center; justify-content: center; border-radius: 18px; background: var(--bg3); border: 1px solid var(--line); cursor: pointer; }
.btn-favourites .ico-favourite::before { content: '\2665'; color: var(--bad); font-size: 16px; }
.btn-favourites ul { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 220px; padding: 6px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm); }
.btn-favourites:hover ul { display: block; }
.btn-favourites li a, .btn-favourites li span { display: block; padding: 7px 10px; border-radius: 6px; }
.tabs-menu { margin-left: auto; }
.tabs-menu ul { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs-menu a, .toggle-button { display: inline-block; padding: 7px 14px; border-radius: 18px; background: var(--bg3); border: 1px solid var(--line); color: var(--dim); cursor: pointer; }
.tabs-menu a.active, .tabs-menu a:hover, .tabs-menu li.selected a { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab-content { padding: 16px; }
.block-details { display: flex; gap: 18px; align-items: flex-start; }
.block-user { text-align: center; flex: 0 0 auto; }
.block-user .avatar img, .block-user .no-thumb { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; background: var(--bg4); }
.block-user .username { margin-bottom: 6px; font-weight: 500; }
.block-details .info { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.block-details .item { background: none; border: 0; border-radius: 0; overflow: visible; color: var(--dim); transform: none !important; box-shadow: none !important; }
.block-details .item span { margin-right: 18px; }
.block-details .item em { color: var(--text); font-style: normal; }
.block-details .item a { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 11px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); }
.block-details .item a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.block-screenshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.block-screenshots .item { border-radius: var(--r-sm); } .block-screenshots .item img { width: 100%; display: block; }
.block-share .row, .block-flagging .row { margin-bottom: 12px; }
.field-label { display: block; margin-bottom: 4px; color: var(--dim); font-size: 12.5px; }
.related-videos { margin-top: 8px; }
.sponsor, .top { text-align: center; margin: 6px 0; }

/* комментарии */
.block-comments { padding: 4px 0; }
.list-comments .item, .block-comments .item { display: flex; gap: 12px; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; transform: none !important; box-shadow: none !important; }
.list-comments .item .avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.list-comments .comment-text, .list-comments .original-text { color: var(--text); }
.list-comments .date { color: var(--faint); font-size: 12px; }

/* ---------- формы, кнопки, таблицы, сообщения (в т.ч. всплывающие окна) ---------- */
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], input[type=url], select, textarea, .textfield, .textarea {
  background: var(--bg3); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm); padding: 9px 12px; font: inherit; max-width: 100%;
}
textarea { width: 100%; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, .22); }
.textfield { width: 100%; }
input[type=submit], input[type=button], button, .submit, a.btn, .btn {
  display: inline-block; padding: 9px 20px; border: 0; border-radius: 20px; background: linear-gradient(to bottom, var(--accent), var(--accent2)); color: #fff; font: 500 14px/1.2 inherit; cursor: pointer; transition: filter .15s;
}
input[type=submit]:hover, input[type=button]:hover, button:hover, .submit:hover { filter: brightness(1.12); color: #fff; }
input[type=submit]:disabled, button:disabled, .submit.disabled, .disabled.submit { opacity: .45; cursor: default; }
label { cursor: default; }
.generic-error, .field-error, .error { color: var(--bad); }
.generic-error:not(.hidden) { padding: 10px 14px; margin-bottom: 12px; border: 1px solid #7a2a3d; background: #301620; border-radius: var(--r-sm); }
.success { padding: 10px 14px; margin-bottom: 12px; border: 1px solid #1f6b3a; background: #11301e; color: #9be7b3; border-radius: var(--r-sm); }
.list-messages { padding: 0; }
.list-messages li, .list-messages p { padding: 10px 14px; margin-bottom: 8px; border-radius: var(--r-sm); background: #11301e; border: 1px solid #1f6b3a; color: #9be7b3; }
.table, table { width: 100%; border-collapse: collapse; color: var(--text); }
th { text-align: left; background: var(--bg3); color: var(--dim); padding: 9px 12px; font-weight: 500; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.form-upload, .profile-list, .block-profile, .member-profile, .member-menu { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.member-menu ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sc-top .member-links { background: none; border: 0; padding: 0; border-radius: 0; }
.progressbar { height: 8px; border-radius: 4px; background: var(--bg4); overflow: hidden; }
.progressbar .progress { background: var(--accent); height: 100%; }
.text { color: var(--dim); }

/* ---------- подвал ---------- */
.sc-footer { margin-top: 30px; background: #08090b; border-top: 1px solid var(--line); color: var(--dim); }
.sc-footer .sc-wrap { padding-top: 22px; padding-bottom: 22px; display: grid; gap: 14px; }
.sc-footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sc-footer a { color: var(--dim); }
.sc-footer a:hover { color: var(--accent); }
.sc-footer .copyright { font-size: 12.5px; }
.sc-footer .txt { font-size: 12.5px; color: var(--faint); max-width: 920px; }

/* автоподсказки поиска */
.autocomplete-suggestions { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); overflow: hidden auto; }
.autocomplete-suggestion { padding: 8px 14px; color: var(--text); cursor: pointer; }
.autocomplete-suggestion strong { color: var(--accent); font-weight: 600; }
.autocomplete-selected, .autocomplete-suggestion:hover { background: var(--bg4); }
.autocomplete-group { padding: 8px 14px 2px; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }

/* прокрутка */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .sc-layout { grid-template-columns: 1fr; }
  .sc-aside { position: static; }
  .block-details { flex-direction: column; }
}
@media (max-width: 720px) {
  .sc-wrap { padding: 0 12px; }
  .sc-header-row { flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  .sc-search { max-width: none; flex: 1 1 100%; order: 3; margin-left: 0; }
  .sc-nav-toggle { display: inline-block; }
  .sc-nav ul { display: none; flex-direction: column; }
  .sc-nav.open ul { display: flex; }
  .margin-fix { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tabs-menu { margin-left: 0; }
}

/* ---------- всплывающие окна (вход, регистрация, обратная связь) ---------- */
.fancybox-skin { background: var(--bg2) !important; color: var(--text) !important; border: 1px solid var(--line); border-radius: var(--r) !important; padding: 22px 24px !important; box-shadow: var(--shadow) !important; }
.fancybox-inner { overflow: visible !important; }
.fancybox-close { top: -12px !important; right: -12px !important; }
.popup-title { display: block; margin: 0 0 16px; font-size: 20px; font-weight: 600; color: #fff; }
.popup-holder .row { margin-bottom: 14px; }
.popup-holder .row label { display: block; margin-bottom: 5px; color: var(--dim); font-size: 12.5px; }
.popup-holder .row input[type=checkbox] { vertical-align: middle; margin-right: 6px; }
.popup-holder .row input[type=checkbox] + label { display: inline; }
.popup-holder .textfield, .popup-holder .textarea { width: 100%; }
.popup-holder .bottom { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.popup-holder .links p { margin: 0 0 6px; font-size: 13px; }
.popup-holder .links a { color: var(--accent); }
.popup-holder .field-error { margin-top: 4px; font-size: 12.5px; }
.field-label.required::after { content: ' *'; color: var(--bad); }

/* ---------- личный кабинет: меню участника, профиль ---------- */
.main-container-user { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.member-menu { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.member-menu .headline { margin: 0; padding-bottom: 10px; }
.member-menu .headline h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0; }
.member-menu .block-main { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.member-menu .avatar { align-self: center; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--bg4); display: flex; align-items: center; justify-content: center; }
.member-menu .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-menu .avatar .no-thumb { position: static; font-size: 12px; color: var(--faint); }
.user-menu { display: flex; flex-direction: column; gap: 2px; }
.user-menu li > a, .user-menu li > span { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); }
.user-menu li > a:hover { background: var(--bg3); }
.user-menu li > span { background: var(--accent); color: #fff; font-weight: 600; }
.user-menu li em { font-style: normal; font-size: 12px; min-width: 24px; text-align: center; padding: 1px 8px; border-radius: 10px; background: var(--bg4); color: var(--dim); }
.user-menu li > span em { background: rgba(255, 255, 255, .22); color: #fff; }
.member-menu .block-additional { padding-top: 10px; border-top: 1px solid var(--line); }
.block-profile { display: flex; flex-direction: column; gap: 16px; }
.block-profile .profile-info, .block-profile .info { display: grid; gap: 8px; }
.block-profile .item { background: none; border: 0; border-radius: 0; box-shadow: none; transform: none !important; overflow: visible; display: flex; gap: 10px; padding: 2px 0; }
.block-profile .item > span, .block-profile .item strong { color: var(--dim); min-width: 150px; font-weight: 400; }
.block-profile .item em { font-style: normal; color: var(--text); }
.block-profile h2, .block-profile .headline { font-size: 18px; }
.block-profile .avatar img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }

/* загрузка файлов (видео, альбомы, аватар): поле выбора и состояния формы */
.file-control { position: relative; width: 100%; margin: 0 0 18px; }
.file-control .textfield { padding-left: 130px; cursor: pointer; }
.file-control .button { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); padding: 7px 16px; border-radius: 16px; background: var(--bg4); color: var(--text); font-weight: 500; font-size: 13px; pointer-events: none; }
.file-control input.file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.form-upload { position: relative; }
.form-upload .section-title, form .section-title { display: block; margin: 0 0 14px; font-size: 16px; font-weight: 600; color: #fff; }
.form-upload.uploading > *:not(.progressbar) { opacity: 0; visibility: hidden; }
.form-upload .progressbar { display: none; position: absolute; z-index: 5; left: 50%; top: 50%; width: 60%; height: 14px; transform: translate(-50%, -50%); border-radius: 8px; background: var(--bg4); overflow: hidden; }
.form-upload.uploading .progressbar { display: block; }
.form-upload .progressbar .progress { width: 0; height: 100%; background: var(--accent); border-radius: 8px; transition: width .2s; }
.form-upload p.preview { max-width: 320px; margin: 0 0 16px; border-radius: var(--r-sm); overflow: hidden; position: relative; background: #000; }
.form-upload p.preview em { display: block; padding: 6px 10px; font-style: normal; color: var(--dim); font-size: 12.5px; }
.form-upload .bottom { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form-upload .block-checkboxes label, .form-upload .row label { cursor: pointer; }
@media (max-width: 1000px) { .member-menu { position: static; } }

/* профиль: данные участника тремя колонками, подпись слева, значение справа */
.profile-list { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.profile-list .margin-fix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 32px; }
.profile-list .column { display: flex; flex-direction: column; }
.profile-list .item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--dim); }
.profile-list .item em { font-style: normal; color: var(--text); text-align: right; }
.profile-list .about-me { grid-column: 1 / -1; }
.profile-list .about-me .item { border-bottom: 0; flex-direction: column; }
.profile-list .about-me .item em { text-align: left; }
@media (max-width: 900px) { .profile-list .margin-fix { grid-template-columns: 1fr; } }

/* ссылка «Загрузить фото» под аватаром в личном кабинете */
.member-menu .avatar-change { align-self: center; padding: 6px 14px; border-radius: 16px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); font-size: 13px; cursor: pointer; }
.member-menu .avatar-change:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- выбор категорий/моделей: выпадающий список с поиском вместо длинного списка ---------- */
.list-selector { position: relative; }
.list-selector-popup { position: absolute; left: 0; right: 0; top: calc(100% - 4px); z-index: 70; padding: 54px 8px 8px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.list-selector-popup .filter { position: absolute; top: 8px; left: 8px; right: 8px; margin: 0; }
.list-selector-popup .filter input { width: 100%; }
.list-selector-popup .button-group { max-height: 190px; overflow-y: auto; }
.list-selector-popup .item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 6px; background: none; transform: none !important; box-shadow: none !important; overflow: visible; cursor: pointer; }
.list-selector-popup .item:hover { background: var(--bg4); }
.list-selector-popup .item label { flex: 1; cursor: pointer; line-height: 38px; }
.list-selector-popup input[type=checkbox] { margin: 0; }

/* подсказки тегов по мере ввода (поле «Тэги») */
.zk-suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 190px; overflow-y: auto; z-index: 80; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.zk-suggest div { height: 38px; line-height: 38px; padding: 0 14px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zk-suggest div b { color: var(--accent); font-weight: 600; }
.zk-suggest div:hover, .zk-suggest div.on { background: var(--bg4); }
.zk-suggest-wrap { position: relative; }
