/* тёмная тема: только под data-theme=dark */
:root{
    --d-bg: #0B0F18;
    --d-bg-2: #0F1522;
    --d-card: #141B2B;
    --d-card-2: #171F31;
    --d-line: rgba(255,255,255,.08);
    --d-line-2: rgba(255,255,255,.14);
    --d-ink: #E9EEF8;
    --d-ink-2: #A9B4C8;
    --d-muted: #7C879C;
    --d-accent: #2A6BFF;
    --d-accent-2: #6E4BFF;
}
html, html[data-theme="dark"] body{
    background: var(--d-bg) !important;
    color: var(--d-ink) !important;
}
html[data-theme="dark"] body{
    background-image:
        radial-gradient(1200px 500px at 50% -200px, rgba(42,107,255,.14), transparent 70%),
        radial-gradient(900px 400px at 100% 0%, rgba(110,75,255,.10), transparent 65%) !important;
    background-repeat: no-repeat !important;
}
html[data-theme="dark"] .hd{
    background: rgba(11,15,24,.82) !important;
    border-bottom: 1px solid var(--d-line) !important;
    backdrop-filter: blur(16px) saturate(160%);
}
html[data-theme="dark"] .hd__nav a{ color: var(--d-ink-2) !important }
html[data-theme="dark"] .hd__nav a:hover, html[data-theme="dark"] .hd__nav a[aria-current="page"]{ color: #fff !important }
html[data-theme="dark"] .hd__search input{
    background: var(--d-card) !important;
    border: 1px solid var(--d-line) !important;
    color: var(--d-ink) !important;
}
html[data-theme="dark"] .hd__search input::placeholder{ color: var(--d-muted) !important }
html[data-theme="dark"] .rs-sect__title{ color: #fff !important }
html[data-theme="dark"] .rs-sect__more{ color: #7FA8FF !important }
html[data-theme="dark"] .rs-panel, html[data-theme="dark"] .rs-catdesc, html[data-theme="dark"] .rs-box, html[data-theme="dark"] .rs-card, html[data-theme="dark"] .app-card, html[data-theme="dark"] .rank-list > *, html[data-theme="dark"] .rs-cover{
    background: var(--d-card) !important;
    border: 1px solid var(--d-line) !important;
    color: var(--d-ink) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
}
html[data-theme="dark"] .app-card__name, html[data-theme="dark"] .rs-card__name{ color: #fff !important }
html[data-theme="dark"] .app-card__meta, html[data-theme="dark"] .rs-card__meta{ color: var(--d-muted) !important }
html[data-theme="dark"] .app-card__foot, html[data-theme="dark"] .rs-card__foot{ color: var(--d-ink-2) !important }
html[data-theme="dark"] .app-card:hover, html[data-theme="dark"] .rs-card:hover{
    border-color: rgba(42,107,255,.55) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.5), 0 0 0 1px rgba(42,107,255,.25) !important;
    transform: translateY(-3px);
}
html[data-theme="dark"] .app-card img{ box-shadow: 0 8px 20px rgba(0,0,0,.45) !important }
html[data-theme="dark"] .app-card__pill, html[data-theme="dark"] .rs-card__pill{
    background: rgba(42,107,255,.16) !important;
    color: #9CC0FF !important;
    border: 1px solid rgba(42,107,255,.28);
}
html[data-theme="dark"] .app-card__pill--new{
    background: rgba(20,200,130,.16) !important;
    color: #6FE7B4 !important;
    border-color: rgba(20,200,130,.3);
}
html[data-theme="dark"] .app-card__tag, html[data-theme="dark"] .rs-card__tag{
    background: rgba(255,255,255,.07) !important;
    color: var(--d-ink-2) !important;
}
html[data-theme="dark"] .rank-list > *{ border-radius: 16px }
html[data-theme="dark"] .rank-list > *:hover{ transform: translateX(3px) }
html[data-theme="dark"] .rs-chip{
    background: var(--d-card) !important;
    border: 1px solid var(--d-line) !important;
    color: var(--d-ink-2) !important;
}
html[data-theme="dark"] .rs-chip:hover{ border-color: rgba(42,107,255,.55) !important; color: #fff !important }
html[data-theme="dark"] .rs-chip.is-active{
    background: linear-gradient(135deg, var(--d-accent), var(--d-accent-2)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(42,107,255,.45);
}
html[data-theme="dark"] .rs-cover{
    background: linear-gradient(160deg, #1A2440 0%, var(--d-card) 90%) !important;
    border-color: rgba(42,107,255,.25) !important;
}
html[data-theme="dark"] .rs-cover__title{ color: #fff !important }
html[data-theme="dark"] .rs-cover__kicker{ color: var(--d-muted) !important }
html[data-theme="dark"] .rs-catdesc, html[data-theme="dark"] .rs-catdesc p, html[data-theme="dark"] .rs-panel p, html[data-theme="dark"] .rs-panel div{
    color: var(--d-ink-2) !important;
}
html[data-theme="dark"] .rs-catdesc h2, html[data-theme="dark"] .rs-panel h2, html[data-theme="dark"] .rs-panel h3{ color: #fff !important }
html[data-theme="dark"] .rs-btn{
    background: var(--d-card-2) !important;
    border: 1px solid var(--d-line) !important;
    color: var(--d-ink) !important;
}
html[data-theme="dark"] .rs-btn--primary{
    background: linear-gradient(135deg, var(--d-accent), var(--d-accent-2)) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(42,107,255,.45) !important;
}
html[data-theme="dark"] .rs-btn--ghost{
    background: rgba(255,255,255,.05) !important;
    color: var(--d-ink) !important;
}
html[data-theme="dark"] .rs-app__body, html[data-theme="dark"] .rs-app__main{ color: var(--d-ink) !important }
html[data-theme="dark"] .rs-shots img, html[data-theme="dark"] .rs-shot img{ border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.5) }
html[data-theme="dark"] .rs-app h2, html[data-theme="dark"] .rs-app h3{ color: #fff !important }
html[data-theme="dark"] .rs-app p{ color: var(--d-ink-2) !important }
html[data-theme="dark"] a{ color: #8FB4FF }
html[data-theme="dark"] a:hover{ color: #fff }
html[data-theme="dark"] ::-webkit-scrollbar{ width: 10px; height: 10px }
html[data-theme="dark"] ::-webkit-scrollbar-track{ background: var(--d-bg) }
html[data-theme="dark"] ::-webkit-scrollbar-thumb{ background: #233049; border-radius: 10px }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover{ background: #2F4063 }
@media (max-width: 620px){     .hd{ background: rgba(11,15,24,.94) !important } }
html[data-theme="dark"] .hd__logo, html[data-theme="dark"] .hd__logo span, html[data-theme="dark"] .hd__logo b, html[data-theme="dark"] .hd__logo a{ color:#fff !important }
html[data-theme="dark"] .hd__logo svg text{ fill:#fff !important }
html[data-theme="dark"] .rank-list{ color: var(--d-ink) !important }
html[data-theme="dark"] .rank-list a, html[data-theme="dark"] .rank-list div, html[data-theme="dark"] .rank-list span, html[data-theme="dark"] .rank-list p{ color: var(--d-ink-2) }
html[data-theme="dark"] .rank-list b, html[data-theme="dark"] .rank-list strong{ color:#fff !important }
html[data-theme="dark"] .app-card [class*="pill"], html[data-theme="dark"] .app-card [class*="tag"], html[data-theme="dark"] .app-card [class*="chip"], html[data-theme="dark"] .rs-card [class*="pill"], html[data-theme="dark"] .rs-card [class*="tag"], html[data-theme="dark"] .rs-card [class*="chip"]{
    background: rgba(255,255,255,.08) !important;
    color: #A9B4C8 !important;
    border-color: rgba(255,255,255,.10) !important;
}
html[data-theme="dark"] .app-card [class*="pill--new"], html[data-theme="dark"] .app-card [class*="new"]{
    background: rgba(20,200,130,.16) !important;
    color: #6FE7B4 !important;
}
html[data-theme="dark"] .app-card__name, html[data-theme="dark"] .rank-list [class*="name"], html[data-theme="dark"] .rank-list [class*="title"]{ color:#fff !important }
html[data-theme="dark"] .hd__search button, html[data-theme="dark"] .hd__search svg{ color:#fff }
html[data-theme="dark"] body::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] body > *{ position: relative; z-index: 1 }
html[data-theme="dark"] .app-card, html[data-theme="dark"] .rs-card, html[data-theme="dark"] .rank-list > *, html[data-theme="dark"] .rs-cover, html[data-theme="dark"] .rs-panel, html[data-theme="dark"] .rs-catdesc{
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)) !important;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 10px 30px rgba(0,0,0,.35) !important;
}
html[data-theme="dark"] .app-card, html[data-theme="dark"] .rs-cover, html[data-theme="dark"] .rank-list > *{
    position: relative;
    border: 0 !important;
}
html[data-theme="dark"] .app-card::before, html[data-theme="dark"] .rs-cover::before, html[data-theme="dark"] .rank-list > *::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg,
        rgba(148,163,184,.30) 0%,
        rgba(42,107,255,.50) 45%,
        rgba(110,75,255,.42) 70%,
        rgba(148,163,184,.18) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    pointer-events: none;
    opacity: .55;
    transition: opacity .2s ease;
}
html[data-theme="dark"] .app-card:hover::before, html[data-theme="dark"] .rs-cover:hover::before, html[data-theme="dark"] .rank-list > *:hover::before{ opacity: 1 }
html[data-theme="dark"] .app-card:hover, html[data-theme="dark"] .rs-cover:hover{
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 18px 44px rgba(0,0,0,.5),
        0 0 0 1px rgba(42,107,255,.25),
        0 0 34px rgba(42,107,255,.28) !important;
}
html[data-theme="dark"] .rs-sect__title, html[data-theme="dark"] .rs-h1{
    background: linear-gradient(92deg, #FFFFFF 10%, #A9C3FF 60%, #C7B4FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] .rs-sect__title::before{
    background: linear-gradient(180deg, var(--d-accent), var(--d-accent-2)) !important;
    box-shadow: 0 0 12px rgba(42,107,255,.6);
}
html[data-theme="dark"] .rs-chip{
    background: rgba(255,255,255,.05) !important;
    backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255,255,255,.10) !important;
}
html[data-theme="dark"] .rs-chip.is-active{
    background: linear-gradient(135deg, var(--d-accent), var(--d-accent-2)) !important;
    box-shadow: 0 6px 20px rgba(42,107,255,.5), inset 0 1px 0 rgba(255,255,255,.28) !important;
}
html[data-theme="dark"] .rs-btn--primary{
    background-image: linear-gradient(135deg, #3E7BFF 0%, #6E4BFF 100%) !important;
    box-shadow: 0 10px 28px rgba(42,107,255,.45), inset 0 1px 0 rgba(255,255,255,.28) !important;
}
html[data-theme="dark"] .rs-head{ position: relative }
html[data-theme="dark"] .rs-head::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120% 120% at 50% -20%, rgba(255,255,255,.10), transparent 60%);
}
html[data-theme="dark"] .rank-list > *{
    border: 1px solid rgba(255,255,255,.08) !important;
    padding: 14px 16px !important;
    box-sizing: border-box;
}
html[data-theme="dark"] .rank-list > *::before{ display: none !important; content: none !important }
html[data-theme="dark"] .rank-list > * > *{ min-width: 0 }
html[data-theme="dark"] .rank-list [class*="name"], html[data-theme="dark"] .rank-list [class*="title"]{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html[data-theme="dark"] .rank-list{ counter-reset: rank }
html[data-theme="dark"] .rank-card::before{
    content: counter(rank) !important;
    counter-increment: rank;
    display: grid !important;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(42,107,255,.30), rgba(110,75,255,.30)) !important;
    color: #BFD3FF !important;
    font-size: 13.5px;
    font-weight: 800;
    border: 1px solid rgba(42,107,255,.35);
}
html[data-theme="dark"] .rank-card{
    padding: 12px 16px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}
html[data-theme="dark"] .rank-card__name{ color: #fff !important }
html[data-theme="dark"] .rank-card__meta, html[data-theme="dark"] .rank-card__size, html[data-theme="dark"] .rank-card__ver{ color: var(--d-muted) !important }
html[data-theme="dark"] .rank-card::before{
    position: static !important;
    inset: auto !important;
    padding: 0 !important;
    -webkit-mask: none !important;
    mask: none !important;
    background: linear-gradient(135deg, rgba(42,107,255,.28), rgba(110,75,255,.28)) !important;
}
html[data-theme="dark"] .rank-card{ position: static !important }
html[data-theme="dark"] .rs-head{ padding-top: clamp(30px, 4.5vw, 64px) !important; padding-bottom: clamp(26px, 4vw, 54px) !important }
html[data-theme="dark"] .rs-h1{
    font-size: clamp(30px, 4.4vw + 10px, 64px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em !important;
}
html[data-theme="dark"] .rs-head .rs-sub{
    margin-top: 14px !important;
    max-width: 52ch !important;
    font-size: clamp(12px, .35vw + 11px, 14px) !important;
    letter-spacing: .01em;
    color: rgba(255,255,255,.58) !important;
}
html[data-theme="dark"] .app-card, html[data-theme="dark"] .rs-card{
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}
html[data-theme="dark"] .app-card::after, html[data-theme="dark"] .rs-cover::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120% 80% at 50% -30%, rgba(255,255,255,.16), transparent 55%);
    opacity: .9;
}
html[data-theme="dark"] .rs-covers{
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 96px;
    gap: 12px;
}
html[data-theme="dark"] .rs-covers > :nth-child(1), html[data-theme="dark"] .rs-covers > :nth-child(6){
    grid-row: span 2;
}
html[data-theme="dark"] .rs-cover{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px !important;
}
html[data-theme="dark"] .rs-covers > :nth-child(1) .rs-cover__title, html[data-theme="dark"] .rs-covers > :nth-child(6) .rs-cover__title{
    font-size: 19px;
}
html[data-theme="dark"] .rs-sect:has(.app-card:hover) .rs-sect__title{
    background: linear-gradient(92deg, #fff 10%, #7FA8FF 60%, #C7B4FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
@keyframes rs-hue{
    0%   { background-position: 0% 50% }
    100% { background-position: 100% 50% }
}
html[data-theme="dark"] .rs-h1{
    background-size: 220% 100% !important;
    animation: rs-hue 14s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce){     .rs-h1{ animation: none !important }     .rs-card:hover, .app-card:hover, .rs-cover:hover{ transform: none !important } }
html[data-theme="dark"] .rs-chip, html[data-theme="dark"] .rs-btn{
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
html[data-theme="dark"] .app-card__badge{
    background: rgba(255,255,255,.07) !important;
    color: #AEB9CC !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 8px !important;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 600;
}
html[data-theme="dark"] .app-card__badge--fmt{
    background: rgba(42,107,255,.16) !important;
    color: #9CC0FF !important;
    border-color: rgba(42,107,255,.32) !important;
}
html[data-theme="dark"] .app-card__rate{ color: #FFD34E !important }
html[data-theme="dark"] .rs-pager, html[data-theme="dark"] .rs-pages, html[data-theme="dark"] .pagination, html[data-theme="dark"] .navigation, html[data-theme="dark"] [class*="pager"]{
    display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0;
}
html[data-theme="dark"] .rs-pager a, html[data-theme="dark"] .rs-pages a, html[data-theme="dark"] .pagination a, html[data-theme="dark"] .navigation a, html[data-theme="dark"] [class*="pager"] a, html[data-theme="dark"] .rs-pager span, html[data-theme="dark"] .rs-pages span, html[data-theme="dark"] [class*="pager"] span{
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border-radius: 11px;
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #C7D2E5 !important;
    font-size: 13.5px; font-weight: 600;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
html[data-theme="dark"] .rs-pager a:hover, html[data-theme="dark"] .pagination a:hover, html[data-theme="dark"] [class*="pager"] a:hover{
    background: rgba(42,107,255,.18) !important;
    border-color: rgba(42,107,255,.5) !important;
    color: #fff !important;
}
html[data-theme="dark"] .rs-pager .is-active, html[data-theme="dark"] .pagination .is-active, html[data-theme="dark"] [class*="pager"] .is-active{
    background: linear-gradient(135deg, #3E7BFF, #6E4BFF) !important;
    border-color: transparent !important;
    color: #fff !important;
}
html[data-theme="dark"] .hd__search{ position: relative }
html[data-theme="dark"] .hd__search input:focus{
    border-color: rgba(42,107,255,.65) !important;
    box-shadow: 0 0 0 4px rgba(42,107,255,.18) !important;
    outline: none;
}
html[data-theme="dark"] ::selection{ background: rgba(42,107,255,.45); color: #fff }
html[data-theme="dark"] .rs-app__body{ color: var(--d-ink) !important }
html[data-theme="dark"] .rs-shots img{ border: 1px solid rgba(255,255,255,.10); border-radius: 14px }
html[data-theme="dark"] .rs-app__main p, html[data-theme="dark"] .rs-app__main li{ color: #B6C0D2 !important }
html[data-theme="dark"] .rs-app__main h2, html[data-theme="dark"] .rs-app__main h3, html[data-theme="dark"] .rs-app__main strong{ color: #fff !important }
html[data-theme="dark"] .rs-app__main a{ color: #8FB4FF }
html[data-theme="dark"] .rs-inst, html[data-theme="dark"] .rs-inst__item{
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 14px;
    color: #B6C0D2 !important;
}
html[data-theme="dark"] .rs-side, html[data-theme="dark"] .rs-aside, html[data-theme="dark"] [class*="sidebar"] > div{
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 16px;
    color: #B6C0D2 !important;
}
html[data-theme="dark"] .rs-carousel{ overflow: hidden !important; position: relative }
html[data-theme="dark"] .rs-shots{
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
html[data-theme="dark"] .rs-shots::-webkit-scrollbar{ display: none }
html[data-theme="dark"] .rs-shots > *, html[data-theme="dark"] .rs-shots img{
    scroll-snap-align: start;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
}
html[data-theme="dark"] .rs-nav--next{ right: 8px }
html[data-theme="dark"] .rs-nav--prev{ left: 8px }
html[data-theme="dark"] .rs-app__body .rs-tag, html[data-theme="dark"] .rs-side .rs-tag, html[data-theme="dark"] .rs-app__main .rs-tag{
    background: rgba(255,255,255,.08) !important;
    color: #AEB9CC !important;
    border: 1px solid rgba(255,255,255,.10) !important;
}
html[data-theme="dark"] .rs-side h3, html[data-theme="dark"] .rs-side .rs-panel__title{ color: #fff !important }
html[data-theme="dark"] .rs-side .rs-spec i{ color: rgba(255,255,255,.45) !important }
html[data-theme="dark"] .rs-side .rs-spec b{ color: #fff !important }
html[data-theme="dark"] .rs-app__hero ~ * .rs-tag, html[data-theme="dark"] .rs-app__body .rs-tag{ background: rgba(255,255,255,.08) !important; color:#AEB9CC !important; border:1px solid rgba(255,255,255,.10) !important }
html[data-theme="dark"] .rs-shots, html[data-theme="dark"] .rs-carousel{ background: transparent !important }
html[data-theme="dark"] .rs-shots img{ border-radius: 14px !important; border:1px solid rgba(255,255,255,.10) }

/* ============================================================
   СВЕТЛАЯ ТЕМА (по умолчанию) — та же система, светлая база
   ============================================================ */
html:not([data-theme="dark"]) .rs-head{
    background:
        radial-gradient(900px 320px at 10% -30%, rgba(42,107,255,.18), transparent 62%),
        radial-gradient(700px 300px at 92% -10%, rgba(110,75,255,.12), transparent 60%),
        linear-gradient(165deg, #F7FAFF 0%, #EDF2FF 100%) !important;
    border: 1px solid #DCE6FA !important;
    box-shadow: 0 18px 48px rgba(14,19,32,.10) !important;
}
html:not([data-theme="dark"]) .rs-head::after{
    background-image: radial-gradient(rgba(14,19,32,.05) 1px, transparent 1px) !important;
}
html:not([data-theme="dark"]) .rs-h1{
    background: linear-gradient(92deg, #0E1320 15%, #2A6BFF 60%, #6E4BFF 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
html:not([data-theme="dark"]) .rs-head .rs-sub{
    color: #4A5466 !important;
}

/* карточки: белые, с аккуратной тенью и градиентной рамкой на hover */
html:not([data-theme="dark"]) .app-card,
html:not([data-theme="dark"]) .rs-card,
html:not([data-theme="dark"]) .rank-card,
html:not([data-theme="dark"]) .rs-cover,
html:not([data-theme="dark"]) .rs-panel{
    background: #fff !important;
    border: 1px solid #E6EBF3 !important;
    box-shadow: 0 1px 2px rgba(14,19,32,.05), 0 8px 24px rgba(14,19,32,.06) !important;
}
html:not([data-theme="dark"]) .app-card:hover,
html:not([data-theme="dark"]) .rank-card:hover,
html:not([data-theme="dark"]) .rs-cover:hover{
    border-color: #C9D9F8 !important;
    box-shadow: 0 14px 34px rgba(14,19,32,.12) !important;
}
html:not([data-theme="dark"]) .app-card__name,
html:not([data-theme="dark"]) .rank-card__name{ color: #0E1320 !important }
html:not([data-theme="dark"]) .app-card__meta,
html:not([data-theme="dark"]) .rank-card__meta{ color: #6B7280 !important }

/* метки */
html:not([data-theme="dark"]) .app-card__badge{
    background: #F1F4FA !important;
    color: #3E4757 !important;
    border: 1px solid #E4E9F2 !important;
}
html:not([data-theme="dark"]) .app-card__badge--fmt{
    background: rgba(42,107,255,.10) !important;
    color: #1E4FD8 !important;
    border-color: rgba(42,107,255,.22) !important;
}

/* чипы */
html:not([data-theme="dark"]) .rs-chip{
    background: #fff !important;
    border: 1px solid #E4E9F2 !important;
    color: #3E4757 !important;
}
html:not([data-theme="dark"]) .rs-chip.is-active{
    background: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* топ-лист: номер */
html:not([data-theme="dark"]) .rank-card::before{
    background: #F1F4FA !important;
    color: #6B7280 !important;
    border: 1px solid #E4E9F2 !important;
}

/* заголовки секций — тёмный текст с акцентным градиентом */
html:not([data-theme="dark"]) .rs-sect__title{
    background: linear-gradient(92deg, #0E1320 30%, #1E4FD8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* подвал остаётся тёмным в обеих темах — это фирменный блок */

/* светлая тема: шапка и мобильные состояния */
html:not([data-theme="dark"]) .hd{
    background: rgba(255,255,255,.88) !important;
    border-bottom: 1px solid #E6EBF3 !important;
    backdrop-filter: blur(16px) saturate(160%);
}
html:not([data-theme="dark"]) .hd__logo,
html:not([data-theme="dark"]) .hd__logo span,
html:not([data-theme="dark"]) .hd__logo b{ color: #0E1320 !important }
html:not([data-theme="dark"]) .hd__nav a{ color: #4A5466 !important }
html:not([data-theme="dark"]) .hd__nav a:hover,
html:not([data-theme="dark"]) .hd__nav a[aria-current="page"]{ color: #2A6BFF !important }
html:not([data-theme="dark"]) .hd__search input{
    background: #F4F6FB !important;
    border: 1px solid #E4E9F2 !important;
    color: #0E1320 !important;
}
html:not([data-theme="dark"]) .hd__search input::placeholder{ color: #8A93A6 !important }
html:not([data-theme="dark"]) .hd__search input:focus{
    border-color: rgba(42,107,255,.55) !important;
    box-shadow: 0 0 0 4px rgba(42,107,255,.14) !important;
}
html:not([data-theme="dark"]) .rs-btn--ghost{
    background: #F4F6FB !important;
    border: 1px solid #E4E9F2 !important;
    color: #3E4757 !important;
}
@media (max-width: 620px){
    html:not([data-theme="dark"]) .hd{ background: rgba(255,255,255,.94) !important }
    html:not([data-theme="dark"]) .rs-head{ padding: 20px 16px !important; border-radius: 16px !important }
    html:not([data-theme="dark"]) .rs-h1{ font-size: 26px !important; line-height: 1.1 !important }
}

/* ============================================================
   ФОРМЫ: вход, регистрация, поиск, комментарии (2 темы)
   ============================================================ */
input[type="text"], input[type="password"], input[type="email"],
input[type="search"], input[type="url"], input[type="tel"],
textarea, select{
    background: #fff !important;
    border: 1px solid #E4E9F2 !important;
    border-radius: 12px !important;
    color: #0E1320 !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    transition: border-color .16s ease, box-shadow .16s ease;
    box-shadow: 0 1px 2px rgba(14,19,32,.04);
}
input::placeholder, textarea::placeholder{ color: #98A1B3 !important }
input:focus, textarea:focus, select:focus{
    border-color: rgba(42,107,255,.65) !important;
    box-shadow: 0 0 0 4px rgba(42,107,255,.14) !important;
    outline: none !important;
}
label, .rs-label{ color: #3E4757 !important; font-size: 13px; font-weight: 600 }

/* кнопки форм */
input[type="submit"], button[type="submit"], .rs-btn--submit{
    background: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 11px 22px !important;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(42,107,255,.35);
}
input[type="submit"]:hover, button[type="submit"]:hover{ filter: brightness(1.07) }

/* комментарии */
.comment, .com-item, .comments-list > div{
    background: #fff !important;
    border: 1px solid #E6EBF3 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    box-shadow: 0 1px 2px rgba(14,19,32,.04);
}

/* ---- тёмная тема ---- */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{
    background: #141B2B !important;
    border-color: rgba(255,255,255,.10) !important;
    color: #E9EEF8 !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{ color: #7C879C !important }
html[data-theme="dark"] label,
html[data-theme="dark"] .rs-label{ color: #AEB9CC !important }
html[data-theme="dark"] .comment,
html[data-theme="dark"] .com-item,
html[data-theme="dark"] .comments-list > div{
    background: #141B2B !important;
    border-color: rgba(255,255,255,.08) !important;
    color: #C7D2E5 !important;
}
html[data-theme="dark"] input[type="submit"],
html[data-theme="dark"] button[type="submit"]{
    box-shadow: 0 10px 26px rgba(42,107,255,.45);
}

/* ============================================================
   СЛАЙДЕРЫ: вернуть flex-ленту (grid ломал карусель)
   ============================================================ */
.rs-row--cards{
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.rs-row--cards::-webkit-scrollbar{ display: none }
.rs-row--cards > *{
    flex: 0 0 clamp(240px, 26vw, 320px) !important;
    scroll-snap-align: start;
    min-width: 0;
}
.rs-carousel{
    position: relative;
    overflow: hidden !important;
}
.rs-carousel .rs-nav{
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rs-carousel .rs-row--cards{ scroll-behavior: smooth }

@media (max-width: 620px){
    .rs-row--cards > *{ flex: 0 0 78% !important }
}

/* ============================================================
   СЛАЙДЕР СКРИНШОТОВ В КАРТОЧКЕ (DLE gallery)
   ============================================================ */
.rs-carousel .xfieldimagegallery,
.xfieldimagegallery{
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 0 4px !important;
    margin: 0 !important;
}
.xfieldimagegallery::-webkit-scrollbar{ display: none }
.xfieldimagegallery > a,
.xfieldimagegallery > span,
.xfieldimagegallery > img{
    flex: 0 0 auto !important;
    scroll-snap-align: start;
    display: block;
    line-height: 0;
}
.xfieldimagegallery img{
    height: clamp(180px, 22vw, 300px) !important;
    width: auto !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 14px !important;
    border: 1px solid rgba(14,19,32,.10);
    box-shadow: 0 10px 26px rgba(14,19,32,.14);
}
html[data-theme="dark"] .xfieldimagegallery img{
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

/* сама карусель: место под стрелки */
.rs-carousel{ position: relative }
.rs-carousel > .rs-nav{ top: 50%; transform: translateY(-50%) }
.rs-carousel .xfieldimagegallery{ padding-left: 0; padding-right: 0 }

@media (max-width: 620px){
    .xfieldimagegallery img{ height: 190px !important }
}

/* ============================================================
   ШАПКА: поиск и кнопка «Войти»
   ============================================================ */
.hd__search{
    display: flex !important;
    align-items: center;
    position: relative;
    gap: 8px;
}
.hd__search input[type="search"]{
    height: 44px !important;
    padding: 0 54px 0 16px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
}
.hd__search button[type="submit"]{
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(42,107,255,.4) !important;
    transition: filter .16s ease, transform .12s ease;
}
.hd__search button[type="submit"]:hover{ filter: brightness(1.1) }
.hd__search button[type="submit"]:active{ transform: translateY(-50%) scale(.96) !important }

/* «Войти» / «Кабинет» */
.hd__login{
    height: 44px !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(42,107,255,.35) !important;
    transition: filter .16s ease, transform .12s ease;
    white-space: nowrap;
}
.hd__login:hover{ filter: brightness(1.08) }
.hd__login:active{ transform: translateY(1px) }

/* иконки-кнопки: поиск, тема, меню */
.hd__searchbtn, .hd__theme, .hd__burger{
    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 14px !important;
    background: #F4F6FB !important;
    border: 1px solid #E4E9F2 !important;
    color: #3E4757 !important;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.hd__searchbtn:hover, .hd__theme:hover, .hd__burger:hover{
    background: #EAEFFB !important;
    border-color: #C9D9F8 !important;
    color: #2A6BFF !important;
}

/* тёмная тема */
html[data-theme="dark"] .hd__search input[type="search"]{
    background: #141B2B !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #E9EEF8 !important;
}
html[data-theme="dark"] .hd__searchbtn,
html[data-theme="dark"] .hd__theme,
html[data-theme="dark"] .hd__burger{
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.10) !important;
    color: #C7D2E5 !important;
}
html[data-theme="dark"] .hd__searchbtn:hover,
html[data-theme="dark"] .hd__theme:hover,
html[data-theme="dark"] .hd__burger:hover{
    background: rgba(42,107,255,.20) !important;
    border-color: rgba(42,107,255,.45) !important;
    color: #fff !important;
}

/* мобилка: поиск скрыт, иконки круглее */
@media (max-width: 900px){
    .hd__login{ height: 40px !important; padding: 0 16px !important; font-size: 13.5px !important }
    .hd__searchbtn, .hd__theme, .hd__burger{ width: 40px !important; height: 40px !important; border-radius: 12px !important }
}
/* поиск: убрать дублирующую иконку на десктопе, выровнять поле */
.hd__search{ flex: 1 1 auto; max-width: 420px; margin-left: auto }
.hd__search input[type="search"]{ width: 100% !important }
.hd__actions{ display: flex; align-items: center; gap: 10px }
@media (min-width: 901px){
    .hd__searchbtn{ display: none !important }
}

/* ============================================================
   ОПИСАНИЕ, СПОЙЛЕР, ХАРАКТЕРИСТИКИ — аккуратная типографика
   ============================================================ */

/* текст описания: без «коробки», крупнее и с воздухом */
.rs-prose, .rs-catdesc{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
    color: #4A5466 !important;
    letter-spacing: .002em;
}
.rs-prose p, .rs-catdesc p{
    margin: 0 0 14px !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}
.rs-prose strong, .rs-catdesc strong{ color: #0E1320 !important; font-weight: 700 }
.rs-prose ul, .rs-catdesc ul{ margin: 0 0 14px 18px !important; padding: 0 !important }
.rs-prose li, .rs-catdesc li{ margin: 0 0 6px !important; color: inherit !important }

/* плавное затухание вместо обрубленного текста */
.rs-catdesc.is-clamped{
    position: relative;
    max-height: 168px;
    overflow: hidden;
}
.rs-catdesc.is-clamped::after{
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(245,247,251,0), #F5F7FB 82%);
}

/* кнопка «Читать далее» */
.rs-catdesc-more{
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0 !important;
    padding: 10px 20px !important;
    border: 1px solid #DCE6FA !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #1E4FD8 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(42,107,255,.14);
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
}
.rs-catdesc-more::after{ content: "↓"; font-size: 12px; transition: transform .2s ease }
.rs-catdesc-more:hover{
    background: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.rs-catdesc-more:active{ transform: translateY(0) }

/* заголовок «Характеристики» */
.rs-block__title{
    margin: 26px 0 14px !important;
    font-size: clamp(17px, 1.4vw, 21px) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    color: #0E1320 !important;
    padding-left: 12px;
    border-left: 4px solid #2A6BFF;
    line-height: 1.2;
}

/* список характеристик: строки с разделителем */
.rs-specs{ list-style: none !important; margin: 0 !important; padding: 0 !important }
.rs-specs li{
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 11px 2px !important;
    border-bottom: 1px solid #EDF0F6;
    font-size: 14px !important;
    color: #6B7280 !important;
}
.rs-specs li:last-child{ border-bottom: 0 }
.rs-specs li span:last-child, .rs-specs li b{ color: #0E1320 !important; font-weight: 700; text-align: right }

/* ---- тёмная тема ---- */
html[data-theme="dark"] .rs-prose,
html[data-theme="dark"] .rs-catdesc{ color: #B6C0D2 !important }
html[data-theme="dark"] .rs-prose strong,
html[data-theme="dark"] .rs-catdesc strong{ color: #fff !important }
html[data-theme="dark"] .rs-catdesc.is-clamped::after{
    background: linear-gradient(180deg, rgba(11,15,24,0), #0B0F18 82%);
}
html[data-theme="dark"] .rs-catdesc-more{
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #BFD3FF !important;
    box-shadow: none;
}
html[data-theme="dark"] .rs-catdesc-more:hover{
    background: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    border-color: transparent !important;
    color: #fff !important;
}
html[data-theme="dark"] .rs-block__title{ color: #fff !important }
html[data-theme="dark"] .rs-specs li{
    border-bottom-color: rgba(255,255,255,.08) !important;
    color: #8B96AB !important;
}
html[data-theme="dark"] .rs-specs li span:last-child,
html[data-theme="dark"] .rs-specs li b{ color: #fff !important }

@media (max-width: 620px){
    .rs-prose, .rs-catdesc{ font-size: 14.5px !important }
    .rs-catdesc.is-clamped{ max-height: 150px }
    .rs-specs li{ font-size: 13.5px !important; padding: 10px 2px !important }
}

/* ============================================================
   ПОДЛОЖКА КАК У «КАК УСТАНОВИТЬ» — для описания, характеристик
   и слайдера скриншотов
   ============================================================ */
.rs-block,
.rs-carousel{
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(14,19,32,.07);
    border-radius: 18px;
    padding: 20px 22px !important;
    box-shadow: 0 1px 2px rgba(14,19,32,.04), 0 10px 28px rgba(14,19,32,.05);
    margin: 0 0 16px;
}
.rs-carousel{ padding: 16px !important }
.rs-carousel .xfieldimagegallery{ padding: 0 !important }

/* заголовок внутри подложки — без лишнего отступа сверху */
.rs-block > .rs-block__title:first-child{ margin-top: 0 !important }

/* описание внутри подложки — без своей рамки */
.rs-block .rs-prose,
.rs-block .rs-catdesc{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.rs-block .rs-catdesc.is-clamped::after{
    background: linear-gradient(180deg, rgba(255,255,255,0), #FBFCFE 82%);
}

/* ---- тёмная тема ---- */
html[data-theme="dark"] .rs-block,
html[data-theme="dark"] .rs-carousel{
    background: rgba(255,255,255,.035) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 34px rgba(0,0,0,.35) !important;
}
html[data-theme="dark"] .rs-block .rs-catdesc.is-clamped::after{
    background: linear-gradient(180deg, rgba(20,27,43,0), #141B2B 82%);
}

@media (max-width: 620px){
    .rs-block, .rs-carousel{ padding: 16px 14px !important; border-radius: 16px }
    .rs-carousel{ padding: 12px !important }
}

/* ============================================================
   БЕЗ «ПРЫЖКОВ» ПРИ СМЕНЕ ТЕМЫ
   ============================================================ */
html{
    scrollbar-gutter: auto;
}
html, body{
    overflow-y: auto;
    scrollbar-width: thin;
}
/* одинаковые размеры бургера в обеих темах */
.hd__burger{
    display: grid !important;
    place-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
}
.hd__burger span{
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 2px !important;
    background: currentColor !important;
    margin: 0 !important;
    transition: background .16s ease;
}
/* кнопка темы: иконки одного размера */
.hd__theme svg{ width: 18px !important; height: 18px !important; flex: 0 0 auto }
.hd__theme{ width: 44px !important; height: 44px !important }

/* при переключении темы не дёргать анимации теней/градиентов */
html[data-theme] body,
html[data-theme] .hd,
html[data-theme] .rs-head,
html[data-theme] .rs-block,
html[data-theme] .rs-carousel{
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
@media (prefers-reduced-motion: reduce){
    html[data-theme] body,
    html[data-theme] .hd,
    html[data-theme] .rs-head,
    html[data-theme] .rs-block,
    html[data-theme] .rs-carousel{ transition: none !important }
}

/* ============================================================
   ТЕКСТ В ТЁМНОЙ ТЕМЕ: читаемость
   ============================================================ */
html[data-theme="dark"] .rs-prose,
html[data-theme="dark"] .rs-catdesc{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #D9E1EE !important;
    font-size: 15.5px !important;
    line-height: 1.78 !important;
}
html[data-theme="dark"] .rs-prose p,
html[data-theme="dark"] .rs-catdesc p{
    color: #D9E1EE !important;
    margin: 0 0 16px !important;
}
html[data-theme="dark"] .rs-prose strong,
html[data-theme="dark"] .rs-catdesc strong{ color: #FFFFFF !important; font-weight: 700 }
html[data-theme="dark"] .rs-prose li,
html[data-theme="dark"] .rs-catdesc li{ color: #CBD5E4 !important }
html[data-theme="dark"] .rs-prose a,
html[data-theme="dark"] .rs-catdesc a{ color: #94BBFF !important; text-decoration-color: rgba(148,187,255,.4) }

/* убрать «коробку» внутри подложки */
html[data-theme="dark"] .rs-block .rs-prose,
html[data-theme="dark"] .rs-block .rs-catdesc{
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* подложка описания чуть светлее фона, без двойного слоя */
html[data-theme="dark"] .rs-block{
    background: #121A2A !important;
    border-color: rgba(255,255,255,.08) !important;
}

/* кнопка «Читать далее» — заметнее */
html[data-theme="dark"] .rs-catdesc-more{
    background: rgba(42,107,255,.16) !important;
    border: 1px solid rgba(42,107,255,.35) !important;
    color: #BFD3FF !important;
}
html[data-theme="dark"] .rs-catdesc-more:hover{
    background: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* затухание под цвет подложки */
html[data-theme="dark"] .rs-catdesc.is-clamped::after{
    background: linear-gradient(180deg, rgba(18,26,42,0), #121A2A 85%) !important;
}

/* характеристики: контрастнее */
html[data-theme="dark"] .rs-specs li{ color: #9AA6BA !important }
html[data-theme="dark"] .rs-specs li span:last-child,
html[data-theme="dark"] .rs-specs li b{ color: #FFFFFF !important }
html[data-theme="dark"] .rs-block__title{ color: #FFFFFF !important }

/* ============================================================
   ДЕСКТОП: убрать мобильные элементы, почистить логотип
   ============================================================ */
@media (min-width: 901px){
    .hd__burger{ display: none !important }
    .hd__searchbtn{ display: none !important }
}
/* логотип: без грязного свечения */
.hd__logo, .hd__logo *{
    text-shadow: none !important;
    filter: none !important;
}
html[data-theme="dark"] .hd__logo,
html[data-theme="dark"] .hd__logo span,
html[data-theme="dark"] .hd__logo b{
    color: #FFFFFF !important;
}
/* логотип-иконка: аккуратная тень */
.hd__logo-mark, .hd__logo svg{
    filter: drop-shadow(0 4px 10px rgba(42,107,255,.35)) !important;
}

/* одинаковая геометрия шапки в обеих темах */
.hd, .hd__in, .hd .wrap{
    box-sizing: border-box;
}
.hd__in{
    display: flex !important;
    align-items: center;
    gap: 18px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.hd__logo{ margin: 0 !important }
.hd__nav{ display: flex; align-items: center; gap: 22px; margin: 0 !important }
.hd__search{ margin-left: auto !important }
.hd__actions{ display: flex; align-items: center; gap: 10px; margin: 0 !important }

/* единая геометрия контейнера в обеих темах */
.wrap{
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
.hd__in{ gap: 20px }
@media (max-width: 620px){
    .wrap{ padding-left: 16px; padding-right: 16px }
}

/* ============================================================
   ФИКС: логотип в подвале + плитки жанров
   ============================================================ */

/* логотип: светлый только в шапке, в подвале — белый */
html:not([data-theme="dark"]) .hd .hd__logo,
html:not([data-theme="dark"]) .hd .hd__logo span,
html:not([data-theme="dark"]) .hd .hd__logo b{ color: #0E1320 !important }
.ft .hd__logo,
.ft .hd__logo span,
.ft .hd__logo b,
.ft .hd__logo a{
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}
.ft .hd__logo svg text{ fill: #FFFFFF !important }

/* жанры: вернуть тёмные плитки с текстом в светлой теме */
html:not([data-theme="dark"]) .rs-cover{
    background:
        radial-gradient(120% 100% at 10% 0%, rgba(42,107,255,.22), transparent 60%),
        linear-gradient(160deg, #1B2540 0%, #0E1320 92%) !important;
    border: 1px solid rgba(42,107,255,.25) !important;
    box-shadow: 0 12px 30px rgba(14,19,32,.14) !important;
}
.rs-cover__title,
html:not([data-theme="dark"]) .rs-cover__title{
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-weight: 700;
    position: relative;
    z-index: 2;
    display: block;
}
.rs-cover__kicker,
html:not([data-theme="dark"]) .rs-cover__kicker{
    color: rgba(255,255,255,.55) !important;
    -webkit-text-fill-color: rgba(255,255,255,.55) !important;
    position: relative;
    z-index: 2;
}
/* контент плитки над подложкой */
.rs-cover > *{ position: relative; z-index: 2 }
.rs-cover{ display: flex !important; flex-direction: column; justify-content: flex-end; padding: 16px 18px !important }

/* убрать «пустые» градиентные полосы от псевдоэлемента */
.rs-cover::after{
    inset: 0 !important;
    opacity: .5 !important;
    background: radial-gradient(120% 90% at 15% 0%, rgba(42,107,255,.35), transparent 62%) !important;
}

/* ============================================================
   ХОВЕРЫ КНОПОК — СВЕТЛАЯ ТЕМА
   ============================================================ */

/* базовая плавность */
.rs-btn, .hd__login, .hd__theme, .hd__search button[type="submit"],
.rs-rate__btn, .rs-catdesc-more, .rs-chip, input[type="submit"]{
    transition: background .18s ease, color .18s ease, border-color .18s ease,
                box-shadow .18s ease, transform .14s ease, filter .18s ease;
}

/* основная кнопка */
html:not([data-theme="dark"]) .rs-btn--primary,
html:not([data-theme="dark"]) .hd__login,
html:not([data-theme="dark"]) .hd__search button[type="submit"],
html:not([data-theme="dark"]) input[type="submit"]{
    background-image: linear-gradient(135deg, #2A6BFF 0%, #6E4BFF 100%);
    box-shadow: 0 10px 24px rgba(42,107,255,.32);
}
html:not([data-theme="dark"]) .rs-btn--primary:hover,
html:not([data-theme="dark"]) .hd__login:hover,
html:not([data-theme="dark"]) .hd__search button[type="submit"]:hover,
html:not([data-theme="dark"]) input[type="submit"]:hover{
    background-image: linear-gradient(135deg, #3E7BFF 0%, #8259FF 100%) !important;
    box-shadow: 0 14px 30px rgba(42,107,255,.45) !important;
    transform: translateY(-1px);
    filter: saturate(1.05);
}
html:not([data-theme="dark"]) .rs-btn--primary:active,
html:not([data-theme="dark"]) .hd__login:active,
html:not([data-theme="dark"]) input[type="submit"]:active{
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(42,107,255,.35) !important;
}

/* вторичная (ghost) */
html:not([data-theme="dark"]) .rs-btn--ghost{
    background: #FFFFFF !important;
    border: 1px solid #E1E7F2 !important;
    color: #3E4757 !important;
    box-shadow: 0 2px 6px rgba(14,19,32,.05);
}
html:not([data-theme="dark"]) .rs-btn--ghost:hover{
    border-color: #BBD0F7 !important;
    background: #F5F8FF !important;
    color: #1E4FD8 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(42,107,255,.16);
}

/* иконки шапки */
html:not([data-theme="dark"]) .hd__theme:hover,
html:not([data-theme="dark"]) .hd__searchbtn:hover,
html:not([data-theme="dark"]) .hd__burger:hover{
    background: #EEF3FF !important;
    border-color: #C9D9F8 !important;
    color: #2A6BFF !important;
    transform: translateY(-1px);
}

/* лайки / дизлайки */
html:not([data-theme="dark"]) .rs-rate__btn--up:hover{
    background: #E4F7EE !important;
    border-color: #12A66A !important;
    color: #0E9159 !important;
    transform: translateY(-1px);
}
html:not([data-theme="dark"]) .rs-rate__btn--down:hover{
    background: #FDECEA !important;
    border-color: #E8A79C !important;
    color: #C0392B !important;
    transform: translateY(-1px);
}

/* «Читать далее» */
html:not([data-theme="dark"]) .rs-catdesc-more:hover{
    background-image: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(42,107,255,.3);
}

/* чипы категорий */
html:not([data-theme="dark"]) .rs-chip:hover{
    background: #EEF3FF !important;
    border-color: #C9D9F8 !important;
    color: #2A6BFF !important;
}

/* клавиатурный фокус */
html:not([data-theme="dark"]) :where(.rs-btn, .hd__login, .hd__theme, .rs-chip, .rs-catdesc-more):focus-visible{
    outline: 2px solid #2A6BFF;
    outline-offset: 2px;
}

/* ============================================================
   ЛОГОТИП: APK + Free в брендовых цветах
   ============================================================ */
.hd__logo-text{
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    text-transform: none;
}
.hd__logo-text b{
    font-weight: 800;
    letter-spacing: -.03em;
    text-shadow: none;
}
.hd__logo-apk{
    background: linear-gradient(135deg, #16203A 0%, #0E1320 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #0E1320;
}
.hd__logo-free{
    background: linear-gradient(135deg, #2A6BFF 0%, #6E4BFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2A6BFF;
}

/* тёмная тема: APK белый, Free — градиент */
html[data-theme="dark"] .hd__logo-apk{
    background: none;
    -webkit-text-fill-color: #FFFFFF;
    color: #FFFFFF;
}
html[data-theme="dark"] .hd__logo-free{
    background: linear-gradient(135deg, #5B8CFF 0%, #9C7BFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* подвал: всегда светлый вариант */
.ft .hd__logo-apk{
    background: none !important;
    -webkit-text-fill-color: #FFFFFF !important;
    color: #FFFFFF !important;
}
.ft .hd__logo-free{
    background: linear-gradient(135deg, #5B8CFF 0%, #9C7BFF 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* ============================================================
   ОТСТУП ОТ ШАПКИ
   ============================================================ */
main, .main, #main{
    padding-top: 18px;
}
main .wrap, .main .wrap{ padding-top: 0 }
.rs-head{ margin-top: 0 }
/* на внутренних страницах тот же воздух */
.rs-app, .rs-cat{ padding-top: 18px }

@media (max-width: 620px){
    main, .main, #main{ padding-top: 12px }
    .rs-app, .rs-cat{ padding-top: 12px }
}

/* ============================================================
   БЛОК «ОЦЕНКИ ПОЛЬЗОВАТЕЛЕЙ» — полоса соотношения
   ============================================================ */
.rs-ratio-block{ margin-top: 16px }
.rs-ratio__bar{
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #EDF1F8;
    margin: 6px 0 12px;
}
.rs-ratio__up{
    display: block;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #12A66A, #3FD394);
    transition: width .45s cubic-bezier(.4,0,.2,1);
}
.rs-ratio__down{
    display: block;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #F08A7E, #D9534F);
    transition: width .45s cubic-bezier(.4,0,.2,1);
}
.rs-ratio__legend{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: #6B7280;
    margin-bottom: 14px;
}
.rs-ratio__item b{ color: #0E1320; font-weight: 800; margin-left: 4px }
.rs-ratio__item--up b{ color: #0E9159 }
.rs-ratio__item--down b{ color: #C0392B }
.rs-ratio__pct{
    font-weight: 800;
    color: #0E1320;
    font-size: 15px;
    min-width: 44px;
    text-align: center;
}
.rs-ratio__actions{ display: flex; gap: 10px; flex-wrap: wrap }
.rs-ratio__actions .rs-rate__btn{ flex: 1 1 auto; justify-content: center; height: 46px }

/* пусто */
.rs-ratio.is-empty .rs-ratio__up{ background: #D8DFEA }
.rs-ratio.is-empty .rs-ratio__down{ background: #E7EBF3 }
.rs-ratio.is-empty .rs-ratio__pct{ color: #8A93A6; font-weight: 600; font-size: 13px }

/* тёмная тема */
html[data-theme="dark"] .rs-ratio__bar{ background: rgba(255,255,255,.07) }
html[data-theme="dark"] .rs-ratio__legend{ color: #8B96AB }
html[data-theme="dark"] .rs-ratio__item b,
html[data-theme="dark"] .rs-ratio__pct{ color: #FFFFFF }
html[data-theme="dark"] .rs-ratio__item--up b{ color: #6FE7B4 }
html[data-theme="dark"] .rs-ratio__item--down b{ color: #FFB3A6 }
html[data-theme="dark"] .rs-ratio.is-empty .rs-ratio__up{ background: rgba(255,255,255,.14) }
html[data-theme="dark"] .rs-ratio.is-empty .rs-ratio__down{ background: rgba(255,255,255,.08) }

@media (max-width: 620px){
    .rs-ratio__legend{ font-size: 12.5px }
    .rs-ratio__actions{ flex-direction: column }
    .rs-ratio__actions .rs-rate__btn{ width: 100% }
}

/* ============================================================
   КАРТОЧКИ: иконки не «режутся» и не выезжают за карточку
   ============================================================ */
.app-card,
.rank-card{
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    overflow: hidden;
    padding: 14px 16px !important;
}
.rank-card{
    grid-template-columns: 36px 56px minmax(0, 1fr) auto !important;
}

/* иконка: строго квадрат, обрезается ровно */
.app-card__ico,
.rank-card__ico{
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: block !important;
    background: #F3F5F9;
    position: relative;
    z-index: 1;
}
.rank-card__ico{
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    border-radius: 14px !important;
}
.app-card__ico img,
.rank-card__ico img{
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: inherit;
}

/* текст карточки не выходит за границы */
.app-card__body,
.rank-card__body{
    min-width: 0 !important;
    overflow: hidden;
}
.app-card__name,
.rank-card__name{
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="dark"] .app-card__ico,
html[data-theme="dark"] .rank-card__ico{ background: #1B2233 }

@media (max-width: 620px){
    .app-card{ grid-template-columns: 56px minmax(0, 1fr) !important; padding: 12px 14px !important }
    .app-card__ico{ width: 56px !important; height: 56px !important; min-width: 56px !important; max-width: 56px !important; border-radius: 14px !important }
}

/* ============================================================
   СВЕТЛАЯ ТЕМА: жёсткий сброс «протёкших» тёмных правил
   ============================================================ */
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) .wrap,
html:not([data-theme="dark"]) main{
    background: #F5F7FB !important;
    color: #0E1320 !important;
}
html:not([data-theme="dark"]) .rs-app__body,
html:not([data-theme="dark"]) .rs-app__main,
html:not([data-theme="dark"]) .rs-app{ background: transparent !important }

/* панели: белые */
html:not([data-theme="dark"]) .rs-block,
html:not([data-theme="dark"]) .rs-carousel,
html:not([data-theme="dark"]) .rs-side,
html:not([data-theme="dark"]) .rs-panel,
html:not([data-theme="dark"]) .rs-app__hero ~ * .rs-panel{
    background: #FFFFFF !important;
    border: 1px solid #E6EBF3 !important;
    box-shadow: 0 1px 2px rgba(14,19,32,.05), 0 10px 26px rgba(14,19,32,.05) !important;
}

/* заголовки и текст в панелях */
html:not([data-theme="dark"]) .rs-block__title,
html:not([data-theme="dark"]) .rs-side h3,
html:not([data-theme="dark"]) .rs-side h2,
html:not([data-theme="dark"]) .rs-side .rs-panel__title,
html:not([data-theme="dark"]) .rs-side p,
html:not([data-theme="dark"]) .rs-side span,
html:not([data-theme="dark"]) .rs-side a{
    color: #0E1320 !important;
    -webkit-text-fill-color: initial !important;
}
html:not([data-theme="dark"]) .rs-specs li{ color: #6B7280 !important; border-color: #EDF0F6 !important }
html:not([data-theme="dark"]) .rs-specs li span:last-child,
html:not([data-theme="dark"]) .rs-specs li b{ color: #0E1320 !important }

/* метки в сайдбаре */
html:not([data-theme="dark"]) .rs-side .rs-tag{
    background: #F1F4FA !important;
    border: 1px solid #E4E9F2 !important;
    color: #3E4757 !important;
    -webkit-text-fill-color: initial !important;
}

/* карусель скриншотов: белый фон и тёмные стрелки */
html:not([data-theme="dark"]) .rs-carousel .rs-nav{
    background: #FFFFFF !important;
    border: 1px solid #E1E7F2 !important;
    color: #0E1320 !important;
    -webkit-text-fill-color: initial !important;
    box-shadow: 0 6px 18px rgba(14,19,32,.12) !important;
}

/* кнопки в сайдбаре */
html:not([data-theme="dark"]) .rs-side .rs-btn{
    background: #F4F6FB !important;
    border: 1px solid #E4E9F2 !important;
    color: #0E1320 !important;
}
html:not([data-theme="dark"]) .rs-side .rs-btn--primary,
html:not([data-theme="dark"]) .rs-side .rs-btn[class*="primary"]{
    background-image: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    color: #FFFFFF !important;
    border: 0 !important;
}

/* ============================================================
   СВЕТЛАЯ ТЕМА: сайдбар карточки — читаемый текст
   ============================================================ */
html:not([data-theme="dark"]) .rs-app__body aside,
html:not([data-theme="dark"]) .rs-app__body aside *,
html:not([data-theme="dark"]) .rs-app__body [class*="aside"],
html:not([data-theme="dark"]) .rs-app__body [class*="aside"] *,
html:not([data-theme="dark"]) .rs-app__body [class*="side"] h2,
html:not([data-theme="dark"]) .rs-app__body [class*="side"] h3,
html:not([data-theme="dark"]) .rs-app__body [class*="side"] p{
    color: #0E1320 !important;
    -webkit-text-fill-color: initial !important;
}

/* заголовки панелей сайдбара */
html:not([data-theme="dark"]) .rs-app__body [class*="side"] [class*="title"],
html:not([data-theme="dark"]) .rs-app__body [class*="aside"] [class*="title"]{
    color: #0E1320 !important;
    font-weight: 800;
    -webkit-text-fill-color: initial !important;
}

/* кнопки в сайдбаре */
html:not([data-theme="dark"]) .rs-app__body aside .rs-btn,
html:not([data-theme="dark"]) .rs-app__body [class*="aside"] .rs-btn,
html:not([data-theme="dark"]) .rs-app__body [class*="side"] .rs-btn{
    background-image: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    border: 0 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    box-shadow: 0 10px 24px rgba(42,107,255,.3) !important;
}

/* метки в сайдбаре — контрастные */
html:not([data-theme="dark"]) .rs-app__body aside [class*="tag"],
html:not([data-theme="dark"]) .rs-app__body [class*="aside"] [class*="tag"]{
    background: #F1F4FA !important;
    border: 1px solid #E4E9F2 !important;
    color: #3E4757 !important;
    -webkit-text-fill-color: #3E4757 !important;
}

/* ============================================================
   СВЕТЛАЯ ТЕМА: шапка карточки — светлая, без тёмной подложки
   ============================================================ */
html:not([data-theme="dark"]) .rs-app__hero{
    background:
        radial-gradient(900px 300px at 12% -25%, rgba(42,107,255,.10), transparent 62%),
        linear-gradient(165deg, #FFFFFF 0%, #F7FAFF 100%) !important;
    border: 1px solid #E6EBF3 !important;
    color: #0E1320 !important;
    box-shadow: 0 2px 6px rgba(14,19,32,.05), 0 18px 44px rgba(14,19,32,.07) !important;
}
html:not([data-theme="dark"]) .rs-app__hero::after,
html:not([data-theme="dark"]) .rs-app__hero::before{
    display: none !important;
    content: none !important;
}
html:not([data-theme="dark"]) .rs-app__hero .rs-app__title{
    color: #0E1320 !important;
    text-shadow: none !important;
}
html:not([data-theme="dark"]) .rs-app__hero .rs-app__sub{ color: #6B7280 !important }
html:not([data-theme="dark"]) .rs-app__hero .rs-app__cat{ color: #1E4FD8 !important }
html:not([data-theme="dark"]) .rs-app__hero .rs-stars{ color: #F5B301 !important }
html:not([data-theme="dark"]) .rs-app__hero .rs-app__dot{ color: #C9D0DD !important }

/* чипы в шапке */
html:not([data-theme="dark"]) .rs-app__hero .rs-tag{
    background: #F2F5FB !important;
    border: 1px solid #E4E9F2 !important;
    color: #3E4757 !important;
    -webkit-text-fill-color: initial !important;
}
html:not([data-theme="dark"]) .rs-app__hero .rs-tag--ok{
    background: #E9F8F1 !important;
    border-color: #BFEAD6 !important;
    color: #0E9159 !important;
}

/* полоса фактов */
html:not([data-theme="dark"]) .rs-app__hero .rs-app__facts{ border-top-color: #EDF0F6 !important }
html:not([data-theme="dark"]) .rs-app__hero .rs-fact i{ color: #8A93A6 !important }
html:not([data-theme="dark"]) .rs-app__hero .rs-fact b{ color: #0E1320 !important }

/* кнопки */
html:not([data-theme="dark"]) .rs-app__hero .rs-btn--xl{
    background-image: linear-gradient(135deg, #2A6BFF, #6E4BFF) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(42,107,255,.35) !important;
}
html:not([data-theme="dark"]) .rs-app__hero .rs-btn--ghost{
    background: #FFFFFF !important;
    border: 1px solid #E1E7F2 !important;
    color: #3E4757 !important;
}
html:not([data-theme="dark"]) .rs-app__hero .rs-app__size{ color: #8A93A6 !important }

/* иконка */
html:not([data-theme="dark"]) .rs-app__hero .rs-app__ico{
    background: #FFFFFF !important;
    border: 1px solid #E6EBF3 !important;
    box-shadow: 0 10px 24px rgba(14,19,32,.10) !important;
}

/* панель оценки, если осталась в шапке */
html:not([data-theme="dark"]) .rs-app__hero .rs-rate{
    background: #F7F9FC !important;
    border: 1px solid #EDF1F7 !important;
}
html:not([data-theme="dark"]) .rs-app__hero .rs-rate__q{ color: #0E1320 !important }
html:not([data-theme="dark"]) .rs-app__hero .rs-rate__meta{ color: #8A93A6 !important }

/* ============================================================
   ПОДВАЛ: тёмный в ОБЕИХ темах (исправление «белого блока»)
   ============================================================ */
.ft,
.ft .wrap,
.ft__grid,
.ft__bottom{
    background-image: none !important;
}
.ft{
    background:
        radial-gradient(700px 260px at 10% -20%, rgba(42,107,255,.18), transparent 65%),
        linear-gradient(180deg, #131B2E 0%, #0B0F18 100%) !important;
    border-top: 1px solid rgba(42,107,255,.22) !important;
    color: rgba(255,255,255,.72) !important;
}
.ft .wrap{ background: transparent !important; padding-top: 0 !important }
.ft__grid{ background: transparent !important }

/* текст подвала — светлый в любой теме */
.ft p, .ft span, .ft div, .ft a, .ft small{
    color: rgba(255,255,255,.72) !important;
    -webkit-text-fill-color: initial !important;
}
.ft .ft__title{
    color: rgba(255,255,255,.45) !important;
    -webkit-text-fill-color: initial !important;
}
.ft .ft__links a{
    color: rgba(255,255,255,.86) !important;
    -webkit-text-fill-color: initial !important;
}
.ft .ft__links a:hover{ color: #FFFFFF !important }

/* логотип в подвале */
.ft .hd__logo-apk{
    background: none !important;
    -webkit-text-fill-color: #FFFFFF !important;
    color: #FFFFFF !important;
}
.ft .hd__logo-free{
    background: linear-gradient(135deg, #5B8CFF 0%, #9C7BFF 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.ft .hd__logo svg rect{ fill: url(#lf-mark) }

/* нижняя строка */
.ft__bottom{
    border-top: 1px solid rgba(255,255,255,.08) !important;
    background: transparent !important;
}
.ft__bottom, .ft__bottom *{
    color: rgba(255,255,255,.45) !important;
    -webkit-text-fill-color: initial !important;
}

/* светлая тема: подвал не должен наследовать белый фон страницы */
html:not([data-theme="dark"]) .ft,
html:not([data-theme="dark"]) .ft .wrap{ background-color: transparent !important }
html:not([data-theme="dark"]) .ft{
    background:
        radial-gradient(700px 260px at 10% -20%, rgba(42,107,255,.20), transparent 65%),
        linear-gradient(180deg, #131B2E 0%, #0B0F18 100%) !important;
}

/* кнопки рейтинга: контраст в светлой теме */
html:not([data-theme="dark"]) .rs-ratio__actions .rs-rate__btn{
    border: 1px solid #E1E7F2 !important;
    color: #0E1320 !important;
    -webkit-text-fill-color: initial !important;
    font-weight: 700;
}
html:not([data-theme="dark"]) .rs-ratio__actions .rs-rate__btn--up{
    background: #E9F8F1 !important;
    border-color: #BCE6D2 !important;
    color: #0E9159 !important;
}
html:not([data-theme="dark"]) .rs-ratio__actions .rs-rate__btn--down{
    background: #FDECEA !important;
    border-color: #F3CFC8 !important;
    color: #C0392B !important;
}
html:not([data-theme="dark"]) .rs-ratio__actions .rs-rate__btn--up:hover{
    background: #D8F1E5 !important;
    border-color: #12A66A !important;
}
html:not([data-theme="dark"]) .rs-ratio__actions .rs-rate__btn--down:hover{
    background: #FADCDC !important;
    border-color: #C0392B !important;
}
/* пустая полоса: заметнее */
html:not([data-theme="dark"]) .rs-ratio__bar{ background: #E9EEF7 !important }

/* ============================================================
   КНОПКИ ВНЕ СКИНА: загрузка, поиск, формы (2 темы)
   ============================================================ */
.dlpage__btn,
.dlp__skip,
button.bbcodes,
.bbcodes,
input[type="button"],
input[type="submit"],
input[type="reset"],
button[type="submit"]{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background-image: linear-gradient(135deg, #2A6BFF 0%, #6E4BFF 100%) !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(42,107,255,.32) !important;
    transition: transform .14s ease, box-shadow .18s ease, filter .18s ease;
}
.dlpage__btn:hover,
.dlp__skip:hover,
button.bbcodes:hover,
.bbcodes:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
button[type="submit"]:hover{
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(42,107,255,.45) !important;
    color: #FFFFFF !important;
}
.dlpage__btn:active,
button.bbcodes:active,
input[type="submit"]:active{ transform: translateY(0) }

/* кнопка на всю ширину на странице загрузки */
.dlpage__btn{
    width: 100% !important;
    min-height: 56px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
}
.dlpage__btn-main{ font-weight: 700 }

/* «Пропустить ожидание» — вторичная */
.dlp__skip{
    background-image: none !important;
    background: #F4F6FB !important;
    color: #3E4757 !important;
    -webkit-text-fill-color: #3E4757 !important;
    border: 1px solid #E4E9F2 !important;
    box-shadow: none !important;
    min-height: 40px !important;
    font-size: 13.5px !important;
}

/* тёмная тема */
html[data-theme="dark"] .dlp__skip{
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #E9EEF8 !important;
    -webkit-text-fill-color: #E9EEF8 !important;
}
html[data-theme="dark"] .dlpage__btn{
    box-shadow: 0 14px 32px rgba(42,107,255,.45) !important;
}

/* полоса ожидания на странице загрузки */
.dlp__bar{ background: #E9EEF7 !important; border-radius: 999px; overflow: hidden }
.dlp__bar span{ background: linear-gradient(90deg, #2A6BFF, #6E4BFF) !important }

/* поле поиска на странице поиска */
input.textin, .textin{
    border-radius: 12px !important;
    border: 1px solid #E4E9F2 !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
}
