/* ==========================================
   AnimeHub — базовые стили (оптимизировано)
   ========================================== */

/* ---------- Шрифт ---------- */
@font-face {
    font-family: 'MyCustomFont';
    src: url('/static/fonts/def2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ---------- Reset & Box-Sizing ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ---------- Единая дизайн-система скроллбаров AnimeHub ---------- */
html,
body,
* {
    scrollbar-width: thin;
    scrollbar-color: #32353f transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #32353f;
    border-radius: 4px;
    transition: background .2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4d6d;
}

/* Классы для правых скролл-панелей списков */
.custom-scroll-panel,
.scroll-panel-right {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #32353f transparent;
    padding-right: 6px;
    -webkit-overflow-scrolling: touch;
}

.custom-scroll-panel::-webkit-scrollbar,
.scroll-panel-right::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll-panel::-webkit-scrollbar-track,
.scroll-panel-right::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.custom-scroll-panel::-webkit-scrollbar-thumb,
.scroll-panel-right::-webkit-scrollbar-thumb {
    background: #32353f;
    border-radius: 4px;
}

.custom-scroll-panel::-webkit-scrollbar-thumb:hover,
.scroll-panel-right::-webkit-scrollbar-thumb:hover {
    background: #ff4d6d;
}

/* Скрытие скроллбара для горизонтальных свайп-лент */
.no-scrollbar,
.hide-scrollbar {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.no-scrollbar::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Устранение задержки тапа 300мс на мобильных устройствах */
button,
a,
input,
select,
textarea,
.tab-item,
.aw-chip,
.aw-ep,
.rd-ch,
.rm-pill,
.fp-pill,
.card,
.anime-card,
.manga-card {
    touch-action: manipulation;
}

/* ---------- Основа ---------- */
html {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    touch-action: pan-x pan-y;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #0d0e12;
    background-size: cover;
    font-family: 'MyCustomFont';
    overflow-x: hidden;
    position: relative;
    touch-action: pan-x pan-y;
}

/* ---------- Шапка ---------- */
.top-bar {
    width: 100%;
    height: 68px;
    background: rgba(10, 10, 12, .6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    flex-direction: row;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    cursor: pointer;
    transition: transform .3s ease;
}

.desktop-only-logo {
    display: block;
}

.logo-torii-wrap {
    display: none !important;
}

.logo-class {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-left: 42px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease;
}

.top-bar-btn {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 34px;
    gap: 6px;
    background: transparent;
}

.top-bar-btn a,
.top-bar-btn button {
    font-family: 'MyCustomFont';
    background: transparent;
    border: none;
    color: #8b8e98;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    position: relative;
    text-decoration: none;
    transition: color .2s ease;
}

.top-bar-btn a:hover,
.top-bar-btn button:hover {
    color: #fff;
}

/* активный пункт: розовый текст + сплошная плашка
   со скруглёнными только ВЕРХНИМИ углами (как в макете) */
.top-bar-btn a.nav-active,
.top-bar-btn button.nav-active {
    color: #ff4d6d;
    text-shadow: 0 0 10px rgba(255, 77, 109, .45);
}

.top-bar-btn a.nav-active::after,
.top-bar-btn button.nav-active::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -4px;
    height: 3px;
    background: #ff4d6d;
    /* без градиента */
    border-radius: 3px 3px 0 0;
    /* скруглены только верхние углы */
    box-shadow: 0 0 10px rgba(255, 77, 109, .8),
        0 -1px 14px rgba(255, 77, 109, .45);
}

/* вход / профиль / шапка справа */
.logo-torii-wrap {
    display: none;
}

.logo-text {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.top-bar-right {
    margin-left: auto;
    margin-right: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #8b8e98;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-notif-btn:hover {
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.12);
    border-color: rgba(255, 77, 109, 0.3);
}

.mobile-notif-btn svg {
    width: 20px;
    height: 20px;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 10px;
    background: #ff3b5c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 59, 92, 0.8);
}

.notif-badge.visible:not(:empty) {
    display: flex;
}

.notif-badge:empty,
.notif-badge:not(.visible) {
    display: none !important;
}

/* AniPlus Topbar Круглая кнопка */
.ah-aniplus-topbar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 92, 0.18) 0%, rgba(20, 21, 28, 0.95) 100%);
    border: 1px solid rgba(255, 59, 92, 0.45);
    box-shadow: 0 0 10px rgba(255, 59, 92, 0.22);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.ah-aniplus-topbar-btn:hover {
    transform: scale(1.08);
    background: radial-gradient(circle, rgba(255, 59, 92, 0.32) 0%, rgba(28, 29, 38, 0.98) 100%);
    border-color: rgba(255, 59, 92, 0.85);
    box-shadow: 0 0 16px rgba(255, 59, 92, 0.55);
}

.ah-aniplus-topbar-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 4px rgba(255, 59, 92, 0.7));
    transition: filter 0.25s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ah-aniplus-topbar-btn:hover .ah-aniplus-topbar-img {
    filter: drop-shadow(0 0 7px rgba(255, 59, 92, 1));
    transform: rotate(90deg) scale(1.05);
}

