/* =========================================================
   CYBERPUNK / WATCH DOGS 2 / ANIME STYLE THEME + FOOTER
   ========================================================= */

/* ====== ПОЛНОСТЬЮ УБРАТЬ СКРОЛЛБАР ВЕЗДЕ (но оставить прокрутку) ====== */
html,
body {
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Edge */
}

/* На всякий случай для всех элементов */
* {
    scrollbar-width: none;
}
*::-webkit-scrollbar {
    display: none;
}

/* ====== БАЗА ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-main: radial-gradient(circle at top, #050816 0, #020108 55%, #000005 100%);
    --bg-panel: radial-gradient(circle at top, #0b1020 0, #030512 60%);
    --bg-panel-hover: radial-gradient(circle at top, #050b17 0, #02010c 68%);

    --border-soft: rgba(148, 163, 184, 0.2);
    --border-bright: rgba(56, 189, 248, 0.55);
    --border-glow: rgba(168, 85, 247, 0.75);

    --accent-green: #22c55e;
    --accent-green-soft: rgba(34, 197, 94, 0.75);
    --accent-blue: #38bdf8;
    --accent-blue-soft: rgba(56, 189, 248, 0.75);
    --accent-pink: #ec4899;
    --accent-purple: #a855f7;
    --accent-yellow: #eab308;

    --text-main: #f9fafb;
    --text-soft: #d1d5db;
    --text-muted: #9ca3af;

    --noise-opacity: 0.08;

    --footer-height: 78px;
}

/* Фоновый шум */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08) 0, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.2) 0, transparent 55%);
    mix-blend-mode: soft-light;
    opacity: var(--noise-opacity);
}

/* Лёгкие горизонтальные скан-линии */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.06) 1px,
        transparent 1px
    );
    background-size: 100% 3px;
    mix-blend-mode: soft-light;
    opacity: 0.35;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;

    /* Анимированная сетка подложки (Watch Dogs vibe) */
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.55) 1px, transparent 1px),
        radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at bottom, rgba(236, 72, 153, 0.14), transparent 60%);
    background-size:
        100% 34px,
        34px 100%,
        100% 100%,
        100% 100%;
    background-color: #020617;
    animation: bgShift 22s linear infinite;

    /* Чтобы контент не перекрывался фиксированным футером */
    padding-bottom: var(--footer-height);
}

@keyframes bgShift {
    0% {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0;
    }
    50% {
        background-position:
            0 10px,
            10px 0,
            0 0,
            0 0;
    }
    100% {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0;
    }
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    position: relative;
    transition:
        color 0.18s ease-out,
        text-shadow 0.18s ease-out;
}

a:hover {
    color: #e0f2fe;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

a:hover::after {
    width: 100%;
}

/* ====== HEADER ====== */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.94) 0, rgba(3, 7, 18, 0.96) 55%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.85),
        0 0 20px rgba(56, 189, 248, 0.35);
    overflow: hidden;
}

header.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 28px;
    max-width: 1120px;
    margin: 0 auto;
}

/* Тонкая бегущая линия вверху хедера */
header.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-pink));
    animation: headerScan 4.5s linear infinite;
}

@keyframes headerScan {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(350%);
    }
}

/* Логотип */
.logo {
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    gap: 6px;
    position: relative;
}

.logo-main {
    color: #e5e7eb;
    text-shadow:
        0 0 6px rgba(148, 163, 184, 0.7),
        0 0 18px rgba(15, 23, 42, 0.9);
}

.logo-glitch {
    color: var(--accent-green);
    position: relative;
    display: inline-block;
    text-shadow:
        0 0 8px rgba(34, 197, 94, 0.9),
        0 0 16px rgba(56, 189, 248, 0.7);
    animation: glitch 2.8s infinite steps(2, end);
    overflow: visible;
}

.logo-glitch::before,
.logo-glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.6;
    mix-blend-mode: screen;
}

.logo-glitch::before {
    color: var(--accent-blue);
    transform: translate(-1px, 0);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.logo-glitch::after {
    color: var(--accent-pink);
    transform: translate(1px, 0);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-1px, 1px);
    }
    20% {
        transform: translate(1px, -1px);
    }
    30% {
        transform: translate(0, 1px) skewX(-1deg);
    }
    40% {
        transform: translate(-1px, 0) skewX(1deg);
    }
    50% {
        transform: translate(1px, 0);
    }
    60%,
    100% {
        transform: translate(0, 0);
    }
}

/* Навигация */
.main-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.main-nav a {
    font-size: 12px;
    color: #e5e7eb;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding-bottom: 4px;
    opacity: 0.9;
    transition:
        opacity 0.2s ease-out,
        color 0.2s ease-out,
        transform 0.15s ease-out;
}


