/* Темная тема - цвета и фоны */
html,
body,
body.dark-theme,
body.page-wrapper,
.page-wrapper {
    color: #e0e0e0 !important;
    background-color: #0c0202 !important;
}

/* Восстанавливаем фон только для body и html */
html,
body {
    background-color: #0c0202 !important;
}



header {
    background-color: #140001;
    color: #e0e0e0;
}

nav a {
    color: #e0e0e0;
}

nav a:hover {
    background-color: #333333;
}

.content-section {
    color: #e0e0e0;
}

.btn {
    background-color: #0d7377;
    color: white;
}

.btn:hover {
    background-color: #14a085;
}

footer {
    background-color: #140001;
    color: #e0e0e0;
}
#theme-toggle {
    color: #e0e0e0;
}

#theme-toggle:hover {
    background-color: #333333;
}

/* Разделительная полоса - темная тема */
.content-block.with-sidebar .content-area {
    border-right-color: #ef0000;
}

.content-block.with-border{
    border-color: #ef00003d;
}

@media (max-width: 768px) {
    .content-block.with-sidebar .content-area {
        border-bottom-color: #ef0000;
    }
}

/* Hero блок - темная тема - ВСЕ обводки красные */
.poster-container {
    border-color: #ef0000;
}

.player-container {
    border: 1px solid #ef0000;
    background-color: #1e1e1e;
}

.info-item {
    border-color: #ef0000; /* Исправлено на красный */
    background-color: #1e1e1e;
}

.series-info {
    color: #e0e0e0;
}

.play-icon {
    color: #ef0000;
}

.player-label {
    color: #e0e0e0;
}

.info-text, .info-label {
    color: #e0e0e0;
}

.circular-menu.active .circular-menu-item:nth-child(1) {
    color: #fff;
}

.circular-menu.active .circular-menu-items .circular-menu-item {
    color: #fff;
}

/* ===== ТЕМНАЯ ТЕМА - СЛАЙДЕР ЭПИЗОДОВ ===== */

.season-tabs {
    background-color: #140001;
}

.season-tab {
    background-color: #140001;
    color: #e0e0e0;
    border-right-color: #ef0000;
}

.season-tab:hover {
    background-color: #2a0000;
}

.season-tab.active {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
}

.slider-arrow {
    background-color: rgba(239, 0, 0, 0.1);
    border-color: #ef0000;
    color: #e0e0e0;
}

.slider-arrow:hover {
    background-color: rgba(239, 0, 0, 0.2);
    border-color: #ff3333;
}




@media (max-width: 767px) {
    .season-tab {
        border-color: #ef0000;
        background-color: #140001;
    }
}

/* ===== ТЕМНАЯ ТЕМА - КОРЕШКИ КНИГ 970px ===== */
@media (max-width: 970px) {
    .info-item {
        background-color: #1e1e1e;
        border-color: #ef0000;
    }
}

/* Стили для единого кругового меню переопределяются в main style.css */

/* ===== ТЕМНАЯ ТЕМА - НОВЫЙ ПОИСК ===== */

.search-trigger:hover {
    background: rgba(239, 0, 0, 0.1);
}

.search-icon {
    color: #e0e0e0;
}

.search-trigger:hover .search-icon {
    color: #ff3333;
}

.search-label {
    color: #e0e0e0;
}

.search-trigger:hover .search-label {
    color: #ff3333;
}

