/* ==========================================
   ГЛАВНАЯ СТРАНИЦА ANIMEHUB
   Интерактивный слайдер-баннер, персональные
   рекомендации аниме и манги, популярные фанфики
   ========================================== */

.hm-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #0d0e12;
    color: #e1e7ec;
    overflow-x: hidden;
}

/* ==========================================
   1. HERO BANNER SLIDER
   ========================================== */
.hm-hero-slider {
    position: relative;
    width: 100%;
    min-height: 580px;
    background: #0d0e12;
    overflow: hidden;
    user-select: none;
}

.hm-slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hm-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 55px 60px 85px 125px;
    overflow: hidden;
    text-align: left;
    background: #0d0e12;
}

.hm-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    filter: brightness(0.85) saturate(1.05);
    z-index: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 1s ease;
}

/* На ПК баннер слегка приближается при наведении (вместо зума обложки).
   На мобильных эффект не нужен — там нет курсора, и он только жёг FPS. */
@media (min-width: 769px) and (hover: hover) {
    .hm-slide:hover .hm-slide-bg {
        transform: scale(1.06);
    }
}

/* Затемнение и градиенты баннера:
   - умеренное затемнение слева под текстом и постером (осветлено для сочности артов)
   - мягкое вертикальное затемнение сверху и плавный переход в цвет страницы снизу */
.hm-slide-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(90deg,
            rgba(13, 14, 18, 0.88) 0%,
            rgba(13, 14, 18, 0.65) 35%,
            rgba(13, 14, 18, 0.20) 65%,
            transparent 100%),
        linear-gradient(180deg,
            rgba(13, 14, 18, 0.25) 0%,
            transparent 35%,
            rgba(13, 14, 18, 0.60) 80%,
            #0d0e12 100%);
}

/* Главный баннер («Добро пожаловать в AnimeHub»):
   Убираем затемнение на ПК — чистый и яркий арт без серости и тёмных масок */
.hm-slide-welcome .hm-slide-bg {
    filter: brightness(1) saturate(1.05) !important;
}

.hm-slide-welcome .hm-slide-shade {
    background: linear-gradient(180deg,
        transparent 0%,
        transparent 70%,
        rgba(13, 14, 18, 0.45) 88%,
        #0d0e12 100%) !important;
}

.hm-slide-blur {
    display: none;
}

.hm-kanji {
    position: absolute;
    right: 40px;
    top: 60px;
    z-index: 3;
    writing-mode: vertical-rl;
    font-size: 64px;
    letter-spacing: 16px;
    color: rgba(255, 77, 109, 0.28);
    text-shadow: 0 0 28px rgba(255, 77, 109, 0.35);
    user-select: none;
    pointer-events: none;
}

.hm-slide-inner {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1080px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 36px;
    text-align: left;
}

/* ----- Слайд 0: Welcome AnimeHub ----- */
.hm-welcome-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    max-width: 580px;
    margin: 0 !important;
}

.hm-welcome-inner h1 {
    text-align: left;
    margin: 4px 0 10px;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

.hm-welcome-inner p {
    text-align: left;
    margin: 0 0 20px;
    max-width: 520px;
    color: #b8bac2;
    font-size: 15px;
    line-height: 1.65;
}

.hm-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid rgba(255, 77, 109, 0.4);
    color: #ff8fa3;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hm-welcome-inner h1 {
    margin: 4px 0 10px;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

.hm-welcome-inner h1 b {
    color: #ff4d6d;
    text-shadow: 0 0 24px rgba(255, 77, 109, 0.6);
}

.hm-welcome-inner p {
    margin: 0 0 20px;
    max-width: 520px;
    color: #b8bac2;
    font-size: 15px;
    line-height: 1.65;
}

/* Поиск */
.hm-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 580px;
    background: rgba(23, 24, 28, 0.85);
    border: 1px solid rgba(255, 77, 109, 0.45);
    border-radius: 14px;
    padding: 6px 8px 6px 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.hm-search:focus-within {
    border-color: #ff4d6d;
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.2), 0 8px 28px rgba(255, 77, 109, 0.25);
}

