@charset "utf-8";
/* ==========================================================================
   NEO-BRUTALIST DESIGN SYSTEM FOR MULTCLUB (styles_v5.css)
   BOLD. LOUD. SYSTEMATIC. USABLE. (Desktop 1270px + Mobile/iPad + Smart TV)
   ========================================================================== */

@font-face {
    font-family: 'Gilroy-Regular';
    src: url('fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* --- ТЁМНАЯ НЕО-БРУТАЛИСТСКАЯ ТЕМА (ПО УМОЛЧАНИЮ) --- */
    --dark-bg: #121316;
    --dark-card: #1E2028;
    --dark-zard: #00C2CB;           /* Accent Teal из 12.jpg */
    --dark-tex: #F5F2E8;
    --dark-text: #F4F4F6;
    --dark-accent: #FFD43B;         /* Accent Yellow из 1.jpg / 12.jpg */
    --dark-secondary: #FF7A45;      /* Coral Orange из 31.jpg */
    --dark-border: #000000;         /* Чёткий чёрный контур */
    --dark-stroke: #383C4A;         /* Внутренний контур для тёмной темы */
    --dark-link: #00C2CB;
    --dark-shadow: #000000;
    --dark-section: #181A20;
    --dark-section2: #15171C;
    --dark-update: #B8BCC8;
    --dark-alphabet: #252832;
    --dark-season: #252832;
    --dark-season-active: #FF7A45;

    /* --- СВЕТЛАЯ НЕО-БРУТАЛИСТСКАЯ ТЕМА (PAPER BEIGE ИЗ 1.jpg / 12.jpg / 31.jpg) --- */
    --light-bg: #F5F2E8;            /* Paper Beige */
    --light-card: #FFFFFF;          /* Чистый белый для карточек */
    --light-zard: #00C2CB;
    --light-tex: #111111;
    --light-text: #111111;
    --light-accent: #FFD43B;        /* Яркий жёлтый акцент */
    --light-secondary: #FF6B4A;     /* Коралловый акцент */
    --light-border: #111111;        /* Жирная чёрная обводка */
    --light-stroke: #111111;
    --light-link: #00A8B0;
    --light-shadow: #111111;
    --light-section: #FAF8F2;
    --light-section2: #EFECE1;
    --light-update: #444444;
    --light-alphabet: #FFFFFF;
    --light-season: #FFFFFF;
    --light-season-active: #FF6B4A;

    /* --- АКТИВНЫЕ ТОКЕНЫ (ТЁМНАЯ ПО УМОЛЧАНИЮ) --- */
    --theme-bg: var(--dark-bg);
    --theme-card: var(--dark-card);
    --theme-card-bg: var(--dark-card);
    --theme-zard: var(--dark-zard);
    --theme-tex: var(--dark-tex);
    --theme-text: var(--dark-text);
    --theme-accent: var(--dark-accent);
    --theme-secondary: var(--dark-secondary);
    --theme-border: var(--dark-stroke);
    --theme-hard-border: #000000;
    --theme-link: var(--dark-link);
    --theme-shadow: rgba(0, 0, 0, 0.9);
    --theme-section-bg: var(--dark-section);
    --theme-section-bg2: var(--dark-section2);
    --theme-update-item: var(--dark-update);
    --theme-update-featured: #282B36;
    --theme-alphabet-bg: var(--dark-alphabet);
    --theme-alphabet-border: var(--dark-stroke);
    --theme-alphabet-title: var(--dark-accent);
    --theme-alphabet-letter: var(--dark-text);
    --theme-season-card: var(--dark-season);
    --theme-season-active: var(--dark-season-active);
    --theme-btn-text: #111111;

    /* Elevation Tokens из 12.jpg */
    --nb-border: 2px solid var(--theme-border);
    --nb-shadow-sm: 3px 3px 0px var(--theme-hard-border);
    --nb-shadow-md: 4px 4px 0px var(--theme-hard-border);
    --nb-shadow-lg: 6px 6px 0px var(--theme-hard-border);
    --nb-radius: 8px;
    --nb-radius-sm: 5px;
    --nb-radius-pill: 999px;
}

.light-theme {
    --theme-card: var(--light-card);
    --theme-card-bg: var(--light-card);
    --theme-bg: var(--light-bg);
    --theme-zard: var(--light-zard);
    --theme-tex: var(--light-tex);
    --theme-text: var(--light-text);
    --theme-accent: #E5B800;
    --theme-secondary: var(--light-secondary);
    --theme-border: #111111;
    --theme-hard-border: #111111;
    --theme-link: var(--light-link);
    --theme-shadow: #111111;
    --theme-section-bg: var(--light-section);
    --theme-section-bg2: var(--light-section2);
    --theme-update-item: var(--light-update);
    --theme-update-featured: #FFF6D6;
    --theme-alphabet-bg: var(--light-alphabet);
    --theme-alphabet-border: #111111;
    --theme-alphabet-title: #111111;
    --theme-alphabet-letter: #111111;
    --theme-season-card: var(--light-season);
    --theme-season-active: var(--light-season-active);
    --theme-btn-text: #111111;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

html, body {
    overflow-x: hidden;
}

/* Точечный паттерн фона (как в 1.jpg и 31.jpg) */
body {
    font-family: "Gilroy-Regular", 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--theme-text);
    background-color: var(--theme-bg);
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.6;
}

body.light-theme {
    background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

iframe { 
    border-color: var(--theme-border); 
}

a {
    text-decoration: none;
    color: var(--theme-accent);
}

.light-theme a {
    color: #111111;
}

a:hover {
    color: var(--dark-zard);
}

/* Правило FOCUS ALWAYS VISIBLE из 12.jpg */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid #FFD43B !important;
    outline-offset: 2px;
    box-shadow: 4px 4px 0px #000 !important;
}

/* ========== HEADER ========== */
header {
    background-color: var(--theme-card);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    color: var(--theme-text);
    border-bottom: 3px solid var(--theme-border);
    overflow: visible;
    width: 100%;
    max-width: 1270px;
    margin: 0 auto;
}

header::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 94px;
    height: 70px;
    background: url(../../img/hbl.webp) no-repeat 0% 50%;
    background-size: contain;
    z-index: 0;
}

header::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 88px;
    height: 70px;
    background: url(../../img/hb.webp) no-repeat 100% 50%;
    background-size: contain;
    z-index: 0;
}

header.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1270px;
    z-index: 1100;
    background: var(--theme-card);
    border-bottom: 3px solid var(--theme-border);
    box-shadow: 0 6px 0px var(--theme-hard-border);
    animation: slideDown 0.35s ease;
    margin: 0;
}

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-100%); }
    to { transform: translateX(-50%) translateY(0); }
}

.header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-menu {
    flex: 1;
    margin: 0 20px;
    position: relative;
}

.header-menu nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 15px;
}

.header-menu nav li {
    position: relative;
}

/* Кнопки в шапке в стиле Neo-Brutalist Pills (1.jpg / 12.jpg) */
.header-menu nav a {
    text-transform: uppercase;
    display: block;
    padding: 7px 22px;
    border: 2px solid var(--theme-hard-border);
    background: #FFD43B;
    color: #111111 !important;
    border-radius: var(--nb-radius-sm);
    box-shadow: var(--nb-shadow-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

.header-menu nav a:hover {
    background: #00C2CB;
    color: #111111 !important;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--theme-hard-border);
}

.header-menu nav a:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--theme-hard-border);
}

/* ========== ИГРЫ И ПЛЕЕР ========== */
.game-block {
    width: 100%;
    margin-top: 15px;
    max-width: 900px;
    background: var(--theme-card-bg);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow-md);
    overflow: hidden;
}

.game-frame {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 600px; 
    background: #000;
}

