/* ===== AnimeOne: тёмная тема ===== */
:root {
    --bg: #0b0b0d;
    --panel: #141417;
    --panel2: #1c1c21;
    --line: #27272d;
    --text: #ececf1;
    --muted: #8d8d9c;
    --accent: #8b5cf6;
    --accent2: #6d28d9;
    --green: #22c55e;
    --radius: 14px;
}
* { box-sizing: border-box; }
html, body {
    margin: 0; height: 100%;
    background: var(--bg); color: var(--text);
    font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.55;
}
a { color: #a78bfa; text-decoration: none; transition: color .2s; }
a:hover { color: #c4b5fd; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.muted { color: var(--muted); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2b2b33; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== Каркас ===== */
.app { display: flex; height: 100vh; overflow: hidden; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; overflow-y: auto; padding: 30px; }
.section-title { font-size: 22px; font-weight: 700; margin: 0 0 22px; color: #fff; }

/* ===== Боковое меню ===== */
.sidebar {
    width: 250px; min-width: 250px;
    background: var(--panel); border-right: 1px solid var(--line);
    padding: 22px 16px; overflow-y: auto;
}
.logo { display: block; font-size: 25px; font-weight: 800; letter-spacing: -.5px; color: #fff; margin: 0 8px 26px; }
.logo span { color: var(--accent); }
.logo:hover { color: #fff; }
.nav-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: #55556a; padding: 18px 12px 8px;
}
.nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; margin-bottom: 3px; border-radius: 10px;
    color: var(--muted); font-size: 14px; transition: .2s;
}
.nav a i { width: 18px; text-align: center; }
.nav a:hover { background: var(--panel2); color: #fff; }
.nav .soon em {
    margin-left: auto; font-style: normal; font-size: 10px;
    padding: 2px 8px; border-radius: 20px; background: #2a2340; color: #a78bfa;
}
.backdrop { display: none; }
.burger {
    display: none; background: var(--panel2); border: 0; color: #fff;
    width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
}

/* ===== Верхняя панель ===== */
.topbar {
    height: 70px; min-height: 70px; padding: 0 30px;
    display: flex; align-items: center; gap: 20px;
    background: var(--bg); border-bottom: 1px solid #1a1a1f;
}
.search {
    display: flex; align-items: center; gap: 10px;
    background: var(--panel2); border-radius: 10px; padding: 0 14px;
    width: 100%; max-width: 380px;
}
.search i { color: #55556a; }
.search input[type=text] {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
    color: #fff; padding: 11px 0;
}
.topnav { display: flex; gap: 6px; margin-left: auto; }
.topnav a { color: var(--muted); padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.topnav a:hover { color: #fff; background: var(--panel2); }
.login-area { display: flex; align-items: center; gap: 10px; }
.login-area a { color: #fff; }
.login-area .btn, .login-area a.login-btn { background: var(--accent2); padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 13px; }

/* ===== Список карточек ===== */
.page.is-list #dle-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 24px;
}
.page.is-list #dle-content > .navigation,
.page.is-list #dle-content > .pagination,
.page.is-list #dle-content > .pages,
.page.is-list #dle-content > .berrors,
.page.is-list #dle-content > .info-block { grid-column: 1 / -1; }

.card {
    position: relative; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: .25s;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card-poster { position: relative; aspect-ratio: 2 / 3; background: var(--panel2); overflow: hidden; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .35s; }
.card:hover .card-poster img { transform: scale(1.05); }
.no-poster { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #3a3a46; font-size: 34px; }
.tag {
    position: absolute; top: 10px; padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 600; background: rgba(0,0,0,.65); color: #fff; backdrop-filter: blur(4px);
}
.tag-type { left: 10px; }
.tag-live { right: 10px; background: var(--green); color: #04210f; }
.play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.45); color: #fff; font-size: 26px; opacity: 0; transition: .25s;
}
.card:hover .play { opacity: 1; }
.card-info { padding: 12px 14px 14px; }
.card-title {
    display: block; color: #fff; font-weight: 600; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-meta { margin-top: 3px; font-size: 12px; color: var(--muted); }
.card-meta a { color: inherit; pointer-events: none; }

/* ===== Страница аниме ===== */
.anime-top { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; }
.poster {
    aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
    background: var(--panel); border: 1px solid var(--line);
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.poster-actions a {
    flex: 1; text-align: center; padding: 10px 12px; border-radius: 10px;
    background: var(--panel2); color: #fff; font-size: 13px; font-weight: 500; border: 1px solid var(--line);
}
.poster-actions a:hover { border-color: var(--accent); }

.anime-main h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; color: #fff; }
.alt-names { list-style: none; margin: 0 0 14px; padding: 0; color: var(--muted); font-size: 14px; }
.rating-info { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.main-rating { font-size: 18px; font-weight: 700; color: #fff; }

.info { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.info li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info li > span { flex: none; min-width: 130px; color: var(--muted); }
.info li > b { font-weight: 500; color: var(--text); }
.info li.wide { grid-column: 1 / -1; }
.info a { color: #a78bfa; }
.info a:hover { text-decoration: underline; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 6px; background: var(--panel2); font-size: 12px !important; }
.badge-live { background: rgba(34,197,94,.18); color: var(--green); }

.desc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; color: #cfcfda; }
.desc-title { font-weight: 700; color: #fff; margin-bottom: 8px; }

/* ===== Вкладки и плеер ===== */
.tabs-wrap { margin-top: 36px; }
.tabs { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; border-bottom: 1px solid var(--line); }
.tabs li { padding: 11px 18px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs li:hover { color: #fff; }
.tabs li.active { color: #fff; border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.player { max-width: 940px; transition: max-width .3s; }
.player.wide { max-width: none; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-controls { display: flex; gap: 10px; margin-top: 12px; }
.player-controls button {
    background: var(--panel2); color: var(--text); border: 1px solid var(--line);
    padding: 9px 16px; border-radius: 10px; cursor: pointer; font-size: 13px; transition: .2s;
}
.player-controls button:hover { border-color: var(--accent); color: #fff; }
.notice { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

body.lights-off::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 50; }
body.lights-off .player { position: relative; z-index: 51; }

.faq-wrap { margin-top: 24px; font-size: 13px; color: var(--muted); max-width: 940px; }
.faq-wrap ul { padding-left: 18px; }
.faq-wrap li { margin-bottom: 8px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.rel-card { display: block; color: #fff; }
.rel-poster { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); }
.rel-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .3s; }
.rel-card:hover .rel-poster img { transform: scale(1.05); }
.rel-title { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; }

/* ===== Комментарии и формы ===== */
.comments-block { margin-top: 38px; max-width: 940px; }
.block-title { font-size: 18px; margin: 0 0 16px; color: #fff; }
input[type=text], input[type=password], input[type=email], input[type=search], textarea, select {
    background: var(--panel2); border: 1px solid var(--line); color: var(--text);
    border-radius: 10px; padding: 10px 14px; outline: 0; max-width: 100%;
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, textarea:focus { border-color: var(--accent); }
textarea { width: 100%; min-height: 110px; resize: vertical; }
input[type=submit], input[type=button], button.btn, .btn {
    background: var(--accent2); color: #fff; border: 0; border-radius: 10px;
    padding: 10px 20px; font-weight: 600; cursor: pointer; transition: .2s;
}
input[type=submit]:hover, input[type=button]:hover, button.btn:hover, .btn:hover { background: var(--accent); }

.berrors, .info-block {
    background: #241318; border: 1px solid #5b2330; color: #fca5a5;
    padding: 14px 18px; border-radius: 12px; margin-bottom: 18px;
}

/* ===== Постраничная навигация ===== */
.navigation, .pagination, .pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
.navigation a, .navigation span, .pagination a, .pagination span, .pages a, .pages span {
    min-width: 38px; padding: 8px 12px; text-align: center; border-radius: 9px;
    background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-size: 14px;
}
.navigation a:hover, .pagination a:hover, .pages a:hover { border-color: var(--accent); color: #fff; }
.navigation span:not(.nav_ext), .pagination span, .pages span { background: var(--accent2); border-color: var(--accent2); color: #fff; }

/* ===== Мобильная версия ===== */
@media (max-width: 900px) {
    .sidebar {
        position: fixed; z-index: 100; top: 0; left: 0; bottom: 0;
        transform: translateX(-100%); transition: transform .3s;
    }
    body.menu-open .sidebar { transform: none; }
    body.menu-open .backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); }
    .burger { display: block; }
    .topbar { padding: 0 16px; gap: 12px; }
    .topnav { display: none; }
    .search { max-width: none; }
    .content { padding: 18px 16px; }
    .anime-top { grid-template-columns: 1fr; }
    .anime-side { max-width: 220px; }
    .info { grid-template-columns: 1fr; }
    .info li > span { min-width: 110px; }
    .page.is-list #dle-content { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
}



/* ===== v2: сетка карточек без зависимости от тегов DLE ===== */

.app { height: 100vh; height: 100dvh; }

#dle-content:has(> .card) {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));

    gap: 24px;

    align-items: start;

}

#dle-content:has(> .card) > :not(.card) { grid-column: 1 / -1; }

.nav .soon em { font-size: 9px; padding: 1px 7px; }

.tabs { overflow-x: auto; }

.tabs li { white-space: nowrap; }

.player-controls { flex-wrap: wrap; }



@media (max-width: 900px) {

    #dle-content:has(> .card) { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

    .login-area { flex: none; max-width: 50%; }

    .login-area * { max-width: 100%; }

}

@media (max-width: 480px) {

    #dle-content:has(> .card) { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .section-title { font-size: 19px; }

    .anime-main h1 { font-size: 23px; }

    .anime-side { max-width: 180px; }

    .tabs li { padding: 10px 12px; }

}




/* ===== v2: сетка карточек без зависимости от тегов DLE ===== */

.app { height: 100vh; height: 100dvh; }

#dle-content:has(> .card) {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));

    gap: 24px;

    align-items: start;

}

#dle-content:has(> .card) > :not(.card) { grid-column: 1 / -1; }

.nav .soon em { font-size: 9px; padding: 1px 7px; }

.tabs { overflow-x: auto; }

.tabs li { white-space: nowrap; }

.player-controls { flex-wrap: wrap; }



@media (max-width: 900px) {

    #dle-content:has(> .card) { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

    .login-area { flex: none; max-width: 50%; }

    .login-area * { max-width: 100%; }

}

@media (max-width: 480px) {

    #dle-content:has(> .card) { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .section-title { font-size: 19px; }

    .anime-main h1 { font-size: 23px; }

    .anime-side { max-width: 180px; }

    .tabs li { padding: 10px 12px; }

}




/* ===== v3: сетка с учётом обёртки news-id и мобильная шапка ===== */

#dle-content > [id^="news-id-"] { display: block !important; }

#dle-content:has(.card) {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));

    gap: 24px;

    align-items: start;

}

#dle-content:has(.card) > :not(.card):not([id^="news-id-"]) { grid-column: 1 / -1; }

.topbar > * { min-width: 0; }

.search { flex: 1 1 auto; width: auto; }

.login-area { flex: 0 0 auto; }

@media (max-width: 900px) {

    #dle-content:has(.card) { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

}

@media (max-width: 480px) {

    #dle-content:has(.card) { grid-template-columns: repeat(2, 1fr); gap: 12px; }

}




/* ===== v4: сетка прямо на .page (в этой версии DLE нет обёртки #dle-content) ===== */

.page:has(.card) {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));

    gap: 24px;

    align-items: start;

}

.page:has(.card) > :not(.card):not([id^="news-id-"]) { grid-column: 1 / -1; }

.page > [id^="news-id-"] { display: block !important; }

@media (max-width: 900px) {

    .page:has(.card) { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

}

@media (max-width: 480px) {

    .page:has(.card) { grid-template-columns: repeat(2, 1fr); gap: 12px; }

}




/* ===== v5: FAQ, комментарии, пагинация ===== */

.faq-wrap { margin: 18px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; max-width: 952px; }

.faq-wrap > summary { cursor: pointer; padding: 12px 16px; font-size: 14px; color: var(--muted, #a1a1aa); list-style: none; }

.faq-wrap > summary::-webkit-details-marker { display: none; }

.faq-wrap > summary::before { content: "▸ "; color: var(--accent); }

.faq-wrap[open] > summary::before { content: "▾ "; }

.faq-wrap ul { margin: 0; padding: 0 16px 14px 28px; font-size: 13px; line-height: 1.5; color: #a1a1aa; }

.faq-wrap ul ul { padding: 6px 0 0 16px; }

.faq-wrap li { margin-bottom: 8px; }



.comments-block ul, .comments-block ol { list-style: none; margin: 0; padding: 0; }

.comments-block li { margin-bottom: 10px; }

.comments-block { max-width: 952px; }

.comments-block input[type="text"], .comments-block input[type="email"], .comments-block textarea {

    width: 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; color: #fff; padding: 10px 12px;

}

.comments-block .wseditor, .comments-block .bb-editor, .comments-block .fr-box { border-radius: 10px; overflow: hidden; }



.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; list-style: none; margin: 28px 0 0; padding: 0; grid-column: 1 / -1; }

.pagination li { display: flex; align-items: center; gap: 6px; }

.pagination a, .pagination span, .pagination > li > i {

    min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;

    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: #d4d4d8; font-size: 14px; text-decoration: none;

}

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

.pagination span:not(.nav_ext) { background: var(--accent); border-color: var(--accent); color: #fff; }




/* ===== v6: слайдер на главной ===== */

.hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 28px; background: var(--panel); min-height: 300px; }

.hero > [id^="news-id-"] { display: contents; }

.slide { display: none; position: relative; min-height: 300px; }

.slide.on { display: block; animation: heroFade .5s ease; }

@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

.hero:not(:has(.slide.on)) .slide:first-of-type { display: block; }

.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; filter: blur(28px) brightness(.45); transform: scale(1.2); }

.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,13,.85), rgba(11,11,13,.25)); }

.slide-inner { position: relative; z-index: 2; display: flex; gap: 28px; align-items: center; padding: 32px 36px 44px; }

.slide-poster { width: 170px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.6); flex: 0 0 auto; }

.slide-text { min-width: 0; max-width: 640px; }

.slide-meta { color: #c4b5fd; font-size: 13px; margin-bottom: 8px; }

.slide-title { margin: 0 0 12px; font-size: 30px; line-height: 1.2; color: #fff; }

.slide-desc { margin: 0 0 18px; color: #d4d4d8; font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.slide-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }

.slide-btn:hover { background: var(--accent2); }

.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }

.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; }

.hero-dots button.on { background: var(--accent); width: 24px; border-radius: 6px; }

@media (max-width: 700px) {

  .slide-inner { padding: 20px 18px 40px; gap: 14px; }

  .slide-poster { width: 100px; }

  .slide-title { font-size: 20px; }

  .slide-desc { -webkit-line-clamp: 2; font-size: 13px; }

  .slide-btn { padding: 9px 16px; }

}




/* ===== v7: быстрый фильтр в сайдбаре ===== */

.sidebar { overflow-y: auto; }

.qfilter { margin: 18px 12px 12px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }

.qfilter .nav-label { font-size: 11px; letter-spacing: .06em; color: #71717a; margin-bottom: 2px; }

.qfilter select { width: 100%; background: var(--panel2); color: #e4e4e7; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 13px; outline: none; }

.qfilter select:focus { border-color: var(--accent); }




/* ===== v9: значения-ссылки в карточках выглядят как обычный текст ===== */

.card .tag-type a, .card-meta a, .slide-meta a { color: inherit; text-decoration: none; pointer-events: none; }

.card-meta a:hover, .tag-type a:hover { color: inherit; }




/* ===== v10: подсказки поиска в тёмной теме ===== */

.search { position: relative; }

#searchsuggestions {

    background: var(--panel2) !important; border: 1px solid var(--line) !important; border-radius: 12px !important;

    box-shadow: 0 14px 34px rgba(0,0,0,.55) !important; overflow: hidden; margin-top: 6px !important;

    left: 0 !important; width: min(460px, 92vw) !important; z-index: 60 !important;

}

#searchsuggestions a { display: block; padding: 10px 14px; color: #e4e4e7 !important; font-size: 13px; text-decoration:none; background: transparent !important; }
#searchsuggestions a:hover { background: rgba(139,92,246,.18) !important; }
#searchsuggestions .notfound, #searchsuggestions span.notfound { display: block; padding: 12px 14px; color: #a1a1aa !important; background: transparent !important; }
#searchsuggestions .seperator, #searchsuggestions span.seperator { display: block; border-top: 1px solid var(--line); background: transparent !important; }
#searchsuggestions .seperator a { color: #c4b5fd !important; text-align: center; }
#searchsuggestions .searchheading { color: #fff; font-weight: 600; }



/* ===== v10: подсказки поиска в тёмной теме ===== */

.search { position: relative; }

#searchsuggestions {

    background: var(--panel2) !important; border: 1px solid var(--line) !important; border-radius: 12px !important;

    box-shadow: 0 14px 34px rgba(0,0,0,.55) !important; overflow: hidden; margin-top: 6px !important;

    left: 0 !important; width: min(460px, 92vw) !important; z-index: 60 !important;

}

#searchsuggestions a { display: block; padding: 10px 14px; color: #e4e4e7 !important; font-size: 13px; text-decoration: none; background: transparent !important; }

#searchsuggestions a:hover { background: rgba(139,92,246,.18) !important; }

#searchsuggestions .notfound, #searchsuggestions span.notfound { display: block; padding: 12px 14px; color: #a1a1aa !important; background: transparent !important; }

#searchsuggestions .seperator, #searchsuggestions span.seperator { display: block; border-top: 1px solid var(--line); background: transparent !important; }

#searchsuggestions .seperator a { color: #c4b5fd !important; text-align: center; }

#searchsuggestions .searchheading { color: #fff; font-weight: 600; }




/* ===== v12: красивая подсказка поиска с постерами ===== */

#searchsuggestions { display: none !important; }

.suggest { position: absolute; left: 0; top: calc(100% + 8px); width: min(520px, 92vw); background: var(--panel); border: 1px solid var(--line);

    border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.6); overflow: hidden; overflow-y: auto; max-height: 70vh; z-index: 80; }

.suggest[hidden] { display: none; }

.sg-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; color: #e4e4e7; text-decoration: none; border-bottom: 1px solid var(--line); }

.sg-item:hover, .sg-item.on { background: rgba(139,92,246,.16); }

.sg-img { flex: 0 0 40px; width: 40px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--panel2); }

.sg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sg-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.sg-title { display: block; font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sg-meta { display: block; font-size: 12px; color: #a1a1aa; }

.sg-empty { padding: 16px; color: #a1a1aa; font-size: 13px; }

.sg-all { display: block; text-align: center; padding: 12px; color: #c4b5fd; font-size: 13px; text-decoration: none; }

.sg-all:hover { background: rgba(139,92,246,.12); }




/* ===== v14: вкладка «Другие сезоны» ===== */

.seasons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }

.rel-meta { display: block; font-size: 12px; color: #a1a1aa; margin-top: 2px; }




/* ===== v15: блок «Популярное» ===== */

.hot { margin-bottom: 30px; }

.hot[hidden] { display: none; }

.hot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.hot-head .section-title { margin: 0; }

.hot-tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }

.hot-tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px; cursor: pointer; }

.hot-tabs button:hover { color: #fff; }

.hot-tabs button.on { background: var(--accent); color: #fff; }

.tag-score { right: 10px; background: rgba(139,92,246,.95); color: #fff; }


/* ===== v15: блок «Популярное» ===== */
.hot { margin-bottom: 30px; }
.hot[hidden] { display: none; }
.hot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hot-head .section-title { margin: 0; }
.hot-tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.hot-tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.hot-tabs button:hover { color: #fff; }
.hot-tabs button.on { background: var(--accent); color: #fff; }
.tag-score { right: 10px; background: rgba(139,92,246,.95); color: #fff; }

/* v16: формы (регистрация, пароль, обратная связь) */
.page_form__inner{max-width:520px;margin:30px auto;background:#121214;border:1px solid #26262b;border-radius:16px;padding:32px 34px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.page_form__inner h1{font-size:24px;margin:0 0 14px;color:#fff}
.page_form__inner .regtext{color:#a1a1aa;font-size:14px;line-height:1.6;margin-bottom:22px}
.page_form__inner .regtext a{color:#a78bfa}
.page_form__inner .ui-form{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.page_form__inner .ui-form li{list-style:none;margin:0;padding:0}
.page_form__inner .ui-form li::marker{content:""}
.page_form__inner label{display:block;font-size:13px;font-weight:600;color:#d4d4d8;margin-bottom:7px}
.page_form__inner input[type=text],.page_form__inner input[type=password],.page_form__inner input[type=email],.page_form__inner textarea,.page_form__inner select{width:100%;box-sizing:border-box;background:#0b0b0d;border:1px solid #2e2e35;color:#fff;border-radius:10px;padding:12px 14px;font-size:14px;outline:none;transition:.15s}
.page_form__inner input:focus,.page_form__inner textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.18)}
.page_form__inner .login_check{display:flex;gap:10px}
.page_form__inner .login_check input{flex:1}
.page_form__inner .login_check .btn{white-space:nowrap}
.page_form__inner .c-captcha{display:flex;gap:10px;align-items:center}
.page_form__inner .c-captcha img{border-radius:8px;height:42px}
.page_form__inner .c-captcha input{flex:1}
.page_form__inner #result-registration{font-size:13px;margin-top:6px}
.page_form__inner button,.page_form__inner input[type=submit],.page_form__inner .btn{background:#8b5cf6;color:#fff;border:0;border-radius:10px;padding:12px 22px;font-size:14px;font-weight:600;cursor:pointer;transition:.15s}
.page_form__inner button:hover,.page_form__inner input[type=submit]:hover,.page_form__inner .btn:hover{background:#7c3aed}
.page_form__inner .form-submit,.page_form__inner .form-submit button{width:100%}
/* страница правил: кнопки */
.btn-green,.btn-big,input.btn-green,button.btn-green{background:#8b5cf6!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:12px 26px!important;font-weight:600!important;cursor:pointer}
.btn-red,input.btn-red,button.btn-red{background:#27272a!important;color:#d4d4d8!important;border:0!important;border-radius:10px!important;padding:12px 26px!important;font-weight:600!important;cursor:pointer}
/* v16b */
.page_form__inner .login_check{align-items:stretch}
.page_form__inner .login_check .btn{height:auto;padding:0 20px}
.page_form__inner>form>button,.page_form__inner>form>input[type=submit],.page_form__inner .form-submit{margin-top:20px}
.page_form__inner .c-captcha{margin-bottom:6px}
/* v17: страница правил / статичные страницы */
article.content-page.box.story{max-width:860px;margin:30px auto;background:#121214;border:1px solid #26262b;border-radius:16px;padding:32px 36px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
article.content-page .box_in .title{font-size:26px;margin:0 0 18px;color:#fff}
article.content-page .text{color:#a1a1aa;font-size:14.5px;line-height:1.75}
article.content-page .text b,article.content-page .text strong{color:#e4e4e7}
article.content-page .text ul{margin:10px 0 16px 20px}
article.content-page .text li{margin:6px 0}
article.content-page .text a{color:#a78bfa}
article.content-page .text div[style*="center"]{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:26px}
article.content-page .text div[style*="center"] form{display:contents}
article.content-page .text div[style*="center"] :is(a,button,input,span.btn){background:#8b5cf6!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:12px 28px!important;font-size:14px!important;font-weight:600!important;cursor:pointer;text-decoration:none!important;box-shadow:none!important;height:auto!important;line-height:1.2!important}
article.content-page .text div[style*="center"] :is(a,button,input,span.btn):last-child{background:#27272a!important;color:#d4d4d8!important}
article.content-page .text div[style*="center"] :is(a,button,input,span.btn):hover{filter:brightness(1.12)}
/* v18 */
.page_form__inner .form_submit{margin-top:24px}
.page_form__inner .form_submit .btn{width:100%;padding:14px 22px}
/* v19: кнопки правил */
article.content-page .text button.bbcodes{background:#8b5cf6!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:12px 30px!important;font-size:14px!important;font-weight:600!important;cursor:pointer;box-shadow:none!important;height:auto!important;line-height:1.2!important;margin:0!important;transition:.15s}
article.content-page .text button.bbcodes[type="button"]{background:#27272a!important;color:#d4d4d8!important}
article.content-page .text button.bbcodes:hover{filter:brightness(1.15)}
article.content-page .text div[style*="center"] input[type="hidden"]{display:none!important}
/* v19: кнопки правил */
article.content-page .text button.bbcodes{background:#8b5cf6!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:12px 30px!important;font-size:14px!important;font-weight:600!important;cursor:pointer;box-shadow:none!important;height:auto!important;line-height:1.2!important;margin:0!important;transition:.15s}
article.content-page .text button.bbcodes[type="button"]{background:#27272a!important;color:#d4d4d8!important}
article.content-page .text button.bbcodes:hover{filter:brightness(1.15)}
article.content-page .text div[style*="center"] input[type="hidden"]{display:none!important}
/* v20 */
.page_form__inner .form_submit .btn{height:46px;line-height:46px;padding:0 22px;display:block}
/* v21: профиль */
.profile-page{max-width:980px;margin:0 auto}
.pf-head{display:flex;gap:28px;align-items:center;background:#121214;border:1px solid #26262b;border-radius:16px;padding:28px;margin:24px 0 20px}
.pf-ava img{width:140px;height:140px;border-radius:50%;object-fit:cover;border:3px solid #8b5cf6;display:block}
.pf-name{font-size:28px;margin:0 0 12px;color:#fff}
.pf-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.pf-badges>span{padding:5px 12px;border-radius:999px;font-size:12px;font-weight:600;background:#1f1f24;color:#d4d4d8}
.pf-badges>.pf-on{color:#4ade80;background:rgba(74,222,128,.12)}
.pf-stats{display:flex;gap:12px;flex-wrap:wrap}
.pf-stat{background:#0b0b0d;border:1px solid #26262b;border-radius:12px;padding:10px 18px;min-width:120px}
.pf-stat b{display:block;font-size:20px;color:#fff}
.pf-stat span{font-size:12px;color:#a1a1aa}
.pf-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;align-items:center;font-size:13px}
.pf-actions a{background:#1f1f24;color:#e4e4e7;border:1px solid #2e2e35;border-radius:10px;padding:9px 16px;text-decoration:none;font-weight:600;transition:.15s}
.pf-actions a:hover{background:#8b5cf6;border-color:#8b5cf6;color:#fff}
.pf-actions .pf-pm a{background:#8b5cf6;border-color:#8b5cf6;color:#fff}
.pf-about{background:#121214;border:1px solid #26262b;border-radius:16px;padding:22px 28px;margin-bottom:20px;color:#a1a1aa;line-height:1.7}
.pf-about h3{margin:0 0 8px;font-size:15px;color:#fff}
.pf-about p{margin:0 0 12px}
.pf-about:has(p:empty){display:none}
.pf-edit{max-width:none!important;margin:0 0 30px!important}
.pf-edit h2{font-size:20px;margin:0 0 20px;color:#fff}
.page_form__inner .form-sep{border-top:1px solid #26262b;margin:4px 0;padding:0}
.page_form__inner input[type=file]{width:100%;box-sizing:border-box;background:#0b0b0d;border:1px dashed #3a3a42;color:#a1a1aa;border-radius:10px;padding:12px;font-size:13px}
.page_form__inner .checkbox{margin:6px 0;color:#d4d4d8;font-size:14px}
.page_form__inner .checkbox label{display:inline;font-weight:400;margin:0 0 0 6px}
.page_form__inner fieldset{border:1px solid #26262b;border-radius:10px;padding:12px 16px}
@media(max-width:700px){.pf-head{flex-direction:column;text-align:center}.pf-badges,.pf-stats,.pf-actions{justify-content:center}}
/* v22: на странице профиля убираем ленту новостей под карточкой */
.profile-page~*,form:has(.profile-page)~*{display:none!important}
.page:has(.profile-page){display:block!important}
/* v23: всплывающие окна DLE (личные сообщения и др.) */
.ui-widget-overlay{background:#000!important;opacity:.72!important}
.ui-dialog{background:#121214!important;border:1px solid #26262b!important;border-radius:16px!important;color:#e4e4e7!important;box-shadow:0 30px 80px rgba(0,0,0,.6)!important;padding:0!important;overflow:hidden}
.ui-dialog .ui-dialog-titlebar{background:#17171a!important;border:0!important;border-bottom:1px solid #26262b!important;border-radius:0!important;padding:16px 20px!important}
.ui-dialog .ui-dialog-title{color:#fff!important;font-weight:700!important;font-size:15px!important}
.ui-dialog .ui-dialog-titlebar-close{filter:invert(1);opacity:.7}
.ui-dialog .ui-dialog-content{background:#121214!important;color:#e4e4e7!important;padding:18px 20px!important}
.ui-dialog .ui-dialog-buttonpane{background:#121214!important;border:0!important;border-top:1px solid #26262b!important;margin:0!important;padding:14px 20px!important}
.ui-dialog .ui-dialog-buttonpane button{background:#8b5cf6!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:10px 22px!important;font-weight:600!important;font-size:14px!important;cursor:pointer;box-shadow:none!important;text-shadow:none!important}
.ui-dialog .ui-dialog-buttonpane button:last-child{background:#27272a!important;color:#d4d4d8!important}
.ui-dialog input[type=text],.ui-dialog textarea,.ui-dialog select{background:#0b0b0d!important;border:1px solid #2e2e35!important;color:#fff!important;border-radius:10px!important;padding:11px 14px!important;box-sizing:border-box}
.ui-dialog input[type=text]:focus,.ui-dialog textarea:focus{border-color:#8b5cf6!important;box-shadow:0 0 0 3px rgba(139,92,246,.18)!important;outline:0}
.ui-dialog [class*="toolbar"],.ui-dialog [class*="editor"]{background:#17171a!important;border-color:#26262b!important}
.ui-dialog [class*="toolbar"] img{filter:invert(.85)}
/* v24: редактор комментариев и сообщений */
.bb-editor,.wseditor-box{background:#121214!important;border:1px solid #2e2e35!important;border-radius:12px!important;overflow:hidden}
.bb-editor .bb-pane,.bb-pane{background:#17171a!important;border-color:#26262b!important}
.bb-pane .bb-btn,.bb-btn{color:#d4d4d8!important;background:transparent!important;border-color:transparent!important}
.bb-pane .bb-btn:hover,.bb-btn:hover{background:#27272a!important}
.bb-pane img,.bb-btn img{filter:invert(.85)}
.wseditor,.wysiwygeditor,.bb-editor textarea,.bb-editor [contenteditable]{background:#0b0b0d!important;color:#e4e4e7!important;border:0!important;caret-color:#8b5cf6}
.wseditor *{color:inherit}
[class*="upload"],[class*="qq-"],.file-box,.uploadform,#uploadedfile{background:#0f0f11!important;border-color:#2e2e35!important;color:#a1a1aa!important;border-radius:12px}
[class*="upload"] .btn,[class*="upload"] button,.uploadform .btn,.btn-blue{background:#8b5cf6!important;color:#fff!important;border:0!important;border-radius:8px!important}
#comments .progress,.progress{background:#27272a!important}
/* v25: wysibb-редактор + крестик окна */
.wysibb{background:#0b0b0d!important;border:1px solid #2e2e35!important;border-radius:12px!important;overflow:hidden;color:#e4e4e7!important}
.wysibb .wysibb-toolbar{background:#17171a!important;border:0!important;border-bottom:1px solid #26262b!important}
.wysibb .wysibb-toolbar-container,.wysibb .wysibb-toolbar-btn{background:transparent!important;border-color:#26262b!important}
.wysibb .wysibb-toolbar-btn:hover{background:#27272a!important}
.wysibb .wysibb-toolbar-btn .btn-inner{filter:invert(.85)}
.wysibb .wysibb-text,.wysibb .wysibb-text-editor,.wysibb .wysibb-body,.wysibb textarea{background:#0b0b0d!important;color:#e4e4e7!important;border:0!important}
.wysibb .wysibb-text-editor *{color:inherit}
.ui-dialog .ui-dialog-content,.ui-dialog .ui-dialog-content>div,.ui-dialog .ui-dialog-content>form{border:0!important;outline:0!important;box-shadow:none!important}
.ui-dialog .ui-dialog-titlebar-close{background:transparent!important;border:0!important;width:32px!important;height:32px!important;padding:0!important;margin:0!important;font-size:0!important;filter:none!important;opacity:1!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;cursor:pointer}
.ui-dialog .ui-dialog-titlebar-close *{display:none!important}
.ui-dialog .ui-dialog-titlebar-close::after{content:"\00d7";display:block;font-size:26px;line-height:30px;color:#a1a1aa;text-align:center}
.ui-dialog .ui-dialog-titlebar-close:hover::after{color:#fff}
/* v26 */
.ui-dialog .ui-dialog-titlebar-close{top:12px!important;right:14px!important;transform:none!important}
/* v27: TinyMCE (комментарии и личные сообщения) */
.tox.tox-tinymce{border:1px solid #2e2e35!important;border-radius:12px!important;background:#0b0b0d!important;overflow:hidden}
.tox .tox-editor-header,.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar-overlord,.tox .tox-menubar{background:#17171a!important;border:0!important}
.tox .tox-editor-header{border-bottom:1px solid #26262b!important;box-shadow:none!important}
.tox .tox-toolbar__group{border-color:#2e2e35!important}
.tox .tox-tbtn{color:#d4d4d8!important}
.tox .tox-tbtn svg{fill:#d4d4d8!important}
.tox .tox-tbtn:hover,.tox .tox-tbtn--enabled{background:#27272a!important}
.tox .tox-edit-area,.tox .tox-edit-area__iframe{background:#0b0b0d!important}
.tox .tox-statusbar{background:#17171a!important;border-color:#26262b!important;color:#71717a!important}
.tox .tox-menu,.tox .tox-collection--list,.tox .tox-dialog{background:#17171a!important;border-color:#2e2e35!important;color:#e4e4e7!important}
.tox .tox-collection__item{color:#e4e4e7!important}
.tox .tox-collection__item--active{background:#27272a!important}
.tox .tox-dialog__header,.tox .tox-dialog__footer{background:#17171a!important;color:#fff!important}
.tox .tox-textfield,.tox .tox-textarea,.tox .tox-selectfield select{background:#0b0b0d!important;color:#fff!important;border-color:#2e2e35!important}
.tox .tox-label,.tox .tox-dialog__title{color:#d4d4d8!important}
.tox .tox-button{background:#8b5cf6!important;border-color:#8b5cf6!important;color:#fff!important}
.tox .tox-button--secondary{background:#27272a!important;border-color:#27272a!important;color:#d4d4d8!important}
/* v28: сообщения системы и приглашение для гостей */
.berrors{background:#121214!important;border:1px solid #26262b!important;border-left:3px solid #8b5cf6!important;border-radius:14px!important;padding:18px 22px!important;color:#a1a1aa!important;line-height:1.6;box-shadow:none!important}
.berrors h1{font-size:17px!important;margin:0 0 8px!important;color:#fff!important}
.berrors b{color:#e4e4e7}
.berrors a{color:#a78bfa}
.guest-note{margin:12px 0 0;padding:0 4px;color:#a1a1aa;font-size:14px}
.guest-note a{color:#a78bfa;font-weight:600}
/* v31: списки, оценки, рекомендации */
.poster-actions{display:flex;flex-direction:column;gap:8px}
.pa-btn{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;background:#17171a;color:#e4e4e7;border:1px solid #2e2e35;border-radius:10px;padding:10px 14px;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;transition:.15s;font-family:inherit}
.pa-btn:hover{border-color:#8b5cf6;color:#fff}
.pa-btn.on{background:#8b5cf6;border-color:#8b5cf6;color:#fff}
.rate-box{background:#121214;border:1px solid #26262b;border-radius:14px;padding:16px 18px;margin:14px 0;display:flex;gap:22px;flex-wrap:wrap;align-items:center}
.rate-main{display:flex;gap:16px;align-items:center}
.rate-num{font-size:34px;font-weight:800;color:#fff;line-height:1}
.rate-num small{font-size:14px;color:#71717a;font-weight:600;margin-left:2px}
.rate-stars{display:flex;gap:1px}
.rate-stars .st{background:none;border:0;padding:0 1px;font-size:21px;line-height:1;color:#3f3f46;cursor:pointer;transition:.1s}
.rate-stars .st.on{color:#fbbf24}
.rate-cnt{font-size:12px;color:#a1a1aa;margin-top:5px}
.reco{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.reco-btn{background:#17171a;color:#d4d4d8;border:1px solid #2e2e35;border-radius:10px;padding:9px 14px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:.15s}
.reco-btn b{margin-left:4px;opacity:.8}
.reco-btn:hover{border-color:#8b5cf6}
.reco-btn.on[data-v="1"]{background:rgba(74,222,128,.14);border-color:#4ade80;color:#4ade80}
.reco-btn.on[data-v="-1"]{background:rgba(248,113,113,.14);border-color:#f87171;color:#f87171}
.reco-pct{font-size:12px;color:#a1a1aa}
.ml-tabs{display:flex;gap:8px;margin:6px 0 20px;flex-wrap:wrap}
.ml-tab{padding:9px 18px;border-radius:10px;background:#17171a;border:1px solid #2e2e35;color:#d4d4d8;font-size:14px;font-weight:600;text-decoration:none}
.ml-tab.on{background:#8b5cf6;border-color:#8b5cf6;color:#fff}
.ml-tab b{opacity:.7;margin-left:7px;font-weight:600}
.ml-empty{color:#a1a1aa;padding:26px 0;font-size:14px}
.ml-empty a{color:#a78bfa;font-weight:600}
.ml-more{text-align:center;margin:22px 0}
article.content-page:has(#mylist-box){max-width:none!important;background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
/* v32: цвета оценок */
.rate-stars .st.on{color:#8b5cf6!important;text-shadow:0 0 10px rgba(139,92,246,.45)}
.rate-stars .st{color:#3f3f46}
.reco-btn[data-v="1"] i{color:#4ade80}
.reco-btn[data-v="-1"] i{color:#f87171}
.reco-btn[data-v="1"]:hover{border-color:#4ade80}
.reco-btn[data-v="-1"]:hover{border-color:#f87171}
/* v33: страница списков */
.my-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:16px}
.my-grid .card{width:auto;min-width:0}
article.content-page .my-grid .card-title,article.content-page .my-grid a{color:#fff!important;text-decoration:none}
article.content-page:has(#mylist-box) .story_icons{display:none!important}
article.content-page .ml-tab{color:#d4d4d8!important;text-decoration:none}
article.content-page .ml-tab.on{color:#fff!important}
article.content-page .ml-tab:hover{border-color:#8b5cf6}
article.content-page:has(#mylist-box) .title{margin:0 0 16px}
/* v34: страница списков на всю ширину */
article.content-page:has(#mylist-box){width:100%!important;max-width:none!important;margin:24px 0!important;box-sizing:border-box}
article.content-page:has(#mylist-box) .box_in,article.content-page:has(#mylist-box) .text{width:100%;max-width:none}
/* v35 */
.rate-avg.none{color:#52525b}
/* v36: таймер выхода серии, расписание, похожие */
.rel-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;max-width:100%}
.air-box{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#121214;border:1px solid #26262b;border-left:3px solid #8b5cf6;border-radius:14px;padding:14px 18px;margin:14px 0}
.air-ico{width:42px;height:42px;border-radius:12px;background:rgba(139,92,246,.15);color:#a78bfa;display:flex;align-items:center;justify-content:center;font-size:18px}
.air-txt{flex:1;min-width:180px}
.air-t{font-size:14px;color:#e4e4e7;font-weight:600}
.air-d{font-size:12px;color:#a1a1aa;margin-top:3px}
.air-cd{display:flex;gap:8px}
.air-u{display:flex;flex-direction:column;align-items:center;min-width:52px;background:#0b0b0d;border:1px solid #26262b;border-radius:10px;padding:7px 8px}
.air-u b{font-size:20px;color:#fff;line-height:1.1;font-variant-numeric:tabular-nums}
.air-u i{font-style:normal;font-size:10px;color:#71717a;text-transform:uppercase;margin-top:2px}
.sc-day{font-size:16px;color:#fff;margin:26px 0 12px}
.sc-day:first-child{margin-top:6px}
.sc-list{display:flex;flex-direction:column;gap:8px}
.sc-row{display:flex;align-items:center;gap:14px;background:#121214;border:1px solid #26262b;border-radius:12px;padding:10px 14px;text-decoration:none;transition:.15s}
.sc-row:hover{border-color:#8b5cf6}
.sc-img{width:44px;height:62px;object-fit:cover;border-radius:8px;background:#1f1f24;flex:none}
.sc-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
article.content-page .sc-t,.sc-t{font-size:14px;color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-m{font-size:12px;color:#a1a1aa}
.sc-time{font-size:16px;font-weight:700;color:#a78bfa;font-variant-numeric:tabular-nums}
article.content-page:has(#sched-box){width:100%!important;max-width:none!important;margin:24px 0!important;background:none!important;border:0!important;padding:0!important;box-shadow:none!important;box-sizing:border-box}
article.content-page:has(#sched-box) .story_icons{display:none!important}
article.content-page:has(#sched-box) .title{margin:0 0 16px}
article.content-page .sc-row,article.content-page .sc-row:hover{color:#e4e4e7;text-decoration:none}

/* v37: баннер фиксированной высоты, не прыгает */
.hero { height: 340px; min-height: 0; }
.slide { height: 100%; min-height: 0; }
.slide-inner { height: 100%; box-sizing: border-box; }
.slide-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 720px) { .hero { height: 270px; } }
#cont { margin-bottom: 8px; }

/* v38: всплывающие уведомления DLE (проверка логина, ошибки форм) */
.DLEPush { position: fixed; top: 20px; right: 20px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 32px); }
.DLEPush-notification { position: relative; background: #16161a; border: 1px solid #2a2a31; border-left: 4px solid #8b5cf6; border-radius: 12px; padding: 14px 38px 14px 16px; color: #e4e4e7; box-shadow: 0 12px 32px rgba(0,0,0,.55); }
.DLEPush-notification.push-success { border-left-color: #22c55e; }
.DLEPush-notification.push-error { border-left-color: #ef4444; }
.DLEPush-notification.push-warning { border-left-color: #f59e0b; }
.DLEPush-icon { display: none; }
.DLEPush-header { font-weight: 700; color: #fff; margin-bottom: 4px; }
.DLEPush-message { font-size: 14px; line-height: 1.45; color: #d4d4d8; }
.DLEPush-close { position: absolute; top: 8px; right: 12px; cursor: pointer; color: #a1a1aa; font-size: 20px; line-height: 1; }
.DLEPush-close:hover { color: #fff; }

/* v39: пустые уведомления DLE не показывать; текст на светлой подложке не нужен */
.DLEPush-notification:not(:has(.DLEPush-message:not(:empty))):not(:has(.DLEPush-header:not(:empty))) { display: none !important; }
.DLEPush-notification.wrapper { min-width: 0; max-width: 100%; display: block; animation-duration: .35s; }
.DLEPush-notification.wrapper.push-success, .DLEPush-notification.wrapper.push-error, .DLEPush-notification.wrapper.push-warning, .DLEPush-notification.wrapper.push-info { color: #e4e4e7; }
.DLEPush-header:empty { display: none; }
.DLEPush-close { background: none; border: 0; }

/* v40: глазок у полей пароля */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { padding-right: 44px !important; box-sizing: border-box; }
.pw-eye { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); background: none; border: 0; color: #a1a1aa; cursor: pointer; padding: 6px; font-size: 15px; line-height: 1; }
.pw-eye:hover { color: #fff; }

/* v41: глазок пароля — просто значок, без фона кнопки */
.pw-wrap .pw-eye { position: absolute !important; top: 50% !important; right: 6px !important; transform: translateY(-50%); width: 34px !important; height: 34px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 8px !important; color: #a1a1aa !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 15px; }
.pw-wrap .pw-eye:hover { color: #fff !important; background: rgba(255,255,255,.06) !important; }

/* v42: карточка комментария */
.comment { background: #131316; border: 1px solid #2a2a31; border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; }
.comment__body { display: flex; flex-direction: column; gap: 8px; }
.comment__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment__user { display: inline-flex; align-items: center; gap: 10px; }
.comment__avatar { width: 38px !important; height: 38px !important; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.comment__username { font-weight: 700; color: #fff; }
.comment__username a { color: #c4b5fd; text-decoration: none; }
.comment__date-time { color: #8b8b95; font-size: 12px; }
.comment__content { color: #e4e4e7; font-size: 14.5px; line-height: 1.55; word-break: break-word; }
.comment__content .signature { display: none; }
.comment__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment__controls .button_link { display: flex; gap: 6px; flex-wrap: wrap; }
.Comments_iconButton { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; color: #a1a1aa; cursor: pointer; background: #1b1b20; font-size: 13px; }
.Comments_iconButton:hover { color: #fff; background: #27272a; }
.comment__rating { display: flex; align-items: center; gap: 8px; color: #a1a1aa; }
.comment__rating .plus_icon { cursor: pointer; }
.comment__rating .plus_icon:hover { color: #fff; }

/* v43: у строки вкладок не показывать полосу прокрутки */
.tabs { overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* v44: страница общего фильтра */
article.content-page:has(#filter-box) { width: 100%; max-width: none; margin: 24px 0; }
.flt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.flt-chip { padding: 5px 12px; border-radius: 999px; background: #1b1b20; border: 1px solid #2a2a31; color: #e4e4e7; font-size: 13px; }
.flt-count { color: #8b8b95; font-size: 13px; margin-left: 6px; }
.flt-empty { padding: 40px 0; color: #8b8b95; }
.flt-pg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 8px; }
.flt-pg a, .flt-pg span { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #1b1b20; border: 1px solid #2a2a31; color: #e4e4e7; text-decoration: none; font-size: 14px; font-weight: 600; }
.flt-pg a:hover { background: #27272a; }
.flt-pg a.on { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }
.flt-pg .dots { background: none; border: 0; color: #8b8b95; }

/* v45: вкладки «Сейчас смотрят / Лучшее по рейтингу» рядом с заголовком */
.hot-head { justify-content: flex-start !important; gap: 22px; flex-wrap: wrap; }
.hot-head .hot-tabs { margin-left: 0; }

/* v46: статистика и титул в профиле */
.pf-rank { background: rgba(139,92,246,.18); color: #c4b5fd; border: 1px solid rgba(139,92,246,.4); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.pf-extra { margin: 18px 0; display: flex; flex-direction: column; gap: 14px; }
.pfx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pfx-card { background: #131316; border: 1px solid #2a2a31; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.pfx-card b { font-size: 24px; color: #fff; line-height: 1.2; }
.pfx-card span { color: #8b8b95; font-size: 13px; }
.pfx-rank, .pfx-act { background: #131316; border: 1px solid #2a2a31; border-radius: 14px; padding: 16px; }
.pfx-rankline, .pfx-acthead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pfx-rankline b, .pfx-acthead b { color: #fff; font-size: 16px; }
.pfx-rankline span, .pfx-acthead span { color: #8b8b95; font-size: 13px; }
.pfx-bar { height: 8px; background: #27272a; border-radius: 999px; overflow: hidden; }
.pfx-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, #c4b5fd); border-radius: 999px; }
.pfx-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.pfx-bars i { flex: 1; background: #27272a; border-radius: 3px; min-height: 4px; }
.pfx-bars i.on { background: #8b5cf6; }
.pfx-genres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: #8b8b95; font-size: 13px; }
.pfx-genres em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: #1b1b20; border: 1px solid #2a2a31; color: #e4e4e7; }
@media (max-width: 720px) { .pfx-grid { grid-template-columns: repeat(2, 1fr); } }

/* v47: разделители в меню и блок «Сезоны» */
.nav .nav-title { margin: 12px 12px 0; padding: 14px 0 8px; border-top: 1px solid var(--line); }
.sezony { margin: 18px 12px 12px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sezony .nav-label { font-size: 11px; letter-spacing: .06em; color: #71717a; margin-bottom: 6px; }
.sezony a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: #a1a1aa; font-size: 13px; text-decoration: none; transition: .15s; }
.sezony a b { font-weight: 500; }
.sezony a span { color: #71717a; font-size: 12px; }
.sezony a:hover { background: var(--panel2); color: #fff; }
.sezony a.on { background: rgba(139,92,246,.16); color: #fff; }
.sezony a.on span { color: #c4b5fd; }

/* v48: заголовки как у «Мой список», сезоны по годам */
.qfilter, .sezony { margin: 12px 12px 12px; padding-top: 0; }
.qfilter .nav-label, .sezony .nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #55556a; padding: 14px 0 8px; margin: 0; }
.sezony .yr { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: #e4e4e7; font-family: inherit; font-size: 14px; cursor: pointer; text-align: left; transition: .15s; }
.sezony .yr b { font-weight: 600; }
.sezony .yr:hover { background: var(--panel2); }
.sezony .yr .r { display: flex; align-items: center; gap: 10px; color: #71717a; font-size: 12px; }
.sezony .yr .r em { font-style: normal; }
.sezony .yr .r i { font-size: 10px; transition: transform .15s; }
.sezony .yr.open .r i { transform: rotate(90deg); }
.sezony .sub { display: none; flex-direction: column; gap: 2px; margin: 0 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.sezony .sub.open { display: flex; }

/* v49: кнопки «Расширенный поиск» и «Случайное аниме» в верхней панели */
.topmid { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; gap: 10px; min-width: 0; }
.topmid + .topnav { margin-left: 0; }
.topmid .tb { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--panel2); border: 1px solid transparent; color: #a1a1aa; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: .15s; }
.topmid .tb i { font-size: 13px; color: #8b5cf6; }
.topmid .tb:hover { color: #fff; border-color: var(--accent); }
@media (max-width: 1200px) { .topmid .tb span { display: none; } .topmid .tb { padding: 0 13px; } }
@media (max-width: 640px) { .topmid { display: none; } }

/* v50: расширенный поиск, страницы сверху в каталоге, без кнопки «Редактировать» */
.content-page .story_icons { display: none; }
.flt-head .flt-pg { margin: 0 0 0 auto; }
button.flt-chip { font-family: inherit; cursor: pointer; }
.srch { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.srch-side { background: #131316; border: 1px solid #2a2a31; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.srch-main { min-width: 0; }
.srch-toggle { display: none; }
.sf-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #55556a; margin-bottom: 6px; }
.sf-in { width: 100%; background: var(--panel2); color: #e4e4e7; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 13px; font-family: inherit; outline: none; }
.sf-in:focus { border-color: var(--accent); }
.sf-row { display: flex; gap: 8px; }
.ms { position: relative; }
.ms-btn { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; cursor: pointer; }
.ms-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a1a1aa; }
.ms-btn span.on { color: #fff; }
.ms-btn i { font-size: 10px; color: #71717a; }
.ms-panel { display: none; position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: #17171a; border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.ms.open .ms-panel { display: block; }
.ms-list { max-height: 220px; overflow-y: auto; margin-top: 6px; display: flex; flex-direction: column; }
.ms-it { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #d4d4d8; }
.ms-it:hover { background: var(--panel2); }
.ms-it input { accent-color: #8b5cf6; }
.ms-it em { margin-left: auto; font-style: normal; color: #71717a; font-size: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 6px 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: #a1a1aa; font-family: inherit; font-size: 13px; cursor: pointer; transition: .15s; }
.pill:hover { color: #fff; }
.pill.on { background: rgba(139,92,246,.2); border-color: #8b5cf6; color: #fff; }
.sf-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d4d4d8; cursor: pointer; }
.sf-chk input { accent-color: #8b5cf6; }
.sf-reset { height: 38px; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: #a1a1aa; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.sf-reset:hover { color: #fff; border-color: var(--accent); }
.srch-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.srch-top .srch-sort { width: auto; }
.srch-top .flt-pg { margin: 0 0 0 auto; }
.srch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
@media (max-width: 960px) {
  .srch { grid-template-columns: 1fr; }
  .srch-side { display: none; position: static; max-height: none; }
  .srch.show .srch-side { display: flex; }
  .srch-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); color: #e4e4e7; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
}

/* v51: расширенный поиск — панель справа, на всю ширину, 10 в ряд */
.content-page:has(#search-box), .content-page:has(#search-box) .box_in { max-width: none !important; width: 100% !important; }
.srch { grid-template-columns: minmax(0, 1fr) 300px; }
.srch-main { order: 1; }
.srch-side { order: 2; }
.srch-grid .hot-grid.my-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 14px; }
.ms-hint { font-size: 11px; color: #71717a; margin: 8px 2px 0; }
.ms-it .gm { width: 18px; height: 18px; flex: none; border-radius: 5px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; color: #fff; }
.ms-it.inc .gm { background: #8b5cf6; border-color: #8b5cf6; }
.ms-it.exc .gm { background: #ef4444; border-color: #ef4444; }
.ms-it.exc span { color: #fca5a5; text-decoration: line-through; }
@media (max-width: 1500px) { .srch-grid .hot-grid.my-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 1250px) { .srch-grid .hot-grid.my-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .srch-toggle { order: -1; }
  .srch-side { order: 0; }
  .srch-main { order: 1; }
}
@media (max-width: 700px) { .srch-grid .hot-grid.my-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .srch-grid .hot-grid.my-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v52: фиолетовые выпадающие списки и галочки */
:root { accent-color: #8b5cf6; }
select { color-scheme: dark; }
select option:checked { background: #8b5cf6 linear-gradient(#8b5cf6, #8b5cf6); color: #fff; }
@supports (appearance: base-select) {
  select, select::picker(select) { appearance: base-select; }
  select::picker(select) { background: #17171a; border: 1px solid var(--line); border-radius: 10px; padding: 6px; margin-top: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
  select::picker-icon { color: #71717a; transition: transform .15s; }
  select:open::picker-icon { transform: rotate(180deg); }
  select option { padding: 8px 10px; border-radius: 6px; background: transparent; color: #d4d4d8; font-size: 13px; }
  select option:hover, select option:focus { background: rgba(139,92,246,.25); color: #fff; }
  select option:checked { background: rgba(139,92,246,.4); color: #fff; }
  select option::checkmark { color: #c4b5fd; }
}

/* v53: стрелка в выпадающих списках — справа, в одну строку */
@supports (appearance: base-select) {
  select { display: inline-flex !important; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
  select::picker-icon { margin-left: auto; flex: none; font-size: 10px; line-height: 1; }
  select selectedcontent { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* v53: стрелка в выпадающих списках — справа, в одну строку */
@supports (appearance: base-select) {
  select { display: inline-flex !important; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
  select::picker-icon { margin-left: auto; flex: none; font-size: 10px; line-height: 1; }
  select selectedcontent { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* v54: выпадающие списки — ниже поля, с прокруткой внутри */
@supports (appearance: base-select) {
  select::picker(select) { max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3f3f46 transparent; }
}

/* v55: списки открываются вниз; вверх — только если внизу не помещается */
@supports (appearance: base-select) {
  select::picker(select) { position-area: block-end span-inline-end; position-try-order: normal; position-try-fallbacks: flip-block; margin: 4px 0 0; }
}

/* v56: поиск — компактнее сверху, номера страниц закреплены внизу окна */
.content:has(#search-box) { padding-top: 14px !important; }
.content-page:has(#search-box) { margin-top: 0 !important; }
.content-page:has(#search-box) .box_in { padding: 16px 22px 18px !important; }
.content-page:has(#search-box) h1.title { font-size: 22px; line-height: 1.2; margin: 0 0 12px; }
.srch-top { margin-bottom: 8px; }
.srch-chips { margin-bottom: 10px; }
.srch-grid .hot-grid.my-grid { gap: 10px; }
.srch-grid .card-info { padding: 8px 10px 9px; }
.srch-grid .flt-pg:last-child { position: sticky; bottom: 12px; z-index: 6; width: fit-content; margin: 12px auto 0; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(19,19,22,.92); backdrop-filter: blur(6px); }

/* v57: фильтры справа как боковая панель (только на странице поиска) */
.content:has(#search-box) { padding-right: 332px !important; }
.srch { display: block; }
.srch-side { position: fixed; top: 70px; right: 0; bottom: 0; width: 300px; max-height: none; border-radius: 0; border: 0; border-left: 1px solid #1a1a1f; background: var(--bg); padding: 18px 16px 24px; z-index: 20; overflow-y: auto; }
@media (max-width: 960px) {
  .content:has(#search-box) { padding-right: 16px !important; }
  .srch-side { position: static; width: auto; border: 1px solid #2a2a31; border-radius: 14px; background: #131316; padding: 16px; display: none; }
  .srch.show .srch-side { display: flex; }
}

/* v58: видимая фиолетовая полоса прокрутки на странице поиска */

.srch-side { scrollbar-width: thin !important; scrollbar-color: #8b5cf6 transparent !important; }

/* v59: каталог — без верхней переключалки, нижняя закреплена */
.flt-head .flt-pg{display:none !important}
.flt-pg:last-child { position: sticky; bottom: 12px; z-index: 6; width: fit-content; margin: 12px auto 0; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(19,19,22,.92); backdrop-filter: blur(6px); }

/* v61: «Настройки» внизу левой панели */
.sidebar .sb-settings { margin-top: 14px; padding-top: 10px; border-top: 1px solid #1a1a1f; }

/* v62: «Настройки» прижаты к низу панели */
.sidebar { display: flex; flex-direction: column; }
.sidebar > * { flex-shrink: 0; }
.sidebar .sb-settings { margin-top: auto; position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 12px; z-index: 5; }

/* v63: фон «Настроек» как у панели */
.sidebar .sb-settings { background: inherit !important; border: 0 !important; border-top: 1px solid #1a1a1f !important; border-radius: 0 !important; box-shadow: none !important; margin-left: 0; margin-right: 0; }

/* v64: слайдер на главной — две половины, кликабельные постер и название */
.hero-duo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-bottom: 28px; }
.hero-duo .hero { margin-bottom: 0; min-width: 0; }
.hero-duo .slide-inner { padding: 22px 24px 40px; gap: 18px; }
.hero-duo .slide-poster { width: 128px; }
.hero-duo .slide-text { max-width: none; }
.hero-duo .slide-title { font-size: 22px; margin-bottom: 8px; }
.hero-duo .slide-desc { -webkit-line-clamp: 3; font-size: 13px; margin-bottom: 14px; }
.hero-duo .slide-btn { padding: 9px 18px; }
.slide-poster-link { display: block; flex: 0 0 auto; transition: transform .2s; }
.slide-poster-link:hover { transform: translateY(-3px); }
.slide-title a { color: inherit; text-decoration: none; }
.slide-title a:hover { color: #c4b5fd; }
@media (max-width: 1100px) { .hero-duo { grid-template-columns: 1fr; } .hero-duo #hero2 { display: none; } }

/* v65: общие точки слайдера по центру */
.hero-duo { position: relative; }
.hero-duo > .hero-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.hero-duo > .hero-dots button { pointer-events: auto; }

/* v66: точки слайдера отдельной строкой под баннерами */
.hero-duo { row-gap: 0; margin-bottom: 22px; }
.hero-duo > .hero-dots { position: static !important; grid-column: 1 / -1; justify-content: center; margin-top: 14px; pointer-events: auto; }
.hero-duo > .hero-dots button { background: rgba(255,255,255,.22); }
.hero-duo > .hero-dots button.on { background: var(--accent); }

/* v67: крупнее постеры в баннерах */
.hero-duo .hero { height: 380px; }
.hero-duo .slide-inner { padding: 24px 28px 28px; gap: 22px; }
.hero-duo .slide-poster { width: 200px; }
.hero-duo .slide-title { font-size: 24px; }
@media (max-width: 1400px) { .hero-duo .slide-poster { width: 170px; } .hero-duo .hero { height: 340px; } }
@media (max-width: 720px) { .hero-duo .hero { height: 270px; } .hero-duo .slide-poster { width: 100px; } .hero-duo .slide-inner { padding: 20px 18px 24px; gap: 14px; } .hero-duo .slide-title { font-size: 20px; } }

/* v68: страница «Настройки» и уведомление плеера */
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.st-sub { color: #8a8a94; font-size: 13px; } .st-note { color: #a78bfa; font-size: 13px; font-weight: 600; }
.st-card { background: #131316; border: 1px solid #2a2a31; border-radius: 14px; padding: 18px 22px 20px; margin-bottom: 16px; max-width: 760px; }
.st-title { margin: 0 0 8px; font-size: 18px; color: #fff; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid #1d1d22; }
.st-title + .st-row { border-top: 0; }
.st-name { color: #e4e4e7; font-weight: 600; font-size: 14px; } .st-hint { color: #7c7c86; font-size: 12px; margin-top: 3px; }
.st-sw { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; cursor: pointer; }
.st-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.st-knob { position: absolute; inset: 0; background: #2a2a31; border-radius: 13px; transition: .2s; }
.st-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.st-sw input:checked + .st-knob { background: #8b5cf6; } .st-sw input:checked + .st-knob::after { left: 23px; }
.st-num, .st-sel { background: #1b1b20; border: 1px solid #2a2a31; color: #fff; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; min-width: 84px; flex: 0 0 auto; }
.st-num { width: 84px; text-align: center; } .st-num:focus, .st-sel:focus { outline: 0; border-color: #8b5cf6; }
.st-foot { margin-top: 10px; padding-top: 16px; border-top: 1px solid #1d1d22; }
.st-reset { background: #1b1b20; border: 1px solid #2a2a31; color: #e4e4e7; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.st-reset:hover { border-color: #8b5cf6; }
.ao-toast { position: fixed; right: 22px; bottom: 22px; z-index: 9999; display: flex; align-items: center; gap: 14px; background: #131316; border: 1px solid #8b5cf6; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.6); font-size: 14px; font-weight: 600; }
.ao-toast button { background: #8b5cf6; border: 0; color: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 720px) { .st-row { flex-wrap: wrap; } }

/* v69: числовые поля на странице настроек */
#settings-box input.st-num { width: 96px !important; min-width: 96px !important; max-width: 96px !important; flex: 0 0 96px !important; background: #1b1b20 !important; color: #fff !important; border: 1px solid #2a2a31 !important; border-radius: 10px !important; padding: 9px 12px !important; text-align: center; box-shadow: none !important; -moz-appearance: textfield; }
#settings-box input.st-num:focus { border-color: #8b5cf6 !important; outline: 0; }
#settings-box select.st-sel { background: #1b1b20 !important; color: #fff !important; }

/* v70: слайдер на телефоне — крупнее постер */
@media (max-width: 720px) {
  .hero-duo .hero { height: 300px; }
  .hero-duo .slide-inner { padding: 18px 16px 26px; gap: 14px; }
  .hero-duo .slide-poster { width: 140px; }
  .hero-duo .slide-title { font-size: 18px; }
  .hero-duo .slide-desc { -webkit-line-clamp: 3; font-size: 13px; margin-bottom: 12px; }
  .hero-duo .slide-meta { font-size: 12px; margin-bottom: 6px; }
  .hero-duo .slide-btn { padding: 8px 16px; font-size: 14px; }
}

/* v71: переключатель «Скрыть просмотренное» в панели поиска */
.srch-side .sf-chk { display: flex !important; align-items: center; gap: 12px; cursor: pointer; user-select: none; -webkit-user-select: none; color: #e4e4e7; font-size: 14px; font-weight: 600; padding: 6px 0; }
.srch-side .sf-chk span { background: none !important; user-select: none; -webkit-user-select: none; }
.srch-side .sf-chk input { -webkit-appearance: none !important; appearance: none !important; width: 42px !important; min-width: 42px !important; height: 24px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 12px !important; background: #2a2a31 !important; position: relative; flex: 0 0 42px !important; cursor: pointer; transition: background .2s; box-shadow: none !important; }
.srch-side .sf-chk input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.srch-side .sf-chk input:checked { background: #8b5cf6 !important; }
.srch-side .sf-chk input:checked::after { left: 21px; }

/* v72: кнопка темы рядом с поиском */
.theme-btn { flex: 0 0 auto; width: 40px; height: 40px; margin-left: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; padding: 0; transition: border-color .2s; }
.theme-btn:hover { border-color: var(--accent); }
@media (max-width: 720px) { .theme-btn { width: 38px; height: 38px; margin-left: 8px; } }

/* v73: перелистывание слайдов баннера */
.hero .slide.on { animation: none; z-index: 2; }
.hero .slide.out-f, .hero .slide.out-b { display: block !important; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.hero .slide.in-f.on { animation: aoInF .45s cubic-bezier(.4,0,.2,1); }
.hero .slide.in-b.on { animation: aoInB .45s cubic-bezier(.4,0,.2,1); }
.hero .slide.out-f { animation: aoOutF .45s cubic-bezier(.4,0,.2,1) forwards; }
.hero .slide.out-b { animation: aoOutB .45s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes aoInF { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes aoOutF { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes aoInB { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes aoOutB { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* v74: переключатель «Скрыть просмотренное» в стиле заголовков панели */
.srch-side .sf-chk { margin-top: 6px; padding: 8px 0 !important; }
.srch-side .sf-chk span { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }

/* v75: расписание по дням недели */
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: start; }
.wk-col { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 0; }
.wk-col.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.wk-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 4px 6px 10px; font-weight: 700; font-size: 14px; color: var(--text); }
.wk-h em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.wk-col.today .wk-h, .wk-col.today .wk-h em { color: var(--accent); }
.wk-it { display: flex; gap: 9px; padding: 7px 6px; border-radius: 10px; text-decoration: none; color: var(--text); }
.wk-it:hover { background: var(--panel2); }
.wk-img { width: 38px; height: 54px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: var(--panel2); }
.wk-i { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wk-t { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wk-m { font-size: 11px; color: var(--muted); }
.wk-tm { color: var(--accent); font-weight: 700; }
.wk-empty { font-size: 12px; color: var(--muted); padding: 6px; }
@media (max-width: 1400px) { .wk { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .wk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wk { grid-template-columns: 1fr; } }

/* v76: колонки шире, вышедшие сегодня серии */
.wk { gap: 10px; }
.wk-col { padding: 8px; }
.wk-h { font-size: 15px; }
.wk-it { gap: 10px; padding: 7px 4px; }
.wk-img { width: 46px; height: 66px; }
.wk-t { font-size: 14px; }
.wk-m { font-size: 12px; }
.wk-it.done { opacity: .5; }
.wk-it.done .wk-tm::after { content: " ✓"; }
@media (max-width: 1800px) { .wk { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .wk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wk { grid-template-columns: 1fr; } }

/* v77: плашка пользователя и уведомления */
.ub-wrap { display: flex; align-items: center; gap: 10px; }
.nf-bell { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color .2s, color .2s; }
.nf-bell:hover { border-color: var(--accent); color: var(--accent); }
.nf-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 14px; border: 2px solid var(--bg); text-align: center; }
.nf-badge[hidden] { display: none; }
.ub { display: flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.ub-ava { display: block; flex: 0 0 auto; }
.ub-ava img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); display: block; }
.ub-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.login-area .ub-name { color: var(--text) !important; font-weight: 700; font-size: 14px; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.login-area .ub-out { color: var(--muted) !important; font-size: 11px; line-height: 1.1; text-decoration: none; }
.login-area .ub-out:hover { color: #ef4444 !important; }
@media (max-width: 720px) { .ub { padding-right: 8px; } .ub-name { display: none; } }
.nf-ov { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 1000; }
.nf-ov.open { opacity: 1; pointer-events: auto; }
.nf-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%; background: var(--panel); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); z-index: 1001; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.25); }
.nf-panel.open { transform: none; }
.nf-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 17px; color: var(--text); }
.nf-x { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.nf-x:hover { color: var(--text); }
.nf-list { overflow-y: auto; flex: 1; padding: 8px; }
.nf-it { position: relative; display: flex; gap: 12px; padding: 10px 28px 10px 10px; border-radius: 12px; text-decoration: none; color: var(--text); }
.nf-it:hover { background: var(--panel2); }
.nf-it.new::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); }
.nf-img { width: 48px; height: 68px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--panel2); }
.nf-i { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nf-s { color: var(--accent); font-weight: 700; font-size: 13px; }
.nf-t { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-d { font-size: 12px; color: var(--muted); }
.nf-empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* v78: «Смотрю сейчас» — прогресс и продолжение */
.ml-prog { height: 4px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.ml-prog i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.ml-last { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.ml-last b { color: var(--text); font-weight: 600; }
.my-grid .ml-cont, article.content-page .my-grid a.ml-cont { display: flex; align-items: center; justify-content: center; margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: var(--accent); color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.my-grid .ml-cont:hover { background: var(--accent2); }

/* v79: красивая кнопка «Продолжить / Смотреть» */
.my-grid a.ml-cont, article.content-page .my-grid a.ml-cont { display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; padding: 9px 8px; font-size: 13px; border-radius: 10px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 4px 12px rgba(139,92,246,.35); transition: transform .15s, box-shadow .15s; }
.my-grid a.ml-cont:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(139,92,246,.5); }
.my-grid a.ml-cont i { font-size: 10px; }

/* v80: карточки в «Мой список» крупнее */
#mylist-box .my-grid, #mylist-box .hot-grid.my-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 18px !important; }
@media (max-width: 640px) { #mylist-box .my-grid, #mylist-box .hot-grid.my-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; } }

/* v81: на ПК карточки в «Мой список» ещё крупнее */
@media (min-width: 901px) { #mylist-box .my-grid, #mylist-box .hot-grid.my-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)) !important; gap: 20px !important; } }

/* v82: ваша оценка и рекомендация в «Просмотрено» */
.ml-mine { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ml-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.2; background: var(--panel2); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.ml-chip.star i { color: #f59e0b; }
.ml-chip.up { color: #16a34a; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }
.ml-chip.down { color: #ef4444; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); }

/* v83: оценка/рекомендация в строках; плашка Shikimori */
.ml-mine { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ml-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.ml-lab { color: var(--muted); font-weight: 500; }
.ml-chip.star i { color: var(--accent); }
.shiki-badge { display: inline-flex; align-items: baseline; gap: 8px; margin-left: auto; padding: 8px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
a.shiki-badge:hover { border-color: var(--accent); }
.shiki-badge .sk-l { font-size: 12px; font-weight: 600; color: var(--muted); }
.shiki-badge .sk-s { font-size: 20px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.shiki-badge .sk-v { font-size: 12px; color: var(--muted); }

/* v84: строки оценка/рекомендация без обрезки */
.ml-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 6px; font-size: 11.5px; }
.ml-row .ml-chip { justify-self: end; min-width: 0; max-width: 100%; padding: 4px 8px; font-size: 11.5px; gap: 4px; overflow: hidden; text-overflow: ellipsis; }
.ml-lab { white-space: nowrap; }

/* v85: ровные строки, «не оценено» */
.ml-row { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.ml-row .ml-chip { padding: 4px 7px; font-size: 11px; gap: 4px; }
.ml-none { justify-self: end; color: var(--muted); font-size: 11.5px; opacity: .85; }

/* v86: пометка «серия вышла, ждём в плеере» */
.air-hint { margin-left: 10px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* v87: заглушка аватара видна на любой теме */
img[src*="noavatar"] { background: #1c1c28 !important; border-radius: 50%; }

/* v88: подложка под аватар в шапке */
.ub-ava img { background: #1c1c28 !important; }

/* v89: панель «Озвучка и плеер» справа от плеера */
.tr-wrap { display: flex; gap: 20px; align-items: flex-start; }
.tr-wrap > .player { flex: 1 1 auto; min-width: 0; }
.tr-panel { flex: 0 0 330px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.tr-h { font-weight: 700; font-size: 15px; color: var(--text); }
.tr-sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; }
.tr-src { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-chip { padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); }
.tr-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tr-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; min-height: 0; flex: 1; padding-right: 2px; }
.tr-it { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; background: none; color: var(--text); font-size: 13px; font-weight: 600; text-align: left; width: 100%; }
.tr-it:hover { background: var(--panel2); }
.tr-it.on { background: rgba(139,92,246,.14); border-color: var(--accent); color: var(--accent); }
.tr-it .tr-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tr-it small { color: var(--muted); font-weight: 500; font-size: 11px; white-space: nowrap; }
@media (max-width: 1100px) { .tr-wrap { flex-direction: column; } .tr-panel { flex: none; width: 100%; max-height: 360px !important; } }

/* v90: аватар профиля, скрытое удаление, «Опасная зона» */
.pf-ava img { background: #1c1c28; }
.pf-del { display: none !important; }
.st-danger { border-color: rgba(239,68,68,.45) !important; }
.st-danger .st-title { color: #ef4444 !important; }
.sd-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sd-t { font-weight: 600; font-size: 14px; color: var(--text); }
.sd-h { font-size: 12px; color: var(--muted); margin-top: 3px; max-width: 460px; line-height: 1.4; }
.sd-btn { padding: 10px 18px; border-radius: 10px; border: 1px solid #ef4444; background: transparent; color: #ef4444; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s; }
.sd-btn:hover { background: #ef4444 !important; color: #fff !important; }

/* v91: окно входа */
#login-form-pop { box-sizing: border-box; width: min(280px, calc(100vw - 24px)) !important; }
#login-form-pop input[type="text"], #login-form-pop input[type="password"] { box-sizing: border-box; width: 100%; }
#login-form-pop .pw-wrap { position: relative; display: block; margin-bottom: 15px; }
#login-form-pop .pw-wrap input { margin-bottom: 0 !important; padding-right: 46px !important; }
#login-form-pop .lp-forgot { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); text-decoration: none; }
#login-form-pop .lp-forgot:hover { color: var(--accent2); }
@media (max-width: 600px) { #login-form-pop { right: 12px !important; } }

/* v92: окно удаления аккаунта */
.sd-ov { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sd-modal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: min(400px, 100%); color: var(--text); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.sd-mt { margin: 0 0 10px; font-size: 18px; }
.sd-mp { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sd-in { box-sizing: border-box; width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px; }
.sd-er { min-height: 18px; margin-top: 8px; color: #f87171; font-size: 13px; }
.sd-bx { display: flex; gap: 10px; margin-top: 12px; }
.sd-no, .sd-go { flex: 1; padding: 10px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; }
.sd-no { background: var(--panel2); color: var(--text); }
.sd-go { background: #dc2626; color: #fff !important; }
.sd-go:disabled { opacity: .6; cursor: wait; }

/* v93: серии в панели озвучки */
.tr-eps { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; max-height: 126px; overflow: auto; margin-bottom: 14px; padding: 2px; }
.tr-ep { padding: 7px 0; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 13px; cursor: pointer; text-align: center; }
.tr-ep:hover { border-color: var(--accent); }
.tr-ep.on { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.tr-panel .tr-list { min-height: 120px; }

/* v94: серии над плеером */
.tr-epbar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; min-width: 0; }
.tr-epbar .tr-sub { margin: 0; flex: none; }
.tr-epbar .tr-eps { position: relative; display: flex !important; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden; max-height: none; margin: 0; padding: 2px; min-width: 0; scrollbar-width: thin; }
.tr-epbar .tr-ep { flex: none; min-width: 42px; padding: 7px 12px; }

/* v95: серии компактно, в несколько строк */
.tr-epbar { align-items: flex-start; }
.tr-epbar .tr-sub { margin-top: 9px; }
.tr-epbar .tr-eps { flex-wrap: wrap; overflow-x: hidden; overflow-y: auto; max-height: 124px; }
.tr-epbar .tr-ep { min-width: 38px; padding: 6px 8px; }

/* v96: панель озвучки до низа плеера, серии на всю ширину */
.tr-panel { display: flex; flex-direction: column; box-sizing: border-box; }
.tr-panel .tr-list { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow-y: auto; }
.tr-epbar { flex-direction: column; align-items: stretch; gap: 8px; max-width: none; }
.tr-epbar .tr-sub { margin: 0; }

/* v97: серии крупнее */
.tr-epbar .tr-sub { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.tr-epbar .tr-ep { min-width: 46px; padding: 10px 10px; font-size: 15px; }
.tr-epbar .tr-eps { gap: 8px; max-height: 160px; }

/* v51: «Сезоны» как выпадающий список */
.sezony .nav-label { cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.sezony .nav-label::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #71717a; border-bottom: 2px solid #71717a; transform: rotate(-45deg); transition: transform .15s; margin-right: 6px; }
.sezony .nav-label:hover { color: #a1a1aa; }
html.sez-open .sezony .nav-label::after { transform: rotate(45deg); }
html:not(.sez-open) .sezony > :not(.nav-label) { display: none; }

/* v65: список годов не заезжает под «Настройки» */
.sidebar { padding-bottom: 0 !important; }
.sidebar .sb-settings { padding-bottom: 20px !important; }
.sidebar .sezony { margin-bottom: 16px; }

/* v66: прокручивается только блок «Сезоны» */
.sidebar { overflow-y: auto; }
.sidebar > .sezony { flex: 1 1 0; min-height: 160px; overflow-y: auto; overflow-x: hidden; margin-bottom: 8px; scrollbar-width: thin; scrollbar-color: #2a2a31 transparent; }
.sidebar > .sezony::-webkit-scrollbar { width: 6px; }
.sidebar > .sezony::-webkit-scrollbar-thumb { background: #2a2a31; border-radius: 6px; }
.sidebar > .sezony .nav-label { position: sticky; top: 0; z-index: 2; background: var(--panel); }

/* v68: на компьютере слайдер листается вертикально, точки между блоками в два столбика */
@media (min-width: 1101px) {
  @keyframes aoInFv { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @keyframes aoOutFv { from { transform: translateY(0); } to { transform: translateY(-100%); } }
  @keyframes aoInBv { from { transform: translateY(-100%); } to { transform: translateY(0); } }
  @keyframes aoOutBv { from { transform: translateY(0); } to { transform: translateY(100%); } }
  .hero .slide.in-f { animation: aoInFv .45s cubic-bezier(.4,0,.2,1) both; }
  .hero .slide.in-b { animation: aoInBv .45s cubic-bezier(.4,0,.2,1) both; }
  .hero .slide.out-f { animation: aoOutFv .45s cubic-bezier(.4,0,.2,1) forwards; }
  .hero .slide.out-b { animation: aoOutBv .45s cubic-bezier(.4,0,.2,1) forwards; }

  .hero-duo { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); column-gap: 14px; }
  .hero-duo > #hero { grid-column: 1; grid-row: 1; }
  .hero-duo > #hero2 { grid-column: 3; grid-row: 1; }
  .hero-duo > .hero-dots { display: block !important; grid-column: 2 !important; grid-row: 1; align-self: center; justify-self: center; margin: 0 !important; width: 38px; column-count: 2; column-gap: 10px; }
  .hero-duo > .hero-dots button { display: block; margin: 0 0 8px; break-inside: avoid; width: 14px; height: 9px; }
  .hero-duo > .hero-dots button.on { width: 14px; height: 24px; border-radius: 6px; }
}

/* v69: вертикальная анимация сильнее старой, ровные неподвижные точки */
@media (min-width: 1101px) {
  .hero .slide.in-f { animation: aoInFv .5s cubic-bezier(.4,0,.2,1) both !important; }
  .hero .slide.in-b { animation: aoInBv .5s cubic-bezier(.4,0,.2,1) both !important; }
  .hero .slide.out-f { animation: aoOutFv .5s cubic-bezier(.4,0,.2,1) forwards !important; }
  .hero .slide.out-b { animation: aoOutBv .5s cubic-bezier(.4,0,.2,1) forwards !important; }

  .hero-duo > .hero-dots { display: grid !important; grid-auto-flow: column; grid-template-rows: repeat(10, 9px); gap: 9px 9px; width: auto; column-count: auto; align-content: center; }
  .hero-duo > .hero-dots button { display: block; width: 9px !important; height: 9px !important; margin: 0 !important; border-radius: 50% !important; transition: background .2s, transform .2s; }
  .hero-duo > .hero-dots button.on { width: 9px !important; height: 9px !important; border-radius: 50% !important; background: var(--accent); transform: scale(1.35); }
}

/* v70: телефон — карточки по 5 в ряд, постер/кнопки/плеер на всю ширину */
@media (max-width: 720px) {
  .my-grid, .hot-grid, #dle-content:has(.card), .page.is-list #dle-content, .page:has(> .card), .srch-grid .hot-grid.my-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 8px 6px !important; }
  .related-grid, .seasons-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px 8px !important; }
  .card { border-radius: 8px; }
  .card-info { padding: 5px 6px 7px !important; }
  .card-title { font-size: 11px !important; line-height: 1.25 !important; }
  .card-meta { font-size: 9.5px !important; margin-top: 2px !important; }
  .card .tag-type { font-size: 8px !important; padding: 2px 5px !important; top: 4px !important; left: 4px !important; border-radius: 5px !important; }
  .card .play { display: none !important; }

  .anime-top { grid-template-columns: 1fr !important; }
  .poster { width: 100% !important; max-width: none !important; }
  .poster-actions { width: 100% !important; }
  .poster-actions a, .poster-actions button { width: 100% !important; box-sizing: border-box; }
  .tr-wrap { display: block !important; width: 100% !important; }
  .tr-wrap > .player, .tr-wrap > .tr-panel, .player, .player-frame { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .player-frame iframe { width: 100% !important; }
}

/* v71: телефон — по 4 в ряд, отступы у плеера, компактный слайдер */
@media (max-width: 720px) {
  .my-grid, .hot-grid, #dle-content:has(.card), .page.is-list #dle-content, .page:has(> .card), .srch-grid .hot-grid.my-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px 8px !important; }
  .card-title { font-size: 12px !important; }
  .card-meta { font-size: 10.5px !important; }
  .tr-wrap > .tr-panel { margin-top: 14px !important; }
  .tr-wrap .player { margin-bottom: 0 !important; }
  .hero-duo .hero { height: 215px !important; }
  .hero-duo .slide-inner { padding: 16px 16px 30px !important; gap: 12px !important; }
  .hero-duo .slide-poster { width: 84px !important; }
  .hero-duo .slide-title { font-size: 17px !important; margin-bottom: 6px !important; }
  .hero-duo .slide-desc { -webkit-line-clamp: 2 !important; font-size: 12px !important; margin-bottom: 10px !important; }
  .hero-duo .slide-meta { font-size: 11px !important; margin-bottom: 4px !important; }
  .hero-duo .slide-btn { padding: 7px 14px !important; font-size: 13px !important; }
}

/* v72: телефон — постер и кнопки списка на всю ширину */
@media (max-width: 720px) {
  .anime-side { max-width: none !important; width: 100% !important; }
  .anime-side .poster { width: 100% !important; }
  .anime-side .poster-actions { width: 100% !important; }
}

/* v73: страница настроек — два столбца на всю ширину */
body :has(#settings-box) { max-width: none !important; }
#settings-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; max-width: none !important; width: 100%; }
#settings-box > .st-head { margin: 0; order: 0; }
#settings-box > .st-card { max-width: none !important; margin: 0 !important; }
#settings-box > section.st-card:not(.st-danger):nth-of-type(1) { order: 1; }
#settings-box > section.st-card:not(.st-danger):nth-of-type(2) { order: 2; }
#settings-box > .st-foot { order: 3; border: 0; margin: 0; padding: 0; }
#settings-box > .st-danger { order: 4; }
@media (min-width: 1000px) {
  #settings-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
  #settings-box > .st-head { grid-column: 1 / -1; }
  #settings-box > section.st-card:not(.st-danger):nth-of-type(1) { grid-column: 1; grid-row: 2; }
  #settings-box > section.st-card:not(.st-danger):nth-of-type(2) { grid-column: 2; grid-row: 2; }
  #settings-box > .st-foot { grid-column: 1; grid-row: 3; justify-self: start; align-self: start; }
  #settings-box > .st-danger { grid-column: 2; grid-row: 3; }
}

/* v74: блоки уже, «Сбросить» над «Приватностью» справа, «Опасная зона» ниже общего блока */
#settings-box > .st-foot { order: 3; }
.st-danger.st-out { max-width: 560px; margin: 20px 0 24px !important; }
@media (min-width: 1000px) {
  #settings-box { grid-template-columns: repeat(2, minmax(0, 560px)); justify-content: start; }
  #settings-box > .st-foot { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; }
  #settings-box > section.st-card:not(.st-danger):nth-of-type(1) { grid-column: 1; grid-row: 3; }
  #settings-box > section.st-card:not(.st-danger):nth-of-type(2) { grid-column: 2; grid-row: 3; }
}

/* v75: «Плеер» в два столбца, блоки шире, «Сбросить» на уровне заголовка справа */
@media (min-width: 1000px) {
  #settings-box { position: relative; grid-template-columns: minmax(0, 900px) minmax(0, 520px); }
  #settings-box > .st-head { grid-column: 1 / -1; grid-row: 1; }
  #settings-box > section.st-card:not(.st-danger):nth-of-type(1) { grid-column: 1; grid-row: 2; }
  #settings-box > section.st-card:not(.st-danger):nth-of-type(2) { grid-column: 2; grid-row: 2; }
  #settings-box > .st-foot { position: absolute; top: -52px; right: 0; grid-column: auto; grid-row: auto; justify-self: auto; align-self: auto; margin: 0; }
}
@media (min-width: 1250px) {
  #settings-box > section.st-card:nth-of-type(1) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; align-content: start; }
  #settings-box > section.st-card:nth-of-type(1) > .st-title { grid-column: 1 / -1; grid-row: 1; }
  #settings-box > section.st-card:nth-of-type(1) > .st-row:nth-of-type(4) { grid-column: 1; grid-row: 2; border-top: 0; }
  #settings-box > section.st-card:nth-of-type(1) > .st-row:nth-of-type(6) { grid-column: 1; grid-row: 3; }
  #settings-box > section.st-card:nth-of-type(1) > .st-row:nth-of-type(2) { grid-column: 1; grid-row: 4; }
  #settings-box > section.st-card:nth-of-type(1) > .st-row:nth-of-type(5) { grid-column: 2; grid-row: 2; border-top: 0; }
  #settings-box > section.st-card:nth-of-type(1) > .st-row:nth-of-type(1) { grid-column: 2; grid-row: 3; border-top: 1px solid #1d1d22; }
  #settings-box > section.st-card:nth-of-type(1) > .st-row:nth-of-type(3) { grid-column: 2; grid-row: 4; }
  #settings-box > section.st-card:nth-of-type(1) > .st-row:nth-of-type(7) { grid-column: 2; grid-row: 5; }
}

/* v76: «Плеер» двумя независимыми столбцами, блок по ширине содержимого */
#settings-box { position: static !important; }
#settings-box > section.st-card:nth-of-type(1) { display: block !important; }
.st-outer { width: fit-content; max-width: 100%; box-sizing: border-box; }
.st-top { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.st-top .st-foot { position: static; margin: 0; padding: 0; border: 0; }
.st-cols .st-lab { min-width: 0; flex: 1 1 0; }
.st-cols .st-sel { min-width: 0; width: 150px; }
.st-col > .st-row:first-child { border-top: 0; }
@media (min-width: 1250px) {
  .st-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; }
}
@media (max-width: 999px) { .st-outer { width: auto; } }

/* v77: «Плеер» шире, строки по одной линии, «Сбросить» в углу блока, «Опасная зона» справа внизу */
@media (min-width: 1000px) {
  #settings-box { grid-template-columns: minmax(0, 1100px) minmax(0, 520px); }
}
.st-outer { position: relative; }
.st-top { position: absolute; top: 32px; right: 36px; width: auto !important; margin: 0; z-index: 2; }
@media (max-width: 999px) { .st-top { position: static; width: auto !important; margin: 0 0 10px; justify-content: flex-end; } }
@media (min-width: 1250px) {
  .st-cols { grid-template-rows: repeat(4, auto); }
  .st-col { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
}
.st-danger.st-out { margin-left: auto !important; margin-right: 0 !important; }

/* v79: профиль — две колонки на одном экране */
@media (min-width: 1100px) {
  .profile-page { max-width: 1600px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; align-items: start; margin: 0 auto; }
  .profile-page > .pf-head { grid-column: 1; grid-row: 1; margin: 0; padding: 20px 24px; gap: 22px; }
  .profile-page > .pf-extra { grid-column: 1; grid-row: 2; margin: 0; gap: 10px; }
  .profile-page > .pf-about { grid-column: 1; grid-row: 3; margin: 0; padding: 16px 22px; }
  .profile-page > .pf-edit { grid-column: 2; grid-row: 1 / span 3; margin: 0 !important; padding: 22px 26px; }
  .pf-ava img { width: 104px; height: 104px; box-shadow: 0 0 0 5px rgba(139,92,246,.16), 0 8px 24px rgba(139,92,246,.25); }
  .pf-name { font-size: 26px; margin: 0 0 8px; }
  .pf-badges { margin-bottom: 10px; }
  .pf-stats { gap: 10px; }
  .pf-stat { padding: 8px 14px; min-width: 100px; }
  .pf-actions { margin-top: 12px; }
  .pfx-card { padding: 12px 14px; }
  .pfx-card b { font-size: 20px; }
  .pfx-rank, .pfx-act { padding: 12px 16px; }
  .pfx-bars { height: 46px; }
  .pfx-genres { margin-top: 8px; }

  .pf-edit h2 { margin: 0 0 14px; }
  .pf-edit .ui-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; margin: 0; padding: 0; list-style: none; }
  .pf-edit .ui-form > li { margin: 0 !important; padding: 0 !important; min-width: 0; }
  .pf-edit .ui-form > li.form-sep { display: none; }
  .pf-edit .ui-form > li:has(#email),
  .pf-edit .ui-form > li:has(textarea),
  .pf-edit .ui-form > li:has(table.xfields),
  .pf-edit .ui-form > li:has(.checkbox + .checkbox) { grid-column: 1 / -1; }
  .pf-edit textarea { min-height: 70px; height: 74px; }
  .pf-edit .checkbox { margin: 2px 0; }
  .pf-edit .form_submit { margin-top: 14px; }
}

/* v80: «Комментарии N» — компактная плашка под аватаркой */
.pf-ava { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 0 0 auto; }
.pf-ava .pf-stats { margin: 0; gap: 0; justify-content: center; }
.pf-ava .pf-stat { display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: 7px; padding: 5px 13px; min-width: 0; border-radius: 999px; }
.pf-ava .pf-stat b { font-size: 14px; }
.pf-ava .pf-stat span { font-size: 12px; }

/* v81: ник и ранг в одну строку */
.pf-nameline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.pf-nameline .pf-name { margin: 0 !important; }
.pf-nameline .pf-rank { font-size: 12px; }

/* v82: достижения в профиле */
.pfx-ach .pfx-acthead { margin-bottom: 10px; }
.ach-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ach { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); text-align: center; min-width: 0; }
.ach i { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; background: linear-gradient(135deg, #8b5cf6, #c4b5fd); color: #fff; box-shadow: 0 4px 14px rgba(139,92,246,.35); }
.ach span { font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.ach.off { opacity: .45; filter: grayscale(1); }
@media (max-width: 720px) { .ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v83: ранг в комментариях */
.cm-rank { margin-left: 8px; font-size: 11px; padding: 2px 9px; vertical-align: middle; white-space: nowrap; }

/* v84 profile: genres block + compact achievements */
.pfx-gen { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); grid-column: 1 / -1; }
.pfx-gen .pfx-acthead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pfx-gen .pfx-acthead span { font-size: 12px; opacity: .6; }
.gen-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 38px; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.gen-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gen-bar { height: 8px; border-radius: 8px; background: var(--panel2); overflow: hidden; }
.gen-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.gen-pc { text-align: right; font-size: 12px; opacity: .7; }
@media (min-width: 721px) {
  .ach-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .ach { padding: 8px 2px; }
  .ach i { width: 28px; height: 28px; font-size: 12px; }
  .ach span { font-size: 10.5px; }
}

/* v85 profile: genre capitalize + align column heights */
.gen-name::first-letter { text-transform: uppercase; }
@media (min-width: 721px) {
  .ach { padding: 12px 2px; }
}

/* v87 profile: align column bottoms */
@media (min-width: 721px) {
  .ach { padding: 13.5px 2px; }
}

/* v88 profile: active bars purple in every theme */
.pfx-act .pfx-bars i.on { background: #8b5cf6 !important; }
.pfx-act .pfx-bar i { background: linear-gradient(90deg, #8b5cf6, #c4b5fd) !important; }

/* v89 profile: PM button purple in every theme */
.pf-head a[href*="do=pm"], .pf-head a[href*="newpm"] { background: #8b5cf6 !important; color: #fff !important; border-color: #8b5cf6 !important; }
.pf-head a[href*="do=pm"]:hover, .pf-head a[href*="newpm"]:hover { background: #7c3aed !important; border-color: #7c3aed !important; }
/* aone-rel-badge */
.rel-poster{position:relative}
.rel-badge{position:absolute;left:6px;bottom:6px;padding:3px 8px;border-radius:6px;background:rgba(139,92,246,.92);color:#fff;font-size:11px;font-weight:600;line-height:1.2;letter-spacing:.2px;box-shadow:0 2px 6px rgba(0,0,0,.35)}
/* aone-seasons-sub */
.seasons-sub{margin:26px 0 12px;font-size:16px;font-weight:700;color:inherit}
.rel-card .rel-title{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* aone-seasons-layout */
.seasons-wrap{display:flex;align-items:flex-start;gap:0}
.seasons-main .seasons-grid{display:flex!important;flex-wrap:wrap;gap:20px}
.seasons-main .rel-card{width:190px!important;flex:0 0 190px}
.seasons-main .rel-poster{display:block;width:190px!important;height:auto!important;aspect-ratio:2/3}
.seasons-main .rel-poster img{width:100%;height:100%;object-fit:cover}
.seasons-main .rel-badge{left:10px;bottom:10px;padding:6px 12px;border-radius:8px;font-size:13px}
.seasons-main .rel-title{font-size:14px}
.seasons-side{margin-left:36px;padding-left:36px;border-left:1px solid var(--line,rgba(128,128,128,.3));min-width:0}
.seasons-side .seasons-sub{margin:0 0 14px}
@media (max-width:720px){
  .seasons-wrap{flex-direction:column;align-items:stretch}
  .seasons-side{margin:24px 0 0;padding:22px 0 0;border-left:0;border-top:1px solid var(--line,rgba(128,128,128,.3))}
  .seasons-main .rel-card{width:44vw!important;flex-basis:44vw}
  .seasons-main .rel-poster{width:44vw!important}
}
/* aone-seasons-layout-v2 */
#seasons .seasons-main .seasons-grid{display:flex!important;flex-wrap:wrap!important;gap:24px!important;grid-template-columns:none!important}
#seasons .seasons-main .rel-card{width:230px!important;max-width:230px!important;flex:0 0 230px!important}
#seasons .seasons-main .rel-poster{width:230px!important;height:auto!important;aspect-ratio:2/3!important}
#seasons .seasons-main .rel-poster img{width:100%!important;height:100%!important;object-fit:cover}
#seasons .seasons-main .rel-badge{left:12px;bottom:12px;padding:7px 14px;border-radius:9px;font-size:14px}
#seasons .seasons-main .rel-title{font-size:15px;margin-top:8px}
#seasons .seasons-main .rel-meta{font-size:13px}
#seasons .seasons-side{margin-left:44px!important;padding-left:44px!important;border-left:3px solid transparent!important;border-image:linear-gradient(to bottom,#8b5cf6 0%,rgba(139,92,246,.55) 60%,rgba(139,92,246,0) 100%) 1!important}
#seasons .seasons-side .seasons-sub{font-size:18px;margin:0 0 16px!important;padding-bottom:10px;border-bottom:2px solid rgba(139,92,246,.35)}
@media (max-width:720px){
  #seasons .seasons-main .rel-card{width:44vw!important;max-width:44vw!important;flex-basis:44vw!important}
  #seasons .seasons-main .rel-poster{width:44vw!important}
  #seasons .seasons-side{margin:26px 0 0!important;padding:24px 0 0!important;border-left:0!important;border-image:none!important;border-top:3px solid #8b5cf6!important}
}
/* aone-seasons-layout-v3 */
#seasons .seasons-side .seasons-sub{border-bottom:0!important;padding-bottom:0!important}
#seasons .seasons-side .seasons-grid{display:flex!important;flex-wrap:wrap!important;gap:20px!important;grid-template-columns:none!important}
#seasons .seasons-side .rel-card{width:170px!important;max-width:170px!important;flex:0 0 170px!important}
#seasons .seasons-side .rel-poster{width:170px!important;height:auto!important;aspect-ratio:2/3!important}
#seasons .seasons-side .rel-poster img{width:100%!important;height:100%!important;object-fit:cover}
/* aone-seasons-layout-v4 */
#seasons .seasons-side .rel-badge{left:10px;bottom:10px;padding:6px 12px;border-radius:8px;font-size:13px;font-weight:700}
#seasons .seasons-side .rel-title{font-size:14px}
/* aone-hot-v2 */
.tag-score.s-hit{background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;color:#fff!important;box-shadow:0 0 14px rgba(139,92,246,.75)}
.tag-score.s-mid{opacity:.75;filter:saturate(.45)}
.tag-score.s-low{background:rgba(220,38,38,.92)!important;color:#fff!important;box-shadow:0 0 10px rgba(220,38,38,.45)}
.tag-now{position:absolute;left:8px;bottom:8px;padding:3px 9px;border-radius:7px;background:rgba(0,0,0,.72);color:#fff;font-size:11px;font-weight:700;letter-spacing:.2px;z-index:2}
.hot-quiet{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 16px;border:1px dashed var(--line,rgba(128,128,128,.35));border-radius:18px;text-align:center}
.hot-quiet i{font-size:30px;color:#8b5cf6}
.hot-quiet b{font-size:19px}
.hot-quiet span{opacity:.65;font-size:14px}
/* aone-hot-v3 */
.card-poster .tag-now{top:auto!important;bottom:8px!important;left:8px!important;right:auto!important}
.card-poster .tag-score{top:8px!important;right:8px!important;left:auto!important;bottom:auto!important;z-index:3}

/* aone-hot-v3 */
.card-poster .tag-now{top:auto!important;bottom:8px!important;left:8px!important;right:auto!important}
.card-poster .tag-score{top:8px!important;right:8px!important;left:auto!important;bottom:auto!important;z-index:3}

/* aone-scores */
.rel-poster .tag-score{position:absolute;top:8px;right:8px;padding:3px 8px;border-radius:6px;font-size:12px;font-weight:700;line-height:1.2;background:rgba(139,92,246,.92);color:#fff;z-index:3}

/* aone-score-tiers-v2 */
.tag-score.s-hit{background:linear-gradient(135deg,#a78bfa,#7c3aed 60%,#6d28d9)!important;color:#fff!important;opacity:1!important;filter:none!important;box-shadow:0 0 0 1px rgba(196,181,253,.55),0 0 10px rgba(139,92,246,.95),0 0 22px rgba(139,92,246,.7),0 0 36px rgba(124,58,237,.45)!important;text-shadow:0 0 6px rgba(255,255,255,.55)}
.tag-score.s-mid{opacity:.92!important;filter:saturate(.7) brightness(1.12)!important}
.tag-score.s-low{background:rgba(185,28,28,.68)!important;color:rgba(255,255,255,.88)!important;opacity:1!important;filter:none!important;box-shadow:0 0 6px rgba(185,28,28,.3)!important}

/* aone-related-size */
#related .related-grid{display:flex!important;flex-wrap:wrap!important;gap:20px!important;grid-template-columns:none!important}
#related .rel-card{width:170px!important;max-width:170px!important;flex:0 0 170px!important}
#related .rel-poster{display:block;width:170px!important;height:auto!important;aspect-ratio:2/3!important}
#related .rel-poster img{width:100%!important;height:100%!important;object-fit:cover}
#related .rel-poster .tag-score{top:10px;right:10px;padding:5px 10px;font-size:13px;font-weight:700;border-radius:8px}
#related .rel-title{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px}
@media (max-width:720px){#related .rel-card{width:44vw!important;max-width:44vw!important;flex-basis:44vw!important}#related .rel-poster{width:44vw!important}}

/* aone-hero-score */
.slide-poster-link{position:relative}
.slide-poster-link .tag-score{position:absolute;top:10px;right:10px;padding:5px 11px;border-radius:9px;font-size:14px;font-weight:700;line-height:1.2;background:rgba(139,92,246,.92);color:#fff;z-index:3}

/* aone-rail */
.is-home .rail { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; gap: 14px !important; padding: 2px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.is-home .rail::-webkit-scrollbar { display: none; }
.is-home .rail > .card { flex: 0 0 auto; width: clamp(150px, 11.5vw, 190px); }
.is-home .content .navigation, .is-home .content .pagination, .is-home .content .pages { display: none !important; }
.rail-nav { display: flex; justify-content: center; gap: 10px; margin: 6px 0 22px; }
.rail-btn { width: 44px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.rail-btn:hover:not(:disabled) { border-color: var(--accent); }
.rail-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 720px) { .is-home .rail > .card { width: 42vw; } .rail-nav { display: none !important; } }

/* aone-rail v2: без ожидания скрипта, размеры прежние */
.content:has(.hero-duo) :has(> .card) { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; gap: 14px !important; padding: 2px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; min-width: 0; max-width: 100%; }
.content:has(.hero-duo) :has(> .card)::-webkit-scrollbar { display: none; }
.content:has(.hero-duo) :has(> .card) > .card { flex: 0 0 auto; width: clamp(150px, 11.5vw, 190px); }
.content:has(.hero-duo) .navigation, .content:has(.hero-duo) .pagination, .content:has(.hero-duo) .pages { display: none !important; }
.content:has(.hero-duo) .hot-grid { min-height: calc(clamp(150px, 11.5vw, 190px) * 1.5 + 70px); }
@media (max-width: 720px) { .content:has(.hero-duo) :has(> .card) > .card { width: 42vw; } .content:has(.hero-duo) .hot-grid { min-height: calc(42vw * 1.5 + 70px); } }

/* aone-hero-mobile: постер крупнее */
@media (max-width: 720px) { .hero-duo .hero { height: 300px; } .hero-duo .slide-poster { width: 130px; } .hero-duo .slide-inner { gap: 16px; } }

/* aone-hero-mobile v2 + pf-actions fix */
@media (max-width: 720px) { .hero-duo .hero { height: 320px; } .hero-duo .slide-poster { width: 160px; } .hero-duo .slide-inner { gap: 14px; } .hero-duo .slide-title { font-size: 18px; } }
.pf-actions a { display: inline-block; white-space: nowrap; }
.pf-actions > * { flex: 0 0 auto; max-width: 100%; }
.pf-actions .pf-pm { display: inline-flex; }
@media (max-width: 480px) { .pf-actions a { white-space: normal; } }

/* aone-hero-mobile: возврат к прежним размерам */
@media (max-width: 720px) { .hero-duo .hero { height: 270px; } .hero-duo .slide-poster { width: 100px; } .hero-duo .slide-inner { gap: 14px; } .hero-duo .slide-title { font-size: 20px; } }

/* aone-catalog-fit: крупнее постеры в каталоге и поиске на планшете и телефоне */
@media (max-width: 1500px) {
  .srch-grid .hot-grid.my-grid, #dle-content:has(.card), .page:has(> .card) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 14px !important; }
}
@media (max-width: 960px) {
  .content:has(#search-box) { padding-left: 12px !important; padding-right: 12px !important; overflow-x: hidden; }
  .content-page:has(#search-box), .content-page:has(#search-box) .box_in { max-width: 100% !important; box-sizing: border-box; }
  .content-page:has(#search-box) .box_in { padding: 14px 12px 16px !important; }
}
@media (max-width: 720px) {
  .srch-grid .hot-grid.my-grid, #dle-content:has(.card), .page:has(> .card) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  .content-page .box_in { padding: 16px 12px 18px !important; }
}

/* aone-catalog-fit v2: усиленные селекторы, 3 колонки, метки без наложения */
@media (max-width: 1500px) {
  body .srch-grid .hot-grid.my-grid, body .page.is-list #dle-content, body .page.is-list #dle-content:has(.card), body #dle-content:has(.card), body .page:has(> .card) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 14px !important; }
}
@media (max-width: 960px) {
  body .content:has(#search-box) { padding-left: 12px !important; padding-right: 12px !important; overflow-x: hidden; }
  body .content-page:has(#search-box) .box_in { padding: 14px 12px 16px !important; max-width: 100% !important; box-sizing: border-box; }
}
@media (max-width: 720px) {
  body .srch-grid .hot-grid.my-grid, body .page.is-list #dle-content, body .page.is-list #dle-content:has(.card), body #dle-content:has(.card), body .page:has(> .card) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  body .content-page .box_in { padding: 16px 12px 18px !important; }
  body .card-poster .tag-type { font-size: 10px; padding: 3px 6px; max-width: calc(100% - 62px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body .card-poster .tag-score { font-size: 11px; padding: 3px 7px; }
}

/* aone-catalog-fit v3: сетка каталога (my-grid / hot-grid вне поиска) */
@media (max-width: 1500px) {
  body .my-grid, body .hot-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 14px !important; }
}
@media (max-width: 720px) {
  body .my-grid, body .hot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
}

/* aone-catalog-fit v5: поля рамки каталога/поиска (перебивает .box.story) */
@media (max-width: 960px) { body article.content-page.box.story:has(.card) { padding-left: 16px !important; padding-right: 16px !important; } }
@media (max-width: 720px) { body article.content-page.box.story:has(.card) { padding: 16px 8px 18px !important; } body article.content-page.box.story:has(.card) .box_in { padding-left: 4px !important; padding-right: 4px !important; } }

/* aone-sb-tg v1 */
.sidebar .sb-settings{display:flex !important;align-items:center;gap:8px}
.sidebar .sb-settings a:not(.sb-tg){flex:1 1 auto;min-width:0}
.sidebar .sb-settings .sb-tg{flex:0 0 36px;width:36px;height:36px;margin-right:12px;padding:0;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#8b5cf6;background:rgba(139,92,246,.14);transition:background .15s}
.sidebar .sb-settings .sb-tg:hover{background:rgba(139,92,246,.3)}

/* aone-sched-fade v1 */
.wk-img{opacity:0;transition:opacity .25s ease;background-color:#1a1a22}
.wk-img.ld{opacity:1}
