/* =========================================
   1. VARIABLES, RESET & INP FIX
   ========================================= */
:root {
    --bg-main: #0f1115;      
    --bg-card: #181a20;      
    --bg-hover: #22252d;     
    --primary: #e5141e;      /* Классический красный (Tube Red) */
    --primary-glow: rgba(229, 20, 30, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #262933;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin:0; padding:0; box-sizing: border-box; }

html, body, div, span, h1, h2, h3, p, img, ul, li, a, button, input, textarea, .full-story-content {
    touch-action: manipulation !important;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: #ff5773; }
ul { list-style: none; }

.wrp { margin: 0 auto; width: 96%; max-width: 1280px; }

#topbar, #topbar .whline, #toolbar, #headnav, #footer .whline, #pagebg {
    background: none !important; border: none !important; padding: 0 !important; margin: 0 !important;
}
.clrfix:after { content: none; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
#header {
    background: rgba(24, 26, 32, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.header-main-panel { display: flex; align-items: center; gap: 24px; position: relative; }

/* ВОЗВРАЩЕННЫЙ ЛОГОТИП-КАРТИНКА */
.logo { margin: 0; flex-shrink: 0; padding: 0; }
.logo a {
    display: block; width: 180px; height: 50px;
    background-image: url('https://k2s.club/templates/k2s/images/logo.png');
    background-size: contain; background-position: center left; background-repeat: no-repeat;
}
.logo-prefix, .logo-main { display: none; }

.header-nav-menu { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-right: auto; }
.header-nav-menu li a { color: var(--text-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.header-nav-menu li a:hover { color: var(--text-main); }

#searchbar { flex-grow: 1; max-width: 280px; margin-left: auto; }
#searchbar form { display: flex; position: relative; width: 100%; }
#searchbar input {
    background: var(--bg-main); border: 1px solid var(--border-color); color: var(--text-main);
    border-radius: var(--radius-lg); padding: 0 45px 0 20px; height: 44px; width: 100%;
    font-size: 14px; transition: var(--transition); outline: none;
}
#searchbar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
#searchbar .btn {
    position: absolute; right: 5px; top: 5px; height: 34px; width: 34px;
    background: var(--primary); color: #fff; border: none; border-radius: 50%;
    cursor: pointer; font-weight: bold; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
#searchbar .btn:hover { background: #ff5773; transform: scale(1.05); }

/* =========================================
   3. ГЛАВНАЯ СЕТКА (GRID)
   ========================================= */
.main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding-top: 30px; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.story-grid > .pager,
.story-grid > .navigation,
.story-grid > center,
.story-grid > form,
.story-grid > div[style*="clear"],
.story-grid > :not(article) {
    grid-column: 1 / -1 !important; 
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.colnews { float: left; }
.colnews:nth-child(2n+1) { clear: left; }
#midside:after { content: ""; display: table; clear: both; }

/* =========================================
   4. КАРТОЧКИ ВИДЕО (SHORTSTORY & SEARCH)
   ========================================= */
.new-story {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); overflow: hidden;
    transition: var(--transition); display: flex; flex-direction: column;
}
.new-story:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

.new-story-content { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; }
.new-story-content img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; background-color: #25272B; }
.new-story:hover .new-story-content img { transform: scale(1.05); }

.new-story-header, .new-story-meta { display: none; } 

.story-badges {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: flex; gap: 5px; flex-wrap: wrap;
    font-size: 0 !important; 
    color: transparent !important;
    overflow: hidden; max-height: 26px; 
}
.story-badges a {
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); color: #fff !important;
    padding: 4px 8px; border-radius: 4px; font-size: 11px !important; font-weight: 600; text-transform: uppercase;
    line-height: 1.2; display: inline-block;
}
/* Оставляем только ПЕРВУЮ категорию на картинке */
.story-badges a:nth-child(n+2) { display: none !important; }

.new-story-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.new-story-info h2 { font-size: 15px; font-weight: 500; line-height: 1.4; margin-bottom: 10px; }
.new-story-info h2 a { color: var(--text-main); }
.new-story-info h2 a:hover { color: var(--primary); }

.new-story-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-color); font-size: 12px; color: var(--text-muted);
}
.story-info-list { display: flex; gap: 10px; }
.story-dl-btn {
    background: rgba(229, 20, 30, 0.1); color: var(--primary);
    padding: 6px 12px; border-radius: var(--radius-sm); font-weight: 600; transition: var(--transition);
}
.new-story:hover .story-dl-btn { background: var(--primary); color: #fff; }

/* =========================================
   5. САЙДБАР (SIDEBAR)
   ========================================= */
#sidebar { width: 100%; }
.sidebox { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-color); margin-bottom: 25px; overflow: hidden; }
.sidetitle { background: rgba(255,255,255,0.02); padding: 16px 20px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: #fff; border-bottom: 1px solid var(--border-color); }
.sidecont { padding: 5px 0; }
.catmenu li, .postlist li { border-bottom: 1px solid var(--border-color); padding: 0; }
.catmenu li:last-child, .postlist li:last-child { border-bottom: none; }
.catmenu li a, .postlist li a { display: block; padding: 12px 20px; color: var(--text-muted); transition: var(--transition); font-weight: 500; }
.catmenu li a:hover, .postlist li a:hover { background: var(--bg-hover); color: var(--primary); padding-left: 25px; }
.catmenu .menu-divider { height: 4px; background: var(--bg-main); border: none; margin: 5px 0; }

/* =========================================
   6. ПОЛНАЯ НОВОСТЬ (FULLSTORY)
   ========================================= */
.full-story-container { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-color); padding: 25px; margin-bottom: 30px; }
.full-story-header { margin-bottom: 15px; }
.full-story-header h1 { font-size: 24px; color: #fff; font-weight: 600; line-height: 1.3; margin: 0; }

.full-story-meta {
    display: flex; flex-direction: column; gap: 12px;
    background: rgba(255, 255, 255, 0.02); padding: 20px; 
    border-radius: var(--radius-md); margin-bottom: 25px; 
    border: 1px solid var(--border-color);
}
.meta-item { display: flex; align-items: flex-start; }
.meta-label {
    font-size: 13px; color: var(--text-muted); text-transform: uppercase; 
    letter-spacing: 0.5px; font-weight: bold; width: 110px; flex-shrink: 0; padding-top: 4px;
}
.meta-values {
    display: flex; flex-wrap: wrap; gap: 6px;
    font-size: 0 !important; color: transparent !important; line-height: 0;
}
.meta-values a, .meta-values span {
    font-size: 13px !important; color: var(--text-main) !important;
    background: var(--bg-hover); padding: 4px 12px; border-radius: 4px; 
    border: 1px solid var(--border-color); transition: var(--transition);
    line-height: 1.4; display: inline-flex; align-items: center;
}
.meta-values a:hover { background: var(--primary); border-color: var(--primary); color: #fff !important; }

.meta-values.actress-list a {
    background: rgba(229, 20, 30, 0.1); color: var(--primary) !important;
    border-radius: 20px; border: 1px solid rgba(229, 20, 30, 0.2);
}
.meta-values.actress-list a:hover { background: var(--primary); color: #fff !important; }

.full-story-content img { display: block; max-width: 100%; height: auto !important; margin: 20px auto; border-radius: var(--radius-sm); object-fit: contain; }

.js-hidden-content, .js-old-content { display: none; }
.js-hidden-content.is-visible, .js-old-content.is-visible { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.download-button {
    background: var(--primary); color: #fff !important; padding: 14px 28px; border-radius: var(--radius-lg);
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow); transition: var(--transition); border: none; cursor: pointer; width: 100%; max-width: 350px;
}
.download-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229, 20, 30, 0.6); }

.download-links { background: var(--bg-main); padding: 20px; border-radius: var(--radius-md); margin-top: 15px; border: 1px solid var(--border-color); text-align: left; }
.download-links a { color: var(--primary); word-wrap: break-word; }
.download-links a:hover { text-decoration: underline; }
.preview-frame iframe { border-radius: var(--radius-md); overflow: hidden; max-width: 100%; }

.seo-relink-block { margin: 25px 0 15px; padding: 20px; background: rgba(229, 20, 30, 0.05); border-radius: var(--radius-md); border: 1px dashed var(--primary); text-align: left; }
.seo-relink-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.seo-relink-list a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed var(--primary); transition: color 0.2s; font-weight: 500; }
.seo-relink-list a:hover { color: #fff; border-bottom-style: solid; }

.promo-banner-container { margin: 25px 0; }
.promo-banner {
    display: flex; align-items: center; justify-content: center; width: 100%; max-width: 700px; min-height: 100px;
    margin: 0 auto; background-color: #2c2c2c;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.02) 75%, transparent 75%, transparent 100%);
    background-size: 40px 40px; border-radius: var(--radius-md); box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 15px 20px; text-align: center; transition: var(--transition);
}
.promo-banner:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.promo-banner-content { display: flex; flex-direction: column; align-items: center; }
.promo-main-text { font-size: 22px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.promo-sub-text { font-size: 14px; color: #a0a0a0; margin-bottom: 10px; }
.promo-code { font-size: 12px; font-weight: bold; color: var(--primary); background: rgba(0,0,0,0.2); padding: 3px 10px; border-radius: 4px; }
.full-story-footer { padding: 15px 0 0 0; margin-top: 20px; border-top: 1px solid var(--border-color); }

/* =========================================
   7. ПАГИНАЦИЯ И ТЕГИ
   ========================================= */
.pager { margin: 40px 0; display: flex; justify-content: center; width: 100%; }
.navigation { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; margin: 0; padding: 0;}
.navigation a, .navigation span {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin: 0 !important;
    border-radius: var(--radius-sm); font-weight: 600; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted); transition: var(--transition);
}
.navigation a:hover { border-color: var(--primary); color: var(--primary); }
.navigation span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pnext, .pprev { display: none !important; }

.tags-cloud-wrap, .ftags { text-align: center; line-height: 2.0; }
.tags-cloud-wrap { text-align: left; }
.tags-cloud-wrap span a, .ftags span a {
    display: inline-block; margin: 3px 2px; padding: 5px 12px; background-color: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-muted) !important; transition: var(--transition);
}
.tags-cloud-wrap span a:hover, .ftags span a:hover {
    background-color: var(--primary); border-color: var(--primary); color: #fff !important; transform: translateY(-2px);
}

/* =========================================
   8. FOOTER & SEO ТЕКСТ
   ========================================= */
#seo-main-text { margin-top: 40px; background: var(--bg-card); padding: 30px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
#seo-main-text .basecont { color: var(--text-muted); }
#seo-main-text .basecont h2 { color: #fff; font-size: 22px; margin-bottom: 15px; text-align: center; }
#seo-main-text .basecont h3 { color: #fff; font-size: 18px; margin-bottom: 10px; margin-top: 20px; }
#seo-main-text .basecont p { margin-bottom: 15px; }

#footer { background: var(--bg-card); border-top: 1px solid var(--border-color); margin-top: 50px; padding: 40px 0; text-align: center; }
.ftags { padding: 0 20px 25px 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 25px; }
.fmenu { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 20px; }
.fmenu a { color: var(--text-muted) !important; font-weight: 500; }
.fmenu a:hover { color: var(--primary) !important; }
.copyright { color: var(--text-muted) !important; font-size: 13px; }

/* =========================================
   9. СТРАНИЦА МОДЕЛЕЙ (MODELS)
   ========================================= */
html { scroll-behavior: smooth; }
.model-letter-section { scroll-margin-top: 90px; margin-bottom: 40px; }
.model-alphabet {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    background: var(--bg-card); padding: 20px; border-radius: var(--radius-lg);
    border: 1px solid var(--border-color); margin-bottom: 30px;
}
.model-alphabet a {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); color: #fff !important; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
}
.model-alphabet a:hover:not(.disabled) { background: var(--primary); transform: scale(1.1); }
.model-alphabet a.disabled { opacity: 0.2; cursor: default; }

.model-letter-section h3 {
    color: #fff; border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 20px; font-size: 24px; display: inline-block;
}
.model-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.model-item {
    background: var(--bg-card); color: var(--text-muted) !important; padding: 12px 15px;
    border-radius: var(--radius-md); border: 1px solid var(--border-color); font-weight: 500; transition: var(--transition);
}
.model-item:hover { background: rgba(229, 20, 30, 0.1); color: var(--primary) !important; border-color: var(--primary); }

/* =========================================
   10. МОБИЛЬНЫЕ СТИЛИ И МЕНЮ
   ========================================= */
.mobile-controls, #mobile-search-bar { display: none; }

@media (max-width: 1200px) {
    .main-layout { grid-template-columns: 1fr; }
    #sidebar { max-width: 100%; }
    .header-nav-menu, #searchbar { display: none; }
    .mobile-controls { display: flex; align-items: center; gap: 15px; margin-left: auto; }
    .mobile-hidden { display: none !important; }
}

@media (max-width: 768px) {
    .story-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .full-story-container { padding: 15px; }
}

@media (max-width: 480px) {
    .story-grid { grid-template-columns: 1fr; }
    .logo a { width: 150px; height: 40px; } /* Адаптируем лого-картинку на мобилках */
}

.mobile-search-toggle, .mobile-menu-toggle {
    width: 30px; height: 30px; background: transparent; border: none; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center; z-index: 1005;
}
.mobile-search-toggle::before { content: ''; display: block; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; position: relative; top: -2px; left: -2px; }
.mobile-search-toggle::after { content: ''; display: block; width: 2px; height: 7px; background: #fff; position: absolute; transform: rotate(-45deg); top: 20px; left: 20px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 3px; background: #fff; border-radius: 3px; transition: 0.3s; }
.mobile-menu-toggle span:not(:last-child) { margin-bottom: 5px; }
body.mobile-menu-active .mobile-menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.mobile-menu-active .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
body.mobile-menu-active .mobile-menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-search-bar { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-card); z-index: 2000; align-items: center; padding: 0 15px; display: none; }
#mobile-search-bar.is-visible { display: flex; }
#mobile-search-bar form { display: flex; width: 100%; }
#mobile-search-bar input { -webkit-appearance: none; background: var(--bg-main); border: 1px solid var(--border-color); color: #fff; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 0 15px; height: 44px; font-size: 16px; width: 100%; flex-grow: 1; outline: none; }
#mobile-search-bar .btn { padding: 0 20px; height: 44px; border: none; color: #fff; font-weight: bold; background: var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.search-close-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 24px; cursor: pointer; margin-left: 10px; }

#mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 17, 21, 0.98); z-index: 1001; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.4s; backdrop-filter: blur(10px); }
#mobile-menu.is-open { opacity: 1; visibility: visible; }
#mobile-menu ul { list-style: none; text-align: center; padding: 0; }
#mobile-menu ul li a { color: #fff; font-size: 20px; font-weight: bold; padding: 15px; display: block; text-transform: uppercase; }
#mobile-menu ul li a:hover { color: var(--primary); }

/* =========================================
   11. СТРАНИЦА ПОИСКА (SEARCH)
   ========================================= */
.search-page-container { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); 
    margin-bottom: 30px; 
    overflow: hidden; 
    grid-column: 1 / -1 !important; 
    width: 100%; 
}
.search-page-header { 
    background: rgba(255, 255, 255, 0.02); 
    padding: 20px 25px; 
    display: flex; 
    align-items: center;
    border-bottom: 1px solid var(--border-color); 
}
.search-page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.search-page-content { padding: 25px; color: var(--text-muted); }

/* ЖЕСТКО УБИВАЕМ ВСЕ РАМКИ, ПОЛОСКИ И FIELDSET ОТ DLE */
#searchtable table, #searchtable tbody, #searchtable tr, #searchtable td, #searchtable th { 
    border: none !important; 
    background: transparent !important; 
    padding: 6px 5px !important;
    vertical-align: middle !important; /* Выравниваем всё строго по центру по вертикали */
}
#searchtable fieldset { border: none !important; padding: 0 !important; margin: 0 !important; } /* Убивает непонятную полоску-рамку! */
#searchtable legend { display: none !important; }
#searchtable hr { display: none !important; } 