.game-frame:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.game-frame iframe,
.game-frame embed,
.game-frame object {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.fullscreen-button {
    background: #FFD43B;
    color: #111111;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--theme-hard-border);
    box-shadow: var(--nb-shadow-sm);
    padding: 8px 16px;
    border-radius: var(--nb-radius-sm);
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.fullscreen-button:hover {
    background: #00C2CB;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--theme-hard-border);
}

.game-info {
    padding: 18px;
    text-align: left;
    color: var(--theme-text);
}

.game-info h2 {
    margin: 0 0 8px; 
    color: var(--theme-accent);
    text-transform: uppercase; 
    font-size: 15px;
    font-weight: 700;
}

.game-info li {
    padding: 5px;
    line-height: 1.4;
}

.game-info p {
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
}

/* Выпадающие меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 355px;
    background: var(--theme-card);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow-lg);
    z-index: 1200;
    display: none;
    padding: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    margin: 6px 0;
    background: var(--theme-section-bg);
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.dropdown-menu a:hover {
    background: #00C2CB;
    color: #111 !important;
    transform: translate(-2px, -2px);
    box-shadow: var(--nb-shadow-sm);
}

body.menu-open {
    overflow: hidden;
}

.dropdown-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 220px;
    background: var(--theme-card);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow-lg);
    display: none;
    padding: 10px;
}

.dropdown-submenu:hover .submenu {
    display: block;
}

.vpn-highlight {
    background: #FFD43B;
    color: #111111 !important;
    -webkit-text-fill-color: #111111;
    padding: 1px 8px;
    border-radius: 4px;
    border: 2px solid #000;
    font-weight: 800;
    box-shadow: 2px 2px 0px #000;
    display: inline-block;
}

.hr-line {
    width: 60%;
    margin: 12px auto 16px auto;
    padding: 0;
    height: 0;
    border: none;
    border-top: 2px solid var(--theme-border);
}

/* Плашки связей/франшиз под описанием (.season) */
.season {
    display: flex;
    font-size: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 10px 0 10px;
}

.season p {
    color: #111111;
    padding: 6px 14px;
    margin: 0 4px 8px 4px;
    box-sizing: border-box;
    background-color: #FFD43B;
    text-decoration: none;
    letter-spacing: 0.3px;
    display: inline-block;
    flex-shrink: 0;
    border: 2px solid #000000;
    border-radius: var(--nb-radius-sm);
    box-shadow: 3px 3px 0px #000000;
    font-family: Gilroy-Regular, sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 14px;
    transition: all .15s ease;
}

.season p a {
    text-decoration: none;
    color: #111111;
}

.season p:hover {
    background-color: #00C2CB;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

.season-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 10px 8px 0;
    color: var(--theme-alphabet-title);
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 1500;
}

.mobile-menu-backdrop.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 320px;
    max-width: 100vw;
    height: 100%;
    background: var(--theme-card);
    z-index: 2000;
    transition: transform 0.35s ease;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -6px 0 0px var(--theme-hard-border);
    border-left: 3px solid var(--theme-border);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    font-weight: 800;
    color: #111;
    cursor: pointer;
    z-index: 2001;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--nb-radius-sm);
    background: #FFD43B;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.mobile-menu-close:hover {
    background: #FF6B4A;
    color: #fff;
    transform: translate(-1px, -1px);
}

.mobile-menu-close::before {
    content: "×";
    display: inline-block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    margin-top: 42px;
}

.mobile-menu-section {
    margin-bottom: 25px;
}

.mobile-menu-title {
    color: var(--theme-accent);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--theme-border);
    padding-bottom: 8px;
}

.mobile-menu a {
    display: block;
    padding: 11px 15px;
    margin: 7px 0;
    background: var(--theme-section-bg);
    border-radius: var(--nb-radius-sm);
    color: var(--theme-text);
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--theme-border);
    box-shadow: var(--nb-shadow-sm);
}

.mobile-menu a:hover {
    background: #FFD43B;
    color: #111111 !important;
    border-color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
}

.mobile-submenu {
    padding-left: 16px;
    display: none;
    margin-top: 8px;
    border-left: 3px solid var(--theme-accent);
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu a {
    padding: 8px 12px;
    margin: 5px 0;
    font-size: 12.5px;
    background: var(--theme-alphabet-bg);
}

.mobile-menu .menu-item[data-submenu] > a {
    position: relative;
    padding-right: 25px !important;
}

.mobile-menu-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.menu-item {
    position: relative;
}

/* Алфавит (5 букв в ряд) в мобильном меню */
.mobile-menu .mobile-alphabet-box {
    margin: 15px 0 35px 0;
    padding: 12px 10px 25px 10px;
}

.mobile-menu .mobile-alphabet-box .alphabet-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    justify-items: center;
}

.mobile-menu .mobile-alphabet-box a.letter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 0;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: var(--theme-text);
    background: var(--theme-section-bg);
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: 2px 2px 0px var(--theme-hard-border);
}

.mobile-menu .mobile-alphabet-box a.letter:hover {
    background: #FFD43B;
    color: #111 !important;
    border-color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
}

/* Кнопка "Поддержать сайт" и Джинн СПРАВА над ней */
.mobile-menu .sidebar-buttons2 {
    position: relative;
    margin: 95px 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    text-align: center;
}

.mobile-menu .sidebar-buttons2::before {
    content: "";
    position: absolute;
    top: 0;
    right: 10px;
    left: auto;
    transform: translateY(-100%);
    width: 100px;
    height: 100px;
    background: url("../../img/jin.webp") no-repeat right top;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.mobile-menu a.sidebar-button2 {
    display: inline-block;
    margin: 0;
    padding: 12px 24px;
    background: #FF7A45;
    color: #111111 !important;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--nb-radius-pill);
    border: 2px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    position: relative;
    z-index: 1;
}

.mobile-menu a.sidebar-button2:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
    background: #FFD43B;
    color: #111111 !important;
}

.com2com {
    border: var(--nb-border);
    box-sizing: border-box;
    padding: 7px;
    width: 99%;
    margin-top: 1px;
    margin-bottom: 5px;
    background-color: var(--theme-card);
}

/* ========== ТАБЫ ОЗВУЧКИ И ПЛЕЕР (TABS ИЗ 12.jpg) ========== */
.translation-tabs,
.tabs {
    display: flex;
    margin: 12px 12px 10px 12px;   
    flex-wrap: wrap;
    gap: 8px;    
    max-width: 100%;
    overflow-x: auto;           
}

.translation-tabs button,
.tabs button {
    padding: 9px 20px;
    background: var(--theme-card);
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: 3px 3px 0px var(--theme-hard-border);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    font-family: Gilroy-Regular, sans-serif;
    outline: none;
    color: var(--theme-text);
}

.translation-tabs button:hover,
.tabs button:hover {
    background: #00C2CB;
    color: #111111;
    border-color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

.translation-tabs > div,
.tabs > div {
    cursor: pointer;
    background: var(--theme-card);
    margin-right: 2px;
}

.translation-tabs > .active,
.translation-tabs button.active,
.translation-tabs > .active button,
.tabs > div.active,
.tabs > div.active button {
    background: #FFD43B !important;
    color: #111111 !important;
    border-color: #000000 !important;
    box-shadow: 3px 3px 0px #000000 !important;
    font-weight: 800;
}

.video-player-container {
    background: var(--theme-section-bg2);
    border: 3px solid var(--theme-border); 
    border-radius: var(--nb-radius); 
    overflow: hidden;  
    margin: 10px 10px 22px 10px;
    box-shadow: var(--nb-shadow-lg);
} 

.page-wrapper {
    width: 100%;
    min-width: 320px;
    max-width: 1270px;
    margin: 0 auto;
    position: relative;
    z-index: 200;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--theme-card);
    border-left: 3px solid var(--theme-border);
    border-right: 3px solid var(--theme-border);
    box-shadow: 8px 0 0px var(--theme-hard-border), -8px 0 0px var(--theme-hard-border);
} 

.player, .player-hood {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ifr, .video-iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: none;
    border-top: 2px solid var(--theme-border);
}

/* ========== СЕКЦИЯ КАРТОЧЕК МУЛЬТФИЛЬМОВ (CARD ИЗ 12.jpg) ========== */
.movies-section {
    background: var(--theme-section-bg);
    border-radius: var(--nb-radius);
    padding: 18px;
    margin: 25px 0;
    box-shadow: var(--nb-shadow-md);
    border: var(--nb-border);
}

.section-header h2 {
    color: var(--theme-accent);
    font-size: 26px;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.movies-category {
    margin-bottom: 38px;
}

.movies-category:last-child {
    margin-bottom: 0;
}

.movies-category h3 {
    display: inline-block;
    background: #FFD43B;
    color: #111111;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    padding: 4px 14px;
    border: 2px solid #000000;
    border-radius: var(--nb-radius-sm);
    box-shadow: 3px 3px 0px #000000;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.movie-card {
    background: var(--theme-card);
    text-decoration: none;
    border-radius: var(--nb-radius);
    overflow: hidden;
    border: 2px solid var(--theme-border);
    box-shadow: var(--nb-shadow-md);
}

.movie-card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--theme-accent);
    box-shadow: 7px 7px 0px var(--theme-hard-border);
}

.movie-poster {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--theme-border);
}