/* Символ AniPlus возле ника */
.aniplus-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 92, 0.3) 0%, rgba(20, 21, 28, 0.95) 100%);
    border: 1px solid rgba(255, 59, 92, 0.55);
    box-shadow: 0 0 7px rgba(255, 59, 92, 0.6);
    flex-shrink: 0;
}

.aniplus-badge img,
.aniplus-badge-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 3px rgba(255, 59, 92, 0.9));
}

.auth-btn {
    font-family: 'MyCustomFont';
    background: transparent;
    border: none;
    color: #8b8e98;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    text-decoration: none;
    transition: color .2s ease;
}

.auth-btn:hover {
    color: #fff;
}

.profile-link {
    text-decoration: none;
    color: inherit;
}

.profile {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.profile h3,
.profile-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
}

.profile-image {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 77, 109, .35), 0 4px 12px rgba(0, 0, 0, .5);
}

.profile-chev {
    width: 14px;
    height: 14px;
    color: #8b8e98;
    transition: transform .2s ease, color .2s ease;
}

.profile:hover .profile-chev {
    transform: translateY(2px);
    color: #ff8fa3;
}

.sign-in-btn {
    font-family: 'MyCustomFont';
    width: 220px;
    height: 50px;
    border-radius: 50px;
    background: transparent;
    font-size: 25px;
    color: #fff;
    border: none;
    cursor: pointer;
    background-size: 200% auto;
    transition: all .3s ease;
}

.sign-in-btn:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, .9)) drop-shadow(0 0 30px rgba(255, 255, 255, .7));
}

/* ---------- Контент ---------- */
.page {
    flex: 1;
    margin-top: 68px;
}

/* ---------- Лепестки ---------- */
#petalsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 500;
}

/* ---------- Кнопка сезонов ----------
   Стили скопированы с .to-top-btn без изменений (кроме стороны: left
   вместо right, чтобы не перекрывать кнопку «Наверх»). Кнопка всегда
   на экране — в отличие от to-top-btn, show/hide не используется. */
.season-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: rgba(22, 24, 30, 0.72);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    transition: all .25s ease;
    z-index: 9999;
}

.season-toggle:hover {
    background-color: rgba(35, 38, 48, 0.88);
    transform: translateY(-3px);
}

.season-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* меню сезонов — приподнято над обеими кнопками:
   кнопка сезонов 30..78, кнопка музыки 92..140, меню начинается с 154. */
.season-menu {
    position: fixed;
    bottom: 154px;
    left: 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: rgba(20, 20, 20, .85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
}

.season-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.season-option {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    /* Белые иконки: раньше наследовался тёмный цвет темы и на тёмной
       панели (rgba(20,20,20,.85)) иконки сливались с фоном. */
    color: #fff;
    padding: 0;
    font-size: 18px;
    cursor: pointer;
    opacity: .7;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-option svg {
    width: 19px;
    height: 19px;
    display: block;
}

.season-option:hover {
    background: rgba(255, 255, 255, .1);
    opacity: 1;
}

.season-option.active {
    background: rgba(255, 255, 255, .15);
    opacity: 1;
}

.season-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, .15);
    margin: 4px 0;
}

