/* ============================================================= */
/* EmpireKINO.RU — Modern Theme & Dark Mode
/* Файл: /templates/Torrent-King/css/modern-theme.css
/*
/* ⚠ ВНИМАНИЕ: Все стили используют повышенную специфичность
/* чтобы избежать конфликтов с системными стилями DLE.
/* ============================================================= */

/* =============================================================
   CSS ПЕРЕМЕННЫЕ — СВЕТЛАЯ ТЕМА (по умолчанию)
   ============================================================= */
:root {
    --ek-bg-main: #f0f2f5;
    --ek-bg-card: #ffffff;
    --ek-bg-header: #1a1f2e;
    --ek-bg-dark-block: #1a1f2e;
    --ek-bg-input: #ffffff;
    --ek-bg-hover: #f8f9fa;
    --ek-bg-stripe: #f9f8f8;

    --ek-text-primary: #1c2333;
    --ek-text-secondary: #5a6577;
    --ek-text-muted: #8b95a5;
    --ek-text-on-dark: #c8cdd3;

    --ek-accent: #2bb42b;
    --ek-accent-hover: #24a024;
    --ek-accent-glow: rgba(43, 180, 43, 0.25);
    --ek-blue: #3b82f6;
    --ek-blue-glow: rgba(59, 130, 246, 0.2);
    --ek-red: #ef4444;
    --ek-orange: #f59e0b;
    --ek-purple: #8b5cf6;
    --ek-cyan: #06b6d4;

    --ek-border: rgba(0,0,0,0.08);
    --ek-border-light: rgba(0,0,0,0.04);
    --ek-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --ek-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --ek-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --ek-shadow-glow: 0 0 20px var(--ek-accent-glow);

    --ek-radius-sm: 8px;
    --ek-radius-md: 12px;
    --ek-radius-lg: 16px;
    --ek-radius-xl: 20px;

    --ek-glass: rgba(255,255,255,0.7);
    --ek-glass-border: rgba(255,255,255,0.3);
    --ek-overlay: rgba(0,0,0,0.5);

    --ek-gradient-accent: linear-gradient(135deg, #2bb42b 0%, #06b6d4 100%);
    --ek-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    --ek-gradient-dark: linear-gradient(135deg, #1a1f2e 0%, #253241 100%);
}

/* =============================================================
   CSS ПЕРЕМЕННЫЕ — ТЁМНАЯ ТЕМА
   ============================================================= */
html[data-theme="dark"] {
    --ek-bg-main: #0f1117;
    --ek-bg-card: #1a1d27;
    --ek-bg-header: #12141c;
    --ek-bg-dark-block: #12141c;
    --ek-bg-input: #23262f;
    --ek-bg-hover: #252830;
    --ek-bg-stripe: #1e2029;

    --ek-text-primary: #e4e7ed;
    --ek-text-secondary: #9aa1b1;
    --ek-text-muted: #6b7280;
    --ek-text-on-dark: #c8cdd3;

    --ek-border: rgba(255,255,255,0.08);
    --ek-border-light: rgba(255,255,255,0.04);
    --ek-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --ek-shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --ek-shadow-lg: 0 8px 30px rgba(0,0,0,0.5);

    --ek-glass: rgba(26,29,39,0.85);
    --ek-glass-border: rgba(255,255,255,0.06);
    --ek-overlay: rgba(0,0,0,0.7);

    --ek-gradient-card: linear-gradient(145deg, rgba(26,29,39,0.95), rgba(26,29,39,0.8));
}

/* ======================== DARK: BODY ========================= */
html[data-theme="dark"] body {
    background: var(--ek-bg-main) !important;
    color: var(--ek-text-primary) !important;
}

html[data-theme="dark"] .container {
    background: var(--ek-bg-card) !important;
    box-shadow: 0 0 60px rgba(0,0,0,0.3);
}

/* ======================== DARK: HEADER ======================= */
html[data-theme="dark"] .header {
    background: var(--ek-bg-header) !important;
    border-bottom: 1px solid var(--ek-border);
}

html[data-theme="dark"] .search form {
    background: var(--ek-bg-input) !important;
}
html[data-theme="dark"] .search input {
    color: var(--ek-text-primary) !important;
}

/* ======================== DARK: CARDS ======================== */
html[data-theme="dark"] .short_item_load,
html[data-theme="dark"] .box_in {
    background: var(--ek-bg-card) !important;
    border-color: var(--ek-border) !important;
    box-shadow: var(--ek-shadow-sm) !important;
}

html[data-theme="dark"] .short_item_load h3 a,
html[data-theme="dark"] h1, html[data-theme="dark"] h2,
html[data-theme="dark"] h3, html[data-theme="dark"] h4,
html[data-theme="dark"] h5, html[data-theme="dark"] h6 {
    color: var(--ek-text-primary) !important;
}

html[data-theme="dark"] .short_item_load h3 a:hover {
    color: var(--ek-accent) !important;
}

html[data-theme="dark"] .reads,
html[data-theme="dark"] .add_user,
html[data-theme="dark"] .category {
    color: var(--ek-text-muted) !important;
}

html[data-theme="dark"] .inf_3 {
    border-color: var(--ek-border) !important;
    background: var(--ek-bg-card) !important;
}

/* ======================== DARK: FULLSTORY ==================== */
html[data-theme="dark"] .short_item_bottom_info.block .reads div {
    color: var(--ek-text-primary) !important;
}
html[data-theme="dark"] .short_item_bottom_info.block .reads div:nth-child(2n+1) {
    background: var(--ek-bg-stripe) !important;
}
html[data-theme="dark"] .short_item_bottom_info.block .reads div span {
    color: var(--ek-text-secondary) !important;
}

/* ======================== DARK: SIDEBAR ====================== */
html[data-theme="dark"] .aside_bl {
    background: var(--ek-bg-card) !important;
    box-shadow: var(--ek-shadow-sm) !important;
}
html[data-theme="dark"] .aside_title {
    background: var(--ek-bg-dark-block) !important;
}

html[data-theme="dark"] .inf_2 {
    border-color: var(--ek-border) !important;
}
html[data-theme="dark"] .inf_2 .inf_content h4 a {
    color: var(--ek-text-primary) !important;
}

/* ======================== DARK: CAROUSEL ===================== */
html[data-theme="dark"] .global_promo {
    background: var(--ek-bg-dark-block) !important;
}

/* ======================== DARK: COMMENTS ===================== */
html[data-theme="dark"] .comments_bl {
    background: var(--ek-bg-card) !important;
    box-shadow: var(--ek-shadow-sm) !important;
}
html[data-theme="dark"] .fn_comment_item {
    border-color: var(--ek-border) !important;
}
html[data-theme="dark"] .fn_comm_item_top a {
    color: var(--ek-text-primary) !important;
}
html[data-theme="dark"] .fn_comment_item .quote {
    background: var(--ek-bg-stripe) !important;
    color: var(--ek-text-primary) !important;
}

/* ======================== DARK: INPUTS ======================= */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background: var(--ek-bg-input) !important;
    color: var(--ek-text-primary) !important;
    border-color: var(--ek-border) !important;
}

/* ======================== DARK: FOOTER ======================= */
html[data-theme="dark"] .site-footer {
    background: var(--ek-bg-dark-block) !important;
}

/* ======================== DARK: PAGINATION =================== */
html[data-theme="dark"] .pagination a {
    background: var(--ek-bg-card) !important;
    color: var(--ek-text-primary) !important;
    border-color: var(--ek-border) !important;
}

/* ======================== DARK: SEO ========================== */
html[data-theme="dark"] .seo {
    color: var(--ek-text-secondary) !important;
}

/* ======================== DARK: MENU ========================= */
html[data-theme="dark"] .sub_nav {
    background: var(--ek-bg-hover) !important;
}
html[data-theme="dark"] .sub_nav a {
    color: var(--ek-text-primary) !important;
}
html[data-theme="dark"] .sub_nav a:hover {
    background: var(--ek-bg-stripe) !important;
}

/* ======================== DARK: DOWNLOAD ===================== */
html[data-theme="dark"] .ek-download-card {
    background: var(--ek-bg-hover) !important;
    border-color: var(--ek-border) !important;
}
html[data-theme="dark"] .ek-download-card .ek-dl-title {
    color: var(--ek-text-primary) !important;
}
html[data-theme="dark"] .ek-download-card .ek-dl-sub {
    color: var(--ek-text-muted) !important;
}

/* ======================== DARK: USER PANEL =================== */
html[data-theme="dark"] .user_panel .dropdown-menu-right {
    background: var(--ek-bg-card) !important;
    border-color: var(--ek-border) !important;
}
html[data-theme="dark"] .st_panel_user ul li a {
    color: var(--ek-text-primary) !important;
}
html[data-theme="dark"] .st_panel_user ul li a:hover {
    background: var(--ek-accent) !important;
    color: #fff !important;
}

/* ======================== DARK: QUOTE/SPOILER ================ */
html[data-theme="dark"] .quote,
html[data-theme="dark"] blockquote {
    background: var(--ek-bg-stripe) !important;
    color: var(--ek-text-primary) !important;
}
html[data-theme="dark"] .title_spoiler,
html[data-theme="dark"] .text_spoiler {
    color: var(--ek-text-primary) !important;
}

/* ======================== DARK: LINKS ======================== */
html[data-theme="dark"] a {
    color: #4ade80;
}
html[data-theme="dark"] a:hover {
    color: #86efac;
}
html[data-theme="dark"] .short_item_bottom_info.block .reads div a {
    color: #60a5fa !important;
}

/* ======================== DARK: MISC ========================= */
html[data-theme="dark"] .section_title {
    color: var(--ek-text-primary) !important;
}
html[data-theme="dark"] .section_title span.green_color {
    color: var(--ek-accent) !important;
}
html[data-theme="dark"] .section_title .line_section_title::after {
    background: var(--ek-text-muted);
}
html[data-theme="dark"] .section_title .line_section_title::before {
    background: var(--ek-accent);
}
html[data-theme="dark"] .editdate.grey {
    color: var(--ek-text-muted) !important;
}
html[data-theme="dark"] .header_content_left {
    background: var(--ek-bg-dark-block) !important;
}
html[data-theme="dark"] .content_wrap {
    background: transparent;
}
html[data-theme="dark"] .menu_aside .main_nav {
    background: var(--ek-accent) !important;
}
html[data-theme="dark"] .seo p {
    color: var(--ek-text-secondary) !important;
}
html[data-theme="dark"] .ad-block {
    border-color: var(--ek-border) !important;
}
html[data-theme="dark"] .ad-label {
    background: rgba(255,255,255,0.06) !important;
    color: var(--ek-text-muted) !important;
}
html[data-theme="dark"] .download_file:not(.ek-downloads-wrap) {
    background: var(--ek-bg-dark-block) !important;
}
html[data-theme="dark"] [class*="clouds_"] a {
    background: var(--ek-blue) !important;
}
html[data-theme="dark"] .fn_heading {
    color: var(--ek-text-primary) !important;
    border-color: var(--ek-border) !important;
}
html[data-theme="dark"] .fn_dash_comm .dropdown-menu {
    background: var(--ek-bg-card) !important;
    border-color: var(--ek-border) !important;
}
html[data-theme="dark"] .fn_dash_comm .dropdown-menu a.dropdown-item {
    color: var(--ek-text-primary) !important;
}
html[data-theme="dark"] .fn_dash_comm .dropdown-menu a.dropdown-item:hover {
    background: var(--ek-bg-hover) !important;
}

/* =============================================================
   ТЕМА-ПЕРЕКЛЮЧАТЕЛЬ (кнопка в хедере)
   ============================================================= */
.ek-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none !important;
    padding: 0 !important;
    margin-left: 12px;
    position: relative;
    overflow: visible !important;
}
.ek-theme-toggle:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: rotate(15deg);
}
html[data-theme="dark"] .ek-theme-toggle {
    background: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] .ek-theme-toggle:hover {
    background: rgba(255,255,255,0.15) !important;
}
.ek-theme-toggle .fa-moon { display: inline-block; }
.ek-theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .ek-theme-toggle .fa-moon { display: none; }
html[data-theme="dark"] .ek-theme-toggle .fa-sun { display: inline-block; }

