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

.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;
}

/* Iframe внутри pseudo-fullscreen: заполняет весь контейнер */
.player-frame-container.is-pseudo-fullscreen .player-iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* iOS: safe-area padding для iframe pseudo-fullscreen */
@supports (-webkit-touch-callout: none) {
    .player-frame-container.is-pseudo-fullscreen {
        padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    }
}

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

/* === Mobile / iOS fixes === */
/* iOS: предотвращаем зависания при inline-воспроизведении */
@supports (-webkit-touch-callout: none) {
    .player-video {
        /* iOS требует playsinline для inline-воспроизведения */
        -webkit-playsinline: true;
    }

    /* iOS fullscreen: убираем safe-area padding при pseudo-fullscreen */
    .player-video-container.is-pseudo-fullscreen {
        padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    }

    .player-video-container.is-pseudo-fullscreen .player-video {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Android WebView: фикс чёрного экрана при fullscreen */
.player-video-container.is-pseudo-fullscreen .player-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
}

/* Pseudo-fullscreen: кастомные контролы поверх видео */
.player-video-container.is-pseudo-fullscreen .cp-controls {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
}

.player-video-container.is-pseudo-fullscreen .cp-overlay {
    z-index: 199;
}

/* Mobile: кнопка play увеличена для touch */
@media (max-width: 768px) {
    .play-button {
        width: 72px;
        height: 72px;
        font-size: 28px;
        border-width: 3px;
    }

    .video-box, .img-box {
        /* Убираем -webkit-overflow-scrolling чтобы не было лагов при скролле */
        -webkit-overflow-scrolling: auto;
    }
}

/* Панель управления - используем оригинальные стили 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: 14px 16px;
    border-radius: var(--radius-lg, 12px);
    background: color-mix(in srgb, var(--bg-primary, #09090b) 86%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.video-content.underplayer-panel {
    padding: 0;
    background: transparent !important;
}

.video-content .underplayer-left {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 4px;
    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.88);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html[data-theme="hard_japan"] .video-content .underplayer-layout {
    background: rgba(10, 8, 6, 0.92);
    border-color: rgba(212, 175, 55, 0.12);
}

.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, color-mix(in srgb, var(--color-primary, #00f0ff) 18%, transparent) 30%, color-mix(in srgb, var(--color-primary, #00f0ff) 18%, transparent) 70%, transparent);
    margin: 8px 0;
}

/* Заголовки секций */
.video-content .primery {
    margin: 0 0 6px 0;
    margin-top: 0;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
    display: flex;
    align-items: center;
    gap: 5px;
}

.primery-icon {
    font-size: 10px;
    color: var(--color-primary, #00f0ff);
    opacity: 0.7;
}

/* Сетка кнопок */
.video-content .btn-block {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}
    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;
}

/* ═══════════════════════════════════════════════════
   Кнопки плееров и озвучки — современный стиль
   ═══════════════════════════════════════════════════ */

.btn-tag--player, .btn-tag--voice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    margin: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary, #d4d4d8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 200ms cubic-bezier(.4, 0, .2, 1);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Glow-подложка при наведении */
.btn-tag--player::before, .btn-tag--voice::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 250ms;
    pointer-events: none;
}
.btn-tag--player::before {
    background: radial-gradient(circle at center, var(--color-primary, #00f0ff), transparent 70%);
}
.btn-tag--voice::before {
    background: radial-gradient(circle at center, var(--color-purple, #8b5cf6), transparent 70%);
}

/* Иконки внутри кнопок */
.player-icon {
    display: inline-block;
    font-size: 9px;
    opacity: 0.6;
    transition: opacity 200ms, transform 200ms;
}

.voice-icon {
    display: inline-block;
    font-size: 9px;
    opacity: 0.6;
    transition: opacity 200ms, transform 200ms;
}

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

/* ── Hover ── */
.btn-tag--player:hover, .btn-tag--voice:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-tag--player:hover {
    border-color: color-mix(in srgb, var(--color-primary, #00f0ff) 45%, transparent);
    background: color-mix(in srgb, var(--color-primary, #00f0ff) 12%, transparent);
    color: #fff;
}
.btn-tag--player:hover::before { opacity: 0.08; }
.btn-tag--player:hover .player-icon {
    opacity: 1;
    transform: scale(1.15);
}

.btn-tag--voice:hover {
    border-color: color-mix(in srgb, var(--color-purple, #8b5cf6) 45%, transparent);
    background: color-mix(in srgb, var(--color-purple, #8b5cf6) 12%, transparent);
    color: #fff;
}
.btn-tag--voice:hover::before { opacity: 0.08; }
.btn-tag--voice:hover .voice-icon {
    opacity: 1;
    transform: scale(1.15);
}

/* ── Active (выбранный) ── */
.btn-tag--player.active {
    background: var(--color-primary, #00f0ff) !important;
    color: #000 !important;
    border-color: var(--color-primary, #00f0ff) !important;
    font-weight: 700;
    box-shadow: 0 0 16px color-mix(in srgb, var(--color-primary, #00f0ff) 35%, transparent);
}
.btn-tag--player.active .player-icon {
    opacity: 1;
    color: #000;
}

.btn-tag--voice.active {
    background: var(--color-purple, #8b5cf6) !important;
    color: #fff !important;
    border-color: var(--color-purple, #8b5cf6) !important;
    font-weight: 700;
    box-shadow: 0 0 16px color-mix(in srgb, var(--color-purple, #8b5cf6) 35%, transparent);
}
.btn-tag--voice.active .voice-icon {
    opacity: 1;
    color: #fff;
}

/* ── Нажатие ── */
.btn-tag--player:active, .btn-tag--voice:active {
    transform: scale(0.95);
}

/* ── Фокус ── */
.btn-tag--player:focus-visible,
.btn-tag--voice:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary, #00f0ff) 55%, transparent);
    outline-offset: 2px;
}

/* ── Светлые темы ── */
html[data-theme="light"] .btn-tag--player,
html[data-theme="light_japan"] .btn-tag--player,
html[data-theme="light"] .btn-tag--voice,
html[data-theme="light_japan"] .btn-tag--voice {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.09);
    color: rgba(0, 0, 0, 0.65);
}
html[data-theme="light"] .btn-tag--player:hover,
html[data-theme="light_japan"] .btn-tag--player:hover {
    background: color-mix(in srgb, var(--color-primary) 14%, #fff);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
html[data-theme="light"] .btn-tag--voice:hover,
html[data-theme="light_japan"] .btn-tag--voice:hover {
    background: color-mix(in srgb, var(--color-purple, #8b5cf6) 14%, #fff);
    border-color: var(--color-purple, #8b5cf6);
    color: var(--color-purple, #8b5cf6);
}
html[data-theme="light"] .btn-tag--player.active,
html[data-theme="light_japan"] .btn-tag--player.active {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
}
html[data-theme="light"] .btn-tag--voice.active,
html[data-theme="light_japan"] .btn-tag--voice.active {
    background: var(--color-purple, #8b5cf6) !important;
    color: #fff !important;
    border-color: var(--color-purple, #8b5cf6) !important;
}
html[data-theme="light"] .primery,
html[data-theme="light_japan"] .primery {
    color: rgba(0, 0, 0, 0.45);
}

/* ── hard_japan ── */
html[data-theme="hard_japan"] .btn-tag--player,
html[data-theme="hard_japan"] .btn-tag--voice {
    border-color: rgba(212, 175, 55, 0.14);
    background: rgba(212, 175, 55, 0.04);
}
html[data-theme="hard_japan"] .btn-tag--player:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--color-primary, #d4af37);
}
html[data-theme="hard_japan"] .btn-tag--player.active {
    background: var(--color-primary, #d4af37) !important;
    border-color: var(--color-primary, #d4af37) !important;
    color: #000 !important;
}

/* ── Мобилки ── */
@media (max-width: 768px) {
    .btn-tag--player, .btn-tag--voice {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }
}

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

/* Строка под плеером: одинаковая высота колонок */
.underplayer-row {
    align-items: stretch !important;
}

/* Блок под плейлистом: Продолжить + Рейтинг */
.underplaylist-actions{
    margin-top: 12px;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100% - 12px); /* вычитаем margin-top */
}

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: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 200ms cubic-bezier(.4, 0, .2, 1);
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.episode-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--color-primary, #00f0ff);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transform: scaleY(0.5);
    transition: opacity 200ms, transform 200ms;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.episode-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.episode-item.active {
    background: var(--color-primary, #00f0ff);
    color: #000;
    border-color: var(--color-primary, #00f0ff);
    font-weight: 700;
    box-shadow: 0 0 16px color-mix(in srgb, var(--color-primary, #00f0ff) 30%, transparent);
}

.episode-item.active::before {
    opacity: 0;
}

.episode-number {
    width: 32px;
    height: 32px;
    background: color-mix(in srgb, var(--color-primary, #00f0ff) 18%, transparent);
    color: var(--color-primary, #00f0ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 200ms;
}

.episode-number--range {
    width: auto;
    min-width: 52px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

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

.episode-item.active .episode-title {
    color: #000;
}

.premium-icon {
    color: #ffd700;
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.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: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, 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: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: -0.01em;
    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: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, 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: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: -0.01em;
    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: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, 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: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: -0.01em;
    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: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, 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: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: -0.01em;
    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: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 200ms cubic-bezier(.4, 0, .2, 1);
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.episode-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--color-primary, #00f0ff);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transform: scaleY(0.5);
    transition: opacity 200ms, transform 200ms;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.episode-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.episode-item.active {
    background: var(--color-primary, #00f0ff);
    color: #000;
    border-color: var(--color-primary, #00f0ff);
    font-weight: 700;
    box-shadow: 0 0 16px color-mix(in srgb, var(--color-primary, #00f0ff) 30%, transparent);
}

.episode-item.active::before {
    opacity: 0;
}

.episode-number {
    width: 32px;
    height: 32px;
    background: color-mix(in srgb, var(--color-primary, #00f0ff) 18%, transparent);
    color: var(--color-primary, #00f0ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 200ms;
}

.episode-number--range {
    width: auto;
    min-width: 52px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: -0.2px;
}

.episode-item.active .episode-number {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

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

.episode-item.active .episode-title {
    color: #000;
}

.premium-icon {
    color: #ffd700;
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.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: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, 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: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: -0.01em;
    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: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, 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: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: -0.01em;
    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: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, 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: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: -0.01em;
    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: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, 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: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: -0.01em;
    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;
}