.season-settings-btn:disabled {
    opacity: .25;
    cursor: default;
}

/* панель настроек сезонов — по той же высоте, что и меню */
.season-settings {
    position: fixed;
    left: 96px;
    bottom: 154px;
    width: 220px;
    padding: 14px;
    background: rgba(20, 20, 20, .9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all .25s ease;
}

.season-settings.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.setting-head {
    display: flex;
    justify-content: space-between;
    font-family: 'MyCustomFont';
    font-size: 13px;
    color: #ccc;
    margin-bottom: 5px;
}

.setting-value {
    color: #888;
}

/* шкалы */
.setting-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #444;
    outline: none;
    cursor: pointer;
}

.setting-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform .2s ease;
}

.setting-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.setting-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.settings-reset-btn {
    align-self: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    color: #ccc;
    font-family: 'MyCustomFont';
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
}

.settings-reset-btn:hover {
    border-color: #fff;
    color: #fff;
}

/* ---------- Кнопка музыки ----------
   Стили скопированы с .to-top-btn без изменений. Расположена НАД кнопкой
   сезонов: кнопка сезонов занимает bottom 30..78, музыка — 92..140. */
.music-toggle {
    position: fixed;
    bottom: 92px;
    left: 30px;
    background-color: rgba(22, 24, 30, 0.72);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    transition: all .25s ease;
    z-index: 9999;
}

.music-toggle:hover {
    background-color: rgba(35, 38, 48, 0.88);
    transform: translateY(-3px);
}

.music-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Панель настроек музыки и пространственного звука */
.music-settings {
    position: fixed;
    left: 88px;
    bottom: 92px;
    width: 300px;
    padding: 16px 18px;
    background: rgba(18, 20, 26, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    user-select: none;
    box-sizing: border-box;
}

.music-settings.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.music-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.music-settings-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
}

.music-settings-title svg {
    width: 16px;
    height: 16px;
    color: #ff4d6d;
}

.music-settings-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-power-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #c9ccd4;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-power-btn.active {
    background: rgba(255, 77, 109, 0.25);
    border-color: #ff4d6d;
    color: #ff4d6d;
}

.music-close-btn {
    background: transparent;
    border: none;
    color: #8b8e98;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.music-close-btn:hover {
    color: #fff;
}

/* Карточка плеера и перемотки */
.music-player-card {
    background: rgba(25, 28, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-track-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #e0e3ea;
    font-weight: 600;
}

.music-seek-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.music-scrubber {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #333642;
    outline: none;
    cursor: pointer;
}

.music-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4d6d;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255, 77, 109, 0.6);
}

.music-scrubber::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #ff4d6d;
    cursor: pointer;
}

.music-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #8b8e98;
    font-variant-numeric: tabular-nums;
}

.music-ctrl-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.music-ctrl-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #fff;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.music-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.music-ctrl-btn.play-btn {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff4d6d, #d63a6a);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.4);
}

.music-ctrl-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.music-ctrl-btn.play-btn svg {
    width: 16px;
    height: 16px;
}

/* Частота воспроизведения */
.music-freq-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.music-freq-label {
    font-size: 11.5px;
    color: #9da1b0;
    font-weight: 600;
}

.music-freq-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.music-freq-pill {
    padding: 4px 2px;
    font-size: 10.5px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: #b5b8c2;
    cursor: pointer;
    transition: all 0.18s;
}

.music-freq-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.music-freq-pill.active {
    background: rgba(255, 77, 109, 0.2);
    border-color: #ff4d6d;
    color: #ff4d6d;
    font-weight: 700;
}

