:root { 
    --bg-dark: #12100E; 
    --text-main: #FDF5E6; 
    --text-muted: rgba(253, 245, 230, 0.6); 
    --accent: #E68C64; 
    --accent-light: #F2BFA3; 
    --accent-gold: #F5C77E; 
    --border: rgba(230, 140, 100, 0.25);
    --glass: rgba(26, 21, 18, 0.75);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    overflow-x: hidden; 
    min-height: 100vh;
}
body::after { 
    content: ""; position: fixed; inset: 0; pointer-events: none; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"); 
    z-index: 9999; 
}

/* Фоны */
.bg-video { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -100; filter: brightness(0.4) contrast(1.05) sepia(0.2); }
.bg-gradient { position: fixed; inset: 0; z-index: -50; background: linear-gradient(to right, rgba(18,16,14,0.95) 0%, rgba(18,16,14,0.75) 45%, rgba(18,16,14,0.1) 100%), linear-gradient(to top, var(--bg-dark) 0%, transparent 25%); }

/* Общие заголовки */
.section-header { margin-bottom: 25px; position: relative; padding-left: 25px; }
.section-header::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--section-color, var(--accent)); box-shadow: 0 0 15px var(--section-color, var(--accent)); }
.section-title { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 800; line-height: 1.1; background: linear-gradient(135deg, var(--text-main) 0%, var(--section-color, var(--accent)) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-subtitle { font-family: 'Caveat', cursive; font-size: 24px; color: var(--section-color, var(--accent)); display: block; margin-top: 2px; transform: rotate(-1deg); }

/* Карточки */
.anime-card { position: relative; border-radius: 16px; overflow: hidden; background: rgba(26, 21, 18, 0.6); border: 1px solid rgba(230, 140, 100, 0.1); cursor: pointer; flex: 0 0 200px; transition: transform 0.3s ease, box-shadow 0.4s, border-color 0.4s; }
.anime-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(230, 140, 100, 0.35); border-color: rgba(230, 140, 100, 0.6); }
.poster-wrapper { position: relative; width: 100%; aspect-ratio: 2/3; overflow: hidden; }
.poster-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.anime-card:hover .poster-wrapper img { transform: scale(1.1); }
.poster-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 65%; background: linear-gradient(to top, rgba(18, 16, 14, 1) 0%, transparent 100%); }
.anime-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 12px; z-index: 3; }
.anime-title { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
.anime-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--accent-light); font-weight: 600; }
.anime-score { background: rgba(230, 140, 100, 0.15); padding: 3px 6px; border-radius: 6px; color: var(--accent-gold); border: 1px solid rgba(245, 199, 126, 0.3); display: flex; align-items: center; gap: 3px; }