/* Поля ввода */
#searchtable input[type="text"], #searchtable input[type="password"], #searchtable select { 
    background: var(--bg-main) !important; border: 1px solid var(--border-color) !important; color: var(--text-main) !important; 
    padding: 10px 15px !important; border-radius: var(--radius-sm) !important; width: 100%; max-width: 400px; 
    outline: none; font-family: inherit; margin: 0 !important;
}
#searchtable input[type="text"]:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--primary-glow) !important; }

/* Кнопки поиска - убрал верхний отступ (margin-top: 0) */
#searchtable input[type="button"], #searchtable input[type="submit"], #searchtable button { 
    background: var(--primary) !important; color: #fff !important; border: none !important; 
    padding: 10px 25px !important; border-radius: var(--radius-sm) !important; cursor: pointer; 
    font-weight: 700; text-transform: uppercase; font-size: 13px; 
    margin: 0 10px 0 0 !important; /* Верхний отступ теперь 0, кнопки не будут сползать вниз! */
    display: inline-block; vertical-align: middle !important;
}
#searchtable input[type="button"]:hover, #searchtable input[type="submit"]:hover { 
    background: #ff5773 !important; transform: translateY(-2px); box-shadow: 0 4px 15px var(--primary-glow); 
}

/* Делаем кнопку "Advanced search" второстепенной (темной) */
#searchtable input[type="button"][value="Advanced search"],
#searchtable input[type="button"][id="dofullsearch"],
#searchtable input[type="button"][name="dofullsearch"] {
    background: var(--bg-hover) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}