/* =============================================================
   HEADER — МОДЕРНИЗАЦИЯ
   ============================================================= */
.header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

/* =============================================================
   КАРУСЕЛЬ — МОДЕРНИЗАЦИЯ
   ============================================================= */
.global_promo {
    position: relative;
    overflow: hidden;
}
.global_promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(43,180,43,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(6,182,212,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.promo_item_content {
    border-radius: var(--ek-radius-md) !important;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease;
}
.promo_item_content:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--ek-shadow-lg);
}

.promo_item_content img {
    border-radius: var(--ek-radius-md) !important;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s ease !important;
}
.promo_item_content:hover img {
    transform: scale(1.08);
}

/* Бейдж размера в карусели */
.promo_item .ek-size-badge {
    position: absolute;
    right: 8px;
    top: 8px;
    background: rgba(15,17,23,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.promo_item .ek-size-badge i {
    font-size: 10px;
    opacity: 0.7;
}

/* Оверлей при наведении на карусель */
.promo_item_content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
    border-radius: var(--ek-radius-md);
    pointer-events: none;
    z-index: 1;
}

.promo_item .title {
    z-index: 2;
    border-radius: 0 0 var(--ek-radius-md) var(--ek-radius-md) !important;
}
.promo_item .title a {
    background: transparent !important;
    padding: 10px 12px !important;
    font-size: 11px !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.promo_item:hover .title a {
    background: rgba(43,180,43,0.5) !important;
}

/* =============================================================
   ПОСТЕРЫ — ЭФФЕКТЫ
   ============================================================= */
.short_item_top_content .poster {
    border-radius: var(--ek-radius-md) !important;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1f2e 0%, #253241 100%);
    min-height: auto;
}

.short_item_top_content .poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    border-radius: var(--ek-radius-md);
    pointer-events: none;
}
.short_item_top_content .poster:hover::after {
    opacity: 1;
}

.short_item_top_content .poster img {
    border-radius: var(--ek-radius-md) !important;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s ease !important;
    display: block;
    width: 100%;
    object-fit: cover;
}
.short_item_top_content .poster:hover img {
    transform: scale(1.05);
}

/* =============================================================
   SHORTSTORY — СОВРЕМЕННЫЙ ДИЗАЙН КАРТОЧКИ
   ============================================================= */
.short_item_load {
    background: var(--ek-bg-card) !important;
    border-radius: var(--ek-radius-lg) !important;
    border: 1px solid var(--ek-border) !important;
    border-bottom: none !important;
    padding: 0 !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--ek-shadow-sm) !important;
    position: relative;
}
.short_item_load:hover {
    transform: translateY(-3px);
    box-shadow: var(--ek-shadow-md) !important;
}