/* Модалка */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: #1a1612; border: 1px solid var(--border); border-radius: 24px; width: 100%; max-width: 1000px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.9); }
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.modal-close { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 18px; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.modal-close:hover { background: var(--accent); transform: rotate(90deg); }
.modal-hero { position: relative; min-height: 380px; background-size: cover; background-position: center; padding: 40px; display: flex; align-items: flex-end; }
.modal-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, #1a1612 0%, rgba(26,22,18,0.7) 50%, rgba(26,22,18,0.2) 100%); }
.modal-hero-content { position: relative; z-index: 2; display: flex; gap: 30px; align-items: flex-end; }
.modal-poster { width: 180px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); border: 2px solid rgba(255,255,255,0.1); }
.modal-info h2 { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 800; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.modal-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 25px; }
.modal-score { background: rgba(230, 140, 100, 0.2); color: var(--accent-gold); padding: 6px 14px; border-radius: 10px; font-weight: 700; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(245, 199, 126, 0.3); }
.modal-tag { background: rgba(255,255,255,0.08); padding: 6px 14px; border-radius: 10px; font-size: 12px; border: 1px solid rgba(255,255,255,0.1); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 15px; }
.modal-btn { padding: 14px 28px; border-radius: 30px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border: none; text-decoration: none; transition: 0.3s; }
.modal-btn.primary { background: linear-gradient(135deg, var(--accent), #b85f3e); color: #fff; box-shadow: 0 5px 20px rgba(230, 140, 100, 0.4); }
.modal-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(230, 140, 100, 0.6); }
.modal-btn.secondary { background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid rgba(255,255,255,0.15); }
.modal-btn.secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }
.modal-tabs { display: flex; gap: 5px; padding: 0 40px; border-bottom: 1px solid rgba(255,255,255,0.08); overflow-x: auto; }
.modal-tab { background: transparent; border: none; color: var(--text-muted); padding: 18px 20px; font-size: 15px; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s; white-space: nowrap; }
.modal-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }
.modal-tab-content { padding: 30px 40px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.modal-desc { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.85); margin-bottom: 30px; font-weight: 300; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.char-card { background: rgba(255,255,255,0.03); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.char-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.char-info { padding: 10px; }
.char-name { font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-va { font-size: 11px; color: var(--text-muted); }

/* ============ ПОДБОРКИ КАМИ ============ */
.kasumi-picks-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    padding-right: 5%; 
}
.kasumi-collection { 
    position: relative;
    background: linear-gradient(145deg, rgba(35, 28, 24, 0.9) 0%, rgba(18, 16, 14, 0.8) 100%);
    border: 1px solid rgba(230, 140, 100, 0.15); 
    border-radius: 16px; 
    padding: 25px; 
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease; 
    cursor: pointer;
    overflow: hidden;
}
.kasumi-collection::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, var(--collection-color, var(--accent)), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.kasumi-collection:hover::before { opacity: 0.1; }
.kasumi-collection:hover { 
    transform: translateY(-5px); 
    border-color: var(--collection-color, var(--accent)); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(230, 140, 100, 0.15); 
}
.kasumi-collection-icon { 
    font-size: 28px; 
    margin-bottom: 12px; 
    position: relative;
    z-index: 1;
}
.kasumi-collection h3 { 
    font-family: 'Caveat', cursive; 
    font-size: 28px; 
    color: var(--text-main); 
    margin-bottom: 8px; 
    line-height: 1.1;
    position: relative;
    z-index: 1;
}
.kasumi-collection p { 
    font-size: 12px; 
    color: var(--text-muted); 
    line-height: 1.5; 
    margin-bottom: 20px; 
    flex-grow: 1;
    position: relative;
    z-index: 1;
}
.kasumi-collection-images { 
    display: flex; 
    position: relative; 
    height: 80px;
    margin-left: 10px;
    z-index: 1;
}
.kasumi-collection-images img { 
    width: 60px; 
    height: 80px; 
    border-radius: 6px; 
    object-fit: cover; 
    box-shadow: -4px 0 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s, z-index 0.3s;
    position: relative;
}
.kasumi-collection-images img:nth-child(1) { z-index: 3; transform: rotate(-3deg); }
.kasumi-collection-images img:nth-child(2) { z-index: 2; margin-left: -20px; transform: rotate(2deg) translateY(5px); }
.kasumi-collection-images img:nth-child(3) { z-index: 1; margin-left: -20px; transform: rotate(-1deg) translateY(-2px); }
.kasumi-collection:hover .kasumi-collection-images img:nth-child(1) { transform: rotate(-6deg) translateY(-5px) scale(1.05); }
.kasumi-collection:hover .kasumi-collection-images img:nth-child(2) { transform: rotate(4deg) translateY(0) scale(1.05); margin-left: -10px; }
.kasumi-collection:hover .kasumi-collection-images img:nth-child(3) { transform: rotate(-2deg) translateY(-8px) scale(1.05); margin-left: -10px; }

/* ============ МОДАЛКА ПОДБОРКИ ============ */
.collection-modal-content {
    max-width: 1200px !important;
    max-height: 90vh;
    overflow-y: auto;
}
.collection-modal-content::-webkit-scrollbar { width: 8px; }
.collection-modal-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.collection-modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 25px;
}
.collection-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}
.collection-modal-header h2 i { margin-right: 10px; }
.collection-modal-header p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 800px;
}