#searchtable input[type="button"][value="Advanced search"]:hover,
#searchtable input[type="button"][id="dofullsearch"]:hover {
    background: var(--border-color) !important;
}

#searchtable input[type="radio"], #searchtable input[type="checkbox"] { margin-right: 5px; accent-color: var(--primary); cursor: pointer; width: 16px; height: 16px; vertical-align: middle; }
#searchtable label { cursor: pointer; margin-right: 15px; display: inline-flex; align-items: center; font-size: 13px; }

/* ИСПРАВЛЕНИЕ: Добавили боковые отступы (padding), чтобы текст не врезался в края */
.search-results-info { 
    grid-column: 1 / -1 !important; 
    background: transparent !important; 
    color: #fff !important; 
    padding: 10px 20px !important; /* 20px по бокам не дадут врезаться в рамку */
    margin-bottom: 20px !important; 
    font-size: 16px !important; 
    font-weight: 700 !important; 
    border: none !important; 
    border-bottom: 1px solid var(--border-color) !important; 
    text-align: left !important; 
    width: 100% !important; 
}




/* Делаем контейнер блочным и задаем позиционирование */
.hover-preview {
    position: relative !important;
    display: block !important;
    
    /* Современный кастомный курсор (полупрозрачный круг со стрелками) */
    cursor: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='18' cy='18' r='15' fill='%23000000' fill-opacity='0.6'/%3E%3Cpath d='M14 12L9 18L14 24M22 12L27 18L22 24' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 18 18, pointer !important;
    
    overflow: hidden !important;

    /* --- НОВОЕ: Фиксируем пропорции блока (стандарт 16:9 для видео) --- */
    aspect-ratio: 16 / 9;
    /* --- НОВОЕ: Задаем темный фон для пустых краев вертикальных фото --- */
    background-color: #000000;
}

