* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 500;
    background: linear-gradient(135deg, #0a0a0f, #0f0f1a, #080810);
    color: #e0e0ff;
    min-height: 100vh;
    transition: background 0.3s, color 0.2s;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px, 150px 150px;
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
    animation: stars 20s linear infinite;
    z-index: -1;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

body.light::before { opacity: 0.1; }
body.light {
    background: linear-gradient(135deg, #f0f2f5, #e4e8f0, #d9e0e8);
    color: #1a1a2e;
}
body.light .card {
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
body.light .card p,
body.light .card h3 {
    color: #1a1a2e;
}
body.light .navbar {
    background: rgba(255, 255, 255, 0.9);
}
body.light .navbar a,
body.light .nav-link {
    color: #1a1a2e;
}
body.light .settings-panel {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
}
body.light .hero p,
body.light .anime-info-block p,
body.light .section h2,
body.light .footer-col p,
body.light .footer-col a,
body.light .footer-copyright,
body.light .footer-inn {
    color: #1a1a2e;
}
body.light .genre-tag {
    background: #cc0000;
    color: white;
}
body.light .btn-secondary {
    background: rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}
body.light .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.25);
}
body.light .search-input {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
}
body.light .search-input::placeholder {
    color: #888;
}
body.light .anime-info-block {
    background: rgba(0, 0, 0, 0.05);
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
body.light .profile-field {
    border-bottom-color: rgba(0,0,0,0.1);
}
.profile-label {
    font-weight: 500;
    min-width: 100px;
}
.profile-value {
    color: #ff4444;
    word-break: break-word;
    text-align: right;
}
.profile-field input {
    flex: 1;
    padding: 8px 15px;
    border-radius: 30px;
    border: none;
    min-width: 180px;
}
.profile-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.profile-buttons .btn {
    padding: 8px 20px;
}
@media (max-width: 550px) {
    .profile-field {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-value {
        text-align: left;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 15px;
}
.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    line-height: 0;
}
.logo img {
    height: auto;
    max-height: 70px;
    width: auto;
    max-width: 180px;
    display: block;
    transition: transform 0.2s ease;
}
.logo img:hover {
    transform: scale(1.02);
}
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}
.profile-tab-btn {
    background: rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.active-tab {
    background: #ff6b35 !important;
    color: white !important;
}
@media (max-width: 700px) {
    .navbar {
        padding: 5px 20px;
    }
    .logo img {
        max-height: 32px;
        max-width: 140px;
    }
    .nav-links {
        gap: 15px;
    }
}

.hero {
    text-align: center;
    padding: 40px 20px 30px;
}
.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 46px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    font-size: 18px;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 25px auto;
}
.search-input {
    width: 340px;
    padding: 12px 20px;
    border-radius: 40px;
    border: none;
    outline: none;
    font-size: 15px;
}
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}
.btn-primary {
    background: linear-gradient(90deg, #ff4444, #cc0000);
    color: white;
}
.btn-primary:hover {
    transform: scale(1.02);
    opacity: 0.9;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(4px);
}
body.light .btn-secondary {
    background: rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}
body.light .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.25);
}
.section {
    padding: 20px 30px 30px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px;
}
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 12px;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
}
.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}
.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
}
.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin: 10px 0 5px;
    padding-right: 30px;
}
.card p {
    font-size: 11px;
    opacity: 0.75;
}
.genre-tag {
    display: inline-block;
    background: #cc0000;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    margin: 4px 4px 0 0;
}
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
}
.favorite-btn.active {
    color: #ff4444;
}
.hidden {
    display: none;
}
/* Страница аниме - новая широкая версия */
.anime-page-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 30px;
}

.back-btn {
    margin-bottom: 20px;
}

.anime-header {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.anime-poster {
    flex: 0 0 300px;
}

.anime-poster img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.anime-info {
    flex: 1;
}

.anime-info h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 38px;
    margin-bottom: 15px;
}

.anime-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.rating-badge {
    background: rgba(0,0,0,0.4);
    padding: 4px 14px;
    border-radius: 20px;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.plot {
    margin: 20px 0;
    line-height: 1.6;
}

.plot p {
    margin-top: 8px;
    opacity: 0.9;
}

.video-section {
    margin-top: 30px;
}

.video-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
}

.voice-label {
    font-weight: 600;
    margin-right: 10px;
}