.hm-search>svg {
    width: 18px;
    height: 18px;
    color: #8b8e98;
    flex-shrink: 0;
}

.hm-search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    padding: 10px 0;
}

.hm-search input::placeholder {
    color: #727581;
}

.hm-search-go {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4d6d, #d63a6a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(255, 77, 109, 0.4);
    transition: all .2s ease;
}

.hm-search-go:hover {
    filter: brightness(1.1);
    transform: scale(1.04);
}

/* Статистика на Welcome-слайде */
.hm-welcome-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.hm-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(23, 24, 28, 0.8);
    border: 1px solid rgba(255, 77, 109, 0.35);
    border-radius: 14px;
    padding: 10px 18px;
    backdrop-filter: blur(8px);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hm-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 77, 109, 0.8);
    box-shadow: 0 8px 24px rgba(255, 77, 109, 0.2);
}

.hm-stat-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8fa3;
    transition: all .25s ease;
}

.hm-stat:hover .hm-stat-icon {
    border-color: #ff4d6d;
    background: rgba(255, 77, 109, 0.25);
    box-shadow: 0 0 16px rgba(255, 77, 109, 0.4);
    color: #fff;
}

.hm-stat-icon svg {
    width: 16px;
    height: 16px;
}

.hm-stat b {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    color: #fff;
}

.hm-stat span {
    font-size: 11px;
    color: #8b8e98;
}

/* ----- Слайды Аниме и Манги (Макет WaManga) ----- */
.hm-title-inner {
    /* Опущены ниже и сдвинуты левее: раньше блок стоял слишком высоко
       и упирался в правый край. */
    margin-top: 46px !important;
    margin-left: -18px !important;
    max-width: 1140px !important;
    gap: 40px !important;
    /* stretch обязателен: без него колонка .hm-slide-info имеет высоту
       своего содержимого, и margin-top:auto в ней ни на что не влияет —
       кнопки так и остаются выше нижнего края обложки на 36px. */
    align-items: stretch !important;
}

.hm-slide-media {
    position: relative;
    flex-shrink: 0;
    width: 245px;
    height: 355px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform .35s ease, box-shadow .35s ease;
}

/* Обложка (постер) больше не увеличивается при наведении — зум
   перенесён на сам баннер слайда. Осталось только усиление тени. */
.hm-slide:hover .hm-slide-media {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 24px rgba(255, 77, 109, 0.25);
}

.hm-slide-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-slide-match {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #00adb5, #00838f);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(0, 173, 181, 0.45);
    backdrop-filter: blur(6px);
}

.hm-slide-match svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.hm-slide-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Кнопки прижаты к низу обложки: .hm-slide-info по высоте равна
   .hm-slide-media (355px), а margin-top:auto прижимает .hm-slide-actions
   к нижнему краю. Раньше блок шёл по верху и кнопки висели выше обложки. */
.hm-slide-info .hm-slide-actions {
    margin-top: auto;
}

.hm-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hm-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    background: rgba(14, 15, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

.hm-pill.badge-anime {
    background: rgba(26, 14, 18, 0.94);
    color: #ff758f;
    border: 1px solid rgba(255, 77, 109, 0.75);
}

.hm-pill.badge-manga {
    background: rgba(28, 22, 10, 0.94);
    color: #ffc837;
    border: 1px solid rgba(255, 183, 3, 0.75);
}

.hm-pill.badge-status {
    background: rgba(14, 22, 32, 0.94);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.65);
}

.hm-pill.badge-status.st-ongoing {
    background: rgba(10, 26, 18, 0.94) !important;
    color: #2ed573 !important;
    border: 1px solid rgba(46, 213, 115, 0.75) !important;
}

.hm-pill.badge-status.st-completed {
    background: rgba(28, 14, 16, 0.94) !important;
    color: #ff4757 !important;
    border: 1px solid rgba(255, 71, 87, 0.75) !important;
}