.collection-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 40px 40px;
}
.collection-modal-grid .anime-card {
    flex: none;
    width: 100%;
}

/* ПОДБОРКИ КАМИ - "ЗАМЕТКИ ИЗ ПРОМЕЖУТКА" */
.kasumi-picks-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 22px; 
    padding-right: 5%; 
}
.kasumi-collection { 
    position: relative;
    background: 
        radial-gradient(ellipse at top right, rgba(230, 140, 100, 0.08) 0%, transparent 60%),
        linear-gradient(160deg, rgba(40, 32, 26, 0.95) 0%, rgba(24, 20, 17, 0.92) 100%);
    border: 1px solid rgba(230, 140, 100, 0.12); 
    border-radius: 4px 20px 4px 20px; 
    padding: 28px 25px 25px; 
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer;
    overflow: visible;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.kasumi-collection::before {
    content: '';
    position: absolute;
    top: -8px; left: 30px;
    width: 20px; height: 20px;
    background: rgba(40, 32, 26, 0.95);
    transform: rotate(45deg);
    border-top: 1px solid rgba(230, 140, 100, 0.15);
    border-left: 1px solid rgba(230, 140, 100, 0.15);
    z-index: 0;
}
.kasumi-collection::after {
    content: '';
    position: absolute;
    bottom: 15px; right: 20px;
    width: 60px; height: 60px;
    background-image: radial-gradient(circle, rgba(230, 140, 100, 0.1) 1px, transparent 1px);
    background-size: 6px 6px;
    opacity: 0.5;
    pointer-events: none;
}
.kasumi-collection:hover { 
    transform: translateY(-6px) rotate(-0.5deg);
    border-color: var(--collection-color, var(--accent)); 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(230, 140, 100, 0.15); 
}

.kasumi-collection-icon { 
    font-size: 26px; 
    margin-bottom: 10px; 
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--collection-color, var(--accent));
    opacity: 0.9;
}
.kasumi-collection h3 { 
    font-family: 'Caveat', cursive; 
    font-size: 32px; 
    color: var(--accent-gold); 
    margin-bottom: 8px; 
    line-height: 1.05;
    text-shadow: 0 2px 10px rgba(230, 140, 100, 0.2);
    position: relative;
}
.kasumi-collection h3::after {
    content: '';
    display: block;
    height: 1px;
    width: 40px;
    background: var(--collection-color, var(--accent));
    margin-top: 10px;
    opacity: 0.5;
}
.kasumi-collection p { 
    font-size: 12.5px; 
    color: rgba(253, 245, 230, 0.55); 
    line-height: 1.55; 
    margin-bottom: 22px; 
    flex-grow: 1;
    font-weight: 300;
    font-style: italic;
}

