/* =====================================================================
   UKRFLIX — шаблон DLE 20
   Дизайн: ukrflix-design (React + Tailwind), токени з src/styles.css
   Брейкпоінти як у Tailwind: sm 640 · md 768 · lg 1024 · xl 1280
   Шрифти DM Sans + Cormorant Garamond підключаються в main.tpl
   ===================================================================== */

:root {
  --bg: #16202e;
  --bg-deep: #131c28;
  --bg-ink: #0c141f;
  --fg: #ede7da;
  --muted: #c9c2b3;
  --subtle: #8f887a;
  --gold: #dbb43c;
  --gold-deep: #b8901f;
  --gold-hi: #e9c558;
  --ink: #0f1722;
  --hair: rgba(255, 255, 255, 0.05);
  --gold-soft: rgba(219, 180, 60, 0.14);
  --emerald: #34d399;
  --danger: #e2685b;
  --info: #6fa8dc;

  --fg-85: rgba(237, 231, 218, 0.85);
  --fg-80: rgba(237, 231, 218, 0.8);
  --fg-75: rgba(237, 231, 218, 0.75);
  --fg-70: rgba(237, 231, 218, 0.7);

  --shadow-neo: 9px 9px 20px rgba(4, 8, 14, 0.7), -7px -7px 16px rgba(255, 255, 255, 0.035);
  --shadow-neo-sm: 5px 5px 12px rgba(4, 8, 14, 0.6), -4px -4px 9px rgba(255, 255, 255, 0.04);
  --shadow-neo-hover: 13px 13px 28px rgba(4, 8, 14, 0.8), -9px -9px 20px rgba(255, 255, 255, 0.05);
  --shadow-neo-lg: 14px 14px 34px rgba(4, 8, 14, 0.75), -10px -10px 26px rgba(255, 255, 255, 0.032);
  --shadow-inset: inset 7px 7px 15px rgba(4, 8, 14, 0.7), inset -5px -5px 12px rgba(255, 255, 255, 0.03);
  --shadow-inset-sm: inset 4px 4px 10px rgba(4, 8, 14, 0.45), inset -3px -3px 8px rgba(255, 255, 255, 0.03);
  --shadow-gold: 8px 8px 18px rgba(4, 8, 14, 0.55), -5px -5px 12px rgba(255, 255, 255, 0.05);
  --shadow-pop: 16px 16px 40px rgba(4, 8, 14, 0.85), -10px -10px 24px rgba(255, 255, 255, 0.04);
  --grad-gold: linear-gradient(145deg, var(--gold), var(--gold-deep));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
}

/* ================================================================ BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; scroll-behavior: smooth; }
html, body { min-height: 100%; background: var(--bg); color: var(--fg); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; }
body.has-search-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(219, 180, 60, 0.28); color: var(--fg); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-ink); }
::-webkit-scrollbar-thumb { background: #243246; border-radius: 6px; }

/* =========================================================== UTILITIES */
.neo { background: var(--bg); box-shadow: var(--shadow-neo); }
.neo-lg { background: var(--bg); box-shadow: var(--shadow-neo-lg); }
.neo-inset { background: var(--bg); box-shadow: var(--shadow-inset); }
.neo-gold { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.gold-wash { background: var(--grad-gold); }
.poster-scrim { background: linear-gradient(to top, rgba(9, 14, 22, 0.92), transparent 54%); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.i12 { width: 12px; height: 12px; flex: none; } .i14 { width: 14px; height: 14px; flex: none; }
.i16 { width: 16px; height: 16px; flex: none; } .i18 { width: 18px; height: 18px; flex: none; }
.i22 { width: 22px; height: 22px; flex: none; } .i24 { width: 24px; height: 24px; flex: none; }
.pulse { animation: uf-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes uf-pulse { 50% { opacity: 0.5; } }

.uf-skip { position: absolute; left: -9999px; }
.uf-skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; border-radius: 30px; background: var(--gold); padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }

.uf-live { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--emerald); animation: uf-live 2s infinite; }
@keyframes uf-live { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ============================================================== LAYOUT */
.uf-page { padding: 24px 16px 56px; }
.uf-page--narrow { max-width: 900px; margin: 0 auto; }
.uf-page--profile { max-width: 1160px; margin: 0 auto; }
.uf-section { margin-bottom: 44px; }
.uf-section--last { margin-bottom: 0; }
.uf-info-wrap { padding: 16px 16px 0; }
.uf-info-wrap:empty { display: none; }
@media (min-width: 768px) {
  .uf-page { padding: 28px 40px 56px; }
  .uf-info-wrap { padding: 16px 40px 0; }
}

/* ============================================================== HEADER */
.uf-header { position: sticky; top: 0; z-index: 50; background: rgba(22, 32, 46, 0.86); padding: 14px 12px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.uf-header__row { display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .uf-header { padding: 14px 40px; } .uf-header__row { gap: 20px; } }

.uf-logo { display: flex; flex: none; align-items: center; gap: 10px; border-radius: 15px; padding: 8px 14px 8px 8px; }
.uf-logo img { width: 30px; height: 30px; border-radius: 10px; object-fit: cover; }
.uf-logo span { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.12em; color: var(--fg); }
@media (min-width: 640px) { .uf-logo span { font-size: 17px; letter-spacing: 0.15em; } }

.uf-nav { position: relative; display: none; gap: 6px; border-radius: 30px; padding: 6px; }
@media (min-width: 1280px) { .uf-nav { display: flex; } }
.uf-nav__link { display: inline-flex; align-items: center; border-radius: 11px; padding: 10px 16px; font-size: 12.5px; font-weight: 400; color: var(--fg-70); transition: color 0.15s; white-space: nowrap; }
.uf-nav__link:hover { color: var(--fg); }
.uf-nav__link.is-active { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); font-weight: 500; }
.uf-nav__chev { margin-left: 4px; width: 14px; height: 14px; opacity: 0.7; transition: transform 0.2s; }
.uf-nav__link[aria-expanded="true"] .uf-nav__chev { transform: rotate(180deg); }

.uf-searchbtn { display: none; min-width: 0; flex: 1; align-items: center; gap: 12px; border-radius: 15px; padding: 12px 16px; text-align: left; }
@media (min-width: 768px) { .uf-searchbtn { display: flex; } }
.uf-searchbtn__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--muted); }
.uf-searchbtn__mic { margin-left: auto; display: flex; flex: none; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 10px; color: var(--gold); }

.uf-header__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.uf-iconbtn { display: flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; color: var(--muted); }
.uf-iconbtn:hover, .uf-iconbtn.is-active { color: var(--gold); }
.uf-iconbtn--mobile { display: flex; }
@media (min-width: 768px) { .uf-iconbtn--mobile { display: none; } }
.uf-burger { color: var(--fg); }
@media (min-width: 1280px) { .uf-burger { display: none; } }

.uf-loginbtn { display: flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 15px; }
.uf-loginbtn span { display: none; font-size: 12.5px; font-weight: 600; }
@media (min-width: 640px) {
  .uf-loginbtn { width: auto; height: auto; padding: 12px 20px; }
  .uf-loginbtn svg { display: none; }
  .uf-loginbtn span { display: inline; }
}

.uf-userbtn { position: relative; display: flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; }
.uf-userbtn__ava { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; overflow: hidden; border-radius: 11px; }
.uf-userbtn__ava img { width: 100%; height: 100%; object-fit: cover; }
.uf-userbtn__dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); }

/* ------------------------------------------------ dropdowns */
.uf-pop { background: var(--bg); box-shadow: var(--shadow-pop); }

.uf-dd-genres { position: absolute; top: calc(100% + 14px); left: 50%; z-index: 50; width: min(720px, calc(100vw - 48px)); transform: translateX(-50%); border-radius: 22px; padding: 16px; }
.uf-dd-genres__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.uf-dd-genres__grid a { border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--fg-80); }
.uf-dd-genres__grid a:hover { background: var(--gold-soft); color: var(--fg); }
.uf-dd-genres__all { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 13px; background: var(--gold-soft); padding: 10px; font-size: 12px; font-weight: 600; color: var(--gold); }

.uf-dd-user { position: absolute; top: 100%; right: 16px; z-index: 50; margin-top: 8px; width: 280px; border-radius: 20px; padding: 8px; }
@media (min-width: 768px) { .uf-dd-user { right: 40px; } }
.uf-dd-user__head { margin-bottom: 6px; display: flex; align-items: center; gap: 12px; border-radius: 14px; background: var(--gold-soft); padding: 12px; }
.uf-dd-user__ava { display: flex; flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 12px; }
.uf-dd-user__ava img { width: 100%; height: 100%; object-fit: cover; }
.uf-dd-user__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; color: var(--fg); }
.uf-dd-user__login { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--muted); }
.uf-dd-row { display: flex; width: 100%; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 14px; text-align: left; font-size: 13px; color: var(--fg-85); }
.uf-dd-row:hover { background: var(--gold-soft); }
.uf-dd-row__ico { color: var(--gold); }
.uf-dd-row__ico--muted { color: var(--muted); }
.uf-dd-row__label { flex: 1; }
.uf-dd-row__extra { font-size: 11px; color: var(--gold); white-space: nowrap; }
.uf-dd-sep { margin: 4px 0; height: 1px; background: var(--hair); }

.uf-dd-info { position: absolute; top: 100%; left: 12px; right: 12px; z-index: 50; margin-top: 8px; border-radius: 22px; padding: 12px; }
.uf-dd-info__grid { display: grid; gap: 12px; }
@media (min-width: 768px) {
  .uf-dd-info { left: auto; right: 40px; width: min(760px, calc(100vw - 48px)); padding: 16px; }
  .uf-dd-info__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.uf-infocol { border-radius: 18px; padding: 14px; box-shadow: var(--shadow-inset-sm); }
.uf-infocol__head { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; }
.uf-infocol__ico { display: flex; flex: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; }
.uf-infocol__ico--gold { background: var(--gold-soft); color: var(--gold); }
.uf-infocol__ico--mint { background: rgba(80, 180, 140, 0.16); color: rgb(150, 220, 190); }
.uf-infocol__ico--steel { background: rgba(120, 150, 200, 0.16); color: rgb(170, 195, 230); }
.uf-infocol__title { font-size: 12.5px; font-weight: 600; color: var(--fg); }
.uf-infocol__blurb { margin-top: 2px; font-size: 11px; line-height: 1.375; color: var(--muted); }
.uf-infocol__links { display: flex; flex-direction: column; gap: 2px; }
.uf-infocol__links a { border-radius: 10px; padding: 8px 10px; font-size: 12.5px; color: var(--fg-75); }
.uf-infocol__links a:hover { background: var(--gold-soft); color: var(--fg); }

.uf-mobmenu { margin-top: 12px; border: 1px solid var(--hair); border-radius: 18px; background: var(--bg); padding: 12px; box-shadow: var(--shadow-neo); }
@media (min-width: 1280px) { .uf-mobmenu { display: none !important; } }
.uf-mobmenu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.uf-mobmenu__grid a { display: block; border-radius: 14px; padding: 14px 16px; text-align: center; font-size: 14px; background: var(--bg); box-shadow: var(--shadow-neo); color: var(--fg-80); }
.uf-mobmenu__grid a.is-active { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); font-weight: 500; }