.movie-info {
    padding: 10px 8px;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-title {
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: 2.8em;
    line-height: 1.3;
}

.movie-year {
    color: var(--theme-secondary);
    font-size: 12px;
    font-weight: 700;
}

/* ========== ЛОГОТИП И ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ САЙДБАРА ========== */
.logo { 
    text-transform: uppercase;
    font-size: 22px;  
    padding-left: 30px;
    color: var(--theme-text); 
    text-decoration: none; 
    display: inline-block; 
    z-index: 1;
}

.logo a {
    display: block; 
    width: 250px;
    height: 50px;
    background: url('../../img/logo.webp') no-repeat center;
    background-size: contain;
    text-indent: -9999px; 
    z-index: 2;
}

.search-block-with-bg {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 1;
}

.search-block-with-bg::before {
    content: "";
    display: block;
    inset: 0; 
    position: absolute;
    left: 80%;
    top: -27px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: url('../../img/search.webp') no-repeat center/contain;
    pointer-events: none;
    z-index: 2;
}

.random-block-with-bg { 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.games-block {
    position: relative;
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 1;
}

.games-block::before,
.games-block::after {
    content: "";
    position: absolute;
    top: -27px;
    height: 88px;
    z-index: 2;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.games-block::before {
    left: -50px; 
    width: 180px;
    background-image: url('../../img/gp0.webp'); 
}

.games-block::after {
    right: 20px; 
    width: 65px;
    background-image: url('../../img/gp2.webp'); 
}

/* Кнопки в сайдбаре */
.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none; 
    text-align: center;
}

.sidebar-buttons2 {
    position: relative;
    margin: 70px 0px 0px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none; 
    text-align: center;
}

.sidebar-buttons2::before {
    content: "";
    position: absolute; 
    left: 54%;
    transform: translateX(-88%) translateY(-100%);
    width: 100%;
    height: 100px;
    background: url("../../img/jin.webp") no-repeat center top;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.sidebar-button { 
    width: 100%;  
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--theme-section-bg);
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: var(--nb-shadow-sm);
    color: var(--theme-text);
    font-weight: 700;
    text-decoration: none;
}

.sidebar-button:hover {
    background: #FFD43B;
    color: #111111 !important;
    border-color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

/* Кнопка "Поддержать сайт" в стиле Neo-Brutalist CTA (31.jpg / 1.jpg) */
.sidebar-button2 {
    display: inline-block;
    padding: 11px 24px;
    background: #FF7A45;
    color: #111111 !important;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--nb-radius-pill);
    border: 2px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    position: relative;
    overflow: hidden;
}

.sidebar-button2:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
    background: #FFD43B;
    color: #111111 !important;
}

.sidebar-button2:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000000;
}

/* Сезоны */
.seasons-container {
    background: var(--theme-section-bg);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    padding: 15px 20px 20px 20px;
    margin: 20px 0;
    box-shadow: var(--nb-shadow-md);
}

.seasons-header {
    color: var(--theme-accent); 
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;  
    font-size: 14px; 
    text-align: center; 
}

.seasons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.seasons-grid-item {
    white-space: nowrap;
}

.season-card {
    background: var(--theme-season-card); 
    padding: 6px 20px;
    text-align: center;
    border-radius: var(--nb-radius-sm);
    font-weight: 700;
    border: 2px solid var(--theme-border);
    box-shadow: var(--nb-shadow-sm);
}

.season-card.active {
    background: #FF7A45;
    color: #111111;
    font-weight: 800;
    border-color: #000000;
}

.season-link:hover .season-card {
    background: #FFD43B;
    color: #111111;
    border-color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

/* Меню подборок в сайдбаре */
.sidebar-menu-box {
    margin-bottom: 20px;
}

.sidebar-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.sidebar2 .sidebar-btn {
    letter-spacing: 0px;
    text-transform: uppercase;
    display: block;
    padding: 9px 10px;
    border: 2px solid #000000;
    background: #FFD43B;
    color: #111111 !important;
    border-radius: var(--nb-radius-sm);
    box-shadow: 3px 3px 0px #000000;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    list-style: none;
}

.sidebar2 .sidebar-btn:hover {
    background: #00C2CB;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
    color: #111111 !important;
}

.sidebar2 .summary-btn {
    position: relative;
}

.sidebar2 .sidebar-btn::-webkit-details-marker {
    display: none;
}

.sidebar2 .summary-btn::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: #111111;
}

details[open] > .summary-btn::after {
    content: '−';
}

.sidebar-submenu {
    margin-top: 6px;
    background: var(--theme-card);
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: var(--nb-shadow-sm);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar2 .sub-item {
    display: block;
    padding: 6px;
    text-align: center;
    text-decoration: none;
    color: var(--theme-text) !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.sidebar2 .sub-item:hover {
    background: #FFD43B;
    color: #111111 !important;
    border-color: #000000;
}

/* Хлебные крошки (BREADCRUMBS из 12.jpg) */
.uff {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 9px 15px;
    background-color: var(--theme-card);
    border-radius: var(--nb-radius-sm);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow-sm);
    color: var(--theme-text);
    font-family: "Gilroy-Regular", system-ui, sans-serif;
}

.uff .yel {
    color: var(--theme-accent); 
    text-decoration: none; 
}

.uff .divider, .uff .sep {
    color: var(--theme-secondary);
    margin: 0 6px;
    font-weight: 800;
}

.uff span:last-child {
    color: var(--theme-text);
    font-weight: 700;
}

.uff a {
    color: var(--theme-link);
    text-decoration: none;
    font-weight: 700;
}

.uff a:hover {
    text-decoration: underline;
}

.uff h1 {
    display: inline;
    font-size: inherit;
    font-weight: 700;
    margin: 0;
    color: var(--theme-text);
}

/* Мета-блок и описание */
.con-meta4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px;
    padding: 10px;
    background: var(--theme-section-bg);
    border-radius: var(--nb-radius);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow-sm);
    color: var(--theme-secondary);
    font-size: 14px; 
}

.con-meta {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    background: rgba(18, 19, 22, 0.92);
    border-radius: var(--nb-radius-sm);
    border: 2px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    padding: 7px 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.con-meta .meta-item:not(.age-badge):not(.status-badge) {
    background-color: transparent;
}

.con-meta .meta-item:not(.highlight-date):not(.accent) {
    color: #F4F4F6; 
    font-weight: 600;
}

.con-description {
    text-align: left;
    color: var(--theme-text); 
    margin: 20px 10px 12px 10px;    
    padding: 18px 24px; 
    font-family: "Gilroy-Regular", system-ui, sans-serif;
    font-size: 15.5px;
    font-weight: 400;
    word-spacing: 2px;
    line-height: 1.55;
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    background: var(--theme-card);
    box-shadow: var(--nb-shadow-md);
}

.con-description p {
    padding: 5px 0;
    text-indent: 20px;
}

.con-description .desc-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.con-description .desc-content p:not(:first-child) {
    display: none;
}

.con-description .desc-toggle:checked ~ .desc-content p {
    display: block;
}

.read-more-inline {
    display: inline-block;
    cursor: pointer;
    margin-left: 8px;
    white-space: nowrap;
    text-indent: 0;
    font-weight: 800;
    text-transform: uppercase;
    border: 2px solid #000000;
    border-radius: 4px;
    padding: 4px 7px;
    background: #FFD43B;
    color: #111111;
    box-shadow: 2px 2px 0px #000000;
    font-size: 0;
    vertical-align: baseline;
}

.read-more-inline::before {
    content: "Читать далее";
    font-size: 10px;
    line-height: 1;
    color: #111111;
}

.read-more-inline:hover {
    background-color: #00C2CB;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000000;
}

.con-description .desc-toggle:checked ~ .desc-content p:first-child .read-more-inline::before {
    content: "Свернуть";
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--theme-text);
    font-size: 13px;
    padding: 4px 9px;
    border-radius: 4px;
}

.meta-item.accent {
    color: #FFD43B;
    font-weight: 800;
    padding-left: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 48' fill='black'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6 12.1248C6 10.399 7.38744 9 9.09981 9H64.9002C66.6122 9 68 10.3993 68 12.1248V35.8753C68 37.601 66.6126 39 64.9002 39H9.09981C7.38781 39 6 37.6008 6 35.8753V12.1248Z' fill='%23FFD43B'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M54.1049 14.9226V20.8376C54.4818 20.4016 54.902 20.0763 55.3655 19.862C55.8292 19.6477 56.525 19.5397 57.068 19.5397C57.6936 19.5397 58.2358 19.6367 58.6955 19.8314C59.1556 20.0257 59.506 20.2983 59.7473 20.6489C59.9884 20.9997 60.1331 21.3432 60.1825 21.6792C60.2313 22.0152 60.256 22.7319 60.256 23.8298V28.9317C60.256 30.0222 60.1825 30.8338 60.0355 31.368C59.8881 31.9019 59.5429 32.3654 59 32.7574C58.4568 33.149 57.8125 33.3452 57.0655 33.3452C56.5301 33.3452 55.8375 33.2291 55.3736 32.9964C54.9097 32.7636 54.4855 32.4142 54.101 31.9484L53.8067 33.107H49.5542V14.9227L54.1049 14.9226ZM14.6312 33.1075H19.355V14.9231H14.6312V33.1075ZM27.0923 14.9226C27.2724 16.0235 27.461 17.3157 27.6585 18.7982L28.3354 23.4179L29.4294 14.9229H35.6V33.1073H31.4757L31.4607 20.8335L29.8087 33.1073H26.8618L25.1204 21.1004L25.1055 33.1073H20.9681V14.9229L27.0923 14.9226ZM40.74 14.923C43.0263 14.923 44.3418 15.028 45.1475 15.2374C45.9534 15.4465 46.5666 15.7903 46.9862 16.2689C47.4061 16.7474 47.6684 17.2802 47.7734 17.8668C47.8782 18.4537 47.9454 19.607 47.9454 21.3268V27.713C47.9454 29.343 47.8541 30.433 47.7005 30.9824C47.5466 31.5324 47.2787 31.9622 46.8966 32.2723C46.5139 32.5824 46.0419 32.7993 45.4796 32.9225C44.9171 33.0461 44.0702 33.1077 42.9386 33.1077H37.2154V14.9233L40.74 14.923ZM55.6978 28.6953C55.6978 29.5753 55.6541 30.1313 55.5668 30.3626C55.4793 30.5941 55.099 30.7105 54.8106 30.7105C54.5293 30.7105 54.3418 30.5988 54.2468 30.3748C54.1519 30.151 54.1048 29.64 54.1048 28.8411V24.0354C54.1048 23.2069 54.1465 22.6905 54.2298 22.4849C54.3132 22.2801 54.4953 22.1771 54.7763 22.1771C55.0643 22.1771 55.451 22.2941 55.5498 22.5292C55.6483 22.7643 55.6977 23.2664 55.6977 24.0348L55.6978 28.6953ZM42.987 18.196C43.1736 18.304 43.2933 18.4746 43.3453 18.7058C43.3974 18.9376 43.4239 19.4644 43.4239 20.2864V27.3364C43.4239 28.5471 43.3453 29.2883 43.1885 29.5611C43.0316 29.8343 42.6135 29.9704 41.9347 29.9704V18.0335C42.4493 18.0335 42.8003 18.0876 42.987 18.196Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 35px auto;
}

