/* Модульный видеоплеер - интеграция с оригинальным дизайном */

.player-wrapper {
    position: relative;
    margin-bottom: 0;
}

/* Контейнер плеера - используем оригинальные стили */
.video-box, .img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.player-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Используем оригинальные стили overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-primary, #ff6b35);
    border: 4px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.play-button:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
    border-color: rgba(255,255,255,0.5);
}

.player-frame-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Водяной знак / логотип сайта */
.player-watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 6px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.player-watermark__text {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.player-watermark__4k {
    font-size: 12px;
    font-weight: 800;
    color: #000;
    background: var(--color-primary, #ff6b35);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 576px) {
    .player-watermark {
        bottom: 8px;
        right: 8px;
        padding: 4px 8px;
    }
    
    .player-watermark__text {
        font-size: 11px;
    }
    
    .player-watermark__4k {
        font-size: 10px;
        padding: 1px 4px;
    }
}

.player-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Mobile UX: reduce accidental double-tap zoom and let native video controls receive taps */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* When a player dropdown is open, prevent page scroll (Android WebView especially). */
body.player-overlay-open {
    overflow: hidden;
    touch-action: none;
}

/* Pseudo-fullscreen fallback for WebViews where native fullscreen breaks */
.player-video-container.is-pseudo-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #000 !important;
}

.player-frame-container.is-pseudo-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #000 !important;
}

.player-video {
    width: 100%;
    height: 100%;
    background: #000;
    /* ВАЖНО: на странице content_detail есть более общий селектор
       `.video .video-box video { object-fit: cover; }` — он обрезает ультраширокие (3840×1632).
       Для нашего модульного плеера всегда показываем видео целиком. */
    object-fit: contain !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Панель управления - используем оригинальные стили video-content */
.continue-watch-section .continue-text {
    color: var(--text-primary, #ffffff);
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.continue-watch-section .continue-text b {
    display: inline-block;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--continue-pill-bg, rgba(255, 107, 53, 0.15));
    border: 1px solid var(--continue-pill-border, rgba(255, 107, 53, 0.25));
    color: var(--color-primary, #ff6b35);
    font-weight: 700;
}

.video-content .row {
    align-items: center;
}

/* Компактнее расстояния внутри панели под плеером */
.video-content p {
    padding-top: 0 !important; /* в core/content-detail.css есть padding-top:10px; на панели это даёт лишний воздух */
}

/* Общая компактность панели */
.video-content {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Поднимаем блок плееров/озвучки выше: убираем лишние отступы у server-blok внутри панели */
.video-content .server-blok {
    padding: 0 !important;
    margin: 0 !important;
}

/* Layout панели под плеером: слева плееры/озвучка, справа продолжить+рейтинг, между ними вертикальная полоска */
.video-content .underplayer-layout {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    /* Визуально как отдельная панель (скругления + фон) */
    padding: 12px 10px;
    border-radius: 12px;
    background: var(--bg-secondary, rgba(0,0,0,0.18));
    border: 1px solid var(--border-secondary, rgba(255,255,255,0.10));
}

/* Явная панель под плеером (скругление + компактность) */
.video-content.underplayer-panel{
    padding: 0; /* padding уже на underplayer-layout */
    background: transparent !important;
}

.video-content .underplayer-left {
    flex: 1 1 auto;
    min-width: 0;
    /* не прижимаем кнопки к краям */
    padding-left: 18px;
    padding-right: 8px;
}

html[data-theme="light"] .video-content .underplayer-layout,
html[data-theme="light_japan"] .video-content .underplayer-layout{
    background: rgba(255,255,255,0.70);
    border-color: rgba(0,0,0,0.10);
}

.video-content .underplayer-right {
    flex: 0 0 340px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center; /* центрируем "Продолжить + Смотреть" и блок рейтинга внутри правой колонки */
    justify-content: flex-start;
    gap: 8px;
}

.video-content .underplayer-vdivider {
    flex: 0 0 1px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0.14) 80%, transparent);
    margin: 0;
    align-self: stretch; /* полоска по центру области и на всю высоту */
}

.video-content .underplayer-hdivider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0.14) 80%, transparent);
}

html[data-theme="light"] .video-content .underplayer-vdivider,
html[data-theme="light_japan"] .video-content .underplayer-vdivider,
html[data-theme="light"] .video-content .underplayer-hdivider,
html[data-theme="light_japan"] .video-content .underplayer-hdivider {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.12) 80%, transparent);
}

/* Мобилка: вертикальную полоску убираем, правый блок идёт вниз */
@media (max-width: 992px) {
    .video-content .underplayer-layout {
        flex-direction: column;
        gap: 10px;
    }

    .video-content .underplayer-right {
        flex: 1 1 auto;
        min-width: 0;
    }

    .video-content .underplayer-vdivider {
        display: none;
    }
}

/* "Продолжить просмотр": простой текст без фонового блока */
.video-content .continue-watch-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    width: 100%;
    align-items: center;
    text-align: center;
}

html[data-theme="light"] .video-content .continue-watch-section,
html[data-theme="light_japan"] .video-content .continue-watch-section {
    /* светлая тема — без особых изменений */
}

.video-content .continue-watch-section .continue-text {
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 0;
}

.video-content .continue-watch-section .continue-text b {
    background: rgba(var(--primary-rgb, 255, 107, 53), 0.15);
    border-color: rgba(var(--primary-rgb, 255, 107, 53), 0.25);
}

.continue-button {
    width: 100%;
    max-width: 200px;
    margin-top: 6px;
}

/* Разделитель между плеерами и озвучкой (горизонтальная полоска) */
.player-voiceover-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0.14) 80%, transparent);
    margin: 6px 0;
}

/* Компактные расстояния для плееров/озвучек */
.video-content .primery {
    margin: 0 0 4px 0;
    margin-top: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.video-content #videoHostsBlock,
.video-content #voiceoversBlock {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 2px 0;
}

/* Пожелание: #videoHostsBlock как flex-column без лишних отступов */
.video-content #videoHostsBlock {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 0;
    padding-right: 0;
}

.video-content .btn-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