/* Стопка постеров */
.kasumi-collection-images { 
    display: flex; 
    position: relative; 
    height: 100px;
    margin-left: 15px;
    margin-bottom: 5px;
}
.kasumi-collection-images img { 
    width: 70px; 
    height: 100px; 
    border-radius: 4px; 
    object-fit: cover; 
    box-shadow: -6px 4px 12px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.kasumi-collection-images img:nth-child(1) { z-index: 3; transform: rotate(-4deg); }
.kasumi-collection-images img:nth-child(2) { z-index: 2; margin-left: -25px; transform: rotate(3deg) translateY(6px); }
.kasumi-collection-images img:nth-child(3) { z-index: 1; margin-left: -25px; transform: rotate(-2deg) translateY(-3px); }
.kasumi-collection:hover .kasumi-collection-images img:nth-child(1) { transform: rotate(-8deg) translateY(-8px) scale(1.08); z-index: 4; }
.kasumi-collection:hover .kasumi-collection-images img:nth-child(2) { transform: rotate(5deg) translateY(0) scale(1.08); margin-left: -15px; z-index: 3; }
.kasumi-collection:hover .kasumi-collection-images img:nth-child(3) { transform: rotate(-3deg) translateY(-12px) scale(1.08); margin-left: -15px; z-index: 2; }

/* ============ МУЗЫКАЛЬНЫЙ ПЛЕЕР ============ */
.lofi-player { position: fixed; bottom: 20px; right: 20px; background: rgba(26, 21, 18, 0.9); backdrop-filter: blur(25px); border: 1px solid var(--border); border-radius: 20px; z-index: 1000; width: 320px; transition: 0.4s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.lofi-player.collapsed { width: 60px; border-radius: 50px; }
.lofi-player.collapsed .player-body { display: none; }
.lofi-player.collapsed .player-header { padding: 10px; border-bottom: none; justify-content: center; }
.lofi-player.collapsed .player-title, .lofi-player.collapsed .equalizer { display: none; }
.player-header { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid rgba(230, 140, 100, 0.15); cursor: pointer; }
.vinyl-disc { width: 40px; height: 40px; border-radius: 50%; background: url('https://images.unsplash.com/photo-1516280440502-863d1b1c3839?q=80&w=100&auto=format&fit=crop') center/cover; border: 2px solid #111; animation: spin 4s linear infinite; animation-play-state: paused; }
.vinyl-disc.playing { animation-play-state: running; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.player-title h4 { font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.player-title p { font-size: 10px; color: var(--accent); }
.equalizer { display: flex; align-items: flex-end; gap: 2px; height: 20px; width: 20px; }
.equalizer span { width: 3px; background: var(--accent); border-radius: 2px; height: 30%; }
.equalizer.playing span { animation: eq 0.8s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.player-body { padding: 12px 15px 15px; }
.player-controls { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 12px; }
.ctrl-btn { background: transparent; border: none; color: var(--text-main); cursor: pointer; width: 32px; height: 32px; border-radius: 50%; }
.ctrl-btn.play-btn { width: 42px; height: 42px; background: linear-gradient(135deg, var(--accent), #c96d4a); color: #fff; box-shadow: 0 0 15px rgba(230, 140, 100, 0.4); }
.progress-container { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text-muted); margin-bottom: 12px; }
.progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; cursor: pointer; position: relative; }
.progress-fill { position: absolute; height: 100%; background: linear-gradient(90deg, var(--accent-light), var(--accent)); border-radius: 2px; width: 0%; }
.playlist { display: flex; flex-direction: column; gap: 4px; max-height: 140px; overflow-y: auto; }
.playlist-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 11px; color: var(--text-muted); }
.playlist-item.active { background: rgba(230, 140, 100, 0.2); color: var(--accent-light); }
/* Бейдж статуса на карточке */
.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* ============ КРАСИВЫЕ МОДАЛКИ И ТОСТЫ ============ */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.custom-modal-overlay.active { opacity: 1; }

.custom-modal-box {
    background: linear-gradient(145deg, rgba(30, 25, 22, 0.95), rgba(18, 16, 14, 0.98));
    border: 1px solid rgba(230, 140, 100, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.9), inset 0 0 30px rgba(230,140,100,0.05);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-modal-overlay.active .custom-modal-box { transform: translateY(0) scale(1); }

.custom-modal-icon { font-size: 48px; margin-bottom: 20px; }
.custom-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}
.custom-modal-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}
.custom-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.custom-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}
.custom-btn.primary {
    background: linear-gradient(135deg, #E68C64, #b85f3e);
    color: #fff;
    box-shadow: 0 5px 15px rgba(230,140,100,0.3);
}
.custom-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(230,140,100,0.5); }
.custom-btn.secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}
.custom-btn.secondary:hover { background: rgba(255,255,255,0.1); border-color: #E68C64; }
.custom-btn.danger {
    background: linear-gradient(135deg, #E63946, #c42835);
    color: #fff;
    box-shadow: 0 5px 15px rgba(230,57,70,0.3);
}
.custom-btn.danger:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(230,57,70,0.5); }

/* ТОСТЫ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.custom-toast {
    background: rgba(26, 21, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}
.custom-toast.show { transform: translateX(0); }
.custom-toast.success { border-left: 4px solid #4ade80; }
.custom-toast.error { border-left: 4px solid #E63946; }
.custom-toast.info { border-left: 4px solid #4facfe; }
.custom-toast i { font-size: 18px; }
.custom-toast.success i { color: #4ade80; }
.custom-toast.error i { color: #E63946; }
.custom-toast.info i { color: #4facfe; }

/* ==========================================
   КРАСИВЫЙ ФУТЕР (SITE FOOTER)
   ========================================== */
.site-footer {
    background: rgba(18, 16, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(230, 140, 100, 0.15);
    padding: 50px 5% 30px;
    margin-top: 80px;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
}
.footer-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-brand {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    gap: 2px;
}
.footer-brand .brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}
.footer-brand .brand-dot {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent); /* Оранжевый акцент */
    text-shadow: 0 0 15px rgba(230, 140, 100, 0.6);
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(230, 140, 100, 0.4);
}
.footer-links .link-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 18px;
}
.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    text-align: center;
}