.season-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.season-btn {
    padding: 6px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: inherit;
    cursor: pointer;
    transition: 0.2s;
}

.season-btn:hover {
    background: rgba(255,68,68,0.2);
}

.active-season {
    background: #cc0000;
    color: white;
    border-color: #cc0000;
}

.episode-selector {
    margin-left: auto;
}

.episode-select {
    padding: 8px 16px;
    border-radius: 30px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: inherit;
    font-size: 14px;
    cursor: pointer;
}

.video-player {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.video-player iframe {
    width: 100%;
    min-height: 500px;
    border-radius: 20px;
}

/* Светлая тема для страницы аниме */
body.light .video-controls {
    background: rgba(0,0,0,0.08);
}
body.light .season-btn {
    background: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.15);
}
body.light .season-btn:hover {
    background: rgba(204,0,0,0.15);
}
body.light .episode-select {
    background: rgba(0,0,0,0.08);
    color: #1a1a2e;
}
body.light .rating-badge {
    background: rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .anime-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .anime-poster {
        flex: 0 0 200px;
    }
    .anime-poster img {
        max-width: 200px;
    }
    .video-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .episode-selector {
        margin-left: 0;
    }
    .video-player iframe {
        min-height: 300px;
    }
    .anime-info h1 {
        font-size: 28px;
    }
}
.settings-panel {
    max-width: 700px;
    width: 90%;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    padding: 40px 35px;
    border-radius: 48px;
    border: 1px solid rgba(255, 68, 68, 0.3);
}
.settings-panel h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
}
.setting-row {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 25px;
    border-radius: 32px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: all 0.2s;
}
.setting-row:hover {
    border-color: rgba(255, 68, 68, 0.5);
    background: rgba(255, 255, 255, 0.08);
}
.setting-row label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #ff4444;
}
select, .setting-row .btn-secondary {
    width: 100%;
    padding: 12px 18px;
    border-radius: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}
select:hover, .setting-row .btn-secondary:hover {
    background: white;
}

.language-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.language-modal.show {
    display: flex;
    opacity: 1;
}
.language-modal-content {
    background: linear-gradient(135deg, #1a1a3a, #0d0d2b);
    border-radius: 32px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 68, 68, 0.3);
}
.language-modal.show .language-modal-content {
    transform: scale(1);
}
body.light .language-modal-content {
    background: linear-gradient(135deg, #e4e8f0, #d9e0e8);
    color: #1a1a2e;
}
.language-modal h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 28px;
}
.language-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.lang-option {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 12px;
    border-radius: 40px;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.lang-option:hover {
    background: #cc0000;
    color: white;
    transform: scale(1.02);
}
.close-lang-modal {
    margin-top: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
}
.season-btn {
    padding: 8px 20px;
    border-radius: 30px;
    transition: 0.2s;
}
.season-btn:hover {
    transform: scale(1.02);
}
.active-season {
    background: #cc0000;
    color: white;
}

/* Анимация карточек */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.2);
}
.card img {
    transition: transform 0.4s ease;
}
.card:hover img {
    transform: scale(1.02);
}