/* Акцентная полоска сверху */
.short_item_load::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ek-gradient-accent);
    z-index: 3;
}

.short_item_load .short_item_top {
    padding: 20px 22px 0;
    margin-bottom: 0 !important;
}

.short_item_load h3 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
}
.short_item_load h3 a {
    color: var(--ek-text-primary) !important;
    transition: color 0.2s ease !important;
}
.short_item_load h3 a:hover {
    color: var(--ek-accent) !important;
}

.short_item_top_content .poster {
    flex: 0 0 180px !important;
    margin-right: 18px !important;
}

.short_item_top_content .descr {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ek-text-secondary);
}

/* Мета-инфо стили */
.short_item_load .short_item_bottom_info {
    gap: 12px;
    margin-bottom: 12px !important;
}

.short_item_load .reads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.short_item_load .reads > span {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--ek-bg-hover);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ek-text-muted);
    transition: all 0.2s ease;
    margin-right: 0 !important;
}
.short_item_load .reads > span:hover {
    background: var(--ek-accent);
    color: #fff;
}
.short_item_load .reads > span i {
    opacity: 0.8 !important;
    margin-right: 0 !important;
}

.short_item_load .add_user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--ek-bg-hover);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ek-text-muted);
}

/* Описание */
.short_item_load .inf_3 {
    border: none !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    color: var(--ek-text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* Нижняя часть карточки */
.short_item_load .short_item_bottom {
    padding: 14px 22px;
    background: var(--ek-bg-hover);
    border-top: 1px solid var(--ek-border);
    align-items: center;
    gap: 12px;
}

.short_item_load .short_item_bottom .rating_star {
    flex: 0 auto !important;
}

.short_item_load .short_item_bottom .category {
    flex: 1;
    padding: 0 8px !important;
}
.short_item_load .short_item_bottom .category a {
    display: inline-block !important;
}
.short_item_load .short_item_bottom .category > *:nth-child(2) {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(59,130,246,0.08);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ek-blue);
    transition: all 0.2s;
}
.short_item_load .short_item_bottom .category > *:nth-child(2):hover {
    background: var(--ek-blue);
    color: #fff;
    text-decoration: none !important;
}

/* Кнопка «Подробнее» */
.short_item_load .short_item_bottom a.btn {
    background: var(--ek-gradient-accent) !important;
    color: #fff !important;
    border-radius: 25px !important;
    padding: 8px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px var(--ek-accent-glow);
    border: none !important;
    white-space: nowrap;
}
.short_item_load .short_item_bottom a.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px var(--ek-accent-glow) !important;
    filter: brightness(1.1);
}