/* Слайдеры аудио (громкость, пространственный звук, реверб, эхо) */
.music-sliders-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.music-slider-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #c9ccd4;
    margin-bottom: 4px;
}

.music-slider-head-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.music-subswitch {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #8b8e98;
    cursor: pointer;
    transition: all 0.2s;
}

.music-subswitch.active {
    background: rgba(255, 77, 109, 0.25);
    border-color: #ff4d6d;
    color: #ff4d6d;
}

.music-slider-val {
    font-size: 11px;
    color: #8b8e98;
    font-variant-numeric: tabular-nums;
}

.music-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #333642;
    outline: none;
    cursor: pointer;
}

.music-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.music-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.music-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.music-reset-btn {
    align-self: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9da1b0;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 2px;
}

.music-reset-btn:hover {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 768px) {
    .music-settings {
        left: 16px;
        right: 16px;
        bottom: 84px;
        width: auto;
        max-width: calc(100vw - 32px);
    }
}

/* ---------- Кнопка "Наверх" ---------- */
.to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(22, 24, 30, 0.72);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    transition: all .25s ease;
    z-index: 9999;
}

.to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.to-top-btn:hover {
    background-color: rgba(35, 38, 48, 0.88);
    transform: translateY(-3px);
}

/* ---------- Фейд снизу ---------- */
.page-fade {
    z-index: 2;
    pointer-events: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #111, transparent);
}

/* ---------- Заголовки секций ---------- */
.title {
    z-index: 5;
    position: relative;
    margin-top: 100px;
}

.title h3 {
    margin: 0 0 30px 90px;
    font-size: 60px;
    color: #fff;
    text-align: left;
}

.title p {
    margin: 0 0 50px 90px;
    font-size: 25px;
    color: gray;
}

.title-page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
    margin-top: 50px;
    margin-bottom: 0;
    padding: 0 90px;
}