.hm-pill.badge-score {
    background: rgba(28, 24, 10, 0.94);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.65);
}

.hm-pill.badge-score.score-high {
    background: rgba(10, 26, 18, 0.94) !important;
    color: #2ed573 !important;
    border: 1px solid rgba(46, 213, 115, 0.75) !important;
}

.hm-pill.badge-score.score-mid {
    background: rgba(28, 22, 10, 0.94) !important;
    color: #ffc837 !important;
    border: 1px solid rgba(255, 183, 3, 0.75) !important;
}

.hm-pill.badge-score.score-low {
    background: rgba(28, 14, 16, 0.94) !important;
    color: #ff4757 !important;
    border: 1px solid rgba(255, 71, 87, 0.75) !important;
}

.hm-pill.badge-year {
    background: rgba(18, 20, 28, 0.94);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hm-slide-heading {
    font-size: 42px;
    line-height: 1.16;
    font-weight: 800;
    color: #fff;
    margin: 0;
    /* Чистый текст без грязного прямоугольного затемнения позади букв */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-slide-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #d8dbe5;
    max-width: 720px;
    margin: 0;
    /* Чистый читаемый текст без перегруженных теней */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12.5px;
    color: #a4a7b5;
}

.hm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(23, 24, 28, 0.90);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hm-meta-chip b {
    color: #fff;
}

.hm-meta-chip svg {
    width: 14px;
    height: 14px;
    color: #ff4d6d;
}

/* Плашка жанров: фон как у обычных чипов, текст остаётся красным */
.hm-meta-chip.genres {
    color: #ff8fa3;
    background: rgba(23, 24, 28, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.hm-slide-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 6px;
}

.hm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff4d6d, #d63a6a);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 77, 109, 0.45);
    transition: all .25s ease;
    cursor: pointer;
}

.hm-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 12px 30px rgba(255, 77, 109, 0.65);
}

.hm-btn-primary svg {
    width: 18px;
    height: 18px;
}

.hm-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: #e1e4ec;
    background: rgba(23, 24, 28, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
}

.hm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ----- Стрелки навигации слайдера ----- */
.hm-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(23, 24, 28, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all .25s ease;
}

.hm-slider-nav.prev {
    left: 24px;
}

.hm-slider-nav.next {
    right: 24px;
}

.hm-slider-nav:hover {
    background: #ff4d6d;
    border-color: #ff4d6d;
    box-shadow: 0 0 24px rgba(255, 77, 109, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.hm-slider-nav svg {
    width: 20px;
    height: 20px;
}

/* ----- Точки навигации (Pill dots) ----- */
.hm-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    align-items: center;
}

.hm-dot {
    width: 9px;
    height: 9px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all .35s cubic-bezier(0.25, 1, 0.5, 1);
}

.hm-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hm-dot.active {
    width: 32px;
    background: #ff4d6d;
    box-shadow: 0 0 14px rgba(255, 77, 109, 0.7);
}

/* ==========================================
   2. СЕКЦИИ РЕКОМЕНДАЦИЙ (Аниме, Манга, Фанфики)
   ========================================= */
.hm-section {
    position: relative;
    padding: 34px 60px 50px;
}

/* Неоновая линия разделителя перед первой секцией */
.hm-recs-anime::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 5;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 77, 109, .8) 20%,
            #ff4d6d 50%,
            rgba(255, 77, 109, .8) 80%,
            transparent 100%);
    box-shadow: 0 0 16px rgba(255, 77, 109, .6), 0 0 36px rgba(255, 77, 109, .3);
}

.hm-pop-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.hm-pop-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hm-pop-label.anime {
    color: #ff4d6d;
    text-shadow: 0 0 16px rgba(255, 77, 109, 0.5);
}

.hm-pop-label.manga {
    color: #ffb703;
    text-shadow: 0 0 16px rgba(255, 183, 3, 0.5);
}

.hm-pop-label.fanfic {
    color: #00adb5;
    text-shadow: 0 0 16px rgba(0, 173, 181, 0.5);
}