/* Кнопки избранное / редактирование */
.story_icons {
    display: flex !important;
    gap: 6px;
}
.story_icons i[class*="fa"] {
    font-size: 14px !important;
    width: 32px;
    height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ek-bg-hover);
    color: var(--ek-text-muted) !important;
    transition: all 0.2s ease;
    cursor: pointer;
}
.story_icons i[class*="fa"]:hover {
    background: var(--ek-accent);
    color: #fff !important;
}

/* =============================================================
   FULLSTORY — МОДЕРНИЗАЦИЯ
   ============================================================= */

/* Рейтинг-бейдж на постере */
.short_item_load.block .poster .rating_count,
.short_item_top_content .poster span.rating_count {
    position: absolute;
    left: 10px;
    top: 10px;
    right: auto;
    background: linear-gradient(135deg, var(--ek-accent), #06b6d4) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    min-width: 48px !important;
    height: 48px !important;
    border-radius: var(--ek-radius-sm) !important;
    box-shadow: 0 4px 15px var(--ek-accent-glow) !important;
    z-index: 5;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Информационная таблица в fullstory */
.short_item_bottom_info.block .reads div {
    padding: 10px 18px !important;
    font-size: 14px;
    transition: background 0.2s ease;
    border-radius: 0;
}
.short_item_bottom_info.block .reads div span {
    font-weight: 600;
    min-width: 150px;
    display: inline-block;
}

/* Секционные заголовки */
.section_title .line_section_title span {
    color: var(--ek-accent) !important;
}

/* Видеоплеер обёртка */
.video-inside.video-responsive {
    border-radius: var(--ek-radius-md);
    overflow: hidden;
    box-shadow: var(--ek-shadow-lg);
    margin: 0 15px;
}
.video-inside.video-responsive iframe {
    border-radius: var(--ek-radius-md);
}

/* Скриншоты */
.screens_cash > a.link_cash > img,
.screens_cash .text_spoiler > a.link_cash > img {
    border-radius: var(--ek-radius-sm) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screens_cash > a.link_cash:hover > img,
.screens_cash .text_spoiler > a.link_cash:hover > img {
    transform: scale(1.03);
    box-shadow: var(--ek-shadow-md);
}

/* =============================================================
   КНОПКИ СКАЧИВАНИЯ — ПОЛНЫЙ РЕДИЗАЙН
   ============================================================= */
.download_file {
    background: transparent !important;
    border-radius: var(--ek-radius-md) !important;
    margin: 15px !important;
    padding: 0 !important;
    flex-direction: column !important;
    gap: 0;
    color: var(--ek-text-primary) !important;
}

/* Карточка скачивания */
.ek-download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--ek-bg-hover);
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius-md);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    gap: 16px;
}
.ek-download-card:hover {
    border-color: var(--ek-accent);
    box-shadow: 0 0 0 3px var(--ek-accent-glow);
    transform: translateX(3px);
}
.ek-download-card:last-child {
    margin-bottom: 0;
}