/* ==========================================
   БЛОК "ПРОДОЛЖИТЬ ПРОСМОТР" (ИСПРАВЛЕННЫЙ)
   ========================================== */
#continueWatchingSection {
    margin-top: 40px;
    padding: 0 5%;
}
.continue-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    align-items: flex-start; /* Запрещаем растягивать элементы по высоте */
}
.continue-grid::-webkit-scrollbar {
    height: 6px;
}
.continue-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}
.continue-card {
    flex: 0 0 180px; /* Жесткая ширина */
    width: 180px;
    max-width: 180px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.continue-card:hover {
    transform: translateY(-5px);
}
.continue-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 270px; /* Жесткая высота (пропорция 2:3) */
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
    margin-bottom: 12px;
    background: rgba(0,0,0,0.5); /* На случай, пока грузится картинка */
}
.continue-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет блок без искажений */
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}
.continue-card:hover .continue-img-wrap img {
    transform: scale(1.05);
}
.continue-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.continue-play-icon i {
    font-size: 36px;
    color: #fff;
    filter: drop-shadow(0 0 10px var(--accent));
}
.continue-card:hover .continue-play-icon {
    opacity: 1;
}
.continue-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.continue-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}
.continue-ep {
    font-size: 12px;
    color: var(--accent-light);
}
.continue-progress-track {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
    width: 100%;
}
.continue-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent);
}
/* Чуть уменьшили ширину */
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.continue-card:hover {
    transform: translateY(-5px);
}
.continue-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2/3;
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
    margin-bottom: 12px;
}
.continue-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.continue-card:hover .continue-img-wrap img {
    transform: scale(1.05);
}
.continue-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.continue-play-icon i {
    font-size: 36px;
    color: #fff;
    filter: drop-shadow(0 0 10px var(--accent));
}
.continue-card:hover .continue-play-icon {
    opacity: 1;
}
.continue-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.continue-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}
.continue-ep {
    font-size: 12px;
    color: var(--accent-light);
}
.continue-progress-track {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}
.continue-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent);
}

    /* Фикс прокрутки модалки */
    .modal-content {
        display: flex !important;
        flex-direction: column !important;
        max-height: 90vh !important;
        overflow: hidden !important;
    }
    .modal-body {
        overflow-y: auto !important;
        max-height: 60vh !important;
        padding-right: 15px !important;
    }
    /* Красивый скроллбар */
    .modal-body::-webkit-scrollbar { width: 6px; }
    .modal-body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
    
/* --- ФИКС МОДАЛЬНОГО ОКНА --- */
.modal-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
}

.modal-tab-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