.hm-pop-label svg {
    width: 15px;
    height: 15px;
}

.hm-pop-titles h2 {
    margin: 6px 0 0;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.4px;
}

.hm-pop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1d1e24;
    border: 1px solid #2c2e36;
    color: #c9ccd4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.hm-arrow svg {
    width: 16px;
    height: 16px;
}

.hm-arrow:hover {
    border-color: rgba(255, 77, 109, .6);
    color: #ff8fa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 77, 109, .25);
}

.hm-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    color: #ff4d6d;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}

.hm-all svg {
    width: 15px;
    height: 15px;
}

.hm-all:hover {
    gap: 12px;
    color: #ff8fa3;
}

/* Обертка карусели со скроллом — растяжение на всю ширину страницы */
.hm-carousel-wrap {
    position: relative;
    width: calc(100% + 120px);
    margin-left: -60px;
    margin-right: -60px;
    overflow: hidden;
}

.hm-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 60px 24px 60px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
    transition: -webkit-mask-image .2s ease, mask-image .2s ease;
}

.hm-carousel::-webkit-scrollbar {
    display: none;
}

.hm-carousel.mask-right {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 60px), transparent 100%);
}

.hm-carousel.mask-left {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60px, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 60px, #000 100%);
}

.hm-carousel.mask-both {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60px, #000 calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.hm-loading {
    color: #8b8e98;
    font-size: 14.5px;
    padding: 40px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================
   3. КАРТОЧКИ РЕКОМЕНДАЦИЙ АНИМЕ И МАНГИ
   ========================================== */
.hm-recs-card {
    width: 230px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #1d1e24;
    border: 1px solid #2b2d36;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: auto 340px;
}

.hm-recs-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 109, .6);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 77, 109, .2);
}

.hm-rc-media {
    position: relative;
    width: 100%;
    height: 290px;
    background: #131418;
    overflow: hidden;
}

.hm-rc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.92);
    transition: transform .45s ease, filter .45s ease;
}

.hm-recs-card:hover .hm-rc-media img {
    transform: scale(1.08);
    filter: brightness(1.02);
}

.hm-rc-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 14, 17, 0.94);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hm-rc-match {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #00adb5, #00838f);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 173, 181, 0.4);
}

.hm-rc-type {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(13, 14, 17, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}

.hm-rc-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    flex: 1;
}

.hm-rc-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease;
}

.hm-recs-card:hover .hm-rc-title {
    color: #ff8fa3;
}

.hm-rc-tags {
    font-size: 11.5px;
    color: #8b8e98;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-rc-reason {
    font-size: 11px;
    color: #00adb5;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-rc-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    height: 32px;
    box-sizing: border-box;
    border-radius: 999px;
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.35);
    color: #ff8fa3;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s ease;
    cursor: pointer;
    width: fit-content;
}

.hm-rc-btn svg {
    width: 13px !important;
    height: 13px !important;
    max-width: 13px;
    max-height: 13px;
    flex-shrink: 0;
}

.hm-recs-card:hover .hm-rc-btn {
    background: #ff4d6d;
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 77, 109, 0.45);
    border-color: #ff4d6d;
}

.hm-rc-btn.manga {
    background: rgba(255, 183, 3, 0.12);
    border-color: rgba(255, 183, 3, 0.35);
    color: #ffb703;
}

.hm-recs-card:hover .hm-rc-btn.manga {
    background: #ffb703;
    color: #000;
    box-shadow: 0 0 14px rgba(255, 183, 3, 0.45);
    border-color: #ffb703;
}

.hm-rc-score svg {
    width: 11px !important;
    height: 11px !important;
    fill: #ffd700;
    flex-shrink: 0;
}

/* ==========================================
   4. КАРТОЧКА ФАНФИКА (hm-card)
   ========================================== */
.hm-card {
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #1d1e24;
    border: 1px solid #2c2e36;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hm-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 77, 109, .55);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 77, 109, .25);
}

.hm-card-media {
    position: relative;
    display: block;
    height: 170px;
    background: #17181c;
    overflow: hidden;
}