.title-page h3 {
    font-size: 60px;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.title-page button {
    font-family: 'MyCustomFont';
    font-size: 30px;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    transition: all .3s ease;
}

/* ---------- Контейнер страницы ---------- */
.page {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ---------- Футер ---------- */
.about {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, Arial, sans-serif;
    position: relative;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    width: 100%;
    background-color: rgba(10, 10, 12, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    z-index: 50;
    box-sizing: border-box;
    padding: 0;
}

/* 1. Десктопная версия футера (> 768px): Чистый сбалансированный 3-колоночный вид */
.about-mobile {
    display: none;
}

.about-desktop {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 48px 38px 48px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.about-desktop .socials-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.about-desktop .socials-block h3 {
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.about-desktop .socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.about-desktop .social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-desktop .social-link svg {
    width: 17px;
    height: 17px;
    opacity: 0.8;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.about-desktop .social-link:hover {
    color: #ff3b5c;
    transform: translateX(3px);
}

.about-desktop .social-link:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.about-desktop .social-name {
    font-weight: 500;
    font-size: 13.5px;
}

/* Логотип по центру */
.about-desktop .logo-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin: 0 auto;
}

.about-desktop .img-logo-about {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.about-desktop .logo-about:hover .img-logo-about {
    transform: scale(1.05);
}

.about-desktop .name-site {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.about-desktop .site-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 400;
}

/* Поддержка справа */
.about-desktop .support {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 10px;
}

.about-desktop .support h3 {
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.about-desktop .support-link {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-desktop .support-link:hover {
    color: #ff3b5c;
    transform: translateX(-3px);
}

.ff-empty-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #6f727c;
}

/* ==========================================================
   ЕДИНАЯ КНОПКА «НАЗАД» ДЛЯ ВСЕГО САЙТА
   ========================================================== */
.site-back-btn,
.md-back,
.ad-back,
.awp-backlink,
.mr-back,
.rd-back,
.pfe-back,
.cf-back,
.ef-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    background: rgba(18, 18, 24, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #e8e8ec !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    cursor: pointer !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.site-back-btn:hover,
.md-back:hover,
.ad-back:hover,
.awp-backlink:hover,
.mr-back:hover,
.rd-back:hover,
.pfe-back:hover,
.cf-back:hover,
.ef-back:hover {
    background: rgba(255, 59, 91, 0.18) !important;
    border-color: rgba(255, 59, 91, 0.5) !important;
    color: #fff !important;
}

.site-back-btn svg,
.md-back svg,
.ad-back svg,
.awp-backlink svg,
.mr-back svg,
.rd-back svg,
.pfe-back svg,
.cf-back svg,
.ef-back svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    fill: currentColor !important;
}

/* ==========================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (iOS / Telegram Style, screens <= 768px)
   ========================================================== */
/* Базовые стили мобильного таб-бара (скрыт по умолчанию для ПК) */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(14, 15, 20, 0.60);
    border-radius: 10px 10px 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9998;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    box-sizing: content-box;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #828695;
    text-decoration: none;
    transition: transform 0.15s ease, color 0.15s ease;
    padding-top: 2px;
    gap: 3px;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.tab-item:active {
    transform: scale(0.92);
}

.tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-icon svg {
    width: 22px;
    height: 22px;
    stroke: #828695;
    transition: stroke 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.tab-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 1;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.tab-item.active {
    color: #ff3b5c;
}

.tab-item.active .tab-icon {
    transform: translateY(-1px);
}

.tab-item.active .tab-icon svg {
    stroke: #ff3b5c;
    filter: drop-shadow(0 0 6px rgba(255, 59, 92, 0.65));
}

.tab-item.active .tab-label {
    color: #ff3b5c;
    font-weight: 700;
}

/* ==========================================================
   ДЕКСТОПНАЯ ВЕРСИЯ (ПК / Ноутбуки)
   Экраны шириной от 769px при нормальной высоте монитора (> 540px, отсекает телефоны в горизонтали)
   И курсор мыши (pointer: fine) либо отсутствие мобильного класса
   ========================================================== */
@media (min-width: 769px) and (min-height: 541px) and (pointer: fine),
(min-width: 992px) and (min-height: 541px) {
    html:not(.is-mobile-device) .top-bar-btn {
        display: flex !important;
    }

    html:not(.is-mobile-device) .mobile-tab-bar {
        display: none !important;
    }

    html:not(.is-mobile-device) .profile-name-desktop {
        display: block !important;
    }
}

/* На мобильных устройствах при наличии класса навигация ВСЕГДА снизу */
html.is-mobile-device .top-bar-btn {
    display: none !important;
}

html.is-mobile-device .profile-name-desktop {
    display: none !important;
}

html.is-mobile-device .mobile-tab-bar {
    display: flex !important;
}

/* ==========================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (iOS / Android / Telegram Style)
   1. Смартфоны вертикально: ширина <= 768px;
   2. Смартфоны горизонтально (альбомная ориентация): высота <= 540px;
   3. Touch-устройства в альбомной ориентации или с небольшой высотой (<= 600px).
   ========================================================== */
@media (max-width: 768px),
(max-height: 540px) and (orientation: landscape),
(pointer: coarse) and (max-height: 600px),
(pointer: coarse) and (orientation: landscape) and (max-height: 540px) {

    /* 1. Глобальная разметка и безопасные зоны */
    html {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100%;
        scrollbar-gutter: auto !important;
        touch-action: pan-y;
    }

    body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding-bottom: 0 !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-y;
    }

    /* Канвас сезонных эффектов (снег/дождь/листья/лепестки) на мобильных
       больше не скрывается — сам эффект сам снижает плотность частиц.
       z-index ниже таб-бара (9998) и кнопки сезонов (9990), чтобы не перекрывать UI. */
    #petalsCanvas,
    #rainCanvas,
    #leavesCanvas,
    #snowCanvas {
        display: block !important;
        z-index: 500;
    }

    .page {
        flex: 1 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        margin-top: calc(54px + env(safe-area-inset-top, 0px)) !important;
    }

    .page-fade {
        display: none !important;
    }

    /* 2. Компактная мобильная шапка (Top App Bar) */
    .top-bar {
        height: calc(54px + env(safe-area-inset-top, 0px));
        padding-top: env(safe-area-inset-top, 0px);
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
        justify-content: space-between;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .top-bar-btn {
        display: none !important;
    }

    .logo {
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    .logo-class {
        font-size: 19px;
        gap: 10px;
        align-items: center;
        padding: 0;
        margin-left: 0 !important;
    }

    .logo-text {
        font-size: 19px !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
        color: #ffffff !important;
        background: none !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .top-bar-right {
        margin-right: 0 !important;
        gap: 10px;
    }

    .ah-aniplus-topbar-btn {
        width: 32px;
        height: 32px;
    }

    .ah-aniplus-topbar-img {
        width: 19px;
        height: 19px;
    }

    .profile-name-desktop {
        display: none !important;
    }

    .ah-admin-nav-link span {
        display: none !important;
    }

    .ah-admin-nav-link {
        padding: 6px !important;
        margin-right: 0 !important;
        border-radius: 50% !important;
    }

    .ah-admin-nav-link svg {
        margin-right: 0 !important;
    }

    .profile {
        margin-right: 0 !important;
        gap: 0;
    }

    .profile-image {
        width: 33px;
        height: 33px;
    }

    .mobile-notif-btn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-notif-btn svg {
        width: 19px;
        height: 19px;
    }

    .auth-btn {
        margin-right: 0 !important;
        padding: 6px 14px;
        font-size: 13px;
        border-radius: 18px;
        background: linear-gradient(135deg, #ff3b5c, #e0284b);
        color: #fff !important;
        border: none;
        box-shadow: 0 2px 10px rgba(255, 59, 92, 0.35);
    }

    /* 3. Telegram iOS Bottom Navigation Bar */
    .mobile-tab-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(14, 15, 20, 0.60);
        border-radius: 10px 10px 0 0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 9998;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        box-sizing: content-box;
    }

    .tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: #828695;
        text-decoration: none;
        transition: transform 0.15s ease, color 0.15s ease;
        padding-top: 2px;
        gap: 3px;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }

    .tab-item:active {
        transform: scale(0.92);
    }

    .tab-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .tab-icon svg {
        width: 22px;
        height: 22px;
        stroke: #828695;
        transition: stroke 0.2s ease, filter 0.2s ease, transform 0.2s ease;
    }

    .tab-label {
        font-size: 10.5px;
        font-weight: 500;
        letter-spacing: 0.1px;
        line-height: 1;
        transition: color 0.2s ease, font-weight 0.2s ease;
    }

    .tab-item.active {
        color: #ff3b5c;
    }

    .tab-item.active .tab-icon {
        transform: translateY(-1px);
    }

    .tab-item.active .tab-icon svg {
        stroke: #ff3b5c;
        filter: drop-shadow(0 0 6px rgba(255, 59, 92, 0.65));
    }

    .tab-item.active .tab-label {
        color: #ff3b5c;
        font-weight: 700;
    }

    /* 4. Кнопка «Наверх» и плавающие элементы */
    .to-top-btn {
        bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
        right: 12px !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        font-size: 11px !important;
        padding: 0 !important;
        z-index: 9990 !important;
    }

    /* Скрытие кнопок «Назад», «К каталогу» и т.д. на всех мобильных экранах */
    .site-back-btn,
    .md-back,
    .ad-back,
    .awp-backlink,
    .rd-back,
    .pfe-back,
    .cf-back,
    .ef-back,
    .fanfic-back-link,
    .chapter-back-link,
    .back-btn,
    .back-link,
    .awp-topline .awp-backlink,
    .rd-hero-top .rd-back,
    .md-hero-inner .md-back {
        display: none !important;
    }

    .rd-hero-top {
        display: flex !important;
        justify-content: flex-end !important;
    }

    /* Кнопки сезонов и музыки на мобильных больше не скрыты. Стили и отступы
       скопированы с .to-top-btn, сторона — left, чтобы не перекрывать «Наверх».
       Кнопка сезонов: bottom 66..108, музыка: 120..162, меню — с 176. */
    .season-toggle,
    .season-menu,
    .season-settings,
    .music-toggle {
        display: flex !important;
    }

    .season-toggle {
        bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        z-index: 9990 !important;
    }

    .season-toggle svg {
        width: 20px !important;
        height: 20px !important;
    }

    .music-toggle {
        bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        z-index: 9990 !important;
    }

    .music-toggle svg {
        width: 20px !important;
        height: 20px !important;
    }

    .season-menu {
        bottom: calc(176px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px !important;
    }

    .season-settings {
        left: 60px !important;
        bottom: calc(176px + env(safe-area-inset-bottom, 0px)) !important;
        width: min(250px, calc(100vw - 72px)) !important;
    }

    /* Раньше здесь скрывалась .music-toggle (и несуществующие легаси-селекторы
       #ambientMusicBtn / .ambient-music-ctl). Кнопка музыки возвращена
       на мобильные и описана выше в этом же медиазапросе. */

    /* 5. Футер сайта: мобильные выпадающие списки (аккордеоны) и бренд */
    .about {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, Arial, sans-serif !important;
        margin-top: auto !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        display: block !important;
        padding: 0 !important;
        background-color: #0b0c10 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-sizing: border-box !important;
    }

    .about-desktop {
        display: none !important;
    }

    .about-mobile {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 28px 22px calc(84px + env(safe-area-inset-bottom, 0px)) 22px !important;
        box-sizing: border-box !important;
    }

    .about-accordions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .about-accordion-item {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-bottom: 14px !important;
        margin-bottom: 14px !important;
    }

    .about-accordion-header {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: none !important;
        border: none !important;
        color: #ffffff !important;
        font-size: 19px !important;
        font-weight: 700 !important;
        font-family: inherit !important;
        padding: 4px 0 2px 0 !important;
        cursor: pointer !important;
        text-align: left !important;
        -webkit-tap-highlight-color: transparent !important;
        user-select: none !important;
        pointer-events: auto !important;
    }

    .about-accordion-icon {
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        stroke: rgba(255, 255, 255, 0.9) !important;
        stroke-width: 2.2 !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        flex-shrink: 0 !important;
    }

    .about-accordion-item.is-open .about-accordion-icon {
        transform: rotate(180deg) !important;
    }

    .about-accordion-body {
        display: grid !important;
        grid-template-rows: 0fr !important;
        transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease !important;
        opacity: 0 !important;
    }

    .about-accordion-item.is-open .about-accordion-body {
        grid-template-rows: 1fr !important;
        opacity: 1 !important;
        margin-top: 6px !important;
    }

    .about-accordion-content {
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .about-link {
        display: block !important;
        padding: 15px 0 !important;
        font-size: 15.5px !important;
        font-weight: 400 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        transition: color 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .about-link:last-child {
        border-bottom: none !important;
        padding-bottom: 4px !important;
    }

    .about-link:hover,
    .about-link:active {
        color: #ff3b5c !important;
    }

    /* Нижняя часть: Соцсети и Бренд */
    .about-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 24px !important;
        width: 100% !important;
    }

    .about-socials {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 30px !important;
        margin-bottom: 24px !important;
    }

    .about-social-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        transition: transform 0.2s ease, opacity 0.2s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .about-social-icon:active {
        transform: scale(0.9) !important;
        opacity: 0.8 !important;
    }

    .about-social-icon svg {
        width: 26px !important;
        height: 26px !important;
    }

    .about-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .about-torii-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        object-fit: contain !important;
    }

    .about-brand-title {
        font-size: 16.5px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        letter-spacing: 0.3px !important;
        font-family: inherit !important;
    }

    .description {
        margin: 0 auto;
        font-size: 14px;
    }

    /* 6. Заголовки страниц */
    .title {
        margin-top: 60px;
    }

    .title h3 {
        margin: 0 0 12px 16px;
        font-size: 26px;
    }

    .title p {
        margin: 0 0 20px 16px;
        font-size: 14px;
    }

    .title-page {
        margin-top: 60px;
        padding: 0 16px;
    }

    .title-page h3 {
        font-size: 24px;
    }

    .title-page button {
        font-size: 18px;
    }
}

/* ==========================================================
   УДАЛЕНИЕ ВСЕХ HOVER-ЭФФЕКТОВ НА МОБИЛЬНЫХ УСТРОЙСТВАХ
   ========================================================== */
@media (hover: none),
(max-width: 768px) {

    *,
    *::before,
    *::after {
        -webkit-tap-highlight-color: transparent;
    }

    a:hover,
    button:hover,
    .card:hover,
    .ff-card:hover,
    .mg-card:hover,
    .hm-pop-card:hover,
    .lib-card:hover,
    .tab-item:hover,
    .cv-btn:hover,
    .smart-tag:hover,
    .button-one:hover,
    .au-google:hover,
    .au-tab:hover,
    .topbar-btn:hover,
    .nav-btn:hover,
    .profile-link:hover,
    .ah-pip-btn:hover,
    .mg-hot-pills button:hover,
    .cal-tab-btn:hover,
    .awp-ctrl:hover,
    .aw-icon-btn:hover,
    .awp-skip:hover {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }

    .ff-card:hover .ff-img,
    .mg-card:hover .mg-media img,
    .lib-card:hover img,
    .hm-pop-card:hover img {
        transform: none !important;
    }
}

/* ==========================================================
   УНИВЕРСАЛЬНЫЕ УВЕДОМЛЕНИЯ (TOASTS) ДЛЯ ВСЕГО САЙТА
   ========================================================== */
.ah-toasts,
.pi-toasts,
.au-toasts,
.cf-toasts,
.rd-toasts,
.pf-toasts {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
}

.ah-toast,
.pi-toasts>div,
.au-toasts>div,
.cf-toasts>div,
.rd-toasts>div,
.pf-toasts>div {
    min-width: 220px !important;
    max-width: 360px !important;
    background: rgba(24, 25, 32, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-left: 3.5px solid #4ade80 !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-family: 'MyCustomFont', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #f1f2f6 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    animation: ahToastIn .28s cubic-bezier(0.16, 1, 0.3, 1) both !important;
    pointer-events: auto !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.ah-toast.err,
.pi-toasts>div[style*="#f87171"],
.au-toasts>div[style*="#f87171"],
.cf-toast.err {
    border-left-color: #ff4d6d !important;
}

.ah-toast.warn {
    border-left-color: #ffb703 !important;
}

.ah-toast.ok,
.pi-toasts>div[style*="#4ade80"],
.au-toasts>div[style*="#4ade80"],
.cf-toast.ok {
    border-left-color: #4ade80 !important;
}

@keyframes ahToastIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {

    .ah-toasts,
    .pi-toasts,
    .au-toasts,
    .cf-toasts,
    .rd-toasts,
    .pf-toasts {
        right: 16px !important;
        left: 16px !important;
        bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
        align-items: center !important;
    }

    .ah-toast,
    .pi-toasts>div,
    .au-toasts>div,
    .cf-toasts>div,
    .rd-toasts>div,
    .pf-toasts>div {
        max-width: 100% !important;
        width: 100% !important;
        text-align: center !important;
        padding: 11px 16px !important;
        font-size: 13px !important;
    }
}

.ah-admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 42, 95, 0.12);
    color: #ff2a5f !important;
    border: 1px solid rgba(255, 42, 95, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.ah-admin-nav-link:hover {
    background: rgba(255, 42, 95, 0.22);
    border-color: rgba(255, 42, 95, 0.6);
    box-shadow: 0 0 12px rgba(255, 42, 95, 0.35);
    transform: translateY(-1px);
}

html.is-mobile-device .about-desktop {
    display: none !important;
}

html.is-mobile-device .about-mobile {
    display: flex !important;
}