.meta-item.age-badge {
    background: #FFD43B;
    color: #111111; 
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    width: 34px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 11px;
}

/* Жанровые бейджи (BADGE из 12.jpg) */
.con-genre { 
    display: flex;
    gap: 6px;
    justify-content: center; 
    flex-wrap: wrap;
}

.con-genre span {
    border: 2px solid #000000;
    background: #FF7A45;
    box-shadow: 2px 2px 0px #000000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
}

.con-header h2 {
    color: var(--theme-text);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px 0;
    text-align: center;
}

.con-subtitle {
    color: var(--theme-secondary);
    font-size: 15px; 
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
}

.con-spotlight { 
    margin: 25px auto;
    text-align: center;
    background: var(--theme-section-bg);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    padding: 15px 12px;
    box-shadow: var(--nb-shadow-md);
}

.con-poster {
    margin: 10px 10px 0 10px;
    position: relative;
    display: inline-block;
}

.con-poster img {
    max-width: 100%;
    height: auto;
    border-radius: var(--nb-radius);
    border: 3px solid var(--theme-border);
    box-shadow: var(--nb-shadow-md);
    display: block;
}

/* Блок "Последние поступления" */
.sidebar-recent {
    background: var(--theme-alphabet-bg);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow-md);
    padding: 10px;
    margin: 25px 0;
    position: relative;
}

.recent-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recent-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.recent-card {
    display: block;
    text-decoration: none;
    border-radius: var(--nb-radius-sm);
    overflow: hidden;
    border: 2px solid var(--theme-border);
    box-shadow: var(--nb-shadow-sm);
}

.recent-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--theme-hard-border);
}

.recent-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.recent-title {
    padding: 8px 5px;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    background: var(--theme-card);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    line-height: 1.3;
    word-break: break-word;
}

/* Уточняем для меню */
.sidebar a:visited,
.header-categories a:visited {
    color: var(--theme-text);
}

.header-categories a:nth-child(1) { background: var(--theme-section-bg) url('../../img/iconmenu01.webp') no-repeat 5px center/114px 53px; }
.header-categories a:nth-child(2) { background: var(--theme-card) url('../../img/iconmenu02.webp') no-repeat 0px center/101px 53px; }
.header-categories a:nth-child(3) { background: var(--theme-section-bg) url('../../img/iconmenu03.webp') no-repeat 0px center/105px 53px; }

.sidebar a:nth-child(1) { background: var(--theme-card) url('../../img/chapter01.webp') no-repeat 5px center/80px 55px; }
.sidebar a:nth-child(2) { background: var(--theme-card) url('../../img/chapter02.webp') no-repeat 5px center/97px 60px; }
.sidebar a:nth-child(3) { background: var(--theme-card) url('../../img/chapter03.webp') no-repeat 5px center/130px 35px; }
.sidebar a:nth-child(4) { background: var(--theme-card) url('../../img/chapter04.webp') no-repeat 5px center/92px 60px; }
.sidebar a:nth-child(5) { background: var(--theme-card) url('../../img/chapter05.webp') no-repeat 5px center/104px 55px; }
.sidebar a:nth-child(6) { background: var(--theme-card) url('../../img/chapter06.webp') no-repeat 5px center/66px 60px; }
.sidebar a:nth-child(7) { background: var(--theme-card) url('../../img/chapter07.webp') no-repeat 5px center/120px 66px; }
.sidebar a:nth-child(8) { background: var(--theme-card) url('../../img/chapter08.webp') no-repeat 5px center/69px 65px; }
.sidebar a:nth-child(9) { background: var(--theme-card) url('../../img/chapter09.webp') no-repeat 5px center/109px 50px; }
.sidebar a:nth-child(10) { background: var(--theme-card) url('../../img/chapter10.webp') no-repeat 5px center/82px 63px; }
.sidebar a:nth-child(11) { background: var(--theme-card) url('../../img/chapter11.webp') no-repeat 5px center/94px 63px; }

.sidebar2 nav a { background: var(--theme-alphabet-bg); }

.header-categories {
    display: flex;
    gap: 15px;
}

.header-categories a {
    background: var(--theme-section-bg);
    padding: 10px 20px 10px 120px;
    text-decoration: none;
    border: var(--nb-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: var(--nb-shadow-sm);
    color: var(--theme-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.header-categories a:hover {
    background-color: #FFD43B;
    color: #111111;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--theme-hard-border);
}

/* Анимация солнца и луны (сохранена) */
.theme-icon-container {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.theme-icon-container .icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.icon-sun {
    opacity: 0;
    transform: rotate(-45deg) scale(0.5);
    color: #FF6A00;
}

.icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #FFD43B;
}

.light-theme .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.light-theme .icon-moon {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
}

.header-images {
    padding-right: 6.5%; 
    display: flex; 
    align-items: center;
    gap: 8px; 
}

.header-images img { 
    width: 32px;
    height: 32px;  
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 2px 2px 0px #000;
}

.header-images a:hover img {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 7px; 
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 32px;
    padding: 5px;
    background: #FFD43B;
    border: 2px solid #000;
    border-radius: 5px;
    box-shadow: 2px 2px 0px #000;
    cursor: pointer;
    margin-left: 15px;
}

.burger-line {
    height: 3px;
    width: 100%;
    background-color: #111111;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-menu.active .burger-line:nth-child(2) { opacity: 0; }
.burger-menu.active .burger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

/* ========== КОНТЕЙНЕР И САЙДБАР ========== */
.container {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 350px;
    background-color: var(--theme-card);
    border-right: 3px solid var(--theme-border);
    padding: 20px; 
}

.sidebar nav {
    display: flex;
    flex-direction: column;
}

.sidebar a {
    background: var(--theme-section-bg);
    padding: 12px 15px 12px 145px;
    text-decoration: none;
    border: var(--nb-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: var(--nb-shadow-sm);
    color: var(--theme-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    margin-bottom: 10px;
}

.sidebar a:hover {
    background-color: #FFD43B;
    color: #111111;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--theme-hard-border);
}

.sidebar2 {
    width: 285px;
    background-color: var(--theme-card);
    border-right: 3px solid var(--theme-border);
    padding: 20px; 
}

.sidebar2 nav {
    display: flex;
    flex-direction: column;
}

.sidebar2 a {
    background: var(--theme-section-bg); 
    text-decoration: none;
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: var(--nb-shadow-sm);
    color: var(--theme-text) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    margin-bottom: 10px;
}

.sidebar2 a:hover {
    background-color: #FFD43B;
    color: #111111 !important;
    border-color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

/* Кнопки букв в сайдбаре (PAGINATION стиль из 12.jpg) */
.sidebar2 .letter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-weight: 800; 
    text-align: center;
    color: var(--theme-text);
    background: var(--theme-card);
    text-decoration: none;
    font-size: 15px;
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: 2px 2px 0px var(--theme-hard-border);
    margin-bottom: 3px;
}

.sidebar2 .letter:hover {
    background: #00C2CB;
    color: #111111 !important;
    border-color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 20px;
    max-width: calc(100% - 285px);
    background-color: var(--theme-section-bg);
}

.spa {
    background-color: var(--theme-card);
    padding: 15px;
    text-align: center;
    margin: 0;
}

/* Новые серии в сайдбаре (LIST ITEM стиль из 12.jpg) */
.sidebar-new {
    background: var(--theme-alphabet-bg);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow-md);
    padding: 12px 10px;
    margin: 25px 0;
    position: relative; 
}
 
.sidebar-new::before {
    content: "";
    position: absolute;
    top: 0;
    left: 44%;
    transform: translateX(-93%) translateY(-85%);
    width: 100%;
    height: 80px;
    background: url("../../img/random.webp") no-repeat center top;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
} 

.sidebar-title {
    text-transform: uppercase;
    color: var(--theme-accent);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--theme-border);
}

.new-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.new-list li {
    border-bottom: 2px dashed var(--theme-border);
}

.new-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.new-list a {
    display: block;
    color: var(--theme-text);
    font-size: 13px;
    padding: 8px 4px;
    margin-bottom: 0;
    background: none;
    border: none;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    text-align: center;
}

.new-list a:hover {
    background: var(--theme-section-bg);
    color: var(--theme-link) !important;
    transform: none;
    box-shadow: none;
}

/* ========== ALERT BANNERS (ПЛАШКИ УВЕДОМЛЕНИЙ ИЗ 12.jpg) ========== */
.notice-bar {
    position: relative;
    background: #1C2E2E;
    border: 2px solid #000000;
    border-left: 8px solid #00C2CB;
    border-radius: var(--nb-radius-sm);
    padding: 10px 15px 10px 55px;
    margin: 0 10px 22px 10px;
    box-shadow: 4px 4px 0px #000000;
    overflow: visible;
    z-index: 1;
}

.notice-bar2 {
    position: relative;
    background: #2D1D4E;
    border: 2px solid #000000;
    border-left: 8px solid #FFD43B;
    border-radius: var(--nb-radius-sm);
    padding: 10px 15px 10px 15px;
    margin: 0 10px 12px 10px;
    box-shadow: 4px 4px 0px #000000;
    overflow: visible;
    z-index: 1;
}

.notice-bar3 {
    position: relative;
    background: #1F3A52;
    border: 2px solid #000000;
    border-left: 8px solid #FF7A45;
    border-radius: var(--nb-radius-sm);
    padding: 10px 15px 10px 55px;
    margin: 0 0 22px 0;
    box-shadow: 4px 4px 0px #000000;
    overflow: visible;
    z-index: 1;
}

/* Градиентный эффект для карточек серий на главной */
.bg-gradient-effect {
    position: relative;
}

.bg-gradient-effect::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(18, 19, 22, 0.92) 22%, rgba(18, 19, 22, 0.45) 45%, rgba(18, 19, 22, 0.1) 75%);
    z-index: 1;
    pointer-events: none;
}

.bg-gradient-effect .updates-item-text {
    position: relative;
    z-index: 2;
}

.updates-item-text,
.updates-item-tex {
    color: #FFFFFF;
    text-shadow: 2px 2px 0px #000000;
    max-width: 65%;
    padding: 16px 20px;
}

/* Блок интересных фактов */
.facts-box {
    background: var(--theme-section-bg);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    padding: 20px;
    margin: 25px 0;
    box-shadow: var(--nb-shadow-md);
}

.facts-header {
    color: var(--theme-accent);
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.facts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.facts-item {
    background: var(--theme-card);
    border: var(--nb-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: var(--nb-shadow-sm);
    padding: 15px;
    color: var(--theme-text);
}

.facts-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--nb-shadow-md);
}

.facts-text {
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
}

/* Стили для статуса (полностью сохранены и стилизованы под BADGE из 12.jpg) */
.status-ongoing {
    background-color: #00C2CB !important;
    color: #111111 !important;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    font-weight: 800 !important;
}

.status-completed {
    background-color: #FF6B4A !important;
    color: #111111 !important;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    font-weight: 800 !important;
}

.status-info {
    width: 100%; 
    padding: 0 20px;
}

.status-announcement {
    background-color: rgba(0, 194, 203, 0.15);
    color: #00C2CB;
    padding: 6px 14px;
    border-radius: var(--nb-radius-sm);
    font-size: 14px;
    font-weight: 700; 
    margin-bottom: 10px;
    border: 2px solid #00C2CB;
    box-shadow: var(--nb-shadow-sm);
}

.status-announcement.closed {
    background-color: rgba(255, 107, 74, 0.2);
    color: var(--theme-text);
    border: 2px solid #FF6B4A;
}

.status-announcement.air { 
    background-color: #00C2CB;
    color: #111111;
    margin: 0 auto;   
}

.highlight-date {
    color: #00C2CB;
    font-weight: 800;
}

.highlight-date a {
    color: #00C2CB;
    font-weight: 800;
}

.highlight-date a:hover {
    color: #FFD43B;
}
 
/* Блок алфавита */
.alphabet-box {
    position: relative;
    background: var(--theme-alphabet-bg);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow-md);
    margin: 15px 0 35px 0;
    padding: 12px 10px; 
}

.alphabet-box > .letten {
    display: block;
    text-align: center;
    margin: 10px auto 0;
    color: #111111 !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    width: fit-content;
    padding: 8px 18px;
    border: 2px solid #000000;
    border-radius: var(--nb-radius-sm);
    background: #FFD43B;
    box-shadow: 3px 3px 0px #000000;
}

.alphabet-box > .letten:hover {
    background: #00C2CB;
    color: #111111 !important;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

.alphabet-box2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-93%);
    width: 100%;
    height: 80px;
    background: url("../../img/top-bg.webp") no-repeat center top;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.alphabet-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 8.4%;
    transform: translateX(-50%) translateY(-30%);
    width: 100%;
    height: 56px;
    background: url("../../img/bottom-bg.webp") no-repeat center bottom;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
}

