/* Gothic font for Slate (Минимал) theme */
@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&display=swap');
/* Правая колонка (Топ скачиваемых, Популярные фильмы, Онлайн) — всегда видна */
#right-sidebar,
.site-right-sidebar {
    display: block !important;
    min-width: 12rem;
    flex-shrink: 0 !important;
    color: #1f2937 !important;  /* читаемый текст по умолчанию */
}
.dark .site-right-sidebar,
html.dark .site-right-sidebar {
    color: #e5e7eb !important;
}
.site-right-sidebar h3 {
    color: inherit !important;
}
.site-right-sidebar p,
.site-right-sidebar span,
.site-right-sidebar a {
    color: inherit !important;
}
.site-right-sidebar a:hover {
    opacity: 0.9;
}
.site-right-sidebar .text-gray-500,
.site-right-sidebar .text-slate-400 {
    opacity: 0.9;
}
/* Содержимое колонки — принудительно видимое (на случай переопределения темой) */
.site-right-sidebar .top-downloads-block,
.site-right-sidebar .popular-movies-block,
.site-right-sidebar .online-block {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.site-right-sidebar .top-downloads-block h3,
.site-right-sidebar .popular-movies-block h3,
.site-right-sidebar .online-block h3 {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}
.site-right-sidebar .top-downloads-block h3,
.site-right-sidebar .popular-movies-block h3 {
    color: #374151 !important;  /* серый в светлой теме */
}
.dark .site-right-sidebar .top-downloads-block h3,
.dark .site-right-sidebar .popular-movies-block h3,
html.dark .site-right-sidebar .top-downloads-block h3,
html.dark .site-right-sidebar .popular-movies-block h3 {
    color: #fff !important;  /* белый в тёмной теме */
}
.site-right-sidebar p,
.site-right-sidebar ul,
.site-right-sidebar li,
.site-right-sidebar a {
    display: block !important;
    visibility: visible !important;
}
.site-right-sidebar ul {
    list-style: none !important;
    padding-left: 0 !important;
}
.site-right-sidebar li {
    margin-bottom: 0.25rem !important;
}
.site-right-sidebar a {
    display: flex !important;
}

/* Slider base styles */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.new-releases-slider .slider-container,
.coming-soon-slider .slider-container {
    min-height: 120px;
}

/* Theme variables - applied via body.theme-XXX */
/* Default theme */
.theme-default .site-logo-icon,
body:not([class*="theme-"]) .site-logo-icon { background: linear-gradient(to bottom right, #6366f1, #9333ea) !important; }
.theme-default .site-logo-text,
body:not([class*="theme-"]) .site-logo-text { background: linear-gradient(to right, #6366f1, #9333ea, #ec4899) !important; }
.theme-default .btn-primary,
body:not([class*="theme-"]) .btn-primary { background-color: #4f46e5 !important; }
.theme-default .btn-primary:hover,
body:not([class*="theme-"]) .btn-primary:hover { background-color: #4338ca !important; }
.theme-default .focus-ring:focus,
body:not([class*="theme-"]) .focus-ring:focus { --tw-ring-color: #6366f1 !important; }
.theme-default .cat-active,
body:not([class*="theme-"]) .cat-active { background-color: rgba(99, 102, 241, 0.2) !important; color: #6366f1 !important; }
.theme-default .pill-accent,
body:not([class*="theme-"]) .pill-accent { background-color: rgba(99, 102, 241, 0.2) !important; color: #6366f1 !important; }
.dark .theme-default .pill-accent,
.dark .theme-default .cat-active,
.dark body:not([class*="theme-"]) .pill-accent,
.dark body:not([class*="theme-"]) .cat-active { background-color: rgba(99, 102, 241, 0.25) !important; color: #a5b4fc !important; }

/* Ocean — анимация, неоновое свечение, океанский фон, круглые кнопки */
@keyframes ocean-wave {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes ocean-shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
@keyframes neon-pulse {
    0%, 100% { box-shadow: 0 0 5px #22d3ee, 0 0 10px #06b6d4, 0 0 20px rgba(6, 182, 212, 0.5); }
    50% { box-shadow: 0 0 10px #22d3ee, 0 0 20px #06b6d4, 0 0 40px rgba(6, 182, 212, 0.8); }
}

.theme-ocean {
    background: linear-gradient(-45deg, #0c4a6e 0%, #075985 15%, #0369a1 30%, #0284c7 45%, #06b6d4 60%, #0e7490 75%, #0c4a6e 100%) !important;
    background-size: 400% 400% !important;
    animation: ocean-wave 15s ease infinite !important;
    min-height: 100vh !important;
    color: #e0f2fe !important;
}
.theme-ocean .text-gray-900,
.theme-ocean .text-gray-700 {
    color: #e0f2fe !important;
}
.theme-ocean .text-gray-500 {
    color: #7dd3fc !important;
}
.theme-ocean .text-slate-400 {
    color: #7dd3fc !important;
}
.theme-ocean .text-slate-300 {
    color: #bae6fd !important;
}
.theme-ocean nav .text-gray-900,
.theme-ocean nav .text-white {
    color: #e0f2fe !important;
}
.theme-ocean::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.theme-ocean nav {
    background: rgba(8, 47, 73, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(34, 211, 238, 0.4) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3) !important;
}
.theme-ocean main {
    position: relative;
    z-index: 1;
}
.theme-ocean .site-logo-text {
    color: #67e8f9 !important;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.8), 0 0 20px rgba(6, 182, 212, 0.5) !important;
}
.theme-ocean .site-logo-img {
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.8)) !important;
}
.theme-ocean .btn-primary {
    background: linear-gradient(135deg, #0284c7, #06b6d4) !important;
    border-radius: 9999px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.6), 0 0 30px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(34, 211, 238, 0.5) !important;
    transition: all 0.3s ease !important;
}
.theme-ocean .btn-primary:hover {
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.9), 0 0 50px rgba(6, 182, 212, 0.5) !important;
    transform: scale(1.02) !important;
}
.theme-ocean .focus-ring:focus {
    --tw-ring-color: #22d3ee !important;
    box-shadow: 0 0 0 2px #22d3ee, 0 0 15px rgba(34, 211, 238, 0.5) !important;
}
.theme-ocean .cat-active {
    background: rgba(34, 211, 238, 0.2) !important;
    color: #67e8f9 !important;
    border-radius: 9999px !important;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4) !important;
}
.theme-ocean .pill-accent {
    background: rgba(34, 211, 238, 0.2) !important;
    color: #67e8f9 !important;
    border-radius: 9999px !important;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4) !important;
}
.theme-ocean .integrations-ad {
    border-radius: 9999px !important;
}
.theme-ocean h1, .theme-ocean h2, .theme-ocean h3 {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3) !important;
}
.theme-ocean .bg-white,
.theme-ocean .dark\:bg-slate-900 {
    background: rgba(8, 47, 73, 0.6) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.theme-ocean #category-drawer {
    background: rgba(8, 47, 73, 0.95) !important;
    border-left: 1px solid rgba(34, 211, 238, 0.4) !important;
    box-shadow: -10px 0 40px rgba(6, 182, 212, 0.2) !important;
}
.theme-ocean button[onclick="toggleTheme()"] {
    border-radius: 9999px !important;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.3) !important;
}
.theme-ocean .new-releases-slider .slider-btn,
.theme-ocean .coming-soon-slider .slider-btn {
    background: rgba(8, 47, 73, 0.9) !important;
    border-color: rgba(34, 211, 238, 0.5) !important;
    color: #67e8f9 !important;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4) !important;
}
.theme-ocean .new-releases-slider .slider-btn:hover,
.theme-ocean .coming-soon-slider .slider-btn:hover {
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.7) !important;
}
.theme-ocean input[type="text"],
.theme-ocean input[type="search"],
.theme-ocean textarea {
    border-radius: 9999px !important;
    border: 1px solid rgba(34, 211, 238, 0.4) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1) !important;
}
.theme-ocean textarea {
    border-radius: 1rem !important;
}
.theme-ocean .download-torrent-btn {
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #06b6d4, #0ea5e9) !important;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5), 0 0 40px rgba(6, 182, 212, 0.2) !important;
    border: 1px solid rgba(34, 211, 238, 0.5) !important;
}
.theme-ocean .download-torrent-btn:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.8), 0 0 60px rgba(6, 182, 212, 0.4) !important;
}
.theme-ocean button[name="comment"],
.theme-ocean button[type="submit"][name="comment"] {
    border-radius: 9999px !important;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4) !important;
}

/* Forest — мигающий лого, квадратные кнопки */
@keyframes forest-logo-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px #22c55e, 0 0 25px rgba(16, 185, 129, 0.6); }
    50% { opacity: 0.85; box-shadow: 0 0 5px #22c55e, 0 0 15px rgba(16, 185, 129, 0.4); }
}

.theme-forest .new-releases-slider .slider-btn,
.theme-forest .coming-soon-slider .slider-btn {
    background: rgba(21, 94, 47, 0.9) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #86efac !important;
}
.theme-forest .site-logo-text,
.theme-forest .site-logo-img {
    animation: forest-logo-blink 2s ease-in-out infinite !important;
}
.theme-forest .site-logo-text {
    color: #22c55e !important;
}
.theme-forest .site-logo-img {
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.5)) !important;
}
.theme-forest .btn-primary {
    background-color: #16a34a !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3) !important;
}
.theme-forest .btn-primary:hover {
    background-color: #15803d !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
}
.theme-forest .focus-ring:focus { --tw-ring-color: #22c55e !important; }
.theme-forest .cat-active {
    background-color: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border-radius: 0 !important;
}
.theme-forest .pill-accent {
    background-color: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border-radius: 0 !important;
}
.theme-forest .download-torrent-btn {
    border-radius: 0 !important;
}
.theme-forest input[type="text"],
.theme-forest input[type="search"],
.theme-forest textarea {
    border-radius: 0.25rem !important;
}
.theme-forest button[name="comment"],
.theme-forest button[type="submit"][name="comment"] {
    border-radius: 0 !important;
}

/* Sunset — фон заката, анимация карточек, неоновая подсветка */
@keyframes sunset-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes sunset-card-float {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 20px rgba(249, 115, 22, 0.4), 0 0 40px rgba(239, 68, 68, 0.2); }
    50% { transform: translateY(-4px); box-shadow: 0 0 30px rgba(249, 115, 22, 0.6), 0 0 60px rgba(251, 191, 36, 0.3); }
}
@keyframes sunset-neon-pulse {
    0%, 100% { box-shadow: 0 0 10px #f97316, 0 0 20px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 20px #fbbf24, 0 0 40px rgba(249, 115, 22, 0.6); }
}

.theme-sunset {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 20%, #431407 35%, #7c2d12 50%, #c2410c 65%, #ea580c 78%, #f97316 90%, #fbbf24 100%) !important;
    background-size: 100% 400% !important;
    animation: sunset-gradient 25s ease infinite !important;
    min-height: 100vh !important;
    color: #fef3c7 !important;
}
.theme-sunset::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 20%, rgba(251, 191, 36, 0.2) 0%, transparent 40%),
                radial-gradient(ellipse at 30% 80%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.theme-sunset .text-gray-900,
.theme-sunset .text-gray-700 {
    color: #fef3c7 !important;
}
.theme-sunset .text-gray-500,
.theme-sunset .text-slate-400 {
    color: #fde68a !important;
}
.theme-sunset .text-slate-300 {
    color: #fef3c7 !important;
}
.theme-sunset nav {
    background: rgba(30, 27, 75, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.5) !important;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.4), 0 0 50px rgba(239, 68, 68, 0.2) !important;
}
.theme-sunset main {
    position: relative;
    z-index: 1;
}
.theme-sunset .site-logo-text {
    color: #fbbf24 !important;
    text-shadow: 0 0 15px rgba(249, 115, 22, 0.9), 0 0 30px rgba(251, 191, 36, 0.5) !important;
}
.theme-sunset .site-logo-img {
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.8)) !important;
}
.theme-sunset .btn-primary {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.7), 0 0 40px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    animation: sunset-neon-pulse 3s ease-in-out infinite !important;
    transition: all 0.3s ease !important;
}
.theme-sunset .btn-primary:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.9), 0 0 60px rgba(251, 191, 36, 0.5) !important;
    transform: scale(1.05) !important;
}
.theme-sunset .focus-ring:focus {
    --tw-ring-color: #f97316 !important;
    box-shadow: 0 0 0 2px #f97316, 0 0 20px rgba(249, 115, 22, 0.6) !important;
}
.theme-sunset .cat-active {
    background: rgba(249, 115, 22, 0.25) !important;
    color: #fbbf24 !important;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5) !important;
}
.theme-sunset .pill-accent {
    background: rgba(249, 115, 22, 0.25) !important;
    color: #fbbf24 !important;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5) !important;
}
.theme-sunset .bg-white,
.theme-sunset .dark\:bg-slate-900 {
    background: rgba(30, 27, 75, 0.65) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.35) !important;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.3), 0 0 50px rgba(239, 68, 68, 0.15) !important;
}
.theme-sunset .grid > .group {
    animation: sunset-card-float 5s ease-in-out infinite !important;
}
.theme-sunset #category-drawer {
    animation: none !important;
}
.theme-sunset .new-releases-slider .slider-btn,
.theme-sunset .coming-soon-slider .slider-btn {
    background: rgba(30, 27, 75, 0.95) !important;
    border-color: rgba(249, 115, 22, 0.5) !important;
    color: #fbbf24 !important;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4) !important;
}
.theme-sunset .new-releases-slider .slider-btn:hover,
.theme-sunset .coming-soon-slider .slider-btn:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.7) !important;
}
.theme-sunset .grid > .group:nth-child(5n+1) { animation-delay: 0s !important; }
.theme-sunset .grid > .group:nth-child(5n+2) { animation-delay: 0.3s !important; }
.theme-sunset .grid > .group:nth-child(5n+3) { animation-delay: 0.6s !important; }
.theme-sunset .grid > .group:nth-child(5n+4) { animation-delay: 0.9s !important; }
.theme-sunset .grid > .group:nth-child(5n+5) { animation-delay: 1.2s !important; }
.theme-sunset .group:hover.bg-white,
.theme-sunset .group:hover.dark\:bg-slate-900,
.theme-sunset .group.bg-white:hover,
.theme-sunset .group.dark\:bg-slate-900:hover {
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.5), 0 0 70px rgba(251, 191, 36, 0.25) !important;
}
.theme-sunset #category-drawer {
    background: rgba(30, 27, 75, 0.95) !important;
    border-left: 1px solid rgba(249, 115, 22, 0.5) !important;
    box-shadow: -10px 0 50px rgba(249, 115, 22, 0.3) !important;
}
.theme-sunset button[onclick="toggleTheme()"] {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4) !important;
}
.theme-sunset .download-torrent-btn {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.6), 0 0 50px rgba(239, 68, 68, 0.25) !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
}
.theme-sunset .download-torrent-btn:hover {
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.9), 0 0 70px rgba(251, 191, 36, 0.4) !important;
}
.theme-sunset button[name="comment"],
.theme-sunset button[type="submit"][name="comment"] {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5) !important;
}
.theme-sunset h1, .theme-sunset h2, .theme-sunset h3 {
    text-shadow: 0 0 25px rgba(249, 115, 22, 0.4) !important;
}