.main-nav a:hover {
    opacity: 1;
    color: #f9fafb;
    transform: translateY(-1px);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ====== ОСНОВНОЙ КОНТЕНТ ====== */
main.container {
    max-width: 1120px;
    margin: 26px auto 40px;
    padding: 0 16px 40px;
    position: relative;
}

/* Декоративные линии по краям */
main.container::before,
main.container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.5), transparent);
    opacity: 0.45;
}

main.container::before {
    left: 0;
}

main.container::after {
    right: 0;
}

/* ====== КАРТОЧКИ ====== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Общая анимация появления */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.card {
    background: var(--bg-panel);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    animation: cardFadeIn 0.5s ease-out both;
    transition:
        transform 0.2s ease-out,
        box-shadow 0.2s ease-out,
        border-color 0.2s ease-out,
        background 0.25s ease-out,
        filter 0.25s ease-out;
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.18), transparent 60%),
        radial-gradient(circle at 90% 0, rgba(236, 72, 153, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    z-index: -1;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.7) 1px, transparent 1px);
    background-size:
        100% 24px,
        24px 100%;
    mix-blend-mode: soft-light;
    opacity: 0.06;
    transition: opacity 0.2s ease-out;
}

.card:hover {
    transform: translateY(-7px) scale(1.015);
    box-shadow:
        0 20px 55px rgba(8, 47, 73, 0.95),
        0 0 0 1px rgba(56, 189, 248, 0.7);
    border-color: rgba(56, 189, 248, 0.75);
    background: var(--bg-panel-hover);
    filter: saturate(1.15);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 0.12;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to bottom, rgba(249, 250, 251, 0.08), transparent 50%, rgba(15, 23, 42, 0.85)),
        linear-gradient(120deg, rgba(56, 189, 248, 0.25), rgba(236, 72, 153, 0.25));
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.card:hover .card-image::after {
    opacity: 0.45;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center;
    transition: transform 0.35s ease-out, filter 0.35s ease-out;
}

.card:hover .card-image img {
    transform: scale(1.08);
    filter: saturate(1.3) contrast(1.05);
}

.card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-body h2 {
    font-size: 16px;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}

.card-body h2 a {
    color: #e5e7eb;
}

.card-body h2 a:hover {
    text-shadow: 0 0 10px rgba(248, 250, 252, 0.8);
}

.card-body p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Бейдж жанра */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
    color: #e5e7eb;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: radial-gradient(circle, var(--accent-green), transparent 70%);
    box-shadow:
        0 0 8px rgba(34, 197, 94, 0.9),
        0 0 16px rgba(34, 197, 94, 0.7);
}

/* ====== КНОПКИ ====== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.18s ease-out,
        color 0.18s ease-out,
        box-shadow 0.18s ease-out,
        transform 0.1s ease-out,
        opacity 0.1s ease-out,
        filter 0.15s ease-out;
    position: relative;
    overflow: hidden;
}

/* Бегущая полоска поверх кнопки */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(248, 250, 252, 0.35),
        transparent
    );
    opacity: 0;
    transform: skewX(-20deg);
    transition: opacity 0.18s ease-out;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    opacity: 1;
    animation: btnShine 0.85s linear;
}

@keyframes btnShine {
    0% {
        transform: translateX(0) skewX(-20deg);
    }
    100% {
        transform: translateX(320%) skewX(-20deg);
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), #16a34a, var(--accent-blue));
    color: #020617;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.4),
        0 8px 22px rgba(22, 163, 74, 0.7);
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        #4ade80,
        var(--accent-green),
        var(--accent-blue),
        var(--accent-pink)
    );
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.7),
        0 12px 28px rgba(56, 189, 248, 0.95);
    filter: saturate(1.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.8),
        0 5px 16px rgba(22, 163, 74, 1);
}

.btn-secondary {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(2, 6, 23, 0.98));
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.8);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
}

.btn-secondary:hover {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(3, 7, 18, 1));
    color: #f9fafb;
    border-color: rgba(248, 250, 252, 0.9);
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.7),
        0 8px 22px rgba(15, 23, 42, 0.95);
}

.btn-secondary:active {
    opacity: 0.96;
    transform: translateY(1px);
}

/* ====== ФОРМЫ ====== */
.form,
.form-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 440px;
    margin-bottom: 24px;
}

.form-inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.form label {
    font-size: 13px;
    color: #cbd5f5;
    display: flex;
    flex-direction: column;
    gap: 4px;
    letter-spacing: 0.04em;
}

/* Фон-подложка у формы */
.form,
.form-inline {
    padding: 10px 12px;
    border-radius: 12px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(3, 7, 18, 0.9));
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.8);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: rgba(15, 23, 42, 0.94);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 7px 9px;
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.16s ease-out,
        box-shadow 0.16s ease-out,
        background 0.16s ease-out,
        transform 0.12s ease-out;
}