.hm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.9);
    transition: transform .4s ease;
}

.hm-card:hover .hm-card-media img {
    transform: scale(1.08);
}

.hm-card-genre {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10.5px;
    font-weight: 700;
    color: #ffd3db;
    background: rgba(13, 14, 17, 0.92);
    border: 1px solid rgba(255, 77, 109, .6);
    padding: 4px 12px;
    border-radius: 999px;
    z-index: 2;
}

.hm-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
    padding: 16px;
}

.hm-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease;
}

.hm-card:hover .hm-card-title {
    color: #ff8fa3;
    text-shadow: 0 0 14px rgba(255, 77, 109, .45);
}

.hm-card-author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8b8e98;
    font-size: 12px;
}

.hm-card-author svg {
    width: 12px;
    height: 12px;
    color: #ff4d6d;
    flex-shrink: 0;
}

.hm-card-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #8b8e98;
    font-size: 11.5px;
}

.hm-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hm-card-meta svg {
    width: 12px;
    height: 12px;
}

.hm-card-meta .hm-m-likes svg {
    color: #ff4d6d;
}

.hm-card-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.hm-card-read {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 77, 109, .55);
    border-radius: 999px;
    color: #ff8fa3;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    padding: 9px 12px;
    transition: all .2s ease;
}

.hm-card-read:hover {
    background: rgba(255, 77, 109, .15);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 77, 109, .3);
}

.hm-card-read svg {
    width: 13px;
    height: 13px;
    transition: transform .2s ease;
}

.hm-card-read:hover svg {
    transform: translateX(3px);
}

.hm-card-bm {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: #20212a;
    border: 1px solid #2c2e36;
    border-radius: 10px;
    color: #8b8e98;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.hm-card-bm:hover {
    border-color: rgba(255, 77, 109, .6);
    color: #ff8fa3;
}

.hm-card-bm svg {
    width: 14px;
    height: 14px;
}

/* ==========================================
   5. АДАПТИВНОСТЬ
   ========================================== */