/* Violet — в стиле MaloSolka.org: тёмно-фиолетовая шапка, меню слева, контент справа */
.theme-violet {
    background: #1e1b2e !important;
    color: #e9e0f0 !important;
    min-height: 100vh !important;
}
.theme-violet .text-gray-900,
.theme-violet .text-gray-700,
.theme-violet .text-gray-100,
.theme-violet nav .text-white,
.theme-violet h1, .theme-violet h2, .theme-violet h3 {
    color: #e9e0f0 !important;
}
.theme-violet .text-gray-500,
.theme-violet .text-slate-400,
.theme-violet .text-slate-300 {
    color: #c4b5fd !important;
}
/* Шапка как на MaloSolka — тёмно-фиолетовая */
.theme-violet nav.site-header {
    background: linear-gradient(180deg, #3b0764 0%, #4c1d95 50%, #5b21b6 100%) !important;
    border-bottom: 2px solid #7c3aed !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
}
.theme-violet nav .site-logo-text,
.theme-violet nav .text-gray-900,
.theme-violet nav .text-white {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}
.theme-violet nav .site-logo-icon { background: linear-gradient(to bottom right, #a78bfa, #c4b5fd) !important; }
.theme-violet nav .site-logo-text { background: linear-gradient(to right, #a78bfa, #c4b5fd) !important; color: #fff !important; }
.theme-violet .btn-primary {
    background: linear-gradient(180deg, #6d28d9 0%, #5b21b6 100%) !important;
    border: 1px solid #7c3aed !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}
.theme-violet .btn-primary:hover {
    background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%) !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4) !important;
}
.theme-violet .focus-ring:focus { --tw-ring-color: #a78bfa !important; }
.theme-violet .cat-active {
    background: rgba(139, 92, 246, 0.35) !important;
    color: #e9d5ff !important;
    border-left: 3px solid #a78bfa !important;
}
.theme-violet .pill-accent { background: rgba(139, 92, 246, 0.3) !important; color: #c4b5fd !important; }
/* Левая панель «Меню / Жанры» как на MaloSolka — закреплена слева под шапкой */
.theme-violet #category-drawer {
    left: 0 !important;
    right: auto !important;
    top: 4rem !important;
    bottom: 0 !important;
    width: 15rem !important;
    height: auto !important;
    background: linear-gradient(180deg, #2e1065 0%, #3b0764 30%, #4c1d95 100%) !important;
    border-right: 2px solid #6d28d9 !important;
    border-radius: 0 !important;
    box-shadow: 4px 0 16px rgba(0,0,0,0.25) !important;
    transition: transform 0.3s ease-in-out !important;
}
.theme-violet #category-drawer .p-4.border-b {
    border-bottom-color: #5b21b6 !important;
    background: rgba(76, 29, 149, 0.5) !important;
}
.theme-violet #category-drawer h2 {
    color: #e9d5ff !important;
    font-weight: 700 !important;
}
.theme-violet #category-drawer a {
    color: #c4b5fd !important;
    border-radius: 0.25rem !important;
}
.theme-violet #category-drawer a:hover {
    background: rgba(139, 92, 246, 0.25) !important;
    color: #e9d5ff !important;
}
.theme-violet #category-drawer .cat-active {
    background: rgba(167, 139, 250, 0.3) !important;
    color: #fff !important;
}
.theme-violet #category-drawer.translate-x-full { transform: translateX(-100%) !important; }
.theme-violet #category-drawer:not(.translate-x-full) { transform: translateX(0) !important; }
@media (min-width: 768px) {
    .theme-violet #category-drawer { transform: none !important; }
    .theme-violet .max-w-\[90rem\] { margin-left: 15rem !important; flex-wrap: nowrap !important; }
    .theme-violet .site-footer { margin-left: 15rem !important; }
}
.theme-violet .site-right-sidebar {
    background: linear-gradient(180deg, rgba(46, 16, 101, 0.95) 0%, rgba(76, 29, 149, 0.9) 100%) !important;
    border-color: #6d28d9 !important;
    color: #e9e0f0 !important;
}
.theme-violet .site-right-sidebar .text-gray-900,
.theme-violet .site-right-sidebar .text-white,
.theme-violet .site-right-sidebar h3 { color: #e9d5ff !important; }
.theme-violet .site-right-sidebar .text-gray-500,
.theme-violet .site-right-sidebar .text-slate-400 { color: #c4b5fd !important; }
.theme-violet .site-right-sidebar .top-downloads-block a:hover,
.theme-violet .site-right-sidebar .popular-movies-block a:hover { background: rgba(139, 92, 246, 0.25) !important; }
@media (max-width: 767px) {
    .theme-violet #category-drawer.translate-x-full { transform: translateX(-100%) !important; }
    .theme-violet #category-drawer:not(.translate-x-full) { transform: translateX(0) !important; }
}
/* Контент: фон и карточки в стиле MaloSolka */
.theme-violet main,
.theme-violet .bg-gray-50 {
    background: #1e1b2e !important;
}
.theme-violet .group.bg-white,
.theme-violet .group.dark\:bg-slate-900,
.theme-violet .bg-white.group,
.theme-violet .group.dark\:bg-slate-900 {
    background: linear-gradient(180deg, rgba(76, 29, 149, 0.2) 0%, rgba(91, 33, 182, 0.15) 100%) !important;
    border: 1px solid #5b21b6 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}
.theme-violet .group.bg-white:hover,
.theme-violet .group.dark\:bg-slate-900:hover {
    border-color: #7c3aed !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25) !important;
}
.theme-violet .group h3,
.theme-violet .group .text-gray-900,
.theme-violet .group .dark\:text-white {
    color: #e9e0f0 !important;
}
.theme-violet .group .text-gray-500,
.theme-violet .group .dark\:text-slate-400 {
    color: #c4b5fd !important;
}
.theme-violet .download-torrent-btn {
    background: linear-gradient(180deg, #6d28d9 0%, #5b21b6 100%) !important;
    border: 1px solid #7c3aed !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}
.theme-violet .download-torrent-btn:hover {
    background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4) !important;
}
/* Подвал как на MaloSolka — тёмно-фиолетовый */
.theme-violet .site-footer {
    background: linear-gradient(180deg, #2e1065 0%, #3b0764 50%, #4c1d95 100%) !important;
    border-top: 2px solid #6d28d9 !important;
    color: #c4b5fd !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2) !important;
}
.theme-violet .site-footer a,
.theme-violet .site-footer .text-gray-600 {
    color: #c4b5fd !important;
}
.theme-violet .new-releases-slider .slider-btn,
.theme-violet .coming-soon-slider .slider-btn {
    background: rgba(76, 29, 149, 0.9) !important;
    border: 1px solid #7c3aed !important;
    color: #c4b5fd !important;
}
.theme-violet .new-releases-slider .slider-btn:hover,
.theme-violet .coming-soon-slider .slider-btn:hover {
    background: rgba(124, 58, 237, 0.5) !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4) !important;
}
.theme-violet input[type="text"],
.theme-violet input[type="search"],
.theme-violet textarea {
    background: rgba(76, 29, 149, 0.3) !important;
    border: 1px solid #5b21b6 !important;
    color: #e9e0f0 !important;
}
.theme-violet input::placeholder,
.theme-violet textarea::placeholder {
    color: #a78bfa !important;
}
.theme-violet button[onclick="toggleTheme()"] {
    background: rgba(91, 33, 182, 0.5) !important;
    border: 1px solid #6d28d9 !important;
    color: #e9d5ff !important;
}
.theme-violet button[onclick="toggleTheme()"]:hover {
    background: rgba(124, 58, 237, 0.5) !important;
}
.theme-violet #category-drawer button {
    color: #c4b5fd !important;
}
.theme-violet #category-drawer button:hover {
    color: #fff !important;
}
.theme-violet #searchResults,
.theme-violet .bg-white.dark\:bg-slate-900.border {
    background: #2e1065 !important;
    border-color: #5b21b6 !important;
}
.theme-violet nav .bg-gray-100,
.theme-violet nav .dark\:bg-slate-800 {
    background: rgba(91, 33, 182, 0.4) !important;
    border-color: #6d28d9 !important;
}
.theme-violet a.px-4.py-2.rounded-lg.bg-gray-200,
.theme-violet a.px-4.py-2.rounded-lg.dark\:bg-slate-700 {
    background: rgba(91, 33, 182, 0.5) !important;
    border: 1px solid #6d28d9 !important;
    color: #e9d5ff !important;
}
.theme-violet a.px-4.py-2.rounded-lg.bg-gray-200:hover,
.theme-violet a.px-4.py-2.rounded-lg.dark\:bg-slate-700:hover {
    background: rgba(124, 58, 237, 0.5) !important;
}
.theme-violet .text-gray-600.dark\:text-slate-400 {
    color: #c4b5fd !important;
}

/* Slate (Минимал) — готический шрифт, золотые рамки, шапка: лого по центру, категории слева, поиск справа */
.theme-slate .site-header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
}
.theme-slate .site-header-actions {
    order: 1 !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
}
.theme-slate .site-header-logo {
    order: 2 !important;
    flex: 0 0 auto !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}
.theme-slate .site-header-search {
    order: 3 !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 20rem !important;
    margin-left: auto !important;
}
.theme-slate {
    font-family: 'UnifrakturMaguntia', serif !important;
}
.theme-slate .text-gray-900,
.theme-slate .text-gray-700,
.theme-slate .text-gray-100,
.theme-slate nav .text-white,
.theme-slate nav .text-gray-900 {
    color: #d4af37 !important;
}
.theme-slate .text-gray-500,
.theme-slate .text-slate-400,
.theme-slate .text-slate-300 {
    color: #c9a227 !important;
}
/* Золотые рамки карточек — квадратные, с небольшим отступом */
.theme-slate main .grid {
    gap: 0.5rem !important;
}
.theme-slate .group.bg-white,
.theme-slate .group.dark\:bg-slate-900,
.theme-slate .bg-white.group,
.theme-slate .dark\:bg-slate-900.group,
.theme-slate .grid .group,
.theme-slate main .bg-white,
.theme-slate main .dark\:bg-slate-900 {
    border: 2px solid #d4af37 !important;
    border-radius: 0 !important;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3) !important;
    margin: 4px !important;
}
.theme-slate .group.bg-white .rounded-lg,
.theme-slate .group.dark\:bg-slate-900 .rounded-lg,
.theme-slate .group.bg-white .rounded-2xl,
.theme-slate .group.dark\:bg-slate-900 .rounded-2xl {
    border-radius: 0 !important;
}
.theme-slate .group.bg-white:hover,
.theme-slate .group.dark\:bg-slate-900:hover,
.theme-slate .bg-white.group:hover,
.theme-slate .dark\:bg-slate-900.group:hover {
    border-color: #e8c547 !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4) !important;
}
/* Категории закреплены слева под шапкой (тема Минимал) */
.theme-slate #category-drawer {
    left: 0 !important;
    right: auto !important;
    top: 4rem !important;   /* под шапкой h-16 */
    bottom: 0 !important;
    width: 14rem !important;
    height: auto !important;
    border-right: 2px solid #d4af37 !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease-in-out !important;
}
.theme-slate #category-drawer.translate-x-full {
    transform: translateX(-100%) !important;
}
.theme-slate #category-drawer:not(.translate-x-full) {
    transform: translateX(0) !important;
}
@media (min-width: 768px) {
    .theme-slate #category-drawer {
        transform: none !important;  /* всегда видна на десктопе */
    }
    .theme-slate .max-w-\[90rem\] {
        margin-left: 14rem !important;
        flex-wrap: nowrap !important;
    }
    .theme-slate .site-footer {
        margin-left: 14rem !important;
    }
}
.theme-slate .site-right-sidebar {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #d4af37 !important;
}
.theme-slate .site-right-sidebar h3,
.theme-slate .site-right-sidebar .text-gray-900 { color: #d4af37 !important; }
.theme-slate .site-right-sidebar .text-slate-400,
.theme-slate .site-right-sidebar .text-gray-500 { color: #c9a227 !important; }
@media (max-width: 767px) {
    .theme-slate #category-drawer.translate-x-full {
        transform: translateX(-100%) !important;
    }
    .theme-slate #category-drawer:not(.translate-x-full) {
        transform: translateX(0) !important;
    }
}
.theme-slate .new-releases-slider .slider-btn,
.theme-slate .coming-soon-slider .slider-btn {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 2px solid #d4af37 !important;
    color: #d4af37 !important;
}
.theme-slate .site-logo-icon { background: linear-gradient(to bottom right, #d4af37, #b8860b) !important; }
.theme-slate .site-logo-text {
    background: linear-gradient(to right, #d4af37, #c9a227, #b8860b) !important;
    color: #d4af37 !important;
}
.theme-slate .btn-primary { background-color: #b8860b !important; border-color: #d4af37 !important; color: #1e293b !important; }
.theme-slate .btn-primary:hover { background-color: #d4af37 !important; color: #0f172a !important; }
.theme-slate .focus-ring:focus { --tw-ring-color: #d4af37 !important; }
.theme-slate .cat-active { background-color: rgba(212, 175, 55, 0.25) !important; color: #d4af37 !important; }
.theme-slate .pill-accent { background-color: rgba(212, 175, 55, 0.25) !important; color: #d4af37 !important; }
.theme-slate .download-torrent-btn {
    border: 2px solid #d4af37 !important;
    background: rgba(184, 134, 11, 0.3) !important;
    color: #d4af37 !important;
}
.theme-slate .download-torrent-btn:hover {
    background: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
}
.theme-slate h1, .theme-slate h2, .theme-slate h3 {
    color: #d4af37 !important;
}

/* Malosol — в стиле Malosolka.org: светлый фон, тёмный текст, оранжевые акценты, Arial */
.theme-malosol {
    font-family: Arial, Helvetica, Tahoma, sans-serif !important;
    background-color: #e8e8e8 !important;
    color: #333 !important;
    min-height: 100vh !important;
}
.theme-malosol .text-gray-900,
.theme-malosol .text-gray-700,
.theme-malosol main .text-gray-900,
.theme-malosol main .text-gray-700 {
    color: #333 !important;
}
.theme-malosol .text-gray-500,
.theme-malosol .text-slate-400,
.theme-malosol .text-slate-300 {
    color: #555 !important;
}
.theme-malosol nav,
.theme-malosol .site-header {
    background-color: #424242 !important;
    border-bottom: 1px solid #333 !important;
    color: #fff !important;
}
.theme-malosol nav .text-gray-900,
.theme-malosol nav .text-white,
.theme-malosol .site-header .text-gray-900,
.theme-malosol .site-header .text-white {
    color: #fff !important;
}
.theme-malosol .site-logo-icon {
    background: linear-gradient(to bottom right, #ff6f00, #e65100) !important;
}
.theme-malosol .site-logo-text {
    color: #fff !important;
    font-weight: bold !important;
}
.theme-malosol .btn-primary {
    background-color: #e65100 !important;
    color: #fff !important;
    border: 1px solid #bf360c !important;
    border-radius: 2px !important;
}
.theme-malosol .btn-primary:hover {
    background-color: #bf360c !important;
    border-color: #e65100 !important;
}
.theme-malosol .focus-ring:focus {
    --tw-ring-color: #e65100 !important;
}
.theme-malosol .cat-active,
.theme-malosol .pill-accent {
    background-color: rgba(230, 81, 0, 0.15) !important;
    color: #e65100 !important;
    border-radius: 2px !important;
}
.theme-malosol .bg-white,
.theme-malosol .dark\:bg-slate-900 {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}
.theme-malosol .group.bg-white:hover,
.theme-malosol .group.dark\:bg-slate-900:hover,
.theme-malosol main .bg-white:hover,
.theme-malosol main .dark\:bg-slate-900:hover {
    border-color: #e65100 !important;
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.15) !important;
}
.theme-malosol .site-right-sidebar {
    background-color: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 2px !important;
    color: #333 !important;
}
.theme-malosol .site-right-sidebar h3,
.theme-malosol .site-right-sidebar .top-downloads-block h3,
.theme-malosol .site-right-sidebar .popular-movies-block h3 {
    color: #333 !important;
}
.theme-malosol .site-right-sidebar a {
    color: #e65100 !important;
}
.theme-malosol .site-right-sidebar a:hover {
    color: #bf360c !important;
    text-decoration: underline !important;
}
.theme-malosol #category-drawer {
    background-color: #fff !important;
    border-left: 1px solid #ddd !important;
    border-radius: 0 !important;
}
.theme-malosol h1, .theme-malosol h2, .theme-malosol h3 {
    color: #333 !important;
    font-weight: bold !important;
}
.theme-malosol .download-torrent-btn {
    background-color: #e65100 !important;
    color: #fff !important;
    border: 1px solid #bf360c !important;
    border-radius: 2px !important;
}
.theme-malosol .download-torrent-btn:hover {
    background-color: #bf360c !important;
    border-color: #e65100 !important;
}
.theme-malosol input[type="text"],
.theme-malosol input[type="search"],
.theme-malosol textarea {
    border: 1px solid #ccc !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #333 !important;
}
.theme-malosol .integrations-ad {
    border: 1px solid #ddd !important;
    border-radius: 2px !important;
}
.theme-malosol .new-releases-slider .slider-btn,
.theme-malosol .coming-soon-slider .slider-btn {
    background-color: #424242 !important;
    border: 1px solid #555 !important;
    color: #fff !important;
    border-radius: 2px !important;
}
.theme-malosol .new-releases-slider .slider-btn:hover,
.theme-malosol .coming-soon-slider .slider-btn:hover {
    background-color: #e65100 !important;
    border-color: #bf360c !important;
}
.theme-malosol a {
    color: #e65100 !important;
}
.theme-malosol a:hover {
    color: #bf360c !important;
}
.theme-malosol button[name="comment"],
.theme-malosol button[type="submit"][name="comment"] {
    background-color: #e65100 !important;
    color: #fff !important;
    border-radius: 2px !important;
}
.theme-malosol .site-footer {
    background-color: #f5f5f5 !important;
    border-top: 1px solid #ddd !important;
    color: #555 !important;
}
/* Malosol всегда светлый (как Malosolka.org), даже при переключении на тёмную тему */
.dark .theme-malosol {
    background-color: #e8e8e8 !important;
    color: #333 !important;
}
.dark .theme-malosol .bg-white,
.dark .theme-malosol .dark\:bg-slate-900 {
    background-color: #fff !important;
    border-color: #ddd !important;
    color: #333 !important;
}
.dark .theme-malosol .text-gray-500,
.dark .theme-malosol .text-slate-400 {
    color: #555 !important;
}

/* Темы из набора "купил с темами новый" — акцентные цвета */
.theme-cinema .site-logo-icon { background: linear-gradient(to bottom right, #ef4444, #ea580c) !important; }
.theme-cinema .site-logo-text { background: linear-gradient(to right, #ef4444, #ea580c, #e11d48) !important; }
.theme-cinema .btn-primary { background-color: #dc2626 !important; }
.theme-cinema .btn-primary:hover { background-color: #b91c1c !important; }
.theme-cinema .focus-ring:focus { --tw-ring-color: #dc2626 !important; }
.theme-cinema .cat-active, .theme-cinema .pill-accent { background-color: rgba(220, 38, 38, 0.2) !important; color: #dc2626 !important; }
.theme-cinema .download-torrent-btn { background: linear-gradient(to right, #dc2626, #b91c1c) !important; }
.theme-cinema .download-torrent-btn:hover { background: linear-gradient(to right, #b91c1c, #991b1b) !important; }

.theme-royal .site-logo-icon { background: linear-gradient(to bottom right, #8b5cf6, #d946ef) !important; }
.theme-royal .site-logo-text { background: linear-gradient(to right, #8b5cf6, #d946ef, #fbbf24) !important; }
.theme-royal .btn-primary { background-color: #7c3aed !important; }
.theme-royal .btn-primary:hover { background-color: #6d28d9 !important; }
.theme-royal .focus-ring:focus { --tw-ring-color: #8b5cf6 !important; }
.theme-royal .cat-active, .theme-royal .pill-accent { background-color: rgba(139, 92, 246, 0.2) !important; color: #a78bfa !important; }
.theme-royal .download-torrent-btn { background: linear-gradient(to right, #8b5cf6, #7c3aed) !important; }
.theme-royal .download-torrent-btn:hover { background: linear-gradient(to right, #7c3aed, #6d28d9) !important; }

.theme-cyber .site-logo-icon { background: linear-gradient(to bottom right, #84cc16, #06b6d4) !important; }
.theme-cyber .site-logo-text { background: linear-gradient(to right, #a3e635, #d946ef, #06b6d4) !important; }
.theme-cyber .btn-primary { background-color: #65a30d !important; }
.theme-cyber .btn-primary:hover { background-color: #4d7c0f !important; }
.theme-cyber .focus-ring:focus { --tw-ring-color: #84cc16 !important; }
.theme-cyber .cat-active, .theme-cyber .pill-accent { background-color: rgba(132, 204, 22, 0.2) !important; color: #a3e635 !important; }
.theme-cyber .download-torrent-btn { background: linear-gradient(to right, #84cc16, #65a30d) !important; }
.theme-cyber .download-torrent-btn:hover { background: linear-gradient(to right, #65a30d, #4d7c0f) !important; }

.theme-midnight .site-logo-icon { background: linear-gradient(to bottom right, #2563eb, #6366f1) !important; }
.theme-midnight .site-logo-text { background: linear-gradient(to right, #3b82f6, #6366f1, #0ea5e9) !important; }
.theme-midnight .btn-primary { background-color: #2563eb !important; }
.theme-midnight .btn-primary:hover { background-color: #1d4ed8 !important; }
.theme-midnight .focus-ring:focus { --tw-ring-color: #3b82f6 !important; }
.theme-midnight .cat-active, .theme-midnight .pill-accent { background-color: rgba(37, 99, 235, 0.2) !important; color: #60a5fa !important; }
.theme-midnight .download-torrent-btn { background: linear-gradient(to right, #2563eb, #1d4ed8) !important; }
.theme-midnight .download-torrent-btn:hover { background: linear-gradient(to right, #1d4ed8, #1e40af) !important; }

.theme-coffee .site-logo-icon { background: linear-gradient(to bottom right, #d97706, #78716c) !important; }
.theme-coffee .site-logo-text { background: linear-gradient(to right, #f59e0b, #ea580c, #78716c) !important; }
.theme-coffee .btn-primary { background-color: #b45309 !important; }
.theme-coffee .btn-primary:hover { background-color: #92400e !important; }
.theme-coffee .focus-ring:focus { --tw-ring-color: #d97706 !important; }
.theme-coffee .cat-active, .theme-coffee .pill-accent { background-color: rgba(217, 119, 6, 0.2) !important; color: #b45309 !important; }
.theme-coffee .download-torrent-btn { background: linear-gradient(to right, #d97706, #b45309) !important; }
.theme-coffee .download-torrent-btn:hover { background: linear-gradient(to right, #b45309, #92400e) !important; }

.theme-mint .site-logo-icon { background: linear-gradient(to bottom right, #14b8a6, #06b6d4) !important; }
.theme-mint .site-logo-text { background: linear-gradient(to right, #2dd4bf, #10b981, #06b6d4) !important; }
.theme-mint .btn-primary { background-color: #0d9488 !important; }
.theme-mint .btn-primary:hover { background-color: #0f766e !important; }
.theme-mint .focus-ring:focus { --tw-ring-color: #14b8a6 !important; }
.theme-mint .cat-active, .theme-mint .pill-accent { background-color: rgba(20, 184, 166, 0.2) !important; color: #2dd4bf !important; }
.theme-mint .download-torrent-btn { background: linear-gradient(to right, #14b8a6, #0d9488) !important; }
.theme-mint .download-torrent-btn:hover { background: linear-gradient(to right, #0d9488, #0f766e) !important; }