.alphabet-box > * {
    position: relative;
    z-index: 1;
}

.alphabet-title {
    text-transform: uppercase;
    color: var(--theme-alphabet-title);
    font-size: 12px;
    font-weight: 800;
    margin: 8px 0px 14px 0px;
    text-align: center;
}

.alphabet-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
    column-gap: 5px;
}

.letter {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 28px;
    text-align: center;
    color: var(--theme-alphabet-letter);
    background: var(--theme-card);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--theme-border);
    border-radius: 4px;
    box-shadow: 2px 2px 0px var(--theme-hard-border);
}

.letter:hover {
    background: #FFD43B;
    color: #111111;
    border-color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

/* Плашки уведомлений */
.notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #F4F4F6;
    font-size: 14px;
    font-weight: 700;
}

.notice-content2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #F4F4F6;
    font-size: 11px;
    font-weight: 700;
}
 
.notice-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 47px;
    background: url('../../img/casper.webp') no-repeat center;
    background-size: contain;
    z-index: 2;
    filter: drop-shadow(2px 2px 0px #000);
}

.notice-icon2 {
    position: absolute;
    left: 30px;
    top: 47%;
    transform: translateY(-64%);
    width: 79px;
    height: 48px;
    background: url('../../img/bgtj.webp') no-repeat center;
    background-size: contain;
    z-index: 2;
    filter: drop-shadow(2px 2px 0px #000);
}

.notice-icon3 {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 63px;
    height: 60px;
    background: url('../../img/dld.webp') no-repeat center;
    background-size: contain;
    z-index: 2;
    filter: drop-shadow(2px 2px 0px #000);
}

.notice-link {
    background: #FFD43B;
    color: #111111 !important;
    text-decoration: none;
    font-weight: 800;
    padding: 2px 8px;
    margin: 2px 4px;
    border-radius: 4px;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    display: inline-block;
}

.notice-link:hover {
    color: #111111 !important;
    background: #00C2CB;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000000;
}

/* ========================================= */
/* ВЕРХНЯЯ КАРУСЕЛЬ ПОСТЕРОВ (.top-new)      */
/* ========================================= */
.top-new-wrapper {
    max-width: 1270px;
    margin: 20px 0 15px 0;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.top-new-header {
    font-size: 16px;
    text-transform: uppercase;
    color: var(--theme-accent);
    margin-bottom: 15px;
    font-weight: 800;
    padding-left: 8px;
    border-left: 4px solid var(--theme-accent);
    line-height: 1;
}

.top-new-scroll-area {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 4px 4px 16px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-accent) var(--theme-section-bg);
}

.top-new-scroll-area::-webkit-scrollbar {
    height: 8px;
}

.top-new-scroll-area::-webkit-scrollbar-track {
    background: var(--theme-section-bg);
    border: 2px solid var(--theme-border);
    border-radius: 4px;
}

.top-new-scroll-area::-webkit-scrollbar-thumb {
    background-color: #FFD43B;
    border: 2px solid #000;
    border-radius: 4px;
}

.top-new-card {
    flex: 0 0 auto;
    width: 123px;
    text-decoration: none;
}

.top-new-card:hover {
    transform: translate(-3px, -3px);
}

.top-new-img-wrap {
    position: relative;
    width: 100%;
    height: 185px;
    border-radius: var(--nb-radius-sm);
    overflow: hidden;
    border: 2px solid var(--theme-border);
    box-shadow: var(--nb-shadow-md);
}

.top-new-card:hover .top-new-img-wrap {
    border-color: #FFD43B;
    box-shadow: 6px 6px 0px var(--theme-hard-border);
}

.top-new-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Бейдж сезона (2 сезон / 38 сезон) в стиле 1.jpg / 12.jpg */
.top-new-label {
    position: absolute;
    top: 6px;
    right: 50%;
    transform: translateX(50%);
    background: #FFD43B;
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    padding: 2px 7px;
    border-radius: 4px;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
}

.top-new-label.new {
    background: #00C2CB;
    color: #111111;
    font-weight: 800;
}

/* Оригинальные размеры .top-new-title сохранены */
.top-new-title {
    margin-top: 8px;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.3;
    color: var(--theme-text);
    text-align: center;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.6em;
}

.top-new-card:hover .top-new-title {
    color: var(--theme-accent);
}

/* ========================================= */
/* ВЕРХНИЙ БЛОК ПОИСКА (INPUTS ИЗ 12.jpg)    */
/* ========================================= */
.top-search-wrapper {
    max-width: 1270px;
    margin: 0 10px 18px 10px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.top-search-inner {
    background: var(--theme-section-bg);
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius);
    padding: 12px;
    box-shadow: var(--nb-shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-search-inner::after {
    content: "";
    position: absolute;
    right: 45px;
    top: 60%;
    transform: translateY(-50%);
    width: 53px;
    height: 70px;
    background: url('../../img/pr.webp') no-repeat center/contain;
    opacity: 1;
    pointer-events: none;
}

.top-search-inner::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-40%);
    width: 121px;
    height: 90px;
    background: url('../../img/pl.webp') no-repeat center/contain;
    opacity: 1;
    pointer-events: none;
}

.top-search-inner form {
    border: 2px solid #000000;
    border-radius: var(--nb-radius-sm);
    box-shadow: 4px 4px 0px #000000;
    left: 15px;
    display: flex;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.top-search-inner input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: var(--theme-card);
    font-family: "Gilroy-Regular", system-ui, sans-serif;
    color: var(--theme-text);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    -webkit-appearance: none; 
}

.top-search-inner input:focus {
    background: var(--theme-bg);
}

.top-search-inner button {
    background: #FFD43B;
    color: #111111;
    border: none;
    border-left: 2px solid #000000;
    padding: 0 32px;
    cursor: pointer;
    font-size: 15px;
    font-family: "Gilroy-Regular", system-ui, sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    -webkit-appearance: none;
}

.top-search-inner button:hover {
    background: #00C2CB;
    color: #111111;
}

/* ========================================= */
/* ВЫДАЧА ПОИСКА (PAGEFIND)                  */
/* ========================================= */
:root {
    --pagefind-ui-text: var(--theme-text);
    --pagefind-ui-background: var(--theme-card);
    --pagefind-ui-border: var(--theme-border);
    --pagefind-ui-primary: var(--theme-accent);
}

.pagefind-ui__result-title,
.pagefind-ui__result-link {
    color: var(--theme-accent) !important;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
}

.pagefind-ui__result-link:hover {
    color: var(--theme-text) !important;
}

.pagefind-ui__result-excerpt {
    color: var(--theme-text) !important;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px !important;
}

.pagefind-ui__message {
    color: var(--theme-secondary) !important; 
    font-weight: 700;
    padding-bottom: 15px;
}

.pagefind-ui__result-excerpt mark {
    background-color: #FFD43B !important;
    color: #111111 !important;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 800;
    text-decoration: none;
}

.pagefind-ui__result {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: stretch !important;
    padding: 15px !important;
    margin-bottom: 18px !important;
    background: var(--theme-card) !important;
    border: var(--nb-border) !important;
    border-radius: var(--nb-radius) !important;
    box-shadow: var(--nb-shadow-md) !important;
}

.pagefind-ui__result-thumb {
    width: 200px !important;
    flex-shrink: 0 !important;
    margin: 0 !important; 
    display: block !important;
}

.pagefind-ui__result-image {
    width: 100% !important;
    height: 100% !important;
    border-radius: var(--nb-radius-sm) !important;
    border: 2px solid var(--theme-border) !important;
    object-fit: cover !important;
    display: block !important;
}

.pagefind-ui__result-inner {
    flex: 1 1 auto !important;
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.notice-text {
    margin-left: 5%;
    flex: 1;
}

/* Voice Block & Games */
.voice-block, .game-card {
    display: flex;
    flex-direction: column;
    background: var(--theme-card);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow-md);
    overflow: hidden;
    text-decoration: none;
}

.voice-block:hover, .game-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--nb-shadow-lg);
}