/* Кнопки */
.btn {
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active {
    transform: scale(0.96);
}
.btn-primary {
    transition: all 0.2s ease;
}
.btn-primary:active {
    background: #e05a2a;
    transform: scale(0.96);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.search-container .btn {
    animation: fadeInUp 0.4s ease backwards;
}
.search-container .btn:nth-child(2) { animation-delay: 0.05s; }
.search-container .btn:nth-child(3) { animation-delay: 0.1s; }

/* Шапка и активная вкладка */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
    text-decoration: none;
    color: #e0e0ff;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 30px;
    background: transparent;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff4444;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}
body.light .nav-link {
    color: #1a1a2e;
}
body.light .nav-link:hover {
    color: #cc0000;
    background: rgba(204, 0, 0, 0.1);
}

/* Фон - дополнительные звёзды и переливы */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(1px 1px at 60px 90px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 120px 180px, #ffaa44, rgba(0,0,0,0));
    background-size: 250px 250px, 300px 300px;
    background-repeat: repeat;
    opacity: 0.2;
    pointer-events: none;
    animation: starsSlow 35s linear infinite;
    z-index: -1;
}
@keyframes starsSlow {
    from { transform: translateY(0); }
    to { transform: translateY(-300px); }
}
body {
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Поиск */
.search-input {
    transition: width 0.3s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.search-input:focus {
    width: 380px;
    box-shadow: 0 0 0 3px rgba(255,68,68,0.3);
    transform: scale(1.01);
}

/* Страница аниме - плавное появление */
.anime-page {
    animation: animeFadeIn 0.5s ease-out;
}
@keyframes animeFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.anime-header {
    animation: slideInLeft 0.4s ease 0.05s backwards;
}
.video-container {
    animation: slideInRight 0.4s ease 0.1s backwards;
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Избранное сердечко */
.favorite-btn {
    transition: transform 0.2s ease, color 0.15s ease;
}
.favorite-btn:active {
    transform: scale(1.2);
}
.favorite-btn.active {
    animation: heartPop 0.3s ease;
}
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Кастомный скролл-бар */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* Модальные окна */
.language-modal {
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}
.language-modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.9);
    opacity: 0;
}
.language-modal.show .language-modal-content {
    transform: scale(1);
    opacity: 1;
}
.language-modal.show {
    opacity: 1;
}

/* Красивый подвал — прижат к низу */
footer {
    margin-top: auto;
    background: #0a0a0f;
    backdrop-filter: blur(0);
    padding: 40px 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #0a0a0f 0%, #050508 100%);
}
body.light footer {
    background: #1a1a2a;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 28px;
    background: linear-gradient(90deg, #ff4444, #cc0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 2px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 35px;
    text-align: left;
}
.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #ff4444;
    font-size: 16px;
    margin-bottom: 15px;
}
.footer-col p, .footer-col a {
    font-size: 13px;
    color: #a0a0b0;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #ff4444;
}
body.light .footer-col p, body.light .footer-col a {
    color: #4a4a5a;
}
body.light .footer-col a:hover {
    color: #cc0000;
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: #707080;
}
body.light .footer-bottom {
    border-top-color: rgba(0,0,0,0.05);
}
.footer-copyright {
    margin-bottom: 8px;
}
.footer-inn {
    font-size: 11px;
    opacity: 0.6;
}

/* Cookie уведомление */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: #1a1a2a;
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 10000;
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-size: 14px;
}
body.light .cookie-consent {
    background: #e4e8f0;
    border-color: rgba(0,0,0,0.1);
}
.cookie-consent p {
    margin: 0;
    flex: 1;
}
.cookie-consent a {
    color: #ff4444;
    text-decoration: none;
}
.cookie-consent .btn-cookie {
    background: #cc0000;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.cookie-consent .btn-cookie:hover {
    background: #990000;
    transform: scale(1.02);
}
@media (max-width: 550px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 700px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .footer-col h4 {
        margin-bottom: 10px;
    }
    .anime-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .anime-header img {
        width: 220px;
    }
    .language-buttons {
        grid-template-columns: 1fr;
    }
}

/* Кнопка "Загрузить ещё" */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}
.load-more-btn {
    padding: 12px 35px;
    font-size: 16px;
}

/* Что такое аниме */
.anime-info-block {
    text-align: center;
    padding: 30px 20px;
    margin: 0 30px 30px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(8px);
}
.anime-info-block h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ff4444;
}
.anime-info-block p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
body.light .anime-info-block {
    background: rgba(0, 0, 0, 0.05);
}

/* Аниме фон с тёмной и светлой версией с переливами */
body.has-anime-bg-dark {
    background: linear-gradient(135deg, #0a0a0f, #1a1a2a, #0a0a0f);
    background-size: 200% 200%;
    animation: bgShift 10s ease infinite;
}

body.has-anime-bg-light {
    background: linear-gradient(135deg, #f0f2f5, #d9e0e8, #f0f2f5);
    background-size: 200% 200%;
    animation: bgShift 10s ease infinite;
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.has-anime-bg-dark::before,
body.has-anime-bg-light::before,
body.has-anime-bg-dark::after,
body.has-anime-bg-light::after {
    opacity: 0.1;
}

/* Тёмные частицы для тёмного фона */
body.has-anime-bg-dark .snow-particle {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 5px rgba(255,255,255,0.2);
}

body.has-anime-bg-light .snow-particle {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.snow-particle {
    animation: fallAndFade linear infinite;
}

@keyframes fallAndFade {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}