/* Убираем пустую зону под картинкой (браузерный баг) */
.hover-preview img {
    display: block !important;
    width: 100%;
    
    /* --- НОВОЕ: Заставляем картинку слушаться высоты контейнера --- */
    height: 100%;
    /* --- НОВОЕ: Вписываем фото целиком, чтобы ничего не обрезалось --- */
    object-fit: contain !important; 
}

/* Сама полоска - форсируем поверх всех элементов */
.scrub-progress {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 4px !important; 
    background-color: #ff0000 !important; /* Красный цвет */
    z-index: 9999 !important; /* Вытягиваем поверх картинки */
    opacity: 0; /* JS и hover сами управляют видимостью */
    transition: opacity 0.2s ease !important;
    pointer-events: none !important;
    /* ВАЖНО: не добавляй сюда width: 0% с !important, иначе JS не сможет ее двигать */
}

/* Показываем полоску */
.hover-preview:hover .scrub-progress,
.hover-preview.is-active .scrub-progress {
    opacity: 1 !important;
}






/* Убиваем любые черные отступы сверху в блоке похожих новостей */
.related-grid .new-story-content {
    padding-top: 0 !important; /* Убираем тот самый отступ сверху */
    position: relative !important;
    overflow: hidden !important;
    background: none !important; /* Убираем черный фон контейнера */
}

/* Настраиваем превью */
.related-grid .hover-preview {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important; /* Принудительно 16:9 */
    margin: 0 !important;
}

/* Настраиваем картинку, чтобы она «впилась» в края */
.related-grid .hover-preview img {
    position: absolute !important; /* Вырываем из потока, чтобы игнорировать падинги */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Заполняем всё без полос */
    margin: 0 !important;
}