input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-blue);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.8),
        0 0 18px rgba(56, 189, 248, 0.7);
    background: rgba(15, 23, 42, 1);
    transform: translateY(-1px);
}

/* ====== АЛЕРТЫ ====== */
.alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.alert-danger {
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.18), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: #fecaca;
    box-shadow:
        0 0 0 1px rgba(127, 29, 29, 0.6),
        0 8px 24px rgba(127, 29, 29, 0.8);
}

.alert-danger::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(248, 113, 113, 0.95),
        rgba(248, 113, 113, 0.95) 6px,
        transparent 6px,
        transparent 10px
    );
    animation: alertStrip 0.75s linear infinite;
}

@keyframes alertStrip {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 14px 0;
    }
}

/* ====== ТАБЛИЦЫ (админка) ====== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.table th,
.table td {
    padding: 7px 9px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.table th {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--text-soft);
}

.table thead {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 1));
    border-bottom: 1px solid rgba(56, 189, 248, 0.4);
}

.table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.7);
}

.table tbody tr:hover {
    background: rgba(15, 23, 42, 0.95);
}

/* ====== ССЫЛКИ В АДМИНКЕ ====== */
.link-secondary {
    color: #a5b4fc;
    text-shadow: 0 0 6px rgba(129, 140, 248, 0.8);
}

.link-secondary:hover {
    color: #e0e7ff;
}

.link-danger {
    color: #f97373;
    text-shadow: 0 0 6px rgba(248, 113, 113, 0.8);
}

.link-danger:hover {
    color: #fecaca;
}

/* ====== СТРАНИЦА АНIМЕ С ВИДЕО ====== */
.anime-view {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 24px;
    margin-bottom: 24px;
}

.anime-view-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.95),
        0 0 16px rgba(56, 189, 248, 0.5);
    filter: saturate(1.2) contrast(1.02);
    transition:
        transform 0.2s ease-out,
        box-shadow 0.2s ease-out,
        filter 0.25s ease-out;
}

.anime-view-image img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 22px 52px rgba(15, 23, 42, 0.98),
        0 0 22px rgba(236, 72, 153, 0.65);
    filter: saturate(1.4) contrast(1.05);
}

.anime-video-wrapper {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-bright);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.95),
        0 0 22px rgba(56, 189, 248, 0.7);
    background: radial-gradient(circle at top, #020617, #020617 40%, #000 100%);
    position: relative;
}

.anime-video-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(249, 250, 251, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.2), transparent 60%);
    background-size:
        100% 3px,
        100% 100%;
    opacity: 0.25;
    mix-blend-mode: soft-light;
}

.anime-video-wrapper iframe,
.anime-video-wrapper video {
    width: 100%;
    height: 360px;
    display: block;
    background-color: #000;
}

.tag-serial {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #020617;
    background: linear-gradient(135deg, var(--accent-green), #22c55e, var(--accent-yellow));
    box-shadow:
        0 0 14px rgba(22, 163, 74, 0.95),
        0 0 24px rgba(250, 204, 21, 0.75);
    position: relative;
    overflow: hidden;
}

.tag-serial::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle, #22c55e, transparent 60%);
    box-shadow:
        0 0 8px rgba(34, 197, 94, 1),
        0 0 16px rgba(34, 197, 94, 0.9);
    animation: pulseSerial 1.4s ease-out infinite;
}

@keyframes pulseSerial {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.75);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ====== FOOTER ====== */
footer.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97), rgba(3, 7, 18, 0.99));
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        0 -10px 30px rgba(0, 0, 0, 0.95),
        0 0 18px rgba(56, 189, 248, 0.35);
    color: var(--text-soft);
    font-size: 12px;
}

footer.site-footer .container {
    width: 100%;
    max-width: 1120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* Лёгкая линия сканирования по верху футера */
footer.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    animation: footerScan 5s linear infinite;
}

@keyframes footerScan {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(380%);
    }
}

/* ====== АДАПТИВ ====== */
@media (max-width: 768px) {
    header.site-header .header-inner {
        padding: 10px 14px;
        flex-wrap: wrap;
    }

    .main-nav {
        gap: 10px;
        font-size: 11px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    main.container {
        margin-top: 18px;
    }

    .anime-view {
        grid-template-columns: 1fr;
    }

    .anime-video-wrapper iframe,
    .anime-video-wrapper video {
        height: 220px;
    }

    .logo {
        font-size: 17px;
        letter-spacing: 0.14em;
    }

    footer.site-footer {
        padding-inline: 14px;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    footer.site-footer .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    body {
        padding-bottom: calc(var(--footer-height) + 10px);
    }
}