.uf-bottomnav { position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; border-top: 1px solid var(--hair); background: rgba(22, 32, 46, 0.92); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (min-width: 1280px) { .uf-bottomnav { display: none; } }
.uf-bottomnav a { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; border-radius: 8px; padding: 6px 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.uf-bottomnav a.is-active { color: var(--gold); }

/* ====================================================== SEARCH OVERLAY */
.uf-search { position: fixed; inset: 72px 0 0 0; z-index: 45; background: rgba(12, 20, 31, 0.55); }
.uf-search__in { margin: 0 auto; max-width: 720px; padding: 0 16px; }
@media (min-width: 768px) { .uf-search__in { padding: 0 24px; } }
.uf-search__card { position: relative; border-radius: 0 0 24px 24px; background: var(--bg); box-shadow: 0 24px 50px rgba(4, 8, 14, 0.7); }
.uf-search__row { position: relative; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--hair); padding: 12px 20px; }
.uf-search__input { min-width: 0; flex: 1; background: transparent; border: 0; outline: 0; font-size: 14px; color: var(--fg); }
.uf-search__input::placeholder { color: var(--muted); }
.uf-search__input::-webkit-search-cancel-button { filter: invert(0.7) sepia(1) saturate(3) hue-rotate(5deg); }
.uf-search__mic { display: flex; flex: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 11px; color: var(--muted); }
.voice-search-btn.is-listening { color: var(--gold); animation: uf-voice 1.2s ease-in-out infinite; }
.voice-search-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
@keyframes uf-voice { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.uf-search__label { padding: 12px 20px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.2em; color: var(--muted); }
.uf-search__adv { display: block; padding: 14px 20px; font-size: 12.5px; font-weight: 500; color: var(--gold); }

/* Результати швидкого пошуку DLE (#dle-searchresults + fastsearchresult.tpl) */
#dle-searchresults {
  position: absolute; top: calc(100% + 1px); left: 0; right: 0; z-index: 5;
  max-height: min(60vh, 480px); overflow-y: auto;
  padding: 6px 0; border-radius: 0 0 18px 18px;
  background: var(--bg); box-shadow: 0 24px 50px rgba(4, 8, 14, 0.7);
}
#dle-searchresults a:not(.uf-sresult) { display: block; padding: 11px 20px; color: var(--fg-85); }
#dle-searchresults a:not(.uf-sresult):hover { background: var(--gold-soft); }
#dle-searchresults .seperator, #dle-searchresults .separator { display: block; padding: 12px 20px; font-size: 12.5px; font-weight: 500; color: var(--gold); }
.uf-sresult { display: flex; align-items: center; gap: 16px; padding: 12px 20px; transition: background-color 0.15s; }
.uf-sresult:hover { background: var(--gold-soft); }
.uf-sresult__body { display: block; min-width: 0; flex: 1; }
.uf-sresult__title { display: block; font-size: 14px; font-weight: 600; color: var(--fg); }
.uf-sresult__meta { display: block; margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; color: var(--muted); }
.uf-sresult__go { flex: none; font-size: 14px; color: var(--gold); }

/* ============================================================== MODALS */
.uf-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(12, 20, 31, 0.72); padding: 24px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.uf-modal { width: 400px; max-width: 100%; max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 28px; background: var(--bg); padding: 32px; box-shadow: 20px 20px 50px rgba(4, 8, 14, 0.8), -12px -12px 30px rgba(255, 255, 255, 0.04); }
.uf-modal--wide { width: 640px; }
.uf-modal__head { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uf-modal__brand { display: flex; align-items: center; gap: 10px; }
.uf-modal__brand img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; }
.uf-modal__brand span { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.14em; color: var(--fg); }
.uf-modal__close { display: flex; flex: none; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 12px; font-size: 18px; font-weight: 300; color: var(--muted); }
.uf-modal__close:hover { color: var(--gold); }
.uf-modal__title { margin-bottom: 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.uf-modal__head .uf-modal__title { margin: 0; }
.uf-modal__lead { margin-bottom: 24px; font-size: 12.5px; line-height: 1.625; color: var(--muted); }
.uf-modal__row { margin: 6px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uf-modal__switch { display: block; width: 100%; text-align: center; font-size: 12.5px; color: var(--muted); }
.uf-modal__switch b { font-weight: 400; color: var(--gold); }

/* =============================================================== FORMS */
.uf-form { display: flex; flex-direction: column; gap: 14px; }
.uf-form .uf-field { margin: 0; }
.uf-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.uf-field { display: block; margin-bottom: 14px; }
.uf-field__label { margin-bottom: 8px; display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.uf-field__hint { margin-top: 6px; min-height: 1em; font-size: 11.5px; color: var(--muted); }
.uf-input,
.uf-xfields input[type="text"], .uf-xfields input[type="number"], .uf-xfields select, .uf-xfields textarea,
.uf-select-wrap select, .uf-recipient select,
.uf-searchpage input[type="text"], .uf-searchpage input[type="search"], .uf-searchpage select {
  width: 100%; border: 0; outline: 0; border-radius: 14px; background: var(--bg); box-shadow: var(--shadow-inset);
  padding: 14px 16px; font-size: 13px; line-height: 1.3; color: var(--fg);
}
.uf-input::placeholder { color: var(--subtle); }
.uf-input[type="password"] { letter-spacing: 2px; }
.uf-input[type="password"]::placeholder { letter-spacing: normal; }
textarea.uf-input, .uf-xfields textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
select option { background: var(--bg-deep); color: var(--fg); }
.uf-input--file { padding: 10px 12px; font-size: 12.5px; letter-spacing: normal; }
.uf-input--file::file-selector-button { margin-right: 12px; border: 0; border-radius: 10px; padding: 8px 14px; background: var(--grad-gold); color: var(--ink); font-weight: 600; cursor: pointer; }
.uf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .uf-grid-2 { grid-template-columns: 1fr; } }
.uf-sep { height: 1px; margin: 2px 0; background: var(--hair); }
.uf-check { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--fg-70); cursor: pointer; }
.uf-check input { position: absolute; opacity: 0; pointer-events: none; }
.uf-check__box { display: flex; flex: none; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 7px; background: var(--bg); box-shadow: var(--shadow-inset-sm); font-size: 11px; color: var(--gold); }
.uf-check input:checked + .uf-check__box::after { content: "✓"; }
.uf-check input:focus-visible + .uf-check__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.uf-link-gold { color: var(--gold); font-size: 12px; }
.uf-link-gold:hover { color: var(--gold-hi); }
.uf-submit { margin-bottom: 16px; width: 100%; border-radius: 30px; padding: 16px; font-size: 14px; font-weight: 600; }
.uf-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.uf-captcha .uf-input { flex: 1; min-width: 140px; width: auto; }
.uf-pass { position: relative; display: block; }
.uf-pass .uf-input { padding-right: 48px; }
.uf-pass__toggle { position: absolute; right: 8px; top: 50%; display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; transform: translateY(-50%); border-radius: 10px; color: var(--muted); }
.uf-pass__toggle.is-on { color: var(--gold); }
.uf-login-check { display: flex; gap: 8px; }
.uf-login-check .uf-input { flex: 1; }
.form-status { display: inline-block; font-size: 12px; }
.form-status--error { color: #f08a80; }
.form-status--progress { color: #8fbbe8; }
.form-status--ok { color: #7fd3a8; }

/* ============================================================= BUTTONS */
.uf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 30px; padding: 14px 28px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.15s; cursor: pointer; }
.uf-btn:active { transform: translateY(1px); }
.uf-btn--lg { padding: 16px 32px; }
.uf-btn--ghost { background: var(--bg); box-shadow: var(--shadow-neo); color: var(--fg); font-weight: 500; }
.uf-btn--ghost:hover { color: var(--gold); }
.uf-btn--sm { border-radius: 13px; padding: 10px 20px; font-size: 12.5px; }
.uf-tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--fg-80); background: var(--bg); box-shadow: var(--shadow-neo); cursor: pointer; }
.uf-tag:hover, .uf-tag a:hover { color: var(--gold); }
.uf-badge-soft { display: inline-flex; align-items: center; gap: 8px; border-radius: 13px; background: var(--gold-soft); padding: 6px 14px; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: var(--gold); }

/* ================================================================ HERO */
.uf-hero { position: relative; margin-bottom: 40px; height: 420px; overflow: hidden; border-radius: 30px; box-shadow: var(--shadow-neo-lg); background: var(--bg-ink); }
@media (min-width: 768px) { .uf-hero { height: 500px; } }
.uf-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.uf-hero__slide.is-active { opacity: 1; visibility: visible; }
.uf-hero__img { position: absolute; inset: 0; background-color: var(--bg-ink); background-position: center top; background-size: cover; background-repeat: no-repeat; }
.uf-hero__slide:first-child .uf-hero__img,
.uf-hero__slide.is-bg .uf-hero__img { background-image: var(--hero-bg); }
.uf-hero__scrim-x { position: absolute; inset: 0; background: linear-gradient(to right, rgba(12, 20, 31, 0.94), rgba(12, 20, 31, 0.5), transparent); }
.uf-hero__scrim-y { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 20, 31, 0.8), transparent, transparent); }
.uf-hero__content { position: absolute; top: 50%; left: 24px; right: 24px; max-width: 560px; transform: translateY(-50%); }
@media (min-width: 768px) { .uf-hero__content { left: 48px; right: auto; } }
.uf-hero__badge { margin-bottom: 20px; display: inline-flex; align-items: center; gap: 8px; border-radius: 13px; background: var(--gold-soft); padding: 8px 16px; }
.uf-hero__badge i { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }
.uf-hero__badge span { font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; color: var(--gold); }
.uf-hero__title { margin-bottom: 16px; font-size: 34px; line-height: 1.02; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.15s; }
.uf-hero__title:hover { color: var(--gold-hi); }
@media (min-width: 768px) { .uf-hero__title { font-size: 56px; } }
.uf-chips { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.uf-chip { border-radius: 11px; padding: 8px 12px; font-size: 12px; color: var(--fg-80); background: var(--bg); box-shadow: var(--shadow-neo); }
.uf-chip--gold { font-weight: 500; color: var(--gold); }
.uf-chip--clip { max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.uf-hero__plot { margin-bottom: 28px; max-width: 460px; font-size: 14.5px; line-height: 1.625; color: var(--fg-70); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.uf-hero__plot p { margin: 0; }
.uf-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 480px) { .uf-hero__actions .uf-btn--lg { padding: 14px 22px; } }
.uf-hero__fav { display: flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 18px; color: var(--fg); cursor: pointer; }
.uf-hero__fav:hover { color: var(--gold); }
.uf-hero__fav a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: inherit; }
.uf-hero__dots { position: absolute; right: 24px; bottom: 32px; z-index: 3; display: flex; gap: 8px; border-radius: 30px; background: rgba(12, 20, 31, 0.5); padding: 8px; box-shadow: inset 5px 5px 12px rgba(4, 8, 14, 0.5); }
@media (min-width: 768px) { .uf-hero__dots { right: 44px; } }
.uf-hero__dots:empty { display: none; }
.uf-hero__dot { height: 6px; width: 14px; border-radius: 10px; background: rgba(237, 231, 218, 0.25); transition: width 0.3s var(--ease); }
.uf-hero__dot.is-active { width: 30px; background: var(--grad-gold); }

/* ========================================================= HOME PIECES */
.uf-intro { margin-bottom: 40px; display: flex; max-width: 820px; align-items: stretch; gap: 14px; }
.uf-intro__bar { width: 3px; flex: none; border-radius: 10px; }
.uf-intro h1 { margin-bottom: 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.025em; color: var(--fg); }
@media (min-width: 768px) { .uf-intro h1 { font-size: 18px; } }
.uf-intro p { font-size: 13.5px; line-height: 1.625; color: var(--muted); }

.uf-sechead { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uf-sechead h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; color: var(--fg); }
@media (min-width: 768px) { .uf-sechead h2 { font-size: 23px; } }
.uf-sechead__badge { display: inline-flex; align-items: center; border-radius: 999px; background: var(--gold-soft); padding: 4px 10px; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.uf-sechead__more { flex: none; border-radius: 13px; padding: 8px 16px; font-size: 12px; font-weight: 500; color: var(--gold); white-space: nowrap; }
.uf-sechead__more:hover { color: var(--gold-hi); }

/* =============================================================== GRIDS */
.uf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .uf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .uf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.uf-grid--3 { gap: 20px; }
@media (min-width: 1024px) { .uf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.uf-grid--5 { gap: 20px; }
@media (min-width: 1024px) { .uf-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .uf-grid--rel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.uf-grid--rel:empty::before { content: "Схожих матеріалів поки немає"; grid-column: 1 / -1; padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }
/* Усе, що DLE виводить у сітку і не є карткою (пагінація, повідомлення, форма пошуку) — на всю ширину */
.uf-grid > form { display: contents; }
.uf-grid > :not(.uf-card):not(.uf-soon):not(.uf-article):not(form),
.uf-grid > form > :not(.uf-card):not(.uf-soon):not(.uf-article) { grid-column: 1 / -1; }

/* ------------------------------------------- стрічки-слайдери (головна, колекції) */
.uf-sechead__tools { display: flex; flex: none; align-items: center; gap: 10px; }
.uf-railnav { display: none; gap: 8px; }
@media (min-width: 768px) { .uf-railnav { display: flex; } }
.uf-railbtn { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 12px; color: var(--fg-80); cursor: pointer; transition: color 0.15s, opacity 0.15s; }
.uf-railbtn:hover:not(:disabled) { color: var(--gold); }
.uf-railbtn:disabled { opacity: 0.35; cursor: default; }
.uf-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2.2); gap: 16px;
  margin: -10px -12px -14px; padding: 10px 12px 26px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 12px;
  scrollbar-width: none;
}
.uf-rail::-webkit-scrollbar { display: none; }
.uf-rail > * { min-width: 0; scroll-snap-align: start; }
@media (min-width: 640px) { .uf-rail { grid-auto-columns: calc((100% - 32px) / 3.2); } }
@media (min-width: 1024px) { .uf-rail { grid-auto-columns: calc((100% - 64px) / 5); } }
@media (min-width: 1280px) { .uf-rail { grid-auto-columns: calc((100% - 80px) / 6); } }
.uf-section:has(> .uf-rail:empty), .uf-coll:has(> .uf-rail:empty) { display: none; }
@media (min-width: 1024px) { .uf-grid > .uf-article { grid-column: span 2; } }

/* ========================================================== POSTER CARD */
.uf-card { display: block; min-width: 0; border-radius: 20px; background: var(--bg); padding: 10px; box-shadow: var(--shadow-neo); transition: box-shadow 0.25s var(--ease); }
.uf-card:hover { box-shadow: var(--shadow-neo-hover); }
.uf-card__poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 13px; background: var(--bg-ink); box-shadow: inset 4px 4px 10px rgba(4, 8, 14, 0.55); }
.uf-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.uf-card:hover .uf-card__img { transform: scale(1.04); }
.uf-card__scrim { position: absolute; inset: 0; }
.uf-card__rating { position: absolute; top: 8px; right: 8px; border-radius: 18px; background: rgba(12, 20, 31, 0.6); padding: 4px 8px; font-size: 10.5px; font-weight: 500; color: var(--gold); }
.uf-card__badge { position: absolute; top: 8px; left: 8px; border-radius: 18px; background: var(--gold-soft); padding: 4px 8px; font-size: 9px; font-weight: 500; letter-spacing: 0.05em; color: var(--gold); text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.uf-card__badge:empty { display: none; }
.uf-card__badge span + span { display: none; }
.uf-card__body { position: absolute; inset: auto 0 0 0; padding: 10px; }
.uf-card__title { font-size: 14px; font-weight: 600; line-height: 1.375; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uf-card--compact .uf-card__title { font-size: 13px; }
.uf-card__meta { margin-top: 6px; font-size: 10.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.uf-card__progress { margin-top: 8px; height: 6px; overflow: hidden; border-radius: 4px; background: rgba(12, 20, 31, 0.55); box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.6); }
.uf-card__progress i { display: block; height: 100%; border-radius: 4px; background: var(--grad-gold); }

/* ------------------------------------------------ article card (новини) */
.uf-article { display: flex; flex-direction: column; min-width: 0; border-radius: 20px; padding: 10px; transition: box-shadow 0.25s var(--ease); }
.uf-article:hover { box-shadow: var(--shadow-neo-hover); }
.uf-article__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 13px; background: var(--bg-ink); }
.uf-article__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uf-article__body { padding: 12px 6px 6px; }
.uf-article__meta { font-size: 11px; color: var(--muted); }
.uf-article__title { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uf-article__more { margin-top: 10px; font-size: 12px; font-weight: 500; color: var(--gold); }

/* ========================================================= DISCUSSIONS */
.uf-disc-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .uf-disc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .uf-disc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.uf-disc { display: block; min-width: 0; border-radius: 20px; padding: 16px 20px; transition: box-shadow 0.2s; }
.uf-disc:hover { box-shadow: 12px 12px 24px rgba(4, 8, 14, 0.75); }
.uf-disc__top { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.uf-disc__user { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; color: var(--fg); }
.uf-disc__user a { color: inherit; }
.uf-disc__when { flex: none; white-space: nowrap; font-size: 11px; }
.uf-disc__film { margin-bottom: 8px; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; color: var(--gold); }
.uf-disc__film:hover { color: var(--gold-hi); }
.uf-disc__text { font-size: 13.5px; line-height: 1.625; color: var(--fg-75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.uf-disc__text:hover { color: var(--fg); }

/* ======================================================== BREADCRUMBS */
.uf-crumbs { margin-bottom: 20px; }
.uf-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.uf-crumbs__list a { color: var(--muted); }
.uf-crumbs__list a:hover { color: var(--gold); }
.uf-crumbs__sep { color: var(--subtle); }
.uf-crumbs__cur { font-weight: 500; color: var(--fg-80); }
/* {speedbar} з speedbar.tpl: DLE генерує div#dle-speedbar > ul.speedbar > li (або span-и з мікророзміткою) */
.uf-crumbs__list .speedbar,
.uf-crumbs__list #dle-speedbar,
.uf-crumbs__list ul,
.uf-crumbs__list ol { display: contents; }
.uf-crumbs__list li { display: inline-flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.uf-crumbs__list .speedbar_sep { color: var(--subtle); }
.uf-crumbs__list li:last-child { font-weight: 500; color: var(--fg-80); }

/* ========================================================= PAGE HEADS */
.uf-pagehead { margin-bottom: 32px; }
.uf-pagehead--center { text-align: center; }
.uf-pagehead--center .uf-crumbs__list { justify-content: center; }
.uf-pagehead .uf-badge-soft { margin-bottom: 12px; }
.uf-pagehead h1 { margin-bottom: 8px; font-size: 32px; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.uf-pagehead p { max-width: 560px; font-size: 13.5px; line-height: 1.625; color: var(--muted); }
.uf-pagehead--center p { margin: 0 auto; max-width: 520px; }
.uf-pagehead__count { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ============================================================ CATALOG */
.uf-cat-head { margin-bottom: 20px; }
.uf-cat-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.uf-chiprow { margin-bottom: 16px; display: flex; width: 100%; min-width: 0; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; }
.uf-chiprow--years { margin-bottom: 24px; }
.uf-fchip { flex: none; border-radius: 12px; padding: 10px 16px; font-size: 12.5px; font-weight: 500; color: var(--fg-80); background: var(--bg); box-shadow: var(--shadow-neo-sm); white-space: nowrap; }
.uf-fchip:hover { color: var(--gold); }
.uf-fchip.is-active { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.uf-ychip { display: inline-flex; flex: none; align-items: center; height: 38px; border-radius: 10px; padding: 0 18px; font-size: 14px; font-weight: 600; color: var(--fg-75); background: var(--bg); box-shadow: var(--shadow-neo-sm); }
.uf-ychip:hover { color: var(--gold); }
.uf-ychip.is-active { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.uf-seg { display: flex; gap: 6px; border-radius: 14px; padding: 6px; background: var(--bg); box-shadow: var(--shadow-inset); }
.uf-seg--wrap { flex-wrap: wrap; }
.uf-seg a, .uf-seg button { border-radius: 10px; padding: 8px 16px; font-size: 11.5px; font-weight: 500; color: var(--fg-70); }
.uf-seg a:hover { color: var(--fg); }
.uf-seg .is-active { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.uf-catdesc { margin-top: 32px; }
.uf-catdesc:empty { display: none; }
.uf-empty { border-radius: 22px; padding: 64px 24px; text-align: center; font-size: 14px; color: var(--muted); background: var(--bg); box-shadow: var(--shadow-neo); }
.uf-empty a { color: var(--gold); }

/* --------------------------------------------------------- pagination */
.uf-pages, .navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; }
.uf-pages__num { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.uf-pages__arrow { display: inline-flex; }
.uf-pages__num a, .uf-pages__num > span,
.uf-pages__arrow a, .uf-pages__arrow > span {
  display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center;
  padding: 0 10px; border-radius: 13px; font-size: 13px; color: var(--fg-80);
  background: var(--bg); box-shadow: var(--shadow-neo-sm); transition: color 0.15s;
}
.uf-pages__num a:hover, .uf-pages__arrow a:hover { color: var(--gold); }
.uf-pages__num > span:not(.nav_ext) { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); font-weight: 600; }
.uf-pages__num .nav_ext { min-width: 20px; padding: 0; background: transparent; box-shadow: none; color: var(--subtle); }
.uf-pages__arrow > span { opacity: 0.4; }

/* ============================================================= GENRES */
.uf-gfeat { margin-bottom: 32px; display: grid; gap: 20px; }
@media (min-width: 640px) { .uf-gfeat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.uf-gfeat__card { position: relative; display: block; height: 190px; border-radius: 24px; padding: 14px; background: var(--bg); box-shadow: var(--shadow-neo); transition: box-shadow 0.2s; }
.uf-gfeat__card:hover { box-shadow: 16px 16px 34px rgba(4, 8, 14, 0.85), -11px -11px 24px rgba(255, 255, 255, 0.055); }
.uf-gfeat__in { position: relative; display: flex; height: 100%; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 30px; padding: 22px; box-shadow: inset 5px 5px 12px rgba(4, 8, 14, 0.55); }
.uf-gfeat__in::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 20, 31, 0.7), transparent); }
.uf-gfeat__in > * { position: relative; }
.uf-gfeat__tag { margin-bottom: 8px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; color: var(--gold); }
.uf-gfeat__name { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.uf-gfeat__count { margin-top: 8px; font-size: 12px; color: var(--fg-70); }
.uf-gtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .uf-gtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .uf-gtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.uf-gtile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-neo); background: var(--bg-ink); }
.uf-gtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.uf-gtile:hover img { transform: scale(1.1); }
.uf-gtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-ink), rgba(12, 20, 31, 0.25), transparent); }
.uf-gtile__b { position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 16px; }
.uf-gtile__name { font-size: 18px; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.uf-gtile__cta { flex: none; font-size: 12px; font-weight: 500; color: var(--gold); }

/* ========================================================= SOON / ANONS */
.uf-soon { min-width: 0; border-radius: 22px; padding: 12px; background: var(--bg); box-shadow: var(--shadow-neo); }
.uf-soon__poster { position: relative; display: flex; aspect-ratio: 2 / 3; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 15px; padding: 14px; box-shadow: inset 4px 4px 10px rgba(4, 8, 14, 0.55); background: var(--bg-ink); }
.uf-soon__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uf-soon__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 20, 31, 0.92), transparent); }
.uf-soon__poster > *:not(img) { position: relative; z-index: 1; }
.uf-soon__badge { align-self: flex-start; border-radius: 9px; background: var(--gold-soft); padding: 6px 10px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.12em; color: var(--gold); }
.uf-ticks { margin-bottom: 10px; display: flex; gap: 4px; }
.uf-tick { flex: 1; border-radius: 9px; background: rgba(12, 20, 31, 0.6); padding: 6px 0; text-align: center; box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.55); }
.uf-tick b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg); }
.uf-tick--gold b { color: var(--gold); }
.uf-tick small { display: block; margin-top: 4px; font-size: 7.5px; letter-spacing: 0.1em; color: var(--muted); }
.uf-tick--wide b { font-size: 14px; }
/* таймер на картці каталогу (категорія «Скоро») */
.uf-ticks--card { margin-bottom: 8px; gap: 3px; }
.uf-ticks--card .uf-tick { border-radius: 8px; padding: 5px 0; }
.uf-ticks--card .uf-tick b { font-size: 13px; }
.uf-ticks--card .uf-tick small { margin-top: 2px; font-size: 7px; }
.uf-soon__title { font-size: 14px; font-weight: 600; line-height: 1.375; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uf-soon__meta { margin-top: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10.5px; color: var(--muted); }
.uf-soon__remind { display: block; margin-top: 10px; width: 100%; border-radius: 13px; padding: 10px 0; text-align: center; font-size: 12px; font-weight: 500; color: var(--fg-85); background: var(--bg); box-shadow: var(--shadow-neo-sm); cursor: pointer; }
.uf-soon__remind:hover { color: var(--gold); }
.uf-soon__remind a { display: block; color: inherit; }

/* ======================================================== COLLECTIONS */
.uf-coll { margin-bottom: 48px; }
.uf-coll__head { margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.uf-coll__head h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; color: var(--fg); }
.uf-coll__head p { margin-top: 6px; max-width: 640px; font-size: 13px; color: var(--muted); }

/* ====================================================== FULL STORY: HERO */
.uf-title { overflow-x: clip; background: var(--bg); }
.uf-thero { position: relative; isolation: isolate; overflow: hidden; }
.uf-thero__bg { pointer-events: none; position: absolute; inset: -80px; width: calc(100% + 160px); height: calc(100% + 160px); max-width: none; object-fit: cover; object-position: top; opacity: 0.4; filter: blur(70px) saturate(1.5); transform: scale(1.1); }
.uf-thero__fade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(22, 32, 46, 0.4), rgba(22, 32, 46, 0.75), var(--bg)); }
.uf-thero__in { position: relative; z-index: 10; margin: 0 auto; max-width: 1280px; padding: 40px 16px; }
.uf-thero__grid { display: flex; flex-direction: column; align-items: center; gap: 32px; }
@media (min-width: 768px) { .uf-thero__in { padding: 56px 40px; } .uf-thero__grid { flex-direction: row; gap: 48px; } }
.uf-thero__poster { width: 200px; flex: none; }
@media (min-width: 640px) { .uf-thero__poster { width: 240px; } }
@media (min-width: 768px) { .uf-thero__poster { width: 280px; } }
@media (min-width: 1024px) { .uf-thero__poster { width: 320px; } }
.uf-thero__pimg { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 20px; background: var(--bg-ink); box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 50px rgba(219, 180, 60, 0.12); }
.uf-thero__pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uf-thero__info { min-width: 0; flex: 1; text-align: center; }
@media (min-width: 768px) { .uf-thero__info { text-align: left; } }
.uf-thero__info .uf-crumbs__list { justify-content: center; }
@media (min-width: 768px) { .uf-thero__info .uf-crumbs__list { justify-content: flex-start; } }
.uf-genrelinks { margin-bottom: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 0; }
@media (min-width: 768px) { .uf-genrelinks { justify-content: flex-start; } }
.uf-genrelinks a { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }
.uf-genrelinks a:hover { color: var(--fg); }
.uf-thero h1 { margin-bottom: 8px; overflow-wrap: break-word; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
@media (min-width: 768px) { .uf-thero h1 { font-size: 52px; } }
@media (min-width: 1024px) { .uf-thero h1 { font-size: 60px; } }
.uf-thero__orig { margin-bottom: 20px; font-family: var(--font-display); font-size: 18px; font-style: italic; color: var(--muted); }
.uf-metapill { margin-bottom: 24px; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(12, 20, 31, 0.45); padding: 8px 16px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (min-width: 768px) { .uf-metapill { justify-content: flex-start; } }
.uf-metapill__rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--gold); }
.uf-metapill__rating small { font-size: 11px; font-weight: 500; color: rgba(219, 180, 60, 0.5); }
.uf-metapill__votes { font-size: 11px; font-weight: 500; color: var(--muted); }
.uf-metapill__votes::after { content: " оцінок"; }
.uf-metapill__dot { width: 4px; height: 4px; border-radius: 999px; background: var(--subtle); }
.uf-metapill__item { font-size: 13px; font-weight: 500; color: var(--muted); }
.uf-specs { margin-bottom: 24px; text-align: left; }
.uf-specs__row { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.uf-specs__row:empty { display: none; }
.uf-spec { min-width: 140px; }
.uf-spec--wide { flex-basis: 100%; }
.uf-adrail__link { display: block; }
.uf-spec__k { margin-bottom: 4px; display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--subtle); text-transform: uppercase; }
.uf-spec__v { font-size: 14.5px; font-weight: 500; line-height: 1.6; color: var(--fg); }
.uf-spec__v a { color: inherit; }
.uf-spec__v a:hover { color: var(--gold); }
.uf-thero__plot { margin: 0 auto 28px; max-width: 65ch; font-size: 15.5px; line-height: 1.625; color: var(--fg-75); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.uf-thero__plot p { margin: 0; }
@media (min-width: 768px) { .uf-thero__plot { margin-left: 0; margin-right: 0; } }
.uf-thero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (min-width: 768px) { .uf-thero__cta { justify-content: flex-start; } }

/* обране: стан «додано» */
.uf-favbtn { cursor: pointer; }
.uf-favbtn a { display: contents; color: inherit; }
.uf-favbtn a[onclick*="minus"], .uf-hero__fav a[onclick*="minus"], .uf-soon__remind a[onclick*="minus"],
.fs-btn--fav-active, .prm-btn--fav-active { color: var(--gold); }

.uf-greet { margin-top: 24px; display: inline-flex; max-width: 100%; align-items: center; gap: 14px; border-radius: 16px; padding: 12px 16px; text-align: left; }
.uf-greet__emoji { display: flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; background: var(--gold-soft); font-size: 18px; }
.uf-greet__title { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.uf-greet__sub { font-size: 12px; color: var(--muted); }

/* ====================================================== FULL STORY: BODY */
.uf-tbody { margin: 0 auto; max-width: 1280px; padding: 8px 16px 56px; }
@media (min-width: 768px) { .uf-tbody { padding: 8px 40px 56px; } }
.uf-tbody__grid { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .uf-tbody__grid { flex-direction: row; align-items: flex-start; } }
.uf-tmain { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 20px; }

/* плеєр */
.uf-player { border-radius: 22px; padding: 16px; scroll-margin-top: 96px; }
@media (min-width: 768px) { .uf-player { padding: 24px; } }
.uf-player__head { margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.uf-player__title { display: flex; min-width: 0; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
@media (min-width: 768px) { .uf-player__title { font-size: 18px; } }
.uf-player__title svg { fill: var(--gold); }
.uf-player__title span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.uf-player__tools { display: flex; gap: 8px; }
.uf-toolbtn { display: flex; flex: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; color: var(--muted); background: var(--bg); box-shadow: var(--shadow-neo-sm); font-size: 10px; font-weight: 600; }
.uf-toolbtn:hover { color: var(--gold); }
.uf-toolbtn--tg { color: var(--gold); }
.uf-srctabs { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--hair); padding-bottom: 16px; }
.uf-srctabs:empty { display: none; }
.uf-srctab { display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; padding: 8px 14px; font-size: 12.5px; font-weight: 500; color: var(--fg-75); background: var(--bg); box-shadow: var(--shadow-neo-sm); }
.uf-srctab:hover { color: var(--fg); }
.uf-srctab svg { width: 12px; height: 12px; fill: currentColor; }
.uf-srctab.is-active { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.uf-screen { position: relative; display: flex; aspect-ratio: 16 / 9; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; background: var(--bg-ink); }
.uf-screen__pane { position: absolute; inset: 0; z-index: 3; background: #000; }
.uf-screen__pane iframe, .uf-screen__pane video, .uf-screen__pane object, .uf-screen__pane embed,
.uf-screen__pane > ins, .uf-screen__pane .ukrf-custom-player-container { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.uf-screen__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.uf-screen__play { position: relative; z-index: 2; display: flex; width: 80px; height: 80px; align-items: center; justify-content: center; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow-neo); }
@media (min-width: 768px) { .uf-screen__play { width: 96px; height: 96px; } }
.uf-screen__play svg { width: 32px; height: 32px; margin-left: 4px; fill: var(--gold); }
.uf-screen__empty { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 16px 24px; background: linear-gradient(to top, rgba(12, 20, 31, 0.92), transparent); font-size: 12px; color: var(--fg-80); text-align: center; }

/* власний плеєр player_ukrflix (js/fullstory.js) */
.ukrf-custom-player-container { background: #000; }
.ukrf-custom-player-container video { width: 100%; height: 100%; display: block; object-fit: contain; outline: 0; }
.ukrf-player-top-bar { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; }
.ukrf-select {
  flex: 0 1 auto; max-width: 100%; appearance: none; -webkit-appearance: none; border: 0; outline: 0; border-radius: 11px;
  padding: 8px 30px 8px 12px; font-size: 12.5px; color: var(--fg); cursor: pointer;
  background: rgba(12, 20, 31, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DBB43C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  box-shadow: 5px 5px 12px rgba(4, 8, 14, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (max-width: 600px) { .ukrf-player-top-bar { top: 6px; left: 6px; right: 6px; gap: 5px; } .ukrf-select { flex: 1; font-size: 11.5px; padding: 6px 24px 6px 8px; } }

/* вкладки контенту */
.uf-ctabs { margin-bottom: 16px; display: flex; gap: 6px; overflow-x: auto; border-radius: 18px; padding: 6px; }
.uf-ctab { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; padding: 10px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--fg-70); }
.uf-ctab:hover { color: var(--fg); }
.uf-ctab.is-active { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.uf-ctab__count { margin-left: 2px; border-radius: 999px; background: var(--gold-soft); padding: 2px 7px; font-size: 10px; font-weight: 700; color: var(--gold); }
.uf-ctab.is-active .uf-ctab__count { background: rgba(15, 23, 34, 0.18); color: var(--ink); }
.uf-panel { border-radius: 22px; padding: 20px; }
@media (min-width: 768px) { .uf-panel { padding: 24px; } }
.uf-panel--tight { padding: 16px; }
@media (min-width: 768px) { .uf-panel--tight { padding: 20px; } }
.uf-story { max-width: 72ch; font-size: 15px; line-height: 1.625; color: var(--fg-75); overflow-wrap: break-word; }
.uf-story p { margin-bottom: 12px; }
.uf-story p:last-child { margin-bottom: 0; }
.uf-story a { color: var(--gold); }
.uf-story img { height: auto; margin: 12px 0; border-radius: 14px; }
.uf-story ul, .uf-story ol { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.uf-story h2, .uf-story h3 { margin: 20px 0 10px; color: var(--fg); }
.uf-tags { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--hair); padding-top: 16px; font-size: 0; }
.uf-tags__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.uf-tags a { display: inline-block; border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--fg-80); background: var(--bg); box-shadow: var(--shadow-neo-sm); }
.uf-tags a:hover { color: var(--gold); }

/* сайдбар */
.uf-taside { display: flex; width: 100%; flex: none; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .uf-taside { position: sticky; top: 96px; width: 300px; } }
.uf-acard { display: block; border-radius: 20px; padding: 20px; }
.uf-acard__k { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--subtle); text-transform: uppercase; }
.uf-acard__k--tight { margin-bottom: 8px; }
.uf-acard__glow { width: 8px; height: 8px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 10px #dbb43c; }
.uf-votes { display: flex; gap: 10px; }
.uf-vote { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 12px 0; font-size: 13px; font-weight: 600; color: var(--fg); background: var(--bg); box-shadow: var(--shadow-neo-sm); }
.uf-vote a { display: inline-flex; align-items: center; color: inherit; }
.uf-vote:hover, .uf-vote a:hover { color: var(--gold); }
.uf-views { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -0.025em; color: var(--gold); }
.uf-views__l { margin-top: 6px; font-size: 13px; color: var(--muted); }
.uf-app__t { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--fg); }
.uf-app__s { margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.uf-app__b { margin-bottom: 16px; display: inline-flex; border-radius: 999px; background: var(--gold-soft); padding: 4px 10px; font-size: 11px; font-weight: 500; color: var(--gold); }
.uf-app__btn { display: block; border-radius: 12px; padding: 10px 0; text-align: center; font-size: 12px; font-weight: 600; }
.uf-share { display: flex; gap: 8px; }
.uf-share a, .uf-share button { display: flex; height: 44px; min-width: 0; flex: 1; align-items: center; justify-content: center; gap: 4px; overflow: hidden; border-radius: 12px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.uf-share__fb { background: #3b5998; }
.uf-share__x { background: #111; }
.uf-share__tg { background: #2aabee; }
.uf-share__copy { color: var(--muted) !important; background: var(--bg); box-shadow: var(--shadow-neo-sm); font-size: 10.5px !important; }
.uf-share__copy svg { flex: none; }
.uf-actions { display: flex; flex-direction: column; gap: 12px; }
.uf-action { display: flex; width: 100%; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-80); text-align: left; cursor: pointer; }
.uf-action a { color: inherit; }
.uf-action:hover, .uf-action a:hover { color: var(--gold); }
.uf-join__t { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--fg); }
.uf-join__p { font-size: 12.5px; line-height: 1.625; color: var(--muted); }
.uf-join__p a { font-weight: 600; color: var(--gold); }

/* плагін оцінки 1–10 (engine/modules/ukrfrate.php) */
.ukrf-rate { border-radius: 20px; padding: 20px; background: var(--bg); box-shadow: var(--shadow-neo); }
.ukrf-rate__label { margin-bottom: 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--subtle); text-transform: uppercase; }
.ukrf-rate__head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.ukrf-rate__avg { font-size: 30px; font-weight: 700; line-height: 1; color: var(--gold); }
.ukrf-rate__max { font-size: 13px; color: var(--muted); }
.ukrf-rate__count { margin-left: auto; font-size: 11px; color: var(--muted); }
.ukrf-rate__stars { display: flex; flex-wrap: wrap; gap: 2px; }
.ukrf-rate__hint { margin-top: 10px; font-size: 11.5px; color: var(--muted); }

/* модалка «Повідомити про проблему» (#ukrfOverlay/#ukrfModal керує js/fullstory.js) */
#ukrfOverlay { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(12, 20, 31, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#ukrfModal { display: none; position: fixed; left: 50%; top: 50%; z-index: 81; width: min(448px, calc(100vw - 32px)); transform: translate(-50%, -50%); }
.uf-report__card { border-radius: 22px; padding: 20px; }
.uf-report__head { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.uf-report__t { font-size: 16px; font-weight: 700; color: var(--fg); }
.uf-report__s { margin-top: 4px; font-size: 12px; color: var(--muted); }
.uf-report__box { margin-bottom: 16px; border-radius: 14px; padding: 12px 14px; }
.uf-report__text { font-size: 12.5px; line-height: 1.625; color: var(--fg-80); white-space: pre-wrap; word-break: break-word; }
.uf-report__copy { display: block; margin-bottom: 12px; width: 100%; border-radius: 14px; padding: 12px 0; font-size: 13px; font-weight: 600; }
.uf-report__copy.copied { background: rgba(52, 211, 153, 0.18); color: var(--emerald); box-shadow: none; }
.uf-report__link { display: block; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--gold); }

/* ============================================================ COMMENTS */
.uf-cform { margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; border-radius: 16px; padding: 14px; }
.uf-cform__row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .uf-cform__row { flex-direction: row; align-items: center; } }
.uf-cform__ava { width: 40px; height: 40px; flex: none; border-radius: 13px; }
.uf-cform__input { min-width: 0; flex: 1; min-height: 40px; padding: 9px 0; background: transparent; border: 0; outline: 0; font-size: 13px; line-height: 1.5; color: var(--fg); resize: none; }
.uf-cform__input::placeholder { color: var(--muted); }
.uf-cform__send { flex: none; border-radius: 13px; padding: 10px 20px; font-size: 12.5px; font-weight: 600; }
.uf-cform__extra { display: grid; gap: 10px; }
@media (min-width: 640px) { .uf-cform__extra { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.uf-cform__extra .uf-input { padding: 11px 14px; }
.uf-cform__captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.uf-cform__captcha .uf-input { flex: 1; min-width: 140px; width: auto; padding: 11px 14px; }
.uf-comments { display: flex; flex-direction: column; gap: 12px; }
.uf-comments .comments-tree-list { display: flex; flex-direction: column; gap: 12px; }
.uf-comments .comments-tree-list .comments-tree-list { margin-top: 12px; padding-left: 16px; border-left: 1px solid var(--hair); }
@media (min-width: 640px) { .uf-comments .comments-tree-list .comments-tree-list { padding-left: 28px; } }
.uf-comment { display: flex; gap: 12px; border: 1px solid var(--hair); border-radius: 16px; padding: 14px 16px; }
.uf-comment__ava { width: 38px; height: 38px; flex: none; overflow: hidden; border-radius: 13px; background: var(--bg); box-shadow: var(--shadow-inset); }
.uf-comment__ava img, .uf-comment__ava a { display: block; width: 100%; height: 100%; object-fit: cover; }
.uf-comment__b { min-width: 0; flex: 1; }
.uf-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.uf-comment__user { font-size: 13px; font-weight: 600; color: var(--fg); }
.uf-comment__user a { color: inherit; }
.uf-comment__user a:hover { color: var(--gold); }
.uf-comment__when { font-size: 11px; color: var(--muted); }
.uf-comment__text { margin-top: 6px; font-size: 13px; line-height: 1.625; color: var(--fg-80); overflow-wrap: anywhere; }
.uf-comment__text img { display: inline; vertical-align: middle; }
.uf-comment__acts { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 11.5px; color: var(--subtle); }
.uf-comment__acts a { color: inherit; }
.uf-comment__act { font-size: 11.5px; color: var(--muted); cursor: pointer; }
.uf-comment__act:hover { color: var(--gold); }
.uf-comment__act--danger:hover { color: var(--danger); }
.uf-comment__rate { display: inline-flex; align-items: center; gap: 6px; }
.uf-comment__score { font-weight: 600; color: var(--fg-80); }

/* міні-бейджі гейміфікації біля ніків (js/uf_badges_comments.js) */
.ufb { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 6px; border: 1.5px solid rgba(237, 231, 218, 0.2); border-radius: 50%; background: rgba(255, 255, 255, 0.06); font-size: 11px; line-height: 1; vertical-align: -3px; cursor: help; }
.ufb--bronze { border-color: #c08b5c; box-shadow: 0 0 8px -2px rgba(192, 139, 92, 0.7); }
.ufb--silver { border-color: #c9cdd6; box-shadow: 0 0 8px -2px rgba(201, 205, 214, 0.7); }
.ufb--gold { border-color: var(--gold); box-shadow: 0 0 10px -2px rgba(219, 180, 60, 0.8); }

/* ============================================================== FOOTER */
.uf-footer { border-top: 1px solid var(--hair); background: var(--bg-deep); padding: 48px 16px 112px; }
@media (min-width: 768px) { .uf-footer { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1280px) { .uf-footer { padding-bottom: 40px; } }
.uf-footer__in { margin: 0 auto; max-width: 1360px; }
.uf-footer__top { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; }
@media (min-width: 1024px) { .uf-footer__top { flex-direction: row; align-items: center; } }
.uf-footer__logo { margin-bottom: 12px; display: inline-flex; align-items: center; gap: 12px; }
.uf-footer__logo img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.uf-footer__logo span { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0.16em; color: var(--fg); }
.uf-footer__tag { max-width: 340px; font-size: 13.5px; line-height: 1.625; color: var(--muted); }
.uf-socials { display: flex; width: 100%; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .uf-socials { width: auto; flex-direction: row; } }
.uf-social { display: flex; min-height: 56px; align-items: center; gap: 12px; border-radius: 18px; padding: 14px 20px; color: var(--fg); transition: box-shadow 0.2s; }
.uf-social:hover { box-shadow: 13px 13px 28px rgba(4, 8, 14, 0.8), -8px -8px 18px rgba(255, 255, 255, 0.05); }
.uf-social svg { fill: var(--gold); }
.uf-social span { font-size: 14px; font-weight: 600; }
.uf-fstats { margin-top: 40px; overflow: hidden; border-radius: 20px; }
.uf-fstats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .uf-fstats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .uf-fstats__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.uf-fstat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px 12px; box-shadow: inset -1px -1px 0 var(--hair); }
.uf-fstat__v { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg); }
.uf-fstat__live { width: 8px; height: 8px; border-radius: 999px; background: var(--emerald); }
.uf-fstat__l { text-align: center; font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.uf-copy { margin-top: 32px; text-align: center; font-size: 11.5px; color: var(--subtle); }

.uf-totop { position: fixed; right: 84px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40; display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 16px; font-size: 18px; color: var(--fg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease); }
.uf-totop.is-on { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1280px) { .uf-totop { right: 100px; bottom: 28px; } }

/* AdBlock-рейка головної */
.uf-adrail { position: fixed; right: 16px; top: 50%; z-index: 30; width: 160px; transform: translateY(-50%); }
.uf-adrail img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-neo); }
@media (max-width: 1599px) { .uf-adrail { display: none !important; } }

/* ========================================================= CHAT WIDGET */
.uf-chatfab { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40; display: flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 20px; transition: box-shadow 0.2s, transform 0.2s; }
@media (min-width: 1280px) { .uf-chatfab { right: 24px; bottom: 24px; } }
.uf-chatfab__close { display: none; }
.uf-chatfab__dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 999px; background: var(--emerald); box-shadow: 0 0 0 2px var(--bg); }
.uf-chatfab.is-active { background: var(--bg); color: var(--fg); box-shadow: var(--shadow-neo); }
.uf-chatfab.is-active .uf-chatfab__open, .uf-chatfab.is-active .uf-chatfab__dot { display: none; }
.uf-chatfab.is-active .uf-chatfab__close { display: block; }
.uf-chat { position: fixed; right: 16px; bottom: calc(156px + env(safe-area-inset-bottom)); z-index: 40; display: flex; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 192px)); flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--bg); box-shadow: 18px 18px 44px rgba(4, 8, 14, 0.88), -10px -10px 24px rgba(255, 255, 255, 0.04); }
@media (min-width: 1280px) { .uf-chat { right: 24px; bottom: 92px; height: min(600px, calc(100dvh - 120px)); } }
.uf-chat__head { display: flex; flex: none; align-items: center; gap: 12px; border-bottom: 1px solid var(--hair); padding: 14px 16px; }
.uf-chat__titles { min-width: 0; flex: 1; }
.uf-chat__typing { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: italic; color: var(--gold); }
.uf-chat__ico { display: flex; flex: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 13px; color: var(--gold); }
.uf-chat__t { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.uf-chat__on { margin-top: 2px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.uf-chat__on i { width: 6px; height: 6px; border-radius: 999px; background: var(--emerald); }
.uf-chat__btn { display: flex; flex: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 11px; color: var(--muted); }
.uf-chat__btn:hover { color: var(--gold); }
.uf-chat__pins { flex: none; max-height: 96px; overflow-y: auto; border-bottom: 1px solid rgba(219, 180, 60, 0.18); background: rgba(219, 180, 60, 0.08); padding: 8px 14px; }
.uf-chat__pins .pin-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--fg-85); }
.uf-chat__pins .pin-item + .pin-item { margin-top: 4px; }
.uf-chat__pins .pin-item::before { content: "📌"; flex: none; font-size: 11px; }
.uf-chat__pins .pin-item-txt { min-width: 0; flex: 1; }
.uf-chat__pins .pin-item-txt strong { margin-right: 4px; color: var(--gold); }
.uf-chat__pins .pin-x { border: 0; background: none; color: var(--muted); cursor: pointer; }
.uf-chat__body { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 2px; overflow-y: auto; overscroll-behavior: contain; padding: 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
.uf-chat__empty { margin: auto; padding: 24px 16px; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.uf-chat__empty a { color: var(--gold); }

/* повідомлення, які генерує engine/modules/chat_handler.php (ті самі класи, що на /chat.html) */
.uf-chat .cine-msg { display: flex; gap: 10px; border-radius: 14px; padding: 8px; }
.uf-chat .cine-msg:hover { background: rgba(255, 255, 255, 0.025); }
.uf-chat .cine-av { display: inline-flex; flex: none; width: 32px !important; height: 32px !important; align-items: center; justify-content: center; border-radius: 10px; background: var(--grad-gold); color: var(--ink); font-size: 13px !important; font-weight: 700; line-height: 1; }
.uf-chat .cine-av-img { object-fit: cover; background: var(--bg-ink); }
.uf-chat .cine-av.frame-gold, .uf-chat .cine-av.frame-top { box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(219, 180, 60, 0.5); }
.uf-chat .cine-av.frame-red { box-shadow: 0 0 0 2px #e2685b; }
.uf-chat .cine-body { min-width: 0; flex: 1; }
.uf-chat .cine-head { position: relative; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.uf-chat .cine-name { display: flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--gold); }
.uf-chat .cine-badge { font-size: 11px; }
.uf-chat .cine-time { flex: none; font-size: 10.5px; color: var(--muted); }
.uf-chat .cine-actions { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity 0.2s; }
.uf-chat .cine-msg:hover .cine-actions, .uf-chat .cine-msg:focus-within .cine-actions { opacity: 1; }
@media (hover: none) { .uf-chat .cine-actions { opacity: 1; } }
.uf-chat .cine-actions button { border: 0; border-radius: 7px; background: none; padding: 2px 5px; font-size: 12px; line-height: 1; color: var(--muted); cursor: pointer; }
.uf-chat .cine-actions button:hover { background: var(--gold-soft); color: var(--gold); }
.uf-chat .cine-reply-block { margin-bottom: 6px; border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(12, 20, 31, 0.45); padding: 5px 10px; font-size: 11.5px; color: var(--muted); }
.uf-chat .cine-reply-block strong { margin-right: 5px; color: var(--gold-hi); }
.uf-chat .cine-text { font-size: 13px; line-height: 1.55; color: var(--fg-85); overflow-wrap: anywhere; }
.uf-chat .cine-img { display: inline-block; margin-top: 6px; max-width: 100%; overflow: hidden; border-radius: 12px; }
.uf-chat .cine-img img { display: block; max-width: 100%; max-height: 200px; object-fit: cover; }
.uf-chat .mention { border-radius: 5px; background: var(--gold-soft); padding: 0 4px; font-weight: 600; color: var(--gold-hi); }
.uf-chat .cine-reacts { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.uf-chat .cine-react { display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; border-radius: 20px; background: rgba(255, 255, 255, 0.05); padding: 1px 8px; font-size: 11.5px; color: var(--fg); cursor: pointer; }
.uf-chat .cine-react b { font-size: 10.5px; }
.uf-chat .cine-react.mine { border-color: rgba(219, 180, 60, 0.45); background: rgba(219, 180, 60, 0.16); }
.uf-chat .cine-empty { margin: auto; text-align: center; color: var(--muted); }
.uf-chat .react-pop { position: absolute; z-index: 5; display: flex; gap: 2px; border-radius: 14px; background: var(--bg); padding: 5px; box-shadow: 12px 12px 28px rgba(4, 8, 14, 0.8), -6px -6px 16px rgba(255, 255, 255, 0.04); }
.uf-chat .react-pop span { border-radius: 8px; padding: 3px 5px; font-size: 18px; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.uf-chat .react-pop span:hover { background: rgba(255, 255, 255, 0.08); transform: scale(1.15); }

/* поле введення */
.uf-chat__foot { flex: none; border-top: 1px solid var(--hair); padding: 10px 12px 12px; }
.uf-chat__reply { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-left: 3px solid var(--gold); border-radius: 10px; background: rgba(219, 180, 60, 0.08); padding: 7px 10px; font-size: 12px; color: var(--fg-85); }
.uf-chat__reply > div { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.uf-chat__reply b { color: var(--gold-hi); }
.uf-chat__reply button { flex: none; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--fg); cursor: pointer; }
.uf-chat__emoji { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 2px; max-height: 120px; overflow-y: auto; border-radius: 14px; background: var(--bg-deep, #131c28); padding: 8px; box-shadow: inset 4px 4px 10px rgba(4, 8, 14, 0.5); }
.uf-chat__emoji button { border: 0; border-radius: 8px; background: none; padding: 3px 4px; font-size: 20px; line-height: 1; cursor: pointer; }
.uf-chat__emoji button:hover { background: rgba(255, 255, 255, 0.08); }
.uf-chat__form { display: flex; align-items: center; gap: 8px; }
.uf-chat__tool { display: flex; flex: none; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 11px; background: none; font-size: 19px; color: var(--muted); cursor: pointer; }
.uf-chat__tool:hover, .uf-chat__tool.is-active { color: var(--gold); }
.uf-chat__input { min-width: 0; flex: 1; border: 0; border-radius: 13px; outline: 0; background: var(--bg); padding: 11px 14px; font: inherit; font-size: 13px; color: var(--fg); box-shadow: var(--shadow-inset); }
.uf-chat__input::placeholder { color: var(--subtle); }
.uf-chat__send { display: flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 13px; cursor: pointer; transition: opacity 0.15s; }
.uf-chat__form.is-sending .uf-chat__send { opacity: 0.5; }
.uf-chat__cta { flex: none; border-top: 1px solid var(--hair); padding: 16px; text-align: center; }
.uf-chat__cta p { margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }

/* =========================================== TOASTS (js/uf-toast.js) */
#ukrfToastContainer { position: fixed; left: 50%; bottom: calc(112px + env(safe-area-inset-bottom)); z-index: 9999; display: flex; width: min(420px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 10px; transform: translateX(-50%); pointer-events: none; }
@media (min-width: 1280px) { #ukrfToastContainer { bottom: 96px; } }
.ukrf-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; border-left: 3px solid var(--gold); border-radius: 16px; background: var(--bg); padding: 12px 12px 12px 16px; box-shadow: 12px 12px 28px rgba(4, 8, 14, 0.8), -6px -6px 16px rgba(255, 255, 255, 0.04); animation: uf-toast-in 0.28s var(--ease); transition: opacity 0.28s, transform 0.28s; }
.ukrf-toast--exit { opacity: 0; transform: translateY(8px); }
.ukrf-toast__icon { display: flex; flex: none; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 9px; background: var(--gold-soft); color: var(--gold); }
.ukrf-toast__icon svg { width: 15px; height: 15px; }
.ukrf-toast--error { border-left-color: var(--danger); }
.ukrf-toast--error .ukrf-toast__icon { background: rgba(226, 104, 91, 0.16); color: var(--danger); }
.ukrf-toast--info { border-left-color: var(--info); }
.ukrf-toast--info .ukrf-toast__icon { background: rgba(111, 168, 220, 0.16); color: var(--info); }
.ukrf-toast--warning { border-left-color: #f0b429; }
.ukrf-toast--warning .ukrf-toast__icon { background: rgba(240, 180, 41, 0.16); color: #f0b429; }
.ukrf-toast__body { min-width: 0; flex: 1; padding-top: 3px; }
.ukrf-toast__title { font-size: 13px; font-weight: 600; color: var(--fg); }
.ukrf-toast__msg { font-size: 12.5px; line-height: 1.45; color: var(--fg-85); }
.ukrf-toast__close { display: flex; flex: none; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); }
.ukrf-toast__close:hover { color: var(--fg); }
@keyframes uf-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* сповіщення {info} → info.tpl */
.uf-alert { position: fixed; top: 88px; left: 50%; z-index: 1000; display: flex; width: min(480px, calc(100vw - 32px)); align-items: flex-start; gap: 12px; transform: translateX(-50%); border-left: 3px solid var(--gold); border-radius: 18px; background: var(--bg); padding: 14px 14px 14px 18px; box-shadow: var(--shadow-pop); animation: uf-toast-in 0.3s var(--ease); transition: opacity 0.28s, transform 0.28s; }
.uf-alert.is-leaving { opacity: 0; transform: translateX(-50%) translateY(-10px); }
.uf-alert__ico { display: flex; flex: none; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 10px; background: var(--gold-soft); color: var(--gold); }
.uf-alert__body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.uf-alert__title { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.uf-alert__text { font-size: 12.5px; line-height: 1.5; color: var(--fg-85); }
.uf-alert__text a { color: var(--gold); }
.uf-alert__close { display: flex; flex: none; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 9px; font-size: 18px; color: var(--muted); }

/* ============================================================= PROFILE */
.uf-profile { display: grid; align-items: start; gap: 32px; }
@media (min-width: 1024px) { .uf-profile { grid-template-columns: 340px minmax(0, 1fr); } }
.uf-pcard { border-radius: 26px; padding: 28px 24px; }
@media (min-width: 1024px) { .uf-pcard { position: sticky; top: 96px; } }
.uf-pcard__c { display: flex; flex-direction: column; align-items: center; text-align: center; }
.uf-pcard__ava { position: relative; margin-bottom: 16px; display: flex; width: 110px; height: 110px; align-items: center; justify-content: center; border-radius: 34px; }
.uf-pcard__ava img { width: 88px; height: 88px; border-radius: 26px; object-fit: cover; background: var(--grad-gold); }
.uf-pcard__dot { position: absolute; right: 8px; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; background: #565663; box-shadow: 0 0 0 3px var(--bg); }
.uf-pcard__dot--on { background: var(--emerald); }
.uf-pcard__name { font-size: 22px; font-weight: 700; color: var(--fg); overflow-wrap: anywhere; }
.uf-pcard__sub { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.uf-pcard__badge { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 11px; background: var(--gold-soft); padding: 6px 12px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.025em; color: var(--gold); }
.uf-pcard__edit { margin-top: 20px; display: block; width: 100%; border-radius: 15px; padding: 14px 0; font-size: 12.5px; font-weight: 600; color: var(--fg); }
.uf-pcard__edit:hover { color: var(--gold); }
.uf-pcard__stats { margin-top: 20px; display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--hair); padding-top: 20px; }
.uf-pstat { border-radius: 15px; padding: 14px 10px; text-align: center; }
.uf-pstat b { display: block; font-size: 22px; font-weight: 700; color: var(--gold); overflow-wrap: anywhere; }
.uf-pstat b.uf-pstat__sm { font-size: 12px; line-height: 1.35; padding-top: 5px; }
.uf-pstat small { display: block; margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.uf-profile__main { display: flex; min-width: 0; flex-direction: column; gap: 20px; }
.uf-profile__main-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.uf-profile__main-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.uf-profile__bio { font-size: 14.5px; line-height: 1.7; color: var(--fg-75); overflow-wrap: break-word; }
.uf-profile__bio:empty::after { content: "Користувач ще не додав інформацію про себе."; color: var(--subtle); font-style: italic; }
.uf-profile__sig { margin-top: 16px; border-top: 1px solid var(--hair); padding-top: 14px; }
.uf-profile__sigtext { font-size: 13.5px; font-style: italic; color: var(--muted); }
.uf-profile__recent { margin-bottom: 0; }
.uf-moder { margin-top: 12px; }
.ufg { margin: 0; }
.ufg:empty { display: none; }

/* user popup (profile_popup.tpl у діалозі DLE) */
.uf-ppop { min-width: 260px; }
.uf-ppop__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--hair); padding-bottom: 14px; }
.uf-ppop__head img { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; }
.uf-ppop__name { font-size: 15px; font-weight: 600; color: var(--fg); }
.uf-ppop__group { margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; color: var(--gold); text-transform: uppercase; }
.uf-ppop__stats { display: flex; flex-direction: column; gap: 8px; }
.uf-ppop__stats li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.uf-ppop__stats span { color: var(--muted); }
.uf-ppop__stats b { color: var(--fg); font-weight: 600; }

/* ==================================================== AUTH / ACCOUNT */
.uf-authpage { display: flex; justify-content: center; padding: 8px 0; }
.uf-authcard { width: 440px; max-width: 100%; border-radius: 28px; padding: 32px; }
@media (max-width: 480px) { .uf-authcard { padding: 24px 20px; } }
.uf-authcard--center { text-align: center; }
.uf-authcard--center .uf-form { text-align: left; }
.uf-authcard__icon { display: flex; width: 64px; height: 64px; margin: 0 auto 18px; align-items: center; justify-content: center; border-radius: 22px; color: var(--gold); }
.uf-authcard .uf-badge-soft { margin-bottom: 14px; }
.uf-authcard .uf-submit { margin-top: 4px; }
.uf-auth { display: grid; max-width: 980px; margin: 0 auto; align-items: start; gap: 24px; }
@media (min-width: 1024px) { .uf-auth { grid-template-columns: minmax(0, 1fr) 320px; } }
.uf-auth .uf-authcard { width: auto; }
.uf-auth__side { display: grid; gap: 14px; }
.uf-auth__terms { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.uf-auth__terms a { color: var(--gold); }
.uf-feature { display: flex; align-items: flex-start; gap: 14px; border-radius: 20px; padding: 16px 18px; }
.uf-feature__ico { display: flex; flex: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 13px; background: var(--gold-soft); color: var(--gold); }
.uf-feature__t { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.uf-feature__s { margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.uf-xfields { display: flex; flex-direction: column; gap: 12px; }
.uf-xfields label { font-size: 12px; color: var(--muted); }

/* =============================================================== STATIC */
.uf-static h1 { margin-bottom: 8px; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.uf-static > .uf-badge-soft { margin-bottom: 12px; }
.uf-static__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.uf-static__head h1 { margin: 0; }
.uf-static__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.uf-static__updated { margin-bottom: 28px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.uf-static__body { display: flex; flex-direction: column; gap: 16px; }
.uf-static__body > h2 { margin-top: 12px; font-size: 18px; font-weight: 600; color: var(--fg); }
.uf-static__body > p, .uf-static__body > ul, .uf-static__body > ol { font-size: 14.5px; line-height: 1.625; color: var(--fg-75); }
.uf-static__body a { color: var(--gold); }
.uf-top__intro:empty { display: none; }
.uf-top__intro { margin-bottom: 24px; }
.uf-block { border-radius: 22px; padding: 24px 28px; background: var(--bg); box-shadow: var(--shadow-neo); }
@media (max-width: 480px) { .uf-block { padding: 20px; } }
.uf-block h2 { margin-bottom: 12px; font-size: 18px; font-weight: 600; color: var(--fg); }
.uf-block h3 { margin: 16px 0 8px; font-size: 15px; font-weight: 600; color: var(--fg); }
.uf-block p, .uf-block li { font-size: 14.5px; line-height: 1.625; color: var(--fg-75); }
.uf-block p + p { margin-top: 10px; }
.uf-block ul { margin-top: 8px; padding-left: 18px; list-style: disc; }
.uf-block ol { margin-top: 8px; padding-left: 18px; list-style: decimal; }
.uf-block a { color: var(--gold); }
.uf-recipient select { max-width: 100%; }

/* --------- контент статичних сторінок у БД (класи sp-*) у новому дизайні --------- */
.sp-accent { color: var(--gold); }
.sp-title { margin-top: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.sp-hero { border-radius: 22px; padding: 28px; background: var(--bg); box-shadow: var(--shadow-neo); }
.sp-hero__badge { display: inline-flex; margin-bottom: 12px; border-radius: 13px; background: var(--gold-soft); padding: 6px 14px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.sp-hero__title { margin-bottom: 10px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; color: var(--fg); }
.sp-hero__lead { font-size: 14.5px; line-height: 1.7; color: var(--fg-75); }
.sp-hero__lead + .sp-hero__lead { margin-top: 10px; }
.sp-cards { display: grid; gap: 16px; }
@media (min-width: 768px) { .sp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sp-cards--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-card { border-radius: 22px; padding: 22px; background: var(--bg); box-shadow: var(--shadow-neo); }
.sp-card__icon { display: flex; width: 44px; height: 44px; margin-bottom: 14px; align-items: center; justify-content: center; border-radius: 14px; background: var(--gold-soft) center / 22px no-repeat; font-size: 14px; font-weight: 700; color: var(--gold); }
.sp-card__icon--star { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23DBB43C'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
.sp-card__icon--coin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DBB43C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9.5c-.5-1-1.7-1.5-3-1.5-1.7 0-3 .9-3 2s1.3 1.6 3 2 3 .9 3 2-1.3 2-3 2c-1.3 0-2.5-.5-3-1.5M12 6v2M12 16v2'/%3E%3C/svg%3E"); }
.sp-card__icon--tools { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DBB43C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
.sp-card__icon--num-01::before { content: "01"; }
.sp-card__icon--num-02::before { content: "02"; }
.sp-card__title { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--fg); }
.sp-card__text { font-size: 13.5px; line-height: 1.65; color: var(--fg-75); }
.sp-card__text strong { color: var(--fg); }
.sp-card__highlight { display: block; margin-top: 12px; border-radius: 12px; padding: 10px 12px; background: var(--gold-soft); font-size: 12.5px; line-height: 1.55; color: var(--fg-85); }
.sp-callout { border-radius: 22px; padding: 24px 28px; text-align: center; background: var(--bg); box-shadow: var(--shadow-inset); }
.sp-callout--left { text-align: left; }
.sp-doc .sp-callout { margin: 16px 0 0; }
.sp-callout__title { margin-bottom: 10px; font-size: 18px; font-weight: 600; color: var(--fg); }
.sp-callout__text, .sp-callout__lead, .sp-callout__note { font-size: 14px; line-height: 1.65; color: var(--fg-75); }
.sp-callout__text strong { color: var(--fg); }
.sp-callout__email { display: inline-block; margin: 8px 0; font-size: 18px; font-weight: 700; color: var(--gold) !important; }
.sp-doc { border-radius: 22px; padding: 26px 28px; background: var(--bg); box-shadow: var(--shadow-neo); font-size: 14.5px; line-height: 1.7; color: var(--fg-75); overflow-wrap: break-word; }
@media (max-width: 480px) { .sp-doc { padding: 20px; } }
.sp-doc > :first-child { margin-top: 0; }
.sp-doc h2 { margin: 26px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.sp-doc h3 { margin: 22px 0 10px; font-size: 16px; font-weight: 600; color: var(--fg); }
.sp-doc h4 { margin: 18px 0 6px; font-size: 14.5px; font-weight: 600; color: var(--gold); }
.sp-doc p { margin: 0 0 12px; }
.sp-doc strong { color: var(--fg); }
.sp-doc a { color: var(--gold); }
.sp-doc code { border-radius: 8px; padding: 2px 6px; background: var(--bg-ink); font-size: 12.5px; color: var(--gold); }
.sp-doc blockquote { margin: 10px 0 14px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; padding: 12px 16px; background: rgba(12, 20, 31, 0.45); font-style: italic; }
.sp-doc-date { display: inline-block; margin-bottom: 16px; border-radius: 11px; padding: 6px 12px; background: var(--gold-soft); font-size: 12px; color: var(--fg-85); }
.sp-doc-clauses { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.sp-doc-clauses li { border-radius: 14px; padding: 10px 14px; background: rgba(12, 20, 31, 0.35); box-shadow: inset 3px 3px 8px rgba(4, 8, 14, 0.45); }
.sp-doc-clauses strong { margin-right: 4px; color: var(--gold); }
.sp-doc-emphasis { font-weight: 600; color: var(--gold-hi); }
.sp-doc-mark { border-radius: 6px; padding: 1px 6px; background: var(--gold-soft); color: var(--fg); }
.sp-doc-mark--dashed { border-bottom: 1px dashed var(--gold); border-radius: 0; padding: 0; background: none; }
.sp-doc-checklist { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.sp-doc-checklist li { position: relative; padding-left: 30px; }
.sp-doc-checklist li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 7px; background: var(--gold-soft); font-size: 11px; font-weight: 700; color: var(--gold); }
.sp-doc-list { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.sp-doc-list__item { border-radius: 16px; padding: 14px 16px; background: rgba(12, 20, 31, 0.35); box-shadow: inset 3px 3px 8px rgba(4, 8, 14, 0.45); }
.sp-doc-list__item strong { display: block; margin-bottom: 4px; color: var(--gold); }
.sp-alert { margin: 18px 0; border-left: 3px solid var(--danger); border-radius: 0 14px 14px 0; padding: 12px 16px; background: rgba(226, 104, 91, 0.1); font-size: 13.5px; color: var(--fg-85); }
.sp-doc-accept { margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 16px; text-align: center; }
.sp-doc-accept__hint { font-size: 12.5px; color: var(--muted); }
.sp-doc-accept input[type="button"], .sp-doc-accept input[type="submit"], .sp-doc-accept button { margin: 6px; border: 0; border-radius: 30px; padding: 12px 24px; font: 600 13.5px/1 var(--font); color: var(--fg); background: var(--bg); box-shadow: var(--shadow-neo); cursor: pointer; }
.sp-doc-accept input[type="button"]:first-of-type, .sp-doc-accept input[type="submit"] { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.sp-doc-signature { margin-top: 22px; text-align: right; }
.sp-doc-signature__text { margin: 0; font-size: 13px; color: var(--muted); }
.sp-doc-signature__brand { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: 0.08em; color: var(--fg); }
.sp-cta { border-radius: 22px; padding: 26px 28px; text-align: center; background: var(--bg); box-shadow: var(--shadow-inset); }
.sp-doc .sp-cta { margin-top: 18px; }
.sp-cta--dashed { border: 1px dashed rgba(219, 180, 60, 0.35); }
.sp-cta__title { margin-bottom: 8px; font-size: 18px; font-weight: 600; color: var(--fg); }
.sp-cta__text { margin: 0 auto 6px; max-width: 520px; font-size: 14px; line-height: 1.6; color: var(--fg-75); }
.sp-cta__hint { margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.sp-cta__btn { display: inline-flex; margin-top: 12px; border-radius: 30px; padding: 12px 24px; font-size: 14px; font-weight: 600; color: var(--ink) !important; background: var(--grad-gold); box-shadow: var(--shadow-gold); }

/* ============================================================ SEARCH PAGE */
.uf-searchpage { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.uf-searchpage__simple { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.uf-searchpage__field { flex: 1 1 320px; }
.uf-searchpage__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.uf-searchpage__ext .uf-searchpage__actions { margin-top: 4px; }
.uf-searchpage__cols { display: grid; gap: 16px; }
@media (min-width: 768px) { .uf-searchpage__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.uf-searchpage__cols > div { min-width: 0; }
/* DLE ставить полям пошуку інлайн-ширину (style="width:250px") — перебиваємо */
.uf-searchpage select[multiple] { width: 100% !important; height: auto !important; min-height: 180px; }
.uf-fieldset .uf-field { margin-bottom: 10px; }
.uf-fieldset .uf-field:last-child { margin-bottom: 0; }
.uf-searchpage #searchinput, .uf-searchpage #searchuser { width: 100% !important; }
.uf-fieldset { margin: 0 0 14px; border: 0; border-radius: 18px; padding: 14px 16px 16px; box-shadow: var(--shadow-inset); }
.uf-fieldset legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--subtle); text-transform: uppercase; }
.uf-fieldset legend + * { clear: both; }
.uf-fieldset__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-75); }
.uf-searchpage select, .uf-searchpage input[type="text"] { width: auto; max-width: 100%; padding: 10px 14px; }
.uf-searchpage__field input, .uf-searchpage #searchinput { width: 100%; }
.uf-searchpage label { font-size: 13px; color: var(--fg-75); }
.uf-searchpage input[type="checkbox"], .uf-searchpage input[type="radio"], .uf-xfields input[type="checkbox"] { accent-color: var(--gold); }
.uf-searchpage__msg { border-radius: 16px; padding: 14px 18px; font-size: 13.5px; color: var(--fg-85); }
.uf-searchpage__msg:empty { display: none; }

/* ============================================================ FAVORITES */
.uf-favpage__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.uf-favpage__head svg { color: var(--gold); }

/* ================================================================ STATS */
.uf-statgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (min-width: 640px) { .uf-statgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.uf-statcard { border-radius: 20px; padding: 18px 20px; }
.uf-statcard small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--subtle); text-transform: uppercase; }
.uf-statcard b { display: block; margin-top: 8px; font-size: 26px; font-weight: 700; color: var(--gold); }

/* ============================================================ PRIVATE MESSAGES */
.uf-pm__layout { display: grid; align-items: start; gap: 24px; max-width: 1160px; margin: 0 auto; }
@media (min-width: 1024px) { .uf-pm__layout { grid-template-columns: 280px minmax(0, 1fr); } }
.uf-pm__side { display: flex; flex-direction: column; gap: 14px; border-radius: 24px; padding: 20px; }
@media (min-width: 1024px) { .uf-pm__side { position: sticky; top: 96px; } }
.uf-pm__brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--fg); }
.uf-pm__brandico { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink); }
.uf-pm__new { width: 100%; }
.uf-pm__menu { display: flex; flex-direction: column; gap: 4px; }
.uf-pm__menu a { border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--fg-75); }
.uf-pm__menu a:hover, .uf-pm__menu a.is-active { background: var(--gold-soft); color: var(--fg); }
.uf-pm__quota { border-radius: 16px; padding: 14px; }
.uf-pm__quotarow { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.uf-pm__quotarow b { color: var(--gold); }
.uf-pm__quota small { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.uf-pm__main { min-width: 0; }
.uf-pm__head { margin-bottom: 16px; }
.uf-pm__head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); overflow-wrap: anywhere; }
.uf-pm__head--read { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.uf-pm__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.uf-pm__list { display: flex; flex-direction: column; gap: 10px; }
.uf-pm__item { display: flex; align-items: center; gap: 14px; border-radius: 18px; padding: 12px 16px; }
.uf-pm__ava { display: block; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--bg-ink) center / cover no-repeat; object-fit: cover; }
.uf-pm__iteminfo { min-width: 0; flex: 1; }
.uf-pm__subj { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 600; color: var(--fg); }
.uf-pm__subj:hover { color: var(--gold); }
.uf-pm__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.uf-pm__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--subtle); }
.uf-pm__check { flex: none; }
.uf-pm__dialog { display: flex; flex-direction: column; gap: 12px; }
.uf-pm__msg { display: flex; gap: 12px; border: 1px solid var(--hair); border-radius: 18px; padding: 14px 16px; }
.uf-pm__msg.is-online .uf-pm__ava { box-shadow: 0 0 0 2px var(--emerald); }
.uf-pm__msgb { min-width: 0; flex: 1; }
.uf-pm__msgh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 13px; }
.uf-pm__msgh b { font-weight: 600; color: var(--fg); }
.uf-pm__msgh b a:hover { color: var(--gold); }
.uf-pm__on { font-size: 10.5px; color: var(--emerald); }
.uf-pm__date { font-size: 11px; color: var(--muted); }
.uf-pm__replylink { margin-left: auto; }
.uf-pm__text { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--fg-85); overflow-wrap: anywhere; }
.uf-pm__sig { margin-top: 10px; border-top: 1px solid var(--hair); padding-top: 8px; font-size: 12px; font-style: italic; color: var(--muted); }
.uf-pm__reply { display: flex; flex-direction: column; gap: 10px; }
.uf-pm__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.uf-pm__back { margin-left: auto; }
.uf-pm__del:hover { color: var(--danger); }
.uf-pm__btns { display: flex; gap: 10px; }
/* масові дії, що додає DLE під списком ЛС */
.uf-pm__main select, .uf-pm__main input[type="submit"], .uf-pm__main input[type="button"] { border: 0; border-radius: 12px; padding: 10px 14px; font: 500 12.5px/1 var(--font); color: var(--fg); background: var(--bg); box-shadow: var(--shadow-neo-sm); }

/* ============================================================== NEWS ARTICLE */
.uf-news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.uf-news__title { margin-bottom: 20px; font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--fg); }
.uf-news__body { max-width: none; margin-bottom: 20px; }
.uf-news__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 32px; }
.uf-news__foot .uf-votes { flex: 0 1 320px; }
.uf-news__foot .uf-share { flex: 0 1 240px; }

/* ================================================================== 404 */
.uf-404__hero { max-width: 640px; margin: 0 auto 44px; padding-top: 16px; text-align: center; }
.uf-404__code { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; font-size: clamp(84px, 18vw, 150px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--fg); }
.uf-404__zero { display: inline-flex; width: 0.9em; height: 0.9em; align-items: center; justify-content: center; border-radius: 30%; font-size: 0.7em; color: var(--gold); }
.uf-404 h1 { margin-bottom: 10px; font-size: 30px; font-weight: 700; letter-spacing: -0.025em; }
.uf-404__hero p { margin-bottom: 24px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.uf-404__search { display: flex; max-width: 520px; margin: 0 auto 22px; align-items: center; gap: 10px; border-radius: 18px; padding: 8px 8px 8px 16px; color: var(--muted); }
.uf-404__input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--fg); }
.uf-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============================================================ ADD NEWS */
.uf-addvote-toggle { font-size: 13px; font-weight: 500; }
.uf-admintag { font-size: 13px; color: var(--fg-75); }
.uf-admintag label { margin-right: 14px; }

/* ====================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