@media (max-width: 1100px) {
    .hm-slide {
        position: relative;
        flex: 0 0 100%;
        width: 100%;
        min-height: 520px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        padding: 45px 50px 75px 125px;
        overflow: hidden;
        text-align: left;
        background: #0d0e12;
    }

    .hm-slide-inner {
        position: relative;
        z-index: 4;
        width: 100%;
        max-width: 1080px;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 36px;
        text-align: left;
    }

    .hm-slide-media {
        width: 180px;
        height: 260px;
    }

    .hm-slide-heading {
        font-size: 30px;
    }

    .hm-section {
        padding: 26px 30px 40px;
    }

    .hm-carousel-wrap {
        width: calc(100% + 60px) !important;
        margin-left: -30px !important;
        margin-right: -30px !important;
    }

    .hm-carousel {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .hm-slider-nav.prev {
        left: 10px;
    }

    .hm-slider-nav.next {
        right: 10px;
    }
}

@media (max-width: 768px) {

    /* 1. Общие настройки страницы */
    .hm-page {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding-top: 0 !important;
        background: #0d0e12;
    }

    /* 2. Hero-слайдер */
    .hm-hero-slider {
        min-height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hm-hero-slider {
        background: #0d0e12 !important;
    }

    .hm-slide {
        min-height: 290px !important;
        padding: 14px 14px 18px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        background: #0d0e12 !important;
        position: relative !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Баннер на мобильном: увеличен обзор + мягкий градиент-переход в темный фон страницы */
    .hm-slide-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        height: 220px !important;
        background-size: cover !important;
        background-position: center top !important;
        filter: brightness(0.95) saturate(1.08) !important;
        -webkit-mask-image: linear-gradient(180deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 40%,
            rgba(0, 0, 0, 0.7) 65%,
            rgba(0, 0, 0, 0.25) 85%,
            rgba(0, 0, 0, 0) 100%) !important;
        mask-image: linear-gradient(180deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 40%,
            rgba(0, 0, 0, 0.7) 65%,
            rgba(0, 0, 0, 0.25) 85%,
            rgba(0, 0, 0, 0) 100%) !important;
    }

    /* Мягкий градиент затемнения на мобильном для бесшовного слияния баннера с темным цветом */
    .hm-slide-shade {
        position: absolute !important;
        inset: 0 !important;
        pointer-events: none !important;
        background: linear-gradient(180deg,
                rgba(13, 14, 18, 0) 0%,
                rgba(13, 14, 18, 0.08) 25%,
                rgba(13, 14, 18, 0.45) 48%,
                rgba(13, 14, 18, 0.85) 65%,
                #0d0e12 80%,
                #0d0e12 100%) !important;
    }

    .hm-slide-blur {
        display: none !important;
        /* Убираем размытие на мобильных для чёткости и 60fps */
    }

    .hm-slide-inner {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        /* Важно: здесь НЕ нужен padding-bottom. Слайд стал выше на 100px
           (min-height 290 -> 390), и при justify-content:flex-end контент
           сам опускается на эти 100px. Если добавить padding-bottom:100px,
           он наоборот уедет вверх и наедёт на стрелку навигации. */
        margin-top: auto !important;
        gap: 12px !important;
    }

    /* Кандзи скрыты со всего сайта */
    .hm-kanji {
        display: none !important;
    }

    /* Welcome Slide */
    .hm-welcome-inner {
        width: 100% !important;
        max-width: 100% !important;
        gap: 14px !important;
        padding-top: 32px !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .hm-welcome-badge {
        display: none !important;
    }

    .hm-welcome-inner h1 {
        font-size: 27px !important;
        line-height: 1.25 !important;
        margin: 20px 0 0 0 !important;
        font-weight: 800 !important;
        letter-spacing: -0.3px !important;
        text-align: left !important;
        align-self: flex-start !important;
    }

    .hm-badge-new {
        display: inline-flex;
        align-items: center;
        padding: 2px 7px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        color: #c0c3cc;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        vertical-align: middle;
        margin-left: 6px;
    }

    .hm-welcome-desc {
        display: none !important;
    }

    /* Поисковая строка на мобильном скрыта по запросу */
    .hm-search,
    .hm-slide-welcome .hm-search {
        display: none !important;
    }

    /* 3 карточки счетчиков в один ряд, подняты повыше */
    .hm-welcome-stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 6px !important;
        margin-bottom: 12px !important;
    }

    .hm-stat {
        flex: 1 1 0 !important;
        display: flex !important;
        align-items: center !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
        background: rgba(24, 25, 32, 0.75) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        gap: 8px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hm-stat-icon {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #ff8fa3 !important;
        flex-shrink: 0 !important;
    }

    .hm-stat-icon svg {
        width: 15px !important;
        height: 15px !important;
    }

    .hm-stat-content {
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow: hidden;
    }

    .hm-stat-num {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #fff !important;
        line-height: 1.1 !important;
    }

    .hm-stat-label {
        font-size: 10.5px !important;
        color: #8b8f9e !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    /* Индикаторы слайдера и скрытие стрелок на мобильных */
    .hm-slider-nav,
    #hm-slider-prev,
    #hm-slider-next {
        display: none !important;
    }

    .hm-slider-dots {
        bottom: 8px !important;
        gap: 6px !important;
    }

    .hm-dot {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.28) !important;
    }

    .hm-dot.active {
        width: 22px !important;
        height: 6px !important;
        border-radius: 4px !important;
        background: #ff3b5c !important;
        box-shadow: 0 0 10px rgba(255, 59, 92, 0.7) !important;
    }

    /* Слайды с тайтлами (аниме/манга) в мобильном слайдере (макет как на Photo 2) */
    .hm-slide.hm-slide-title {
        min-height: 360px !important;
        padding: 14px 14px 28px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: flex-end !important;
        position: relative !important;
    }

    .hm-slide-title .hm-title-inner {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-end !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        gap: 14px !important;
        padding-top: 38px !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    /* Пилюли перемещены на самый верх баннера */
    .hm-pills-row {
        position: absolute !important;
        top: 4px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10 !important;
        display: flex !important;
        gap: 6px !important;
        margin: 0 !important;
        flex-wrap: wrap !important;
    }

    .hm-pills-row .hm-pill {
        font-size: 10.5px !important;
        font-weight: 700 !important;
        padding: 4px 10px !important;
        border-radius: 7px !important;
        background: rgba(14, 15, 20, 0.94) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        color: #ffffff !important;
        letter-spacing: 0.25px !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75) !important;
    }

    .hm-pills-row .hm-pill.badge-anime {
        background: rgba(26, 14, 18, 0.94) !important;
        color: #ff758f !important;
        border-color: rgba(255, 77, 109, 0.8) !important;
    }

    .hm-pills-row .hm-pill.badge-manga {
        background: rgba(28, 22, 10, 0.94) !important;
        color: #ffc837 !important;
        border-color: rgba(255, 183, 3, 0.8) !important;
    }

    .hm-pills-row .hm-pill.badge-status.st-ongoing {
        background: rgba(10, 26, 18, 0.94) !important;
        color: #2ed573 !important;
        border-color: rgba(46, 213, 115, 0.8) !important;
    }

    .hm-pills-row .hm-pill.badge-status.st-completed {
        background: rgba(28, 14, 16, 0.94) !important;
        color: #ff4757 !important;
        border-color: rgba(255, 71, 87, 0.8) !important;
    }

    .hm-pills-row .hm-pill.score-high {
        background: rgba(10, 26, 18, 0.94) !important;
        color: #2ed573 !important;
        border-color: rgba(46, 213, 115, 0.8) !important;
    }

    .hm-pills-row .hm-pill.score-mid {
        background: rgba(28, 22, 10, 0.94) !important;
        color: #ffc837 !important;
        border-color: rgba(255, 183, 3, 0.8) !important;
    }

    .hm-pills-row .hm-pill.score-low {
        background: rgba(28, 14, 16, 0.94) !important;
        color: #ff4757 !important;
        border-color: rgba(255, 71, 87, 0.8) !important;
    }

    .hm-pills-row .hm-pill.badge-year {
        background: rgba(18, 20, 28, 0.94) !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.35) !important;
    }

    /* Постер слева */
    .hm-slide-media {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        height: 160px !important;
        flex-shrink: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        position: relative !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
    }

    .hm-slide-poster {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* Плашка совпадения на постере (★ 99%) */
    .hm-slide-media .hm-slide-match {
        display: inline-flex !important;
        align-items: center !important;
        position: absolute !important;
        top: 7px !important;
        left: 7px !important;
        padding: 3px 8px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #00adb5, #00838f) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 173, 181, 0.5) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 2 !important;
    }

    .hm-slide-media .hm-slide-match svg {
        width: 11px !important;
        height: 11px !important;
        margin-right: 3px !important;
    }

    /* Колонка с информацией справа */
    .hm-slide-info {
        position: relative !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        height: 160px !important;
        box-sizing: border-box !important;
        gap: 0 !important;
    }

    /* Заголовок и описание */
    .hm-slide-heading {
        font-size: 20px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin: 0 0 4px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .hm-slide-desc {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        color: #c4c7d4 !important;
        margin: 0 0 10px !important;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .hm-meta-chips {
        display: none !important;
    }

    /* Кнопки действий: внизу правого блока рядом с постером */
    .hm-slide-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .hm-btn-primary,
    .hm-btn-secondary {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 0 8px !important;
        white-space: nowrap !important;
    }

    .hm-btn-primary {
        background: linear-gradient(135deg, #ff3b5c, #d62246) !important;
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(255, 59, 92, 0.4) !important;
        gap: 6px !important;
    }

    .hm-btn-primary svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }

    .hm-btn-secondary {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        color: #ffffff !important;
        backdrop-filter: blur(8px) !important;
    }

    .hm-carousel,
    .hm-carousel.mask-right,
    .hm-carousel.mask-left,
    .hm-carousel.mask-both {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .hm-recs-card {
        contain: layout paint !important;
        content-visibility: auto !important;
        contain-intrinsic-size: auto 260px !important;
        transform: translateZ(0) !important;
    }

    /* 3. Секции рекомендаций (Аниме, Манга, Фанфики) */
    .hm-section {
        padding: 22px 14px 26px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        content-visibility: auto !important;
        contain-intrinsic-size: auto 340px !important;
    }

    .hm-pop-head {
        margin-bottom: 12px !important;
        align-items: center !important;
    }

    .hm-pop-label {
        display: none !important;
    }

    .hm-pop-titles h2 {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        letter-spacing: -0.2px !important;
    }

    .hm-pop-actions {
        align-items: center !important;
    }

    .hm-arrow {
        display: none !important;
    }

    .hm-all {
        font-size: 13px !important;
        color: #ff3b5c !important;
        font-weight: 600 !important;
        gap: 4px !important;
        margin-left: 0 !important;
    }

    .hm-all svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Карусель карточек — на всю ширину мобильного экрана */
    .hm-carousel-wrap {
        width: calc(100% + 28px) !important;
        max-width: calc(100% + 28px) !important;
        margin: 0 -14px !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .hm-carousel {
        gap: 12px !important;
        padding: 4px 14px 14px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .hm-carousel::-webkit-scrollbar {
        display: none !important;
    }

    /* Карточки из макета */
    .hm-recs-card {
        width: 136px !important;
        border-radius: 14px !important;
        background: #17181f !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    }

    .hm-rc-media {
        height: 190px !important;
        border-radius: 13px 13px 0 0 !important;
    }

    .hm-rc-match {
        top: 6px !important;
        left: 6px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        padding: 2px 6px !important;
        border-radius: 6px !important;
        background: rgba(0, 180, 216, 0.9) !important;
        box-shadow: 0 2px 6px rgba(0, 180, 216, 0.3) !important;
    }

    .hm-rc-score {
        top: 6px !important;
        right: 6px !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        padding: 2px 6px !important;
        border-radius: 6px !important;
        background: rgba(14, 15, 18, 0.8) !important;
        border: 1px solid rgba(255, 215, 0, 0.35) !important;
    }

    .hm-rc-score svg {
        width: 10px !important;
        height: 10px !important;
    }

    .hm-rc-type {
        bottom: 6px !important;
        left: 6px !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        padding: 2px 6px !important;
        border-radius: 5px !important;
        background: rgba(14, 15, 18, 0.78) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        text-transform: uppercase !important;
    }

    .hm-rc-body {
        padding: 8px 10px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        gap: 6px !important;
    }

    .hm-rc-title {
        font-size: 12.5px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        color: #e5e7ee !important;
        margin: 0 !important;
    }

    .hm-rc-tags {
        display: none !important;
    }

    .hm-rc-reason {
        display: none !important;
    }

    .hm-rc-btn {
        display: inline-flex !important;
        width: 100% !important;
        margin-top: auto !important;
        padding: 5px 8px !important;
        height: 28px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        box-sizing: border-box !important;
    }

    .hm-rc-btn.anime {
        background: rgba(255, 77, 109, 0.14) !important;
        border: 1px solid rgba(255, 77, 109, 0.4) !important;
        color: #ff8fa3 !important;
    }

    .hm-rc-btn.manga {
        background: rgba(255, 183, 3, 0.14) !important;
        border: 1px solid rgba(255, 183, 3, 0.4) !important;
        color: #ffb703 !important;
    }

    .hm-carousel,
    .hm-carousel.mask-right,
    .hm-carousel.mask-left,
    .hm-carousel.mask-both {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
}

.hm-slide-media,
.hm-rc-media {
    background: #181920 !important;
}

.skeleton-media,
.is-loading .hm-rc-media {
    background: #181920 !important;
    animation: none !important;
}

.hm-slide-poster,
.hm-rc-media img {
    transition: opacity 0.4s ease-in-out, transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}