.modal-search-container {
    background: linear-gradient(135deg, #140001 0%, #0c0202 100%);
    border-color: #ef0000;
}

.modal-search-input {
    color: #e0e0e0;
}

.modal-search-input::placeholder {
    color: #666;
}

.search-results {
    background: linear-gradient(135deg, #140001 0%, #0c0202 100%);
    border-color: #ef0000;
}

.search-results h3 {
    color: #e0e0e0;
}

.search-result-item {
    background: rgba(239, 0, 0, 0.05);
    border-color: rgba(239, 0, 0, 0.2);
    color: #e0e0e0;
}

.search-result-item:hover {
    background: rgba(239, 0, 0, 0.1);
    border-color: rgba(239, 0, 0, 0.4);
}

.search-result-title {
    color: #ffffff;
}

.search-result-description {
    color: #aaa;
}

/* Подсветка найденных слов в результатах поиска (темная тема) */
.search-highlight {
    background-color: rgba(66, 153, 225, 0.25);
    color: #60a5fa;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: underline;
    text-decoration-color: #60a5fa;
    text-underline-offset: 2px;
}

.virtual-keyboard {
    background: linear-gradient(135deg, #140001 0%, #0c0202 100%);
    border-color: #ef0000;
}

.keyboard-header {
    border-bottom-color: #ef0000;
}

.keyboard-title {
    color: #e0e0e0;
}

.language-button {
    color: #e0e0e0;
}

.keyboard-key {
    background: rgba(239, 0, 0, 0.1);
    border-color: rgba(239, 0, 0, 0.3);
    color: #e0e0e0;
}

.keyboard-key:hover {
    background: rgba(239, 0, 0, 0.2);
    border-color: rgba(239, 0, 0, 0.5);
}

.close-search {
    background: rgba(239, 0, 0, 0.1);
    border-color: rgba(239, 0, 0, 0.3);
    color: #e0e0e0;
}

.close-search:hover {
    background: rgba(239, 0, 0, 0.2);
}

.no-results,
.loading-results {
    color: #aaa;
}

.cancel-btn {
    color: #e6d8d8 !important;
}

.description {
    color: #e6e0e0;
}

.video-card-rating .video-card-rating-value,
.video-card-rating .video-card-rating-votes,
.video-card-rating .video-card-rating-empty {
    color: #bdb8b8;
}

.video-card-rating span[style*="color: gold"] {
    color: gold;
}

.pagination-btn:hover:not(.disabled):not(.current) {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-header h1 .season-episode-info {
    color: white;
}

/* ===== ЦВЕТОВЫЕ СВОЙСТВА ИЗ STYLE.CSS ===== */

/* Кнопки и ссылки */
.seasons-button {
    color: white;
}

/* Логотип */
.logo-text {
    color: #cecbcb;
}

/* Круговое меню */
.circular-menu {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.circular-menu.active {
    background: linear-gradient(229deg, #411919, #5b2816, #3b1b37, #140512);
}

.home-icon {
    fill: white;
}

.circular-menu-item {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.circular-menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.close-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.close-icon {
    fill: white;
}

.quiz-card {
    background: #160606;
    border: 1px solid var(--quiz-border);
}

.quiz-card-description {
    color: var(--quiz-text-secondary);
}

/* Плеер и кнопки */
.player-label-home {
    color: #ffffff00;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.faq-answer-text a{
    color: #ed8c8c;
}

.modals-description-link{
    color: #eb8282!important;
}

.watch-series-button {
    background: linear-gradient(135deg, #b8360a, #8b2500);
    color: white;
    box-shadow: 0 6px 25px rgba(184, 54, 10, 0.4);
}

.watch-series-button-link {
    color: #ffff;
}

@media screen and (max-width: 500px) {
    .watch-series-button2 {
        background-color: #7f0909;
    }
    .watch-series-button2 a {
        color: #ffff;
    }
}

.mute-button-home.sound-on svg {
    fill: red;
}

.poster-info {
    background-color: #14010199 !important;
}

.series-info {
    color: #fff;
    font-weight: 600;
}

.player-container {
    background-color: rgb(30, 30, 30);
}

@media screen and (max-width: 500px) {
    .player-container a {
        color: #ffff;
    }
}

.player-block-home {
    background-color: #7f0909;
}

.info-item:hover .info-text,
.info-item:hover .info-label,
.info-item:hover .info-icon,
.info-item:hover .gallery-count {
    color: white;
}

.info-item:active {
    box-shadow: 0 5px 15px rgba(184, 54, 10, 0.4);
}

@media (max-width: 970px) {
    .info-item:hover {
        box-shadow: 0 8px 25px rgba(184, 54, 10, 0.5);
    }
}

/* Рейтинги */
.rating-label {
    color: #cfcbcb;
}

.series-title {
    color: #cfcbcb;
}

.series-title4 {
    color: #cfcbcb;
}

.star-svg.star-filled {
    fill: #FFD700;
}

.star-svg.star-empty {
    fill: #DDD;
    stroke: #CCC;
}

.star-rating .star .star-svg {
    fill: #DDD;
    stroke: #CCC;
}

.star-rating .star:hover .star-svg,
.star-rating .star.hover .star-svg {
    fill: #FFD700;
    stroke: #FFD700;
}

.star-rating .star.selected .star-svg {
    fill: #FFD700;
    stroke: #FFD700;
}

.star-rating.voted .star.selected .star-svg {
    fill: #4CAF50;
    stroke: #4CAF50;
}

.episode-rating-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-text {
    color: #cfcbcb;
}

.star-icon {
    color: #f5c518;
}

.star-outline {
    color: #cfcbcb;
}

.rating-score {
    color: #cfcbcb;
}

.rating-max {
    color: #cfcbcb;
}

.rating-votes {
    color: #cfcbcb;
}

.rate-button {
    color: #cfcbcb;
}

.rate-button:hover {
    color: #136cb2;
}

.element-reviews {
    color: #cfcbcb;
}

.number-reviews {
    color: #cfcbcb;
}

.number-reviews span {
    color: #f5c518;
}

/* Слайдер эпизодов */
.season-tabs {
    background-color: #2a2a2a;
}

.season-tab {
    background-color: #430a0a;
    color: #cfcbcb;
    border-right: 1px solid;
}

.season-tab:hover {
    background-color: #3a3a3a;
}

.season-tab.active {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
}

.slider-arrow {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #ef00003d;
    color: #cfcbcb;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.episode-card {
    background-color: #1e1e1e;
    border: 2px solid;
}

.episode-card:hover {
    border-color: #2f0101;
}

.episode-progress {
    color: #999;
}

.episode-player {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.episode-player::before {
    background: linear-gradient(135deg, 
        rgba(255, 20, 147, 0.1) 0%, 
        rgba(138, 43, 226, 0.1) 50%, 
        rgba(75, 0, 130, 0.1) 100%);
}

.play-button-gradient {
    background: linear-gradient(135deg, #ff149394 0%, #8a2be226 50%, #4b00827d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.play-button-gradient:hover {
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
}

.episode-title {
    color: #cfcbcb;
}

.episode-duration {
    color: #999;
}

@media (max-width: 767px) {
    .season-tabs {
        background-color: transparent;
    }
    
    .season-tab {
        border: 1px solid #ef00003d;
        background-color: #2a2a2a;
    }
}

@media (max-width: 540px) {
    .season-tabs {
        background-color: transparent;
    }
    
    .season-tab {
        border: 1px solid #ef00003d;
        background-color: #2a2a2a;
    }
}

/* Модальные окна */
.plot-more-btn, .season-more-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
}

.mfc-backdrop {
    background: rgba(0,0,0,.7);
}

.mfc-dialog {
    background: #111;
    border: 1px solid #ef00003d;
}

.mfc-header {
    border-bottom: 1px solid #ef00003d;
}

.mfc-title {
    color: #cfcbcb;
}

.mfc-close {
    border: 1px solid #ef00003d;
    color: #cfcbcb;
}

/* Актеры */
.actors-header {
    border-bottom: 1px solid #ef00003d;
}

.actors-title {
    color: #cfcbcb;
}

.actors-all-link {
    background-color: #2d010cc2;
    color: #cfcbcb;
    border: 1px solid #ef00003d;
}

.actors-all-link:hover {
    background-color: #3a3a3a;
    border-color: #555;
}

/* Преимущества */
.benefits-text {
    color: #cfcbcb;
}

.benefits-text strong {
    color: #cfcbcb;
}

/* Описания */
.season-description-preview {
    color: var(--text-color, #c1b8b8);
}

.episode-description-preview {
    color: var(--text-color, #c1b8b8);
}

.episode-description-preview h2 {
    color: #ffffff;
}

.episode-more-btn {
    background: linear-gradient(135deg, #2c5f2d, #4a8b3a);
    color: #ffffff;
}

.episode-more-btn:hover {
    background: linear-gradient(135deg, #4a8b3a, #6bb26e);
    box-shadow: 0 4px 12px rgba(74, 139, 58, 0.3);
}

/* Поиск */
.search-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    color: #cfcbcb;
    stroke: currentColor;
}

.search-trigger:hover .search-icon {
    color: #ffffff;
}

.search-label {
    color: #cfcbcb;
}

.search-trigger:hover .search-label {
    color: #ffffff;
}

.search-modal {
    background: rgba(0, 0, 0, 0.9);
}

.modal-search-container {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-search-input {
    color: #cfcbcb;
}

.modal-search-input::placeholder {
    color: #777;
}

.modal-search-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.modal-search-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff3300);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.virtual-keyboard-button {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
}

.virtual-keyboard-button:hover {
    background: linear-gradient(135deg, #357abd, #2968a3);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.close-search {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ef00003d;
    color: #cfcbcb;
}

.close-search:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-results {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.search-results h3 {
    color: #cfcbcb;
}

.search-result-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #ef00003d;
    color: #cfcbcb;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-result-title {
    color: #ffffff;
}

.search-result-description {
    color: #999;
}

.search-highlight {
    background-color: rgba(66, 153, 225, 0.2);
    color: #60a5fa;
    text-decoration-color: #60a5fa;
}

.no-results,
.loading-results {
    color: #777;
}

.virtual-keyboard {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.keyboard-key {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ef00003d;
    color: #cfcbcb;
}

.keyboard-key:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.keyboard-key:active {
    background: rgba(255, 255, 255, 0.3);
}

.keyboard-key.backspace,
.keyboard-key.enter {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-color: transparent;
    color: white;
}

.keyboard-key.backspace:hover,
.keyboard-key.enter:hover {
    background: linear-gradient(135deg, #ff5252, #ff3300);
}

.search-results-group-title {
    color: #999;
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 740px) {
    .rating-section {
        background-color: #1c1010;
    }
}

/* Результаты поиска */
.search-result-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #ef00003d;
    color: #cfcbcb;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-result-image {
    border: 1px solid #ef00003d;
    background: rgba(255, 255, 255, 0.05);
}

.search-result-title {
    color: #ffffff;
}

.search-result-description {
    color: #999;
}

.search-result-metadata {
    color: #777;
}

.search-results-group-title {
    color: #999;
    background: rgba(255, 255, 255, 0.03);
}

/* Виртуальная клавиатура */
.virtual-keyboard {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.keyboard-header {
    border-bottom: 1px solid;
}

.keyboard-title {
    color: #cfcbcb;
}

.language-switch {
    background: rgba(255, 255, 255, 0.1);
}

.language-button {
    color: #cfcbcb;
}

.language-button.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.language-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.keyboard-key {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ef00003d;
    color: #cfcbcb;
}

.keyboard-key:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.keyboard-key:active {
    background: rgba(255, 255, 255, 0.3);
}

.keyboard-key.backspace,
.keyboard-key.enter {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-color: transparent;
    color: white;
}

.keyboard-key.backspace:hover,
.keyboard-key.enter:hover {
    background: linear-gradient(135deg, #ff5252, #ff3300);
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #ef00003d;
}

.faq-item:hover {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.faq-question h3 {
    color: #ffffff;
}

.faq-toggle {
    color: #ff6b6b;
}

.faq-answer p {
    color: #cfcbcb;
}

.faq-answer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.4);
}

.faq-answer::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.6);
}

.faq-answer {
    scrollbar-color: rgba(255, 107, 107, 0.4) rgba(255, 255, 255, 0.05);
}

/* Сезоны */
.season-header {
    border-bottom: 2px solid;
}

.season-header h1 {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.season-meta span {
    background: rgba(255, 107, 107, 0.2);
    color: #ffffff;
    border: 1px solid #ef00003d;
}

.season-description p {
    color: #cfcbcb;
}

.episodes-section h2 {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.episode-card {
    background-color: #140a0a;
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 4px 5px rgba(255, 107, 107, 0.2);
}

.episode-info h3 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.episode-description {
    color: #cfcbcb;
}

.episode-meta {
    color: #a0a0a0;
}

.seasons-navigation {
    border-top: 2px solid #ef00003d;
}

.seasons-navigation h3 {
    color: #ffffff;
}

.season-link {
    background: rgba(255, 107, 107, 0.2);
    color: #ffffff;
    border: 1px solid #ef00003d;
}

.season-link:hover {
    background: rgba(255, 107, 107, 0.4);
    border-color: rgba(255, 107, 107, 0.6);
}

.season-link.active {
    background: rgba(255, 107, 107, 0.6);
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

/* Мобильные overlay */
.mobile-poster-overlay {
    background: linear-gradient(#000000a6, rgb(0 0 0));
    color: white;
}

.mobile-overlay-title {
    color: #00ff88;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.mobile-overlay-meta {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@media (max-width: 361px) {
    .mobile-poster-overlay {
        background: linear-gradient(#00000000, rgb(0 0 0));
    }
}

/* Карточки сезонов */
.content-block.list {
    border-color: #2b2323;
}

@media (max-width: 480px) {
    .content-block.with-border {
        border-color: #2b2323;
    }
}

.season-card-style {
    background: rgba(255,255,255,0.03);
    border: 1px solid #ef00003d;
}

.season-title {
    color: #00ff88;
}

.season-meta-style {
    color: #888;
}

.key-episodes-title {
    color: #00ff88;
}

.key-episode-link {
    color: #66ccff;
}

.watch-button-style {
    color: #ffff;
    background-color: #7f0909;
}

/* Блоки действий сезонов */
@media (min-width: 491px) {
    .episodes-block {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid #ef00003d;
    }
    
    .episodes-block-title {
        color: #00ff88;
    }
    
    .episode-block-link {
        color: #66ccff;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .episode-block-link:hover {
        background: rgba(102, 204, 255, 0.15);
        color: #ffffff;
    }
    
    .watch-block {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid #ef00003d;
        color: #fff;
    }
    
    .watch-block:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .watch-block .tv-icon {
        color: #00ff88;
    }
    
    .watch-block-text {
        color: #00ff88;
    }
    
    .watch-block-meta {
        color: #ccc;
    }
}

/* Кнопки "читать еще" */
.season-info .read-more-btn {
    color: #00ff88 !important;
}

.season-info .read-more-btn:hover {
    color: #66ffaa !important;
}

.season-info .read-more-btn:active {
    color: #00cc6a !important;
}

/* Breadcrumbs */
.breadcrumbs {
    color: #ccc;
}

.breadcrumbs {
    color: #dfdede !important;
    margin-top: 10px !important;
}

.breadcrumbs a {
    color: #00ff88;
}

.breadcrumbs a:hover {
    color: #66ffaa;
}

.breadcrumbs span {
    color: #fff;
}

/* Порядок просмотра */
.order-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #ef00003d;
}

.step-number {
    background: #00ff88;
    color: #000;
}

.step-content h3 {
    color: #00ff88;
}

.step-link {
    color: #66ccff;
}

.step-link:hover {
    color: #ffffff;
}

/* Таблицы сезонов */
.season-table-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #ef00003d;
}

.season-table-block h3 {
    color: #00ff88;
}

.episodes-list li {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid;
}

.seasons-table-container a,
.seasons-table-container .episodes-list a,
.season-table-block .key-episode-link,
.season-table-block .episode-block-link {
    color: #ffb6c1;
}

.seasons-table-container a:visited,
.season-table-block .key-episode-link:visited,
.season-table-block .episode-block-link:visited {
    color: #ffb6c1;
}

.seasons-table-container a:hover,
.season-table-block .key-episode-link:hover,
.season-table-block .episode-block-link:hover {
    color: #ff85a2;
}

.open-episodes-btn {
    color: #ffb6c1;
}

.open-episodes-btn:hover {
    color: #ff85a2;
    background: rgba(255, 182, 193, 0.05);
}

.open-episodes-btn:focus {
    outline: 2px solid rgba(255,182,193,0.35);
}

.season-episodes-hidden .episodes-list li {
    border-left-color: transparent;
}

.mfc-content .episodes-list a,
.mfc-content .season-episodes-hidden a {
    color: #ffb6c1 !important;
}

.mfc-content .episodes-list a:visited {
    color: #ffb6c1;
}

.mfc-content .episodes-list a:hover {
    color: #ff85a2 !important;
}

/* Кнопки плей */
.play-button {
    background: rgb(61 1 1 / 50%);
    border: 2px solid;
    backdrop-filter: blur(1px);
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: white;
}

.watch-text-button {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.watch-text-button:hover {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
    color: white;
}

/* Эпизоды и навигация */
.episode-link:hover .episode-card {
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.3);
}

.play-overlay {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid;
}

.episode-link:hover .play-overlay {
    background: rgba(255, 107, 107, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
}

.play-icon {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.episode-player {
    background: #2e2e2e;
    color: #fff;
}

.swiper-slide .play-overlay {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.swiper-slide:hover .play-overlay {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.swiper-slide-active .play-overlay {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.swiper-slide-active:hover .play-overlay {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.4);
}

.swiper-slide-active .play-overlay svg {
    fill: #dc3545;
}

.play-overlay svg {
    fill: #fff;
}

.swiper-scrollbar {
    background: rgba(255,255,255,0.2);
}

.swiper-scrollbar-drag {
    background: rgba(255,255,255,0.8);
}

@media (max-width: 920px) {
    .swiper-scrollbar {
        background: rgba(255,255,255,0.3);
    }
    .swiper-scrollbar-drag {
        background: rgba(255,255,255,0.9);
    }
    
    .episode-progress {
        color: #999;
    }
}

.series-nav {
    background: #2563eb;
    color: #fff;
    border: 1px solid #ef00003d;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

.series-nav:hover,
.series-nav:focus-visible {
    background: #1d4ed8;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.series-nav[disabled],
.series-nav.swiper-button-disabled {
    background: rgba(128, 128, 128, 0.4) !important;
    border-color: rgba(128, 128, 128, 0.6) !important;
    color: rgba(128, 128, 128, 0.8) !important;
    box-shadow: 0 2px 8px rgba(128, 128, 128, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.15) inset !important;
}

.series-nav[disabled]:hover,
.series-nav.swiper-button-disabled:hover {
    background: rgba(128, 128, 128, 0.4) !important;
    box-shadow: 0 2px 8px rgba(128, 128, 128, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.15) inset !important;
}

.title-rating-block .rating-label {
    color: var(--muted-color, #bdbdbd) !important;
}

.title-rating-block .rating-value {
    color: var(--text-color, #e6e6e6) !important;
}

.episode-section-title {
    color: var(--text-color, #e6e6e6);
}

.all-seasons-btn {
    color: #4a9eff !important;
}

.all-seasons-btn:hover {
    background: rgba(74, 158, 255, 0.1) !important;
    color: #4a9eff !important;
}

.episode-caption {
    color: #fff;
    background: rgba(0,0,0,.72);
    box-shadow: 0 -10px 16px rgba(0,0,0,.35) inset;
}

.episode-caption .progress-eye {
    color: #e8e8e8;
}

.episode-caption .progress-value {
    color: #e8e8e8;
}

.episode-caption .tooltip {
    background: rgba(0,0,0,.9);
    color: #fff;
}

.episode-caption .tooltip::after {
    border-top-color: rgba(0,0,0,.9);
}

@media (min-width: 921px) {
    .series-slider-container .mobile-topline .play-overlay {
        background: rgba(0,0,0,.55);
    }
}

@media (max-width: 920px) {
    .series-slider-container .mobile-topline .play-overlay {
        background: rgba(0,0,0,.55);
    }
}

/* Content blocks */
.content-block-season1 {
    border: 2px solid #ef00003d;
}

.content-block-season1 .content-area::after {
    background-color: #ef0000;
}

.content-block.with-border {
    border: 1px solid #ef00003d;
}

.sidebar-area-season1 {
    border: 1px solid #ef0000;
}

/* Кнопка "Читать далее" */
.read-more-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.read-more-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Модальные окна */
.modal-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.avatar-select-btn{
    background: rgb(0 61 2) !important;
}

.modal-content {
    background: #1a1a1a;
    box-shadow: none;
}

.modal-header {
    background: linear-gradient(135deg, #0b0000, #290101);
    border-bottom: 1px solid #5c0202;
}

.modal-header h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close {
    color: white;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    color: #cfcbcb;
}

.modal-body h2 {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

/* Видео карточки */
.video-card {
    background-color: #140001;
    border: 1px solid #ef00003d;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.video-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.16);
}

.video-card-description {
    color: #bdb8b8;
}

.video-card-button {
    background: #007bff;
    color: #fff;
}

.video-card-button:hover {
    background: #0056b3;
}

/* Анимация рейтинга */
@keyframes ratingPulse {
    0% { background: #fffbe6; color: #FFD700; }
    50% { background: #fffbe6; color: #ff9800; }
    100% { background: none; color: inherit; }
}

/* Info blocks */
.info-item {
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.info-bg-soundtrack {
    background: url('/static/images/posters/home/poster-info-soundtrack.webp') center center/cover no-repeat;
}

.info-bg-gallery {
    background: url('/static/images/posters/home/poster-info-photo-gallery.webp') center center/cover no-repeat;
}

.info-bg-behind {
    background: url('/static/images/posters/home/poster-info-behind-the-scenes.webp') center center/cover no-repeat;
}

.info-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.7) 100%);
}

.info-item-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.info-item-description {
    color: #fff;
}

.info-item:hover .info-overlay {
    background: rgba(0,0,0,0.25);
}

.info-item:hover .info-overlay::before {
    background: rgba(0,0,0,0.45);
}

.info-text, .info-label {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.seasons-button {
    color: #fff;
    background: rgba(0,0,0,0.25);
}

.seasons-button:hover {
    background: rgba(0,0,0,0.45);
}

/* Кнопки комментариев */
.add-comment-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.add-comment-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.episode-info {
    color: #666;
}

.comments-count-info {
    background-color: #110707;
    border-left: 4px solid;
}

.comments-count-info h3 {
    color: #ddd9d9;
}

.comments-count-info p {
    color: #ddd9d9;
}

.page-header h1 {
    color: white;
}

/* Pagination */
.pagination-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid #ef00003d;
}

.pagination-btn:hover:not(.disabled):not(.current) {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.cast-photo {
    border: 3px solid #752f2fb8;
}

/* ===== ТЕМНАЯ ТЕМА - РЕЙТИНГ ВИКТОРИНЫ ===== */
/* Разделительная полоса после каждого игрока - светлая полоса для темной темы */
.leaderboard-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.leaderboard-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .quiz-result-stats {
    background: #210505 !important;
    border: 1px solid #270303 !important;
}

body.dark-theme .quiz-result-screen {
    background: #0e0202de !important;
    border: 1px solid var(--quiz-border) !important;
}

/* Переопределения для элементов викторины в темной теме */
body.dark-theme .quiz-answer-option {
    color: #e0e0e0 !important;
    background: #1c0606 !important;
    border-color: var(--quiz-border) !important;
}

body.dark-theme .quiz-answer-option .answer-number {
    color: #e0e0e0 !important;
}

body.dark-theme .quiz-answer-option .answer-text {
    color: #e0e0e0 !important;
}

body.dark-theme .quiz-answer-option:hover {
    background: rgba(28, 6, 6, 0.8) !important;
}

body.dark-theme .quiz-question-text {
    background: #240808 !important;
    color: #e0e0e0 !important;
    border-color: var(--quiz-border) !important;
}

body.dark-theme .quiz-game-screen {
    background: #0e0202de !important;
    border: 1px solid var(--quiz-border) !important;
}

.li-span1 {
    color: #51cfa7;
}