.ek-download-card .ek-dl-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.ek-download-card .ek-dl-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: #fff;
}
.ek-dl-icon.torrent { background: linear-gradient(135deg, #2bb42b, #1e8a1e); }
.ek-dl-icon.telegram { background: linear-gradient(135deg, #0088cc, #0077b5); }
.ek-dl-icon.telegram-vip { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ek-dl-icon.telegram-boosty { background: linear-gradient(135deg, #f97316, #ea580c); }
.ek-dl-icon.cloud { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.ek-dl-icon.mega { background: linear-gradient(135deg, #d32f2f, #b71c1c); }
.ek-dl-icon.default { background: linear-gradient(135deg, #6b7280, #4b5563); }

.ek-download-card .ek-dl-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--ek-text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ek-download-card .ek-dl-sub {
    font-size: 12px;
    color: var(--ek-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ek-download-card a.btn,
.ek-download-card .btn {
    background: var(--ek-gradient-accent) !important;
    color: #fff !important;
    border-radius: 25px !important;
    padding: 9px 24px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px var(--ek-accent-glow);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease !important;
}
.ek-download-card a.btn:hover,
.ek-download-card .btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 18px var(--ek-accent-glow) !important;
    transform: translateY(-1px);
}

/* Старые download_file — совместимость (для торрент-файлов DLE) */
.download_file:not(.ek-downloads-wrap) {
    background: var(--ek-bg-dark-block) !important;
    border-radius: 0 0 var(--ek-radius-md) var(--ek-radius-md) !important;
    padding: 16px 22px !important;
    margin: 25px -25px -22px !important;
}
.download_file:not(.ek-downloads-wrap) a.btn {
    background: var(--ek-gradient-accent) !important;
    border-radius: 25px !important;
    padding: 9px 24px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px var(--ek-accent-glow);
    transition: all 0.3s ease !important;
}
.download_file:not(.ek-downloads-wrap) a.btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 18px var(--ek-accent-glow) !important;
}

/* =============================================================
   ИНФОРМАЦИЯ О СКАЧИВАНИИ (БЛОК ПОДСКАЗОК)
   ============================================================= */
.ek-info-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin: 15px;
    border-radius: var(--ek-radius-md);
    border: 1px solid;
    font-size: 13px;
    line-height: 1.6;
}
.ek-info-block.warning {
    background: rgba(245,158,11,0.06);
    border-color: rgba(245,158,11,0.2);
    color: #92400e;
}
.ek-info-block.info {
    background: rgba(59,130,246,0.06);
    border-color: rgba(59,130,246,0.2);
    color: #1e40af;
}
.ek-info-block.danger {
    background: rgba(239,68,68,0.06);
    border-color: rgba(239,68,68,0.2);
    color: #991b1b;
}
.ek-info-block.purple {
    background: rgba(139,92,246,0.06);
    border-color: rgba(139,92,246,0.2);
    color: #5b21b6;
}
html[data-theme="dark"] .ek-info-block.warning { color: #fbbf24; }
html[data-theme="dark"] .ek-info-block.info { color: #60a5fa; }
html[data-theme="dark"] .ek-info-block.danger { color: #f87171; }
html[data-theme="dark"] .ek-info-block.purple { color: #a78bfa; }

.ek-info-block .ek-info-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* =============================================================
   РЕЙТИНГ В FULLSTORY — БОЛЬШИЕ КНОПКИ
   ============================================================= */
.fn_post_rate {
    margin: 20px 15px !important;
    border-radius: var(--ek-radius-md);
    overflow: hidden;
}
.fn_post_rate .rate_like-dislike {
    display: flex !important;
    gap: 0 !important;
}
.fn_post_rate .rate_like-dislike a {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}
.fn_post_rate .rate_like-dislike a:first-child {
    background: var(--ek-red) !important;
    color: #fff !important;
    border-right: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--ek-radius-md) 0 0 var(--ek-radius-md) !important;
}
.fn_post_rate .rate_like-dislike a:first-child:hover {
    background: #dc2626 !important;
    filter: brightness(1.1);
}
.fn_post_rate .rate_like-dislike a:last-child {
    background: var(--ek-accent) !important;
    color: #fff !important;
    border-radius: 0 var(--ek-radius-md) var(--ek-radius-md) 0 !important;
}
.fn_post_rate .rate_like-dislike a:last-child:hover {
    background: var(--ek-accent-hover) !important;
    filter: brightness(1.1);
}
.fn_post_rate a .fn_rating_post_count {
    background: rgba(255,255,255,0.15) !important;
    padding: 6px 14px !important;
    border-radius: 20px;
    font-size: 15px !important;
    min-width: auto !important;
}
.fn_post_rate a [class*="fa-"] {
    background: transparent !important;
    box-shadow: none !important;
    font-size: 18px !important;
    padding: 0 !important;
}

/* =============================================================
   КНОПКИ — RATE LIKE/DISLIKE В SHORTSTORY
   ============================================================= */
.rate_like-dislike a i.fa-thumbs-up {
    background: var(--ek-accent) !important;
    border-radius: 6px !important;
    padding: 6px !important;
}
.rate_like-dislike a i.fa-thumbs-down {
    background: var(--ek-red) !important;
    border-radius: 6px !important;
    padding: 6px !important;
}

/* =============================================================
   ПАГИНАЦИЯ — УЛУЧШЕНИЯ
   ============================================================= */
.pagination {
    gap: 4px;
    padding: 10px 0;
}
.pagination span {
    border-radius: var(--ek-radius-sm) !important;
    background: var(--ek-gradient-accent) !important;
    border: none !important;
    box-shadow: 0 2px 8px var(--ek-accent-glow);
}
.pagination a {
    border-radius: var(--ek-radius-sm) !important;
    border: 1px solid var(--ek-border) !important;
    transition: all 0.2s ease;
}
.pagination a:hover {
    border-color: var(--ek-accent) !important;
    color: var(--ek-accent);
    box-shadow: 0 2px 10px var(--ek-accent-glow);
}

/* =============================================================
   SIDEBAR — УЛУЧШЕНИЯ
   ============================================================= */
.aside_bl {
    border-radius: var(--ek-radius-md) !important;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.aside_title {
    border-radius: var(--ek-radius-md) var(--ek-radius-md) 0 0 !important;
    letter-spacing: 0.5px;
}

.inf_2 {
    transition: background 0.2s ease;
}
.inf_2:hover {
    background: var(--ek-bg-hover);
}

.inf_2 .inf_poster img {
    border-radius: var(--ek-radius-sm) !important;
    transition: transform 0.3s ease;
}
.inf_2:hover .inf_poster img {
    transform: scale(1.05);
}

/* =============================================================
   КОММЕНТАРИИ — УЛУЧШЕНИЯ
   ============================================================= */
.comments_bl {
    border-radius: var(--ek-radius-lg) !important;
    border: 1px solid var(--ek-border);
}
.fn_comment_item {
    transition: background 0.2s ease;
}
.fn_comment_item:hover {
    background: var(--ek-bg-hover);
}

/* =============================================================
   ОБЛАКО ТЕГОВ
   ============================================================= */
[class*="clouds_"] a {
    border-radius: 20px !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
[class*="clouds_"] a:hover {
    transform: translateY(-2px);
    box-shadow: var(--ek-shadow-sm);
}

/* =============================================================
   SCROLL-TO-TOP — УЛУЧШЕНИЯ
   ============================================================= */
.progress-wrap {
    right: 30px !important;
    bottom: 30px !important;
    width: 50px !important;
    height: 50px !important;
}
.progress-wrap::after,
.progress-wrap::before {
    line-height: 50px !important;
    height: 50px !important;
    width: 50px !important;
    font-size: 26px !important;
}

/* =============================================================
   АНИМАЦИИ
   ============================================================= */
@keyframes ek-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ek-slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes ek-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--ek-accent-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

/* Анимация появления карточек */
.short_item_load {
    animation: ek-fadeInUp 0.5s ease both;
}
.short_item_load:nth-child(1) { animation-delay: 0.05s; }
.short_item_load:nth-child(2) { animation-delay: 0.1s; }
.short_item_load:nth-child(3) { animation-delay: 0.15s; }
.short_item_load:nth-child(4) { animation-delay: 0.2s; }
.short_item_load:nth-child(5) { animation-delay: 0.25s; }

/* =============================================================
   КИНОПОИСК РЕЙТИНГ
   ============================================================= */
.inf_3 center a img[src*="kinopoisk"] {
    transition: opacity 0.3s ease;
}
.inf_3 center a:hover img[src*="kinopoisk"] {
    opacity: 0.8;
}

/* =============================================================
   FIXED POST
   ============================================================= */
.short_item_load.fixed_post {
    border: 1px solid rgba(43,180,43,0.2) !important;
    box-shadow: 0 0 0 3px rgba(43,180,43,0.06), var(--ek-shadow-sm) !important;
}
.short_item_load.fixed_post::before {
    background: var(--ek-accent) !important;
    height: 4px;
}

/* =============================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — ДОПОЛНЕНИЯ
   ============================================================= */
@media only screen and (max-width: 640px) {
    .short_item_top_content .poster {
        flex: 1 100% !important;
        max-width: 220px;
        margin: 0 auto 16px !important;
    }
    .short_item_load .short_item_top {
        padding: 16px 16px 0;
    }
    .short_item_load .short_item_bottom {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
    }
    .short_item_load .short_item_bottom a.btn {
        width: 100%;
        text-align: center;
    }
    .ek-download-card {
        flex-wrap: wrap;
        gap: 10px;
    }
    .ek-download-card a.btn {
        width: 100%;
        text-align: center;
    }
    .fn_post_rate .rate_like-dislike {
        flex-direction: column;
    }
    .fn_post_rate .rate_like-dislike a:first-child {
        border-radius: var(--ek-radius-md) var(--ek-radius-md) 0 0 !important;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .fn_post_rate .rate_like-dislike a:last-child {
        border-radius: 0 0 var(--ek-radius-md) var(--ek-radius-md) !important;
    }
}

@media only screen and (max-width: 480px) {
    .ek-theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-left: 8px;
    }
    .promo_item_content img {
        border-radius: var(--ek-radius-sm) !important;
    }
    .short_item_load {
        border-radius: var(--ek-radius-md) !important;
    }
}

/* =============================================================
   КАСТОМНЫЙ СКРОЛЛБАР (для Webkit-браузеров)
   ============================================================= */
html[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
}
html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--ek-bg-main);
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #3a3d4a;
    border-radius: 5px;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #4a4d5a;
}

/* =============================================================
   ПЛАВНЫЕ ПЕРЕХОДЫ ТЕМЫ
   ============================================================= */
body,
.container,
.header,
.short_item_load,
.aside_bl,
.aside_title,
.comments_bl,
.search form,
.search input,
input[type="text"],
input[type="password"],
textarea,
.inf_3,
.inf_2,
.global_promo,
.site-footer,
.pagination a,
.fn_comment_item,
.sub_nav,
.sub_nav a,
.user_panel .dropdown-menu-right {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