.voice-poster {
    width: 100%;
    height: 200px; 
    border-bottom: 2px solid var(--theme-border);
}

.voice-details, .game-content {
    padding: 15px;
}

.voice-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.voice-title, .game-title {
    color: var(--theme-accent);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.voice-badge {
    background: #00C2CB;
    color: #111111;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 2px solid #000;
}

.voice-genres {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center; 
    flex-wrap: wrap;
}

.voice-genre span {
    border: 2px solid var(--theme-border);
    background: var(--theme-section-bg);
    box-shadow: 2px 2px 0px var(--theme-hard-border);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-text);
    text-transform: uppercase;
}

.voice-genre:hover span {
    background: #FFD43B;
    color: #111111;
}
 
.game-grid2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.game-image {
    width: 100%;
    height: 220px;
    background-size: contain;
    background-position: center;
    border-bottom: 2px solid var(--theme-border);
}

.game-description {
    color: var(--theme-text);
    font-size: 14px;
    line-height: 1.4;
}
 
/* ========== БЛОК ОБНОВЛЕНИЙ НА ГЛАВНОЙ (.updates-*) ========== */
.updates-container {
    background: var(--theme-section-bg);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    padding: 18px;
    margin: 20px 0;
    color: var(--theme-text);
    box-shadow: var(--nb-shadow-md);
}

.updates-section h2, .updates-section h3 {
    display: inline-block;
    background: #FFD43B;
    color: #111111;
    margin: 28px 0 16px 0;
    padding: 5px 16px;
    border: 2px solid #000000;
    border-radius: var(--nb-radius-sm);
    box-shadow: 3px 3px 0px #000000;
    position: relative;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
} 

.updates-header {
    text-align: center;
    margin-bottom: 18px;
}