/* Стили для кнопок плееров и озвучек в оригинальном стиле */
.btn-tag--player, .btn-tag--voice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Размеры кнопок НЕ уменьшаем — уменьшаем только отступы вокруг блоков */
    min-height: 44px;
    padding: 0 20px;
    margin: 0;
    background: var(--btn-tag-bg, var(--color-dark-grey, #333));
    color: var(--btn-tag-text, var(--text-primary, #ffffff));
    text-decoration: none;
    border-radius: 999px;
    transition: var(--transition-premium, all 0.3s ease);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--btn-tag-border, rgba(255, 255, 255, 0.14));
    text-align: center;
    white-space: nowrap;
}

/* Мобилки: оставляем тач-размер */
@media (max-width: 768px) {
    .btn-tag--player, .btn-tag--voice {
        min-height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }
}

/* Рейтинг: ещё компактнее расстояния */
.player-rating-block {
    padding: 10px 12px;
}

.rating-display-compact {
    margin-bottom: 2px;
}

.quick-rate {
    padding-top: 6px;
}

.rate-label-sm {
    margin-bottom: 4px;
}

.btn-tag--player:hover, .btn-tag--voice:hover {
    /* Fallback должен работать и в светлой теме */
    background: var(--btn-tag-bg-hover, var(--bg-hover, rgba(0, 0, 0, 0.08)));
    border-color: var(--btn-tag-border-hover, var(--color-primary, #ff6b35));
    color: var(--btn-tag-text-hover, var(--color-primary, #ff6b35));
    text-decoration: none;
}

.btn-tag--player.active {
    background: var(--btn-tag-bg-active, var(--color-primary, #ff6b35)) !important;
    color: var(--btn-tag-text-active, #ffffff) !important;
    border-color: var(--btn-tag-border-active, var(--color-primary, #ff6b35)) !important;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.14) inset,
        0 0 0 1px var(--btn-tag-border-active, var(--color-primary, #ff6b35)),
        0 10px 22px rgba(0, 0, 0, 0.22);
}

.btn-tag--voice.active {
    /* Озвучка: отдельный акцентный цвет, чтобы отличалось от активного плеера */
    background: var(--btn-tag-bg-active-voice, var(--color-purple, #8b5cf6)) !important;
    color: var(--btn-tag-text-active, #ffffff) !important;
    border-color: var(--btn-tag-border-active-voice, var(--color-purple, #8b5cf6)) !important;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.14) inset,
        0 0 0 1px var(--btn-tag-border-active-voice, var(--color-purple, #8b5cf6)),
        0 10px 22px rgba(0, 0, 0, 0.22);
}

/* Доп. читаемость: чёткая подсветка при навигации с клавиатуры */
.btn-tag--player:focus-visible,
.btn-tag--voice:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary, #ff6b35) 55%, transparent);
    outline-offset: 2px;
}

.player-icon {
    /* Иконку слева убрали — оставляем класс для совместимости, но не показываем */
    display: none;
}

.player-text {
    font-weight: 500;
}

/* Список серий */
.episodes-sidebar {
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-secondary, rgba(255, 255, 255, 0.10));
}

/* Блок под плейлистом: Продолжить + Рейтинг */
.underplaylist-actions{
    margin-top: 12px;
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border-secondary, rgba(255, 255, 255, 0.10));
    border-radius: 12px;
    padding: 14px 14px 12px 14px; /* компактнее по вертикали */
    display: flex;
    flex-direction: column;
    gap: 8px; /* промежуток между "продолжить" и рейтингом */
}

html[data-theme="light"] .underplaylist-actions,
html[data-theme="light_japan"] .underplaylist-actions{
    background: rgba(255,255,255,0.70);
    border-color: rgba(0,0,0,0.10);
}

.underplaylist-actions .continue-watch-section{
    display: flex;
    flex-direction: column;
    gap: 0; /* вообще без внутреннего gap — кнопку прилепим к тексту */
    align-items: flex-start; /* всё прижато влево, чтобы было чуть компактнее */
}

.underplaylist-actions .continue-text{
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 6px 0; /* вниз 6px под текст, потом сразу кнопки */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.underplaylist-actions .continue-text b{
    font-weight: 800;
}

/* Горизонтальный ряд: кнопка "Смотреть" + тумблер "Авто" */
.underplaylist-actions .continue-buttons-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.underplaylist-actions .continue-button{
    /* короче, не растягивается на всю ширину — только для текста "Смотреть" */
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 18px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    border-radius: 8px !important;
    flex: 0 0 auto; /* не растягивается */
    white-space: nowrap;
}

/* Тумблер автопереключения серий */
.autoplay-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-secondary, rgba(255, 255, 255, 0.12));
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-secondary, #cccccc);
    flex: 0 0 auto;
    white-space: nowrap;
}

.autoplay-toggle:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--border-primary, rgba(255, 255, 255, 0.20));
}

.autoplay-toggle.active {
    background: rgba(34, 197, 94, 0.12); /* зелёный фон */
    border-color: rgba(34, 197, 94, 0.35);
    color: rgba(34, 197, 94, 1);
}

html[data-theme="light"] .autoplay-toggle,
html[data-theme="light_japan"] .autoplay-toggle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary, #666);
}

html[data-theme="light"] .autoplay-toggle:hover,
html[data-theme="light_japan"] .autoplay-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.20);
}

html[data-theme="light"] .autoplay-toggle.active,
html[data-theme="light_japan"] .autoplay-toggle.active {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.35);
    color: #16a34a;
}

/* Иконка (спиннер) для автопереключения */
.autoplay-toggle__icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.autoplay-toggle__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.autoplay-toggle.active .autoplay-toggle__icon svg {
    animation: autoplay-spin 2s linear infinite;
}

@keyframes autoplay-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.underplaylist-actions .player-quality-row{
    width: 100%;
    margin-top: 4px; /* чуть ближе к кнопкам */
}

.underplaylist-divider{
    height: 1px;
    width: 100%;
    margin: 6px 0; /* подтянул — меньше воздуха */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0.14) 80%, transparent);
}

html[data-theme="light"] .underplaylist-divider,
html[data-theme="light_japan"] .underplaylist-divider{
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.12) 80%, transparent);
}

.episode-tabs {
    display: flex;
    background: var(--bg-tertiary, #2a2a2a);
}

.tab-btn {
    flex: 1;
    padding: 14px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #cccccc);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.tab-btn:hover {
    background: var(--bg-hover, rgba(0, 0, 0, 0.08));
}

.tab-btn.active {
    background: var(--color-primary, #ff6b35);
    color: white;
}

.episodes-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.season-group {
    margin-bottom: 15px;
}

.season-header {
    padding: 10px 15px;
    background: var(--bg-tertiary, #2a2a2a);
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.season-episodes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.episode-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
    border: 1px solid var(--border-secondary, rgba(255, 255, 255, 0.08));
}

.episode-item:hover {
    background: var(--bg-hover, rgba(0, 0, 0, 0.08));
    transform: translateX(5px);
}

.episode-item.active {
    background: var(--color-primary, #ff6b35);
    color: white;
    transform: scale(1.02);
    font-weight: 700;
}

.episode-number {
    width: 34px;
    height: 34px;
    background: var(--color-primary, #ff6b35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.episode-number--range {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: white;
    color: var(--color-primary, #ff6b35);
}

.episode-title {
    flex: 1;
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.premium-icon {
    color: #ffd700;
    font-size: 16px;
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #cccccc);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .player-hosts, .player-voices {
        order: 1;
    }
    
    .episode-info {
        order: 2;
        text-align: center;
    }
    
    .player-actions {
        order: 3;
        text-align: center;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}

/* Скроллбар для списка серий */
.episodes-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: var(--color-primary, #ff6b35);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark, #e55a2b);
}



/* ============================================
   ПОХОЖИЕ СЕРИАЛЫ (Компактные карточки в сайдбаре)
   ============================================ */

.similar-section {
    margin-top: 30px;
}

/* Старые стили similar-card удалены — используем similar-card-v2 */

.no-similar {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 15px;
    font-size: 12px;
}

/* ============================================
   ПОХОЖИЕ V2 — КАРТОЧКИ С БАННЕРАМИ
   ============================================ */

.similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.similar-card-v2 {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.similar-card-v2:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary, #ff6b35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.similar-card-v2__banner {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Чуть компактнее чем 16:9 */
    overflow: hidden;
}

.similar-card-v2__banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similar-card-v2:hover .similar-card-v2__banner img {
    transform: scale(1.05);
}

.similar-card-v2__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.similar-card-v2__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.similar-card-v2__title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.similar-card-v2:hover .similar-card-v2__title {
    color: var(--color-primary, #ff6b35);
}

.similar-card-v2__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.similar-card-v2__badge {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.similar-card-v2__badge--status {
    background: var(--color-primary, #ff6b35);
    color: #000;
}

/* Светлые темы */
html[data-theme="light"] .similar-card-v2,
html[data-theme="light_japan"] .similar-card-v2 {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html[data-theme="light"] .similar-card-v2:hover,
html[data-theme="light_japan"] .similar-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Похожие рядом с комментариями */
.similar-section--beside-comments {
    position: sticky;
    top: 100px;
}

.similar-section--beside-comments .similar-grid {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar {
    width: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Адаптивность похожих */
@media (max-width: 991px) {
    .similar-section--beside-comments {
        position: static;
        margin-top: 24px;
    }
    
    .similar-section--beside-comments .similar-grid {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .similar-section--beside-comments .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   КОММЕНТАРИИ (Оригинальные стили)
   ============================================ */

.comment-block {
    padding: 20px;
    background: var(--color-black-light, #242424);
    border-radius: 8px;
}

.comment-block p {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-grey-light, #d4d4d4);
    line-height: 1.6;
}

.comment-block p a {
    color: var(--color-primary);
    display: inline-block;
    text-decoration: none;
}

.comment-block p a:hover {
    color: var(--color-purple);
}

.comment-block h4 {
    font-weight: 400;
    font-size: 30px;
    color: #fff;
}

.comment-block h4 b {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment-block p {
        font-size: 16px;
    }
    
}
/* ============================================
   БАЗОВЫЕ СТИЛИ ДЛЯ СОВМЕСТИМОСТИ
   ============================================ */

.bg-color-black {
    background-color: var(--color-black, #111111);
}

.anime-box {
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.anime-blog {
    padding: 0;
}

.anime-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.small-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading.style-1 h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   КОМПАКТНЫЙ БЛОК РЕЙТИНГА (рядом с плеером)
   ============================================ */
.player-rating-block {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-display-compact {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px; /* убираем большие промежутки между "3.0" и "/10" */
    margin-bottom: 2px;
}

.rating-value-lg {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    line-height: 1;
}

.rating-suffix {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

.rating-meta {
    margin-bottom: 10px;
}

.rating-count-compact {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.quick-rate {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.rate-label-sm {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.star-rating-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.star-btn-sm {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.star-btn-sm:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
    transform: scale(1.1);
}

.star-btn-sm.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.star-btn-sm.hover-preview {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}

/* Адаптивность рейтинга */
@media (max-width: 992px) {
    .player-rating-block {
        margin-top: 16px;
    }
}

/* Светлая тема */
html[data-theme="light_japan"] .player-rating-block {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light_japan"] .rating-value-lg {
    color: #d4a500;
}

html[data-theme="light_japan"] .rating-suffix,
html[data-theme="light_japan"] .rating-count-compact,
html[data-theme="light_japan"] .rate-label-sm {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light_japan"] .star-btn-sm {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light_japan"] .star-btn-sm:hover {
    background: rgba(212, 165, 0, 0.2);
    border-color: rgba(212, 165, 0, 0.5);
    color: #d4a500;
}

html[data-theme="light_japan"] .star-btn-sm.active {
    background: #d4a500;
    border-color: #d4a500;
    color: #fff;
}
    transform: translateX(5px);
}

.episode-item.active {
    background: var(--color-primary, #ff6b35);
    color: white;
    transform: scale(1.02);
    font-weight: 700;
}

.episode-number {
    width: 34px;
    height: 34px;
    background: var(--color-primary, #ff6b35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.episode-number--range {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: white;
    color: var(--color-primary, #ff6b35);
}

.episode-title {
    flex: 1;
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.premium-icon {
    color: #ffd700;
    font-size: 16px;
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #cccccc);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .player-hosts, .player-voices {
        order: 1;
    }
    
    .episode-info {
        order: 2;
        text-align: center;
    }
    
    .player-actions {
        order: 3;
        text-align: center;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}

/* Скроллбар для списка серий */
.episodes-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: var(--color-primary, #ff6b35);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark, #e55a2b);
}



/* ============================================
   ПОХОЖИЕ СЕРИАЛЫ (Компактные карточки в сайдбаре)
   ============================================ */

.similar-section {
    margin-top: 30px;
}

/* Старые стили similar-card удалены — используем similar-card-v2 */

.no-similar {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 15px;
    font-size: 12px;
}

/* ============================================
   ПОХОЖИЕ V2 — КАРТОЧКИ С БАННЕРАМИ
   ============================================ */

.similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.similar-card-v2 {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.similar-card-v2:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary, #ff6b35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.similar-card-v2__banner {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Чуть компактнее чем 16:9 */
    overflow: hidden;
}

.similar-card-v2__banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similar-card-v2:hover .similar-card-v2__banner img {
    transform: scale(1.05);
}

.similar-card-v2__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.similar-card-v2__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.similar-card-v2__title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.similar-card-v2:hover .similar-card-v2__title {
    color: var(--color-primary, #ff6b35);
}

.similar-card-v2__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.similar-card-v2__badge {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.similar-card-v2__badge--status {
    background: var(--color-primary, #ff6b35);
    color: #000;
}

/* Светлые темы */
html[data-theme="light"] .similar-card-v2,
html[data-theme="light_japan"] .similar-card-v2 {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html[data-theme="light"] .similar-card-v2:hover,
html[data-theme="light_japan"] .similar-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Похожие рядом с комментариями */
.similar-section--beside-comments {
    position: sticky;
    top: 100px;
}

.similar-section--beside-comments .similar-grid {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar {
    width: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Адаптивность похожих */
@media (max-width: 991px) {
    .similar-section--beside-comments {
        position: static;
        margin-top: 24px;
    }
    
    .similar-section--beside-comments .similar-grid {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .similar-section--beside-comments .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   КОММЕНТАРИИ (Оригинальные стили)
   ============================================ */

.comment-block {
    padding: 20px;
    background: var(--color-black-light, #242424);
    border-radius: 8px;
}

.comment-block p {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-grey-light, #d4d4d4);
    line-height: 1.6;
}

.comment-block p a {
    color: var(--color-primary);
    display: inline-block;
    text-decoration: none;
}

.comment-block p a:hover {
    color: var(--color-purple);
}

.comment-block h4 {
    font-weight: 400;
    font-size: 30px;
    color: #fff;
}

.comment-block h4 b {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment-block p {
        font-size: 16px;
    }
    
}
/* ============================================
   БАЗОВЫЕ СТИЛИ ДЛЯ СОВМЕСТИМОСТИ
   ============================================ */

.bg-color-black {
    background-color: var(--color-black, #111111);
}

.anime-box {
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.anime-blog {
    padding: 0;
}

.anime-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.small-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading.style-1 h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   КОМПАКТНЫЙ БЛОК РЕЙТИНГА (рядом с плеером)
   ============================================ */
.player-rating-block {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-display-compact {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px; /* убираем большие промежутки между "3.0" и "/10" */
    margin-bottom: 2px;
}

.rating-value-lg {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    line-height: 1;
}

.rating-suffix {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

.rating-meta {
    margin-bottom: 10px;
}

.rating-count-compact {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.quick-rate {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.rate-label-sm {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.star-rating-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.star-btn-sm {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.star-btn-sm:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
    transform: scale(1.1);
}

.star-btn-sm.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.star-btn-sm.hover-preview {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}

/* Адаптивность рейтинга */
@media (max-width: 992px) {
    .player-rating-block {
        margin-top: 16px;
    }
}

/* Светлая тема */
html[data-theme="light_japan"] .player-rating-block {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light_japan"] .rating-value-lg {
    color: #d4a500;
}

html[data-theme="light_japan"] .rating-suffix,
html[data-theme="light_japan"] .rating-count-compact,
html[data-theme="light_japan"] .rate-label-sm {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light_japan"] .star-btn-sm {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light_japan"] .star-btn-sm:hover {
    background: rgba(212, 165, 0, 0.2);
    border-color: rgba(212, 165, 0, 0.5);
    color: #d4a500;
}

html[data-theme="light_japan"] .star-btn-sm.active {
    background: #d4a500;
    border-color: #d4a500;
    color: #fff;
}
    transform: translateX(5px);
}

.episode-item.active {
    background: var(--color-primary, #ff6b35);
    color: white;
    transform: scale(1.02);
    font-weight: 700;
}

.episode-number {
    width: 34px;
    height: 34px;
    background: var(--color-primary, #ff6b35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.episode-number--range {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: white;
    color: var(--color-primary, #ff6b35);
}

.episode-title {
    flex: 1;
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.premium-icon {
    color: #ffd700;
    font-size: 16px;
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #cccccc);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .player-hosts, .player-voices {
        order: 1;
    }
    
    .episode-info {
        order: 2;
        text-align: center;
    }
    
    .player-actions {
        order: 3;
        text-align: center;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}

/* Скроллбар для списка серий */
.episodes-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: var(--color-primary, #ff6b35);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark, #e55a2b);
}



/* ============================================
   ПОХОЖИЕ СЕРИАЛЫ (Компактные карточки в сайдбаре)
   ============================================ */

.similar-section {
    margin-top: 30px;
}

/* Старые стили similar-card удалены — используем similar-card-v2 */

.no-similar {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 15px;
    font-size: 12px;
}

/* ============================================
   ПОХОЖИЕ V2 — КАРТОЧКИ С БАННЕРАМИ
   ============================================ */

.similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.similar-card-v2 {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.similar-card-v2:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary, #ff6b35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.similar-card-v2__banner {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Чуть компактнее чем 16:9 */
    overflow: hidden;
}

.similar-card-v2__banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similar-card-v2:hover .similar-card-v2__banner img {
    transform: scale(1.05);
}

.similar-card-v2__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.similar-card-v2__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.similar-card-v2__title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.similar-card-v2:hover .similar-card-v2__title {
    color: var(--color-primary, #ff6b35);
}

.similar-card-v2__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.similar-card-v2__badge {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.similar-card-v2__badge--status {
    background: var(--color-primary, #ff6b35);
    color: #000;
}

/* Светлые темы */
html[data-theme="light"] .similar-card-v2,
html[data-theme="light_japan"] .similar-card-v2 {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html[data-theme="light"] .similar-card-v2:hover,
html[data-theme="light_japan"] .similar-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Похожие рядом с комментариями */
.similar-section--beside-comments {
    position: sticky;
    top: 100px;
}

.similar-section--beside-comments .similar-grid {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar {
    width: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Адаптивность похожих */
@media (max-width: 991px) {
    .similar-section--beside-comments {
        position: static;
        margin-top: 24px;
    }
    
    .similar-section--beside-comments .similar-grid {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .similar-section--beside-comments .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   КОММЕНТАРИИ (Оригинальные стили)
   ============================================ */

.comment-block {
    padding: 20px;
    background: var(--color-black-light, #242424);
    border-radius: 8px;
}

.comment-block p {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-grey-light, #d4d4d4);
    line-height: 1.6;
}

.comment-block p a {
    color: var(--color-primary);
    display: inline-block;
    text-decoration: none;
}

.comment-block p a:hover {
    color: var(--color-purple);
}

.comment-block h4 {
    font-weight: 400;
    font-size: 30px;
    color: #fff;
}

.comment-block h4 b {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment-block p {
        font-size: 16px;
    }
    
}
/* ============================================
   БАЗОВЫЕ СТИЛИ ДЛЯ СОВМЕСТИМОСТИ
   ============================================ */

.bg-color-black {
    background-color: var(--color-black, #111111);
}

.anime-box {
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.anime-blog {
    padding: 0;
}

.anime-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.small-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading.style-1 h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   КОМПАКТНЫЙ БЛОК РЕЙТИНГА (рядом с плеером)
   ============================================ */
.player-rating-block {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-display-compact {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px; /* убираем большие промежутки между "3.0" и "/10" */
    margin-bottom: 2px;
}

.rating-value-lg {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    line-height: 1;
}

.rating-suffix {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

.rating-meta {
    margin-bottom: 10px;
}

.rating-count-compact {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.quick-rate {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.rate-label-sm {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.star-rating-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.star-btn-sm {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.star-btn-sm:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
    transform: scale(1.1);
}

.star-btn-sm.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.star-btn-sm.hover-preview {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}

/* Адаптивность рейтинга */
@media (max-width: 992px) {
    .player-rating-block {
        margin-top: 16px;
    }
}

/* Светлая тема */
html[data-theme="light_japan"] .player-rating-block {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light_japan"] .rating-value-lg {
    color: #d4a500;
}

html[data-theme="light_japan"] .rating-suffix,
html[data-theme="light_japan"] .rating-count-compact,
html[data-theme="light_japan"] .rate-label-sm {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light_japan"] .star-btn-sm {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light_japan"] .star-btn-sm:hover {
    background: rgba(212, 165, 0, 0.2);
    border-color: rgba(212, 165, 0, 0.5);
    color: #d4a500;
}

html[data-theme="light_japan"] .star-btn-sm.active {
    background: #d4a500;
    border-color: #d4a500;
    color: #fff;
}
    transform: translateX(5px);
}

.episode-item.active {
    background: var(--color-primary, #ff6b35);
    color: white;
    transform: scale(1.02);
    font-weight: 700;
}

.episode-number {
    width: 34px;
    height: 34px;
    background: var(--color-primary, #ff6b35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.episode-number--range {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: white;
    color: var(--color-primary, #ff6b35);
}

.episode-title {
    flex: 1;
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.premium-icon {
    color: #ffd700;
    font-size: 16px;
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #cccccc);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .player-hosts, .player-voices {
        order: 1;
    }
    
    .episode-info {
        order: 2;
        text-align: center;
    }
    
    .player-actions {
        order: 3;
        text-align: center;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}

/* Скроллбар для списка серий */
.episodes-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: var(--color-primary, #ff6b35);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark, #e55a2b);
}



/* ============================================
   ПОХОЖИЕ СЕРИАЛЫ (Компактные карточки в сайдбаре)
   ============================================ */

.similar-section {
    margin-top: 30px;
}

/* Старые стили similar-card удалены — используем similar-card-v2 */

.no-similar {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 15px;
    font-size: 12px;
}

/* ============================================
   ПОХОЖИЕ V2 — КАРТОЧКИ С БАННЕРАМИ
   ============================================ */

.similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.similar-card-v2 {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.similar-card-v2:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary, #ff6b35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.similar-card-v2__banner {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Чуть компактнее чем 16:9 */
    overflow: hidden;
}

.similar-card-v2__banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similar-card-v2:hover .similar-card-v2__banner img {
    transform: scale(1.05);
}

.similar-card-v2__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.similar-card-v2__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.similar-card-v2__title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.similar-card-v2:hover .similar-card-v2__title {
    color: var(--color-primary, #ff6b35);
}

.similar-card-v2__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.similar-card-v2__badge {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.similar-card-v2__badge--status {
    background: var(--color-primary, #ff6b35);
    color: #000;
}

/* Светлые темы */
html[data-theme="light"] .similar-card-v2,
html[data-theme="light_japan"] .similar-card-v2 {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html[data-theme="light"] .similar-card-v2:hover,
html[data-theme="light_japan"] .similar-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Похожие рядом с комментариями */
.similar-section--beside-comments {
    position: sticky;
    top: 100px;
}

.similar-section--beside-comments .similar-grid {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar {
    width: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Адаптивность похожих */
@media (max-width: 991px) {
    .similar-section--beside-comments {
        position: static;
        margin-top: 24px;
    }
    
    .similar-section--beside-comments .similar-grid {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .similar-section--beside-comments .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   КОММЕНТАРИИ (Оригинальные стили)
   ============================================ */

.comment-block {
    padding: 20px;
    background: var(--color-black-light, #242424);
    border-radius: 8px;
}

.comment-block p {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-grey-light, #d4d4d4);
    line-height: 1.6;
}

.comment-block p a {
    color: var(--color-primary);
    display: inline-block;
    text-decoration: none;
}

.comment-block p a:hover {
    color: var(--color-purple);
}

.comment-block h4 {
    font-weight: 400;
    font-size: 30px;
    color: #fff;
}

.comment-block h4 b {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment-block p {
        font-size: 16px;
    }
    
}
/* ============================================
   БАЗОВЫЕ СТИЛИ ДЛЯ СОВМЕСТИМОСТИ
   ============================================ */

.bg-color-black {
    background-color: var(--color-black, #111111);
}

.anime-box {
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.anime-blog {
    padding: 0;
}

.anime-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.small-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading.style-1 h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   КОМПАКТНЫЙ БЛОК РЕЙТИНГА (рядом с плеером)
   ============================================ */
.player-rating-block {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-display-compact {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px; /* убираем большие промежутки между "3.0" и "/10" */
    margin-bottom: 2px;
}

.rating-value-lg {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    line-height: 1;
}

.rating-suffix {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

.rating-meta {
    margin-bottom: 10px;
}

.rating-count-compact {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.quick-rate {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.rate-label-sm {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.star-rating-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.star-btn-sm {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.star-btn-sm:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
    transform: scale(1.1);
}

.star-btn-sm.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.star-btn-sm.hover-preview {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}

/* Адаптивность рейтинга */
@media (max-width: 992px) {
    .player-rating-block {
        margin-top: 16px;
    }
}

/* Светлая тема */
html[data-theme="light_japan"] .player-rating-block {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light_japan"] .rating-value-lg {
    color: #d4a500;
}

html[data-theme="light_japan"] .rating-suffix,
html[data-theme="light_japan"] .rating-count-compact,
html[data-theme="light_japan"] .rate-label-sm {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light_japan"] .star-btn-sm {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light_japan"] .star-btn-sm:hover {
    background: rgba(212, 165, 0, 0.2);
    border-color: rgba(212, 165, 0, 0.5);
    color: #d4a500;
}

html[data-theme="light_japan"] .star-btn-sm.active {
    background: #d4a500;
    border-color: #d4a500;
    color: #fff;
}
    /* короче, не растягивается на всю ширину — только для текста "Смотреть" */
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 18px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    border-radius: 8px !important;
    flex: 0 0 auto; /* не растягивается */
    white-space: nowrap;
}

/* Тумблер автопереключения серий */
.autoplay-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-secondary, rgba(255, 255, 255, 0.12));
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-secondary, #cccccc);
    flex: 0 0 auto;
    white-space: nowrap;
}

.autoplay-toggle:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--border-primary, rgba(255, 255, 255, 0.20));
}

.autoplay-toggle.active {
    background: rgba(34, 197, 94, 0.12); /* зелёный фон */
    border-color: rgba(34, 197, 94, 0.35);
    color: rgba(34, 197, 94, 1);
}

html[data-theme="light"] .autoplay-toggle,
html[data-theme="light_japan"] .autoplay-toggle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary, #666);
}

html[data-theme="light"] .autoplay-toggle:hover,
html[data-theme="light_japan"] .autoplay-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.20);
}

html[data-theme="light"] .autoplay-toggle.active,
html[data-theme="light_japan"] .autoplay-toggle.active {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.35);
    color: #16a34a;
}

/* Иконка (спиннер) для автопереключения */
.autoplay-toggle__icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.autoplay-toggle__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.autoplay-toggle.active .autoplay-toggle__icon svg {
    animation: autoplay-spin 2s linear infinite;
}

@keyframes autoplay-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.underplaylist-actions .player-quality-row{
    width: 100%;
    margin-top: 4px; /* чуть ближе к кнопкам */
}

.underplaylist-divider{
    height: 1px;
    width: 100%;
    margin: 6px 0; /* подтянул — меньше воздуха */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0.14) 80%, transparent);
}

html[data-theme="light"] .underplaylist-divider,
html[data-theme="light_japan"] .underplaylist-divider{
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.12) 80%, transparent);
}

.episode-tabs {
    display: flex;
    background: var(--bg-tertiary, #2a2a2a);
}

.tab-btn {
    flex: 1;
    padding: 14px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #cccccc);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.tab-btn:hover {
    background: var(--bg-hover, rgba(0, 0, 0, 0.08));
}

.tab-btn.active {
    background: var(--color-primary, #ff6b35);
    color: white;
}

.episodes-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.season-group {
    margin-bottom: 15px;
}

.season-header {
    padding: 10px 15px;
    background: var(--bg-tertiary, #2a2a2a);
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.season-episodes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.episode-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
    border: 1px solid var(--border-secondary, rgba(255, 255, 255, 0.08));
}

.episode-item:hover {
    background: var(--bg-hover, rgba(0, 0, 0, 0.08));
    transform: translateX(5px);
}

.episode-item.active {
    background: var(--color-primary, #ff6b35);
    color: white;
    transform: scale(1.02);
    font-weight: 700;
}

.episode-number {
    width: 34px;
    height: 34px;
    background: var(--color-primary, #ff6b35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.episode-number--range {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: white;
    color: var(--color-primary, #ff6b35);
}

.episode-title {
    flex: 1;
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.premium-icon {
    color: #ffd700;
    font-size: 16px;
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #cccccc);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .player-hosts, .player-voices {
        order: 1;
    }
    
    .episode-info {
        order: 2;
        text-align: center;
    }
    
    .player-actions {
        order: 3;
        text-align: center;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}

/* Скроллбар для списка серий */
.episodes-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: var(--color-primary, #ff6b35);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark, #e55a2b);
}



/* ============================================
   ПОХОЖИЕ СЕРИАЛЫ (Компактные карточки в сайдбаре)
   ============================================ */

.similar-section {
    margin-top: 30px;
}

/* Старые стили similar-card удалены — используем similar-card-v2 */

.no-similar {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 15px;
    font-size: 12px;
}

/* ============================================
   ПОХОЖИЕ V2 — КАРТОЧКИ С БАННЕРАМИ
   ============================================ */

.similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.similar-card-v2 {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.similar-card-v2:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary, #ff6b35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.similar-card-v2__banner {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Чуть компактнее чем 16:9 */
    overflow: hidden;
}

.similar-card-v2__banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similar-card-v2:hover .similar-card-v2__banner img {
    transform: scale(1.05);
}

.similar-card-v2__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.similar-card-v2__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.similar-card-v2__title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.similar-card-v2:hover .similar-card-v2__title {
    color: var(--color-primary, #ff6b35);
}

.similar-card-v2__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.similar-card-v2__badge {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.similar-card-v2__badge--status {
    background: var(--color-primary, #ff6b35);
    color: #000;
}

/* Светлые темы */
html[data-theme="light"] .similar-card-v2,
html[data-theme="light_japan"] .similar-card-v2 {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html[data-theme="light"] .similar-card-v2:hover,
html[data-theme="light_japan"] .similar-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Похожие рядом с комментариями */
.similar-section--beside-comments {
    position: sticky;
    top: 100px;
}

.similar-section--beside-comments .similar-grid {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar {
    width: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Адаптивность похожих */
@media (max-width: 991px) {
    .similar-section--beside-comments {
        position: static;
        margin-top: 24px;
    }
    
    .similar-section--beside-comments .similar-grid {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .similar-section--beside-comments .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   КОММЕНТАРИИ (Оригинальные стили)
   ============================================ */

.comment-block {
    padding: 20px;
    background: var(--color-black-light, #242424);
    border-radius: 8px;
}

.comment-block p {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-grey-light, #d4d4d4);
    line-height: 1.6;
}

.comment-block p a {
    color: var(--color-primary);
    display: inline-block;
    text-decoration: none;
}

.comment-block p a:hover {
    color: var(--color-purple);
}

.comment-block h4 {
    font-weight: 400;
    font-size: 30px;
    color: #fff;
}

.comment-block h4 b {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment-block p {
        font-size: 16px;
    }
    
}
/* ============================================
   БАЗОВЫЕ СТИЛИ ДЛЯ СОВМЕСТИМОСТИ
   ============================================ */

.bg-color-black {
    background-color: var(--color-black, #111111);
}

.anime-box {
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.anime-blog {
    padding: 0;
}

.anime-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.small-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading.style-1 h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   КОМПАКТНЫЙ БЛОК РЕЙТИНГА (рядом с плеером)
   ============================================ */
.player-rating-block {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-display-compact {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px; /* убираем большие промежутки между "3.0" и "/10" */
    margin-bottom: 2px;
}

.rating-value-lg {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    line-height: 1;
}

.rating-suffix {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

.rating-meta {
    margin-bottom: 10px;
}

.rating-count-compact {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.quick-rate {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.rate-label-sm {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.star-rating-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.star-btn-sm {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.star-btn-sm:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
    transform: scale(1.1);
}

.star-btn-sm.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.star-btn-sm.hover-preview {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}

/* Адаптивность рейтинга */
@media (max-width: 992px) {
    .player-rating-block {
        margin-top: 16px;
    }
}

/* Светлая тема */
html[data-theme="light_japan"] .player-rating-block {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light_japan"] .rating-value-lg {
    color: #d4a500;
}

html[data-theme="light_japan"] .rating-suffix,
html[data-theme="light_japan"] .rating-count-compact,
html[data-theme="light_japan"] .rate-label-sm {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light_japan"] .star-btn-sm {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light_japan"] .star-btn-sm:hover {
    background: rgba(212, 165, 0, 0.2);
    border-color: rgba(212, 165, 0, 0.5);
    color: #d4a500;
}

html[data-theme="light_japan"] .star-btn-sm.active {
    background: #d4a500;
    border-color: #d4a500;
    color: #fff;
}
    transform: translateX(5px);
}

.episode-item.active {
    background: var(--color-primary, #ff6b35);
    color: white;
    transform: scale(1.02);
    font-weight: 700;
}

.episode-number {
    width: 34px;
    height: 34px;
    background: var(--color-primary, #ff6b35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.episode-number--range {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: white;
    color: var(--color-primary, #ff6b35);
}

.episode-title {
    flex: 1;
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.premium-icon {
    color: #ffd700;
    font-size: 16px;
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #cccccc);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .player-hosts, .player-voices {
        order: 1;
    }
    
    .episode-info {
        order: 2;
        text-align: center;
    }
    
    .player-actions {
        order: 3;
        text-align: center;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}

/* Скроллбар для списка серий */
.episodes-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: var(--color-primary, #ff6b35);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark, #e55a2b);
}



/* ============================================
   ПОХОЖИЕ СЕРИАЛЫ (Компактные карточки в сайдбаре)
   ============================================ */

.similar-section {
    margin-top: 30px;
}

/* Старые стили similar-card удалены — используем similar-card-v2 */

.no-similar {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 15px;
    font-size: 12px;
}

/* ============================================
   ПОХОЖИЕ V2 — КАРТОЧКИ С БАННЕРАМИ
   ============================================ */

.similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.similar-card-v2 {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.similar-card-v2:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary, #ff6b35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.similar-card-v2__banner {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Чуть компактнее чем 16:9 */
    overflow: hidden;
}

.similar-card-v2__banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similar-card-v2:hover .similar-card-v2__banner img {
    transform: scale(1.05);
}

.similar-card-v2__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.similar-card-v2__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.similar-card-v2__title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.similar-card-v2:hover .similar-card-v2__title {
    color: var(--color-primary, #ff6b35);
}

.similar-card-v2__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.similar-card-v2__badge {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.similar-card-v2__badge--status {
    background: var(--color-primary, #ff6b35);
    color: #000;
}

/* Светлые темы */
html[data-theme="light"] .similar-card-v2,
html[data-theme="light_japan"] .similar-card-v2 {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html[data-theme="light"] .similar-card-v2:hover,
html[data-theme="light_japan"] .similar-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Похожие рядом с комментариями */
.similar-section--beside-comments {
    position: sticky;
    top: 100px;
}

.similar-section--beside-comments .similar-grid {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar {
    width: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Адаптивность похожих */
@media (max-width: 991px) {
    .similar-section--beside-comments {
        position: static;
        margin-top: 24px;
    }
    
    .similar-section--beside-comments .similar-grid {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .similar-section--beside-comments .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   КОММЕНТАРИИ (Оригинальные стили)
   ============================================ */

.comment-block {
    padding: 20px;
    background: var(--color-black-light, #242424);
    border-radius: 8px;
}

.comment-block p {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-grey-light, #d4d4d4);
    line-height: 1.6;
}

.comment-block p a {
    color: var(--color-primary);
    display: inline-block;
    text-decoration: none;
}

.comment-block p a:hover {
    color: var(--color-purple);
}

.comment-block h4 {
    font-weight: 400;
    font-size: 30px;
    color: #fff;
}

.comment-block h4 b {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment-block p {
        font-size: 16px;
    }
    
}
/* ============================================
   БАЗОВЫЕ СТИЛИ ДЛЯ СОВМЕСТИМОСТИ
   ============================================ */

.bg-color-black {
    background-color: var(--color-black, #111111);
}

.anime-box {
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.anime-blog {
    padding: 0;
}

.anime-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.small-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading.style-1 h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   КОМПАКТНЫЙ БЛОК РЕЙТИНГА (рядом с плеером)
   ============================================ */
.player-rating-block {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-display-compact {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px; /* убираем большие промежутки между "3.0" и "/10" */
    margin-bottom: 2px;
}

.rating-value-lg {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    line-height: 1;
}

.rating-suffix {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

.rating-meta {
    margin-bottom: 10px;
}

.rating-count-compact {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.quick-rate {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.rate-label-sm {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.star-rating-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.star-btn-sm {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.star-btn-sm:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
    transform: scale(1.1);
}

.star-btn-sm.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.star-btn-sm.hover-preview {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}

/* Адаптивность рейтинга */
@media (max-width: 992px) {
    .player-rating-block {
        margin-top: 16px;
    }
}

/* Светлая тема */
html[data-theme="light_japan"] .player-rating-block {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light_japan"] .rating-value-lg {
    color: #d4a500;
}

html[data-theme="light_japan"] .rating-suffix,
html[data-theme="light_japan"] .rating-count-compact,
html[data-theme="light_japan"] .rate-label-sm {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light_japan"] .star-btn-sm {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light_japan"] .star-btn-sm:hover {
    background: rgba(212, 165, 0, 0.2);
    border-color: rgba(212, 165, 0, 0.5);
    color: #d4a500;
}

html[data-theme="light_japan"] .star-btn-sm.active {
    background: #d4a500;
    border-color: #d4a500;
    color: #fff;
}
    transform: translateX(5px);
}

.episode-item.active {
    background: var(--color-primary, #ff6b35);
    color: white;
    transform: scale(1.02);
    font-weight: 700;
}

.episode-number {
    width: 34px;
    height: 34px;
    background: var(--color-primary, #ff6b35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.episode-number--range {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: white;
    color: var(--color-primary, #ff6b35);
}

.episode-title {
    flex: 1;
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.premium-icon {
    color: #ffd700;
    font-size: 16px;
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #cccccc);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .player-hosts, .player-voices {
        order: 1;
    }
    
    .episode-info {
        order: 2;
        text-align: center;
    }
    
    .player-actions {
        order: 3;
        text-align: center;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}

/* Скроллбар для списка серий */
.episodes-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: var(--color-primary, #ff6b35);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark, #e55a2b);
}



/* ============================================
   ПОХОЖИЕ СЕРИАЛЫ (Компактные карточки в сайдбаре)
   ============================================ */

.similar-section {
    margin-top: 30px;
}

/* Старые стили similar-card удалены — используем similar-card-v2 */

.no-similar {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 15px;
    font-size: 12px;
}

/* ============================================
   ПОХОЖИЕ V2 — КАРТОЧКИ С БАННЕРАМИ
   ============================================ */

.similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.similar-card-v2 {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.similar-card-v2:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary, #ff6b35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.similar-card-v2__banner {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Чуть компактнее чем 16:9 */
    overflow: hidden;
}

.similar-card-v2__banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similar-card-v2:hover .similar-card-v2__banner img {
    transform: scale(1.05);
}

.similar-card-v2__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.similar-card-v2__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.similar-card-v2__title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.similar-card-v2:hover .similar-card-v2__title {
    color: var(--color-primary, #ff6b35);
}

.similar-card-v2__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.similar-card-v2__badge {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.similar-card-v2__badge--status {
    background: var(--color-primary, #ff6b35);
    color: #000;
}

/* Светлые темы */
html[data-theme="light"] .similar-card-v2,
html[data-theme="light_japan"] .similar-card-v2 {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html[data-theme="light"] .similar-card-v2:hover,
html[data-theme="light_japan"] .similar-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Похожие рядом с комментариями */
.similar-section--beside-comments {
    position: sticky;
    top: 100px;
}

.similar-section--beside-comments .similar-grid {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar {
    width: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Адаптивность похожих */
@media (max-width: 991px) {
    .similar-section--beside-comments {
        position: static;
        margin-top: 24px;
    }
    
    .similar-section--beside-comments .similar-grid {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .similar-section--beside-comments .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   КОММЕНТАРИИ (Оригинальные стили)
   ============================================ */

.comment-block {
    padding: 20px;
    background: var(--color-black-light, #242424);
    border-radius: 8px;
}

.comment-block p {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-grey-light, #d4d4d4);
    line-height: 1.6;
}

.comment-block p a {
    color: var(--color-primary);
    display: inline-block;
    text-decoration: none;
}

.comment-block p a:hover {
    color: var(--color-purple);
}

.comment-block h4 {
    font-weight: 400;
    font-size: 30px;
    color: #fff;
}

.comment-block h4 b {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment-block p {
        font-size: 16px;
    }
    
}
/* ============================================
   БАЗОВЫЕ СТИЛИ ДЛЯ СОВМЕСТИМОСТИ
   ============================================ */

.bg-color-black {
    background-color: var(--color-black, #111111);
}

.anime-box {
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.anime-blog {
    padding: 0;
}

.anime-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.small-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading.style-1 h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   КОМПАКТНЫЙ БЛОК РЕЙТИНГА (рядом с плеером)
   ============================================ */
.player-rating-block {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-display-compact {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px; /* убираем большие промежутки между "3.0" и "/10" */
    margin-bottom: 2px;
}

.rating-value-lg {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    line-height: 1;
}

.rating-suffix {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

.rating-meta {
    margin-bottom: 10px;
}

.rating-count-compact {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.quick-rate {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.rate-label-sm {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.star-rating-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.star-btn-sm {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.star-btn-sm:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
    transform: scale(1.1);
}

.star-btn-sm.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.star-btn-sm.hover-preview {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}

/* Адаптивность рейтинга */
@media (max-width: 992px) {
    .player-rating-block {
        margin-top: 16px;
    }
}

/* Светлая тема */
html[data-theme="light_japan"] .player-rating-block {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light_japan"] .rating-value-lg {
    color: #d4a500;
}

html[data-theme="light_japan"] .rating-suffix,
html[data-theme="light_japan"] .rating-count-compact,
html[data-theme="light_japan"] .rate-label-sm {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light_japan"] .star-btn-sm {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light_japan"] .star-btn-sm:hover {
    background: rgba(212, 165, 0, 0.2);
    border-color: rgba(212, 165, 0, 0.5);
    color: #d4a500;
}

html[data-theme="light_japan"] .star-btn-sm.active {
    background: #d4a500;
    border-color: #d4a500;
    color: #fff;
}
    transform: translateX(5px);
}

.episode-item.active {
    background: var(--color-primary, #ff6b35);
    color: white;
    transform: scale(1.02);
    font-weight: 700;
}

.episode-number {
    width: 34px;
    height: 34px;
    background: var(--color-primary, #ff6b35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.episode-number--range {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: white;
    color: var(--color-primary, #ff6b35);
}

.episode-title {
    flex: 1;
    color: var(--text-primary, #ffffff);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.premium-icon {
    color: #ffd700;
    font-size: 16px;
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #cccccc);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .player-hosts, .player-voices {
        order: 1;
    }
    
    .episode-info {
        order: 2;
        text-align: center;
    }
    
    .player-actions {
        order: 3;
        text-align: center;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}

/* Скроллбар для списка серий */
.episodes-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: var(--color-primary, #ff6b35);
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark, #e55a2b);
}



/* ============================================
   ПОХОЖИЕ СЕРИАЛЫ (Компактные карточки в сайдбаре)
   ============================================ */

.similar-section {
    margin-top: 30px;
}

/* Старые стили similar-card удалены — используем similar-card-v2 */

.no-similar {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 15px;
    font-size: 12px;
}

/* ============================================
   ПОХОЖИЕ V2 — КАРТОЧКИ С БАННЕРАМИ
   ============================================ */

.similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.similar-card-v2 {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.similar-card-v2:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary, #ff6b35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.similar-card-v2__banner {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Чуть компактнее чем 16:9 */
    overflow: hidden;
}

.similar-card-v2__banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similar-card-v2:hover .similar-card-v2__banner img {
    transform: scale(1.05);
}

.similar-card-v2__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.similar-card-v2__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.similar-card-v2__title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.similar-card-v2:hover .similar-card-v2__title {
    color: var(--color-primary, #ff6b35);
}

.similar-card-v2__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.similar-card-v2__badge {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.similar-card-v2__badge--status {
    background: var(--color-primary, #ff6b35);
    color: #000;
}

/* Светлые темы */
html[data-theme="light"] .similar-card-v2,
html[data-theme="light_japan"] .similar-card-v2 {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html[data-theme="light"] .similar-card-v2:hover,
html[data-theme="light_japan"] .similar-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Похожие рядом с комментариями */
.similar-section--beside-comments {
    position: sticky;
    top: 100px;
}

.similar-section--beside-comments .similar-grid {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar {
    width: 4px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.similar-section--beside-comments .similar-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Адаптивность похожих */
@media (max-width: 991px) {
    .similar-section--beside-comments {
        position: static;
        margin-top: 24px;
    }
    
    .similar-section--beside-comments .similar-grid {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .similar-section--beside-comments .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   КОММЕНТАРИИ (Оригинальные стили)
   ============================================ */

.comment-block {
    padding: 20px;
    background: var(--color-black-light, #242424);
    border-radius: 8px;
}

.comment-block p {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-grey-light, #d4d4d4);
    line-height: 1.6;
}

.comment-block p a {
    color: var(--color-primary);
    display: inline-block;
    text-decoration: none;
}

.comment-block p a:hover {
    color: var(--color-purple);
}

.comment-block h4 {
    font-weight: 400;
    font-size: 30px;
    color: #fff;
}

.comment-block h4 b {
    font-weight: 400;
    font-size: 20px;
    color: var(--color-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment-block p {
        font-size: 16px;
    }
    
}
/* ============================================
   БАЗОВЫЕ СТИЛИ ДЛЯ СОВМЕСТИМОСТИ
   ============================================ */

.bg-color-black {
    background-color: var(--color-black, #111111);
}

.anime-box {
    background: var(--color-black-light, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.anime-blog {
    padding: 0;
}

.anime-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.small-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading.style-1 h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   КОМПАКТНЫЙ БЛОК РЕЙТИНГА (рядом с плеером)
   ============================================ */
.player-rating-block {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-display-compact {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px; /* убираем большие промежутки между "3.0" и "/10" */
    margin-bottom: 2px;
}

.rating-value-lg {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    line-height: 1;
}

.rating-suffix {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
}

.rating-meta {
    margin-bottom: 10px;
}

.rating-count-compact {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.quick-rate {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.rate-label-sm {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.star-rating-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.star-btn-sm {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.star-btn-sm:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
    transform: scale(1.1);
}

.star-btn-sm.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.star-btn-sm.hover-preview {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}

/* Адаптивность рейтинга */
@media (max-width: 992px) {
    .player-rating-block {
        margin-top: 16px;
    }
}

/* Светлая тема */
html[data-theme="light_japan"] .player-rating-block {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light_japan"] .rating-value-lg {
    color: #d4a500;
}

html[data-theme="light_japan"] .rating-suffix,
html[data-theme="light_japan"] .rating-count-compact,
html[data-theme="light_japan"] .rate-label-sm {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light_japan"] .star-btn-sm {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light_japan"] .star-btn-sm:hover {
    background: rgba(212, 165, 0, 0.2);
    border-color: rgba(212, 165, 0, 0.5);
    color: #d4a500;
}

html[data-theme="light_japan"] .star-btn-sm.active {
    background: #d4a500;
    border-color: #d4a500;
    color: #fff;
}