.updates-header h1, .updates-header h2 {
    color: var(--theme-text);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.updates-subtitle {
    color: var(--theme-secondary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.updates-highlight {
    color: var(--theme-text);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.updates-description {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-secondary);
    margin-bottom: 18px;
}

.updates-divider {
    height: 2px;
    background: var(--theme-border);
    margin: 20px 0;
}

.updates-item {
    position: relative;
    margin-bottom: 12px;
    height: 84px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 15px;
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: var(--nb-shadow-md);
}

.updates-item:hover {
    transform: translate(-3px, -3px);
    border-color: #FFD43B;
    box-shadow: 7px 7px 0px var(--theme-hard-border);
}

.updates-item-title,
.updates-featured-title {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 800; 
}
 
.updates-item-subtitle,
.updates-featured-subtitle {
    font-size: 11.5px;
    color: #FFD43B;
    font-weight: 700;
    margin-bottom: 3px;
}

.updates-item-info {
    font-size: 13px;
    color: #00C2CB;
    font-weight: 700;
}

.updates-item.featured {
    background: var(--theme-season-card);
}

.updates-item.featpr {
    background: var(--theme-card);
    border-left: 8px solid #FF6B4A;
}

.updates-item.featfin {
    background: var(--theme-update-item);
    border-left: 8px solid #79A3C3;
}

.updates-item.featnew {
    border-left: 8px solid #00C2CB;
}

.updates-item-text {
    flex: 1;
    position: relative;
}

.updates-item-image {
    width: 230px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.updates-item-image img {
    width: 100%; 
    height: 100%; 
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    object-fit: cover;
}

.circle-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--theme-secondary);
    border-radius: 50%;
    margin: 0 10px;
    vertical-align: middle;
}

.dot-separator { padding: 0 5px; }

.updates-featured-tag {
    position: absolute;
    top: 30%;
    right: 5%;
    background: #FFD43B;
    color: #111111;
    font-weight: 800;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px; 
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 20px;    
}

.updates-grid-item { 
    justify-content: space-between;  
    background: var(--theme-card);
    padding: 15px;
    border-radius: var(--nb-radius-sm);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow-sm);
}

/* ========================================================= */
/* СЕРИАЛЫ ПО АЛФАВИТУ / КАТАЛОГ (TABLE СТИЛЬ ИЗ 12.jpg)     */
/* ========================================================= */
.series-container {
    background: var(--theme-section-bg);
    border: var(--nb-border);
    border-radius: var(--nb-radius);  
    padding: 18px 14px;
    margin: 25px 0;
    box-shadow: var(--nb-shadow-md);
}

.series-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.series-header h2 {
    color: var(--theme-accent);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}

.series-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.series-sort span {
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 700;
}

.sort-btn {
    background: var(--theme-card);
    color: var(--theme-text);
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: 2px 2px 0px var(--theme-hard-border);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sort-btn:hover, .sort-btn.active {
    background: #FFD43B;
    color: #111111;
    border-color: #000000;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #000000;
}

.series-table {
    width: 100%;
    border-collapse: collapse;
}

/* Чёрная шапка таблицы из 12.jpg (DATA DISPLAY -> TABLE) */
.series-table-header {
    display: grid;
    grid-template-columns: 30% 30% 6% 9% 9% 16%;
    gap: 10px;
    align-items: center;
    background: #111111;
    border: 2px solid #000000;
    border-radius: var(--nb-radius-sm);
    padding: 12px 15px;
    margin-bottom: 8px;
    box-shadow: 3px 3px 0px #000000;
}

.series-th {
    color: #FFD43B;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px;
    position: relative;
}

.series-th:hover {
    color: #00C2CB;
}

.series-th::after {
    content: "↕";
    margin-left: 5px;
    opacity: 0.7;
}

.series-table-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.series-row {
    display: grid;
    grid-template-columns: 30% 30% 6% 9% 9% 16%;
    gap: 10px;
    align-items: center;
    background: var(--theme-card);
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: 3px 3px 0px var(--theme-hard-border);
    padding: 10px 15px;
    text-decoration: none;
}

.series-row:hover {
    background: var(--theme-update-featured);
    border-color: #FFD43B;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--theme-hard-border);
}

.series-td {
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
}

.series-td[data-title="Рейтинг"] {
    color: var(--theme-accent);
    font-weight: 800;
}

.series-td[data-title="Статус"] {
    min-width: 90px;
    font-size: 13px;
}

/* Бейджи статуса (BADGE из 12.jpg) */
.status-badge {
    text-transform: uppercase; 
    border-radius: 4px;
    font-weight: 800; 
    color: #111111; 
    display: inline-block;
    white-space: nowrap;
    padding: 3px 8px; 
    font-size: 10px;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
}

.status-badge.finished {
    background: #B8C0FF;
    color: #111111;
    border-color: #000000;
}

.status-badge.airing {
    background: #00C2CB;
    color: #111111;
    border-color: #000000;
}

.status-badge.paused {
    background: #FFD43B;
    color: #111111;
    border-color: #000000;
}

.hover-img {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.hover-img .hover-img-preview {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    padding: 4px;
    background: var(--theme-card);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow-md);
    z-index: 100;
    white-space: nowrap;
}

.hover-img .hover-img-preview img {
    display: block;
    max-width: 620px;
    height: auto;
}

.hover-img:hover .hover-img-preview {
    display: block;
}

/* Страница 404 */
.error-container {
    background: var(--theme-section-bg);
    border-radius: var(--nb-radius);
    padding: 40px 20px;
    margin: 30px 0;
    text-align: center;
    box-shadow: var(--nb-shadow-md);
    border: var(--nb-border);
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-image {
    margin-bottom: 30px;
}

.error-image img {
    max-width: 600px;
    height: auto;
}

.error-container h1 {
    color: var(--theme-accent);
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 800;
}

.error-message {
    color: var(--theme-text);
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.error-button {
    background: #FFD43B;
    color: #111111;
    font-weight: 800;
    padding: 12px 25px;
    border-radius: var(--nb-radius-sm);
    text-decoration: none;
    font-size: 16px;
    border: 2px solid #000000;
    box-shadow: 4px 4px 0px #000000;
}

.error-button:hover {
    background: #00C2CB;
    color: #111111;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

/* ========== РЕКОМЕНДАЦИИ И СМОТРЕТЬ ЕЩЁ МУЛЬТСЕРИАЛЫ ========== */
.random-series {
    background: var(--theme-section-bg2);
    border-radius: var(--nb-radius);
    padding: 20px;
    margin: 15px 15px 10px 15px; 
    box-shadow: var(--nb-shadow-md);
    border: var(--nb-border);
}

.random-series-header {
    color: var(--theme-accent);
    text-transform: uppercase;
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.random-series-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.random-series-item {
    background: var(--theme-card);
    border-radius: var(--nb-radius-sm);
    overflow: hidden;
    border: 2px solid var(--theme-border);
    box-shadow: var(--nb-shadow-md);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    height: auto;
    text-decoration: none;
    color: inherit;
}

.random-series-item:hover {
    transform: translate(-3px, -3px);
    border-color: #FFD43B;
    box-shadow: 6px 6px 0px var(--theme-hard-border);
}

.random-series-image {
    flex-shrink: 0;
    width: 100px;
    height: 150px;
    overflow: hidden;
    border-right: 2px solid var(--theme-border);
}

.random-series-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.random-series-content {
    display: flex;
    padding: 8px 10px 8px 0;
    flex-direction: column;
    justify-content: center;
}

.random-series-title {
    color: var(--theme-accent);
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
}

.random-series-description {
    color: var(--theme-update-item);
    font-size: 12.5px;
    line-height: 1.4;
    text-align: left;
    flex: 1;
}

/* Упрощенный блок "Смотреть ещё мультсериалы" (6 в ряд на десктопе) */
.random-series-simple {
    background: var(--theme-section-bg2);
    border-radius: var(--nb-radius);
    padding: 20px;
    margin: 25px 0;
    box-shadow: var(--nb-shadow-md);
    border: var(--nb-border);
}

.random-series-simple-header {
    color: var(--theme-accent);
    text-transform: uppercase;
    font-size: 15px;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 800;
}

.random-series-simple-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
}

.random-series-simple-item {
    background: var(--theme-card);
    border-radius: var(--nb-radius-sm);
    overflow: hidden;
    border: 2px solid var(--theme-border);
    box-shadow: var(--nb-shadow-md);
    display: flex;
    flex-direction: column;
    height: auto;
    text-decoration: none;
    color: inherit;
}

.random-series-simple-item:hover {
    transform: translate(-3px, -3px);
    border-color: #FFD43B;
    box-shadow: 6px 6px 0px var(--theme-hard-border);
}

.random-series-simple-image {
    width: 100%; 
    overflow: hidden;
    border-bottom: 2px solid var(--theme-border);
}

.random-series-simple-image img {
    width: 100%; 
    object-fit: contain;
    display: block;
    background: var(--theme-section-bg);
}

.random-series-simple-content {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Оригинальные правила .random-series-simple-title сохранены */
.random-series-simple-title {
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    margin: 0;
}

/* ========== ГАЛЕРЕЯ СБОРНИКОВ 9-В-РЯД ========== */
.sidebar .gallery-block,
.sidebar2 .gallery-block {
    padding: 12px;
    margin: 20px 0;
    box-shadow: none;
    background: transparent;
}

.sidebar .gallery-header,
.sidebar2 .gallery-header {
    font-size: 13px;
    margin-bottom: 12px;
}

.sidebar .gallery-grid,
.sidebar2 .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sidebar .gallery-title,
.sidebar2 .gallery-title {
    font-size: 10px;
    padding: 15px 2px 5px;
    letter-spacing: 0;
}

.gallery-block {
    background: var(--theme-section-bg2);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    padding: 20px;
    margin: 10px 15px 15px 15px;
    box-shadow: var(--nb-shadow-md);
}

.gallery-header {
    color: var(--theme-accent);
    text-transform: uppercase;
    font-size: 15px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 800;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    width: 100%;
}

.gallery-item {
    display: block;
    position: relative;
    background: var(--theme-card);
    border: 2px solid var(--theme-border);
    border-radius: var(--nb-radius-sm);
    box-shadow: 3px 3px 0px var(--theme-hard-border);
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 1 / 1; 
}

.gallery-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0px var(--theme-hard-border);
    border-color: #FFD43B;
}

.gallery-item img {
    width: 100%;
    height: 200%; 
    object-fit: contain; 
    transform: translateY(0); 
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); 
    display: block;
}

.gallery-item:hover img {
    transform: translateY(-50%);
}

.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 22px 6px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    color: #FFD43B;
    text-align: center;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

.gallery-item:hover .gallery-title {
    color: #fff;
    padding-bottom: 12px; 
}

/* ========== ФУТЕР И ТУМБЛЕР ТЕМЫ (CONTROLS ИЗ 12.jpg) ========== */
footer {
    border-top: 3px solid var(--theme-border);
    background-color: var(--theme-card);
    color: var(--theme-text);
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden; 
    gap: 30px;
}

.footer-left {
    position: relative;
    flex: 1 1 32%;
    color: var(--theme-accent);
    font-size: 13px;
    font-weight: 700;
    min-width: 220px;
    display: flex;
    align-items: center;
    padding-left: 85px;
}

.footer-center {
    color: var(--theme-text);
    font-size: 13px; 
    font-weight: 700;
    position: relative;
    flex: 1 1 34%;
    min-width: 220px;
    display: flex;
    align-items: flex-start;
    padding-left: 75px;
    flex-direction: column;
    justify-content: center;
    text-align: center;          
}

.footer-left::before,
.footer-center::before {
    content: "";
    position: absolute;
    left: 0;
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
}

.footer-left::before {
    width: 69px;
    height: 48px;
    background-image: url("../../img/iconfl.webp");
}

.footer-center::before {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-image: url("../../img/iconfc.webp");
}

.footer-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-right img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.footer-right img:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
}

/* Тумблер темы в стиле CONTROLS из 12.jpg */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--theme-section-bg);
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    transition: .3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: #FFD43B;
    border: 2px solid #000000;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FFD43B;
}

input:checked + .slider:before {
    background-color: #111111;
    transform: translateX(24px);
}


/* ========================================================================= */
/* ЕДИНЫЙ БЛОК АДАПТИВНОСТИ (IPAD, ANDROID, IPHONE & SMART TV)               */
/* ========================================================================= */

/* Без анимации спрайтов на сенсорных экранах */
@media (hover: none) {
    .gallery-item:hover img {
        transform: translateY(0);
    }
    .gallery-item:hover {
        transform: none;
    }
}

/* --- iPad в горизонтальном положении и небольшие ноутбуки (до 1200px) --- */
@media (max-width: 1200px) {
    .top-new-card { width: 112px; }
    .top-new-img-wrap { height: 165px; }

    /* 5 в ряд: скрываем 6-й элемент, чтобы был ровно ОДИН ряд без пустых мест во втором */
    .random-series-simple-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    .random-series-simple-container > .random-series-simple-item:nth-child(n+6) {
        display: none;
    }
}

/* --- Планшеты вертикально и iPad Air/Mini (до 1024px) --- */
@media (max-width: 1024px) {
    header::before, header::after { display: none; }
    .header-menu { display: none; }
    .header-images { padding-right: 0; margin-left: auto; }
    .burger-menu { display: flex; }

    .sidebar,
    .sidebar2 {
        display: none;
    }

    .main-content {
        max-width: 100%;
        width: 100%;
        padding: 16px;
    }

    .top-search-inner::before,
    .top-search-inner::after {
        display: none;
    }
    .top-search-inner form {
        left: 0;
    }

    .random-series-container { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    
    /* 4 в ряд на iPad: скрываем 5-й и 6-й постеры, чтобы был ровно ОДИН ряд без пустого места */
    .random-series-simple-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .random-series-simple-container > .random-series-simple-item:nth-child(n+5) {
        display: none;
    }

    .gallery-grid { grid-template-columns: repeat(6, 1fr); }

    .series-table-header, .series-row {
        grid-template-columns: 28% 28% 8% 10% 10% 16%;
        gap: 8px;
        padding: 10px 12px;
    }
}

/* --- Переходный размер для футера (до 900px) --- */
@media (max-width: 900px) {
    footer { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; padding: 16px 12px; text-align: center; }
    .footer-left, .footer-center, .footer-right { min-width: 0; width: 100%; padding-left: 0 !important; justify-content: center; align-items: center; text-align: center; margin-bottom: 14px; }
    .footer-left, .footer-center { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 14px; position: relative; min-height: 48px; padding: 0; }
    .footer-left::before, .footer-center::before { position: static; width: 56px; height: 39px; margin-right: 10px; margin-left: 0; flex-shrink: 0; display: inline-block; }
    .footer-center { flex-direction: row; }
    .footer-right { justify-content: center; margin: 6px 0 0 0; gap: 14px; }
}

/* --- Мобильные телефоны и компактные планшеты (до 768px) --- */
@media (max-width: 768px) {
    header { padding: 8px 12px; }
    .logo { padding-left: 0; }
    .logo a { width: 195px; height: 42px; }
    .header-images > a { display: none; }
    .theme-toggle { margin-left: auto; }
    .burger-menu { margin-left: 12px; display: flex; }
    .mobile-menu { width: min(310px, 88vw); }
    
    .main-content { max-width: 100%; padding: 12px 10px; }

    .movies-section { padding: 12px 10px; margin: 15px 0; }
    .movies-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .gallery-block { padding: 14px 10px; margin: 12px 0; }
    .seasons-grid { gap: 10px; justify-content: center; }
    
    .section-header h2 { font-size: 20px; margin-bottom: 18px; }
    .movies-category h3 { font-size: 14px; }
    .movie-title { font-size: 12.5px; }
    .con-header h2 { font-size: 22px; }
    .con-subtitle { font-size: 15px; margin-bottom: 12px; }
    .season-card { padding: 8px 14px; font-size: 14px; }

    .notice-bar, .notice-bar2 { margin: 0 0 12px 0; padding: 8px 10px 8px 48px; }
    .notice-icon { left: 6px; width: 38px; height: 35px; }
    .notice-icon2 { left: 4px; width: 48px; height: 35px; }
    .notice-text { margin-left: 4px; }

    .updates-container { padding: 12px 10px; margin: 15px 0; }
    .updates-header h1, .updates-header h2 { font-size: 17px; }
    .updates-item { height: auto; min-height: 95px; background-position: center right !important; padding: 12px; }
    .updates-item-text { max-width: 100%; background: rgba(18, 19, 22, 0.78); padding: 10px 12px; border-radius: 5px; border: 1px solid #000; }

    .video-player-container { margin: 8px 0 16px 0; }
    .translation-tabs, .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 8px; gap: 6px; padding-bottom: 4px; }
    .translation-tabs button, .tabs button { padding: 8px 14px; font-size: 13.5px; white-space: nowrap; flex-shrink: 0; }
    .game-frame { height: 300px; }
    .ifr, .video-iframe { height: 260px; }
    .game-grid { grid-template-columns: 1fr; }

    .random-series { padding: 14px 10px; margin: 15px 0; }
    .random-series-container { grid-template-columns: 1fr; gap: 10px; }
    .random-series-image { width: 95px; height: 135px; }
    .random-series-content { padding: 10px; }

    /* 3 в ряд (2 полных ряда по 3 = 6 без пустых мест) */
    .random-series-simple { padding: 14px 10px; margin: 15px 0; }
    .random-series-simple-container { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .random-series-simple-container > .random-series-simple-item:nth-child(n+5) {
        display: flex;
    }

    /* Адаптив таблицы каталога (tas_p.html) под мобильные */
    .series-container { padding: 12px 8px; margin: 15px 0; }
    .series-header { margin-bottom: 12px; }
    .series-sort {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 6px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .series-sort span { display: none; }
    .sort-btn { flex-shrink: 0; padding: 6px 12px; font-size: 12.5px; }

    .series-table-header { display: none; }
    .series-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        margin-bottom: 8px;
        gap: 4px 8px;
    }
    .series-td {
        padding: 0;
        margin: 0;
        font-size: 12.5px;
    }
    .series-td[data-title="Название"] {
        flex: 0 0 100%;
        font-weight: 800;
        font-size: 15px;
        color: var(--theme-accent);
    }
    .series-td[data-title="Оригинал"] {
        flex: 0 0 100%;
        font-size: 12px;
        color: var(--theme-update-item);
        margin-bottom: 6px;
        padding-bottom: 6px;
        border-bottom: 2px dashed var(--theme-border);
    }
    .series-td[data-title="Год"],
    .series-td[data-title="Рейтинг"],
    .series-td[data-title="Сезоны"],
    .series-td[data-title="Статус"] {
        flex: 0 0 auto;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .series-td[data-title="Год"]::before { content: "Год:"; color: var(--theme-secondary); font-size: 11px; }
    .series-td[data-title="Рейтинг"]::before { content: "★"; color: var(--theme-secondary); font-size: 12px; }
    .series-td[data-title="Сезоны"]::before { content: "Сез:"; color: var(--theme-secondary); font-size: 11px; }

    .pagefind-ui__result { flex-direction: column !important; gap: 12px !important; }
    .pagefind-ui__result-thumb { width: 100% !important; max-width: 220px !important; margin: 0 auto !important; }
}

/* --- Адаптив .con-meta от 600px и меньше (строго в 1–2 ряда) --- */
@media (max-width: 600px) {
    .con-poster {
        display: flex;
        flex-direction: column;
        margin: 6px 0 10px 0;
    }

    .con-meta {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 8px;
        padding: 6px 8px;
        background: #181A20;
        border: 2px solid #000000;
        box-shadow: 3px 3px 0px #000000;
        border-radius: var(--nb-radius-sm);
    }

    .con-meta .meta-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px 8px;
        width: 100%;
    }

    .con-meta .meta-item {
        font-size: 11.5px;
        padding: 2px 5px;
        line-height: 1.2;
    }

    .con-meta .meta-item.accent {
        padding-left: 30px;
        background-size: 26px auto;
        font-size: 12px;
    }

    .con-meta .con-genre {
        gap: 4px;
        padding: 0;
    }

    .con-meta .con-genre span {
        font-size: 8.5px;
        padding: 2px 5px;
    }

    .con-meta .meta-item.age-badge {
        width: auto;
        min-width: 24px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    .con-meta .status-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* --- Мелкие телефоны (до 480px) --- */
@media (max-width: 480px) {
    .logo a { width: 165px; height: 38px; }
    .mobile-menu { width: min(285px, 90vw); padding: 15px; }
    
    .movies-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .spa { padding: 10px; font-size: 14px; }

    .top-search-wrapper { padding: 0 8px; margin: 0 0 12px 0; }
    .top-search-inner { padding: 6px; }
    .top-search-inner input { padding: 8px 12px; font-size: 16px; }
    .top-search-inner button { padding: 0 16px; font-size: 13px; }

    .top-new-wrapper { padding: 0; margin: 10px 0; }
    .top-new-scroll-area { padding: 4px 10px 12px 10px; gap: 10px; }
    .top-new-card { width: 100px; }
    .top-new-img-wrap { height: 145px; }

    .random-series-simple-container { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .random-series-simple-content { padding: 8px; }
    .random-series-simple-title { font-size: 12px; }

    .con-description { margin: 12px 0; padding: 12px 14px; font-size: 14px; }
    .ifr, .video-iframe { height: 220px; }

    footer { padding: 15px 10px; }
}

/* --- Самые узкие экраны (до 340px) --- */
@media (max-width: 340px) {
    .top-search-inner button { padding: 0 10px; font-size: 12px; }
    .con-meta .meta-item { font-size: 10.5px; padding: 1px 4px; }
}

/* ========================================================================= */
/* ВЕРСИЯ ДЛЯ ТЕЛЕВИЗОРОВ (SMART TV / ANDROID TV / TIZEN / WEBOS)            */
/* Обычные мониторы остаются строго 1270px!                                  */
/* ========================================================================= */
body.tv-mode .page-wrapper,
body.tv-mode header,
body.tv-mode header.fixed,
body.tv-mode .top-new-wrapper,
body.tv-mode .top-search-wrapper {
    max-width: 1720px;
}

body.tv-mode .movie-card:focus,
body.tv-mode .top-new-card:focus,
body.tv-mode .updates-item:focus,
body.tv-mode .series-row:focus,
body.tv-mode .gallery-item:focus {
    outline: 4px solid #FFD43B !important;
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px #000000 !important;
    z-index: 50;
}