:root {
    /* --- NETFLIX-STYLE PALETTE --- */
    --primary: #e50914;
    --primary-hover: #f40612;
    
    --bg-body: #141414;
    --bg-sidebar: #181818;
    --bg-card: #252525;
    --bg-input: #333333;

    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    
    /* Острые углы */
    --border-radius: 2px;
    --shadow: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-hover: 0 4px 16px rgba(229, 9, 20, 0.25);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 13px;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-body);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background-color: var(--primary); border-radius: 10px; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
* { box-sizing: border-box; outline: none; border: none; }

.app-container { display: flex; min-height: 100vh; }

/* --- САЙДБАР --- */
.sidebar {
    width: 260px; background: var(--bg-sidebar); padding: 30px 20px;
    position: fixed; height: 100vh; z-index: 99;
    display: flex; flex-direction: column; border-right: 1px solid #2f2f2f;
}

.brand {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon-box {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.brand-icon-box svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.brand span {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-list { flex-grow: 1; }
.menu-item {
    display: flex; align-items: center; padding: 12px 16px; margin-bottom: 4px;
    border-radius: var(--border-radius); color: var(--text-muted); font-weight: 600; font-size: 13px; transition: all 0.3s ease;
}
.menu-item svg { width: 18px; height: 18px; margin-right: 15px; fill: currentColor; opacity: 0.7; }
.menu-item:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.menu-item:hover svg { opacity: 1; }
.menu-item.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-hover); }
.menu-item.active svg { opacity: 1; }

.promo-card {
    background: linear-gradient(135deg, #252525, #333);
    border-radius: var(--border-radius); padding: 20px;
    color: var(--text-main); text-align: center; border: 1px solid #3f3f3f;
}
.promo-card h4 { margin: 0 0 10px 0; color: var(--primary); }
.promo-card p { font-size: 12px; opacity: 0.8; margin-bottom: 15px; color: var(--text-muted); }
.btn-red {
    background: var(--primary); color: white; padding: 10px 25px;
    border-radius: var(--border-radius); font-weight: bold; font-size: 13px;
    display: inline-block; text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-red:hover { background: var(--primary-hover); box-shadow: var(--shadow-hover); }

.main-wrapper { margin-left: 260px; width: calc(100% - 260px); padding: 25px 35px; }

/* --- ШАПКА --- */
.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

.search-bar {
    background: var(--bg-input); padding: 6px 6px 6px 15px;
    border-radius: var(--border-radius); width: 450px; display: flex; align-items: center;
    border: 1px solid transparent; transition: 0.3s;
}
.search-bar:focus-within { border-color: var(--primary); background: var(--bg-card); }
.search-bar input { width: 100%; margin-left: 10px; font-size: 13px; background: transparent; color: var(--text-main); }
.search-bar svg { fill: var(--text-muted); width: 18px; }

.search-btn-action {
    background: var(--primary); color: white; border: none;
    padding: 8px 20px; border-radius: var(--border-radius); margin-left: 10px;
    cursor: pointer; font-weight: 600; font-size: 13px; transition: 0.2s;
}
.search-btn-action:hover { background: #ff1f2b; box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3); }

.user-profile { display: flex; align-items: center; gap: 15px; padding: 5px; cursor: pointer; }
.avatar-circle { width: 40px; height: 40px; background: var(--primary); border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 18px; }
.user-info { text-align: right; }
.user-info span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.user-info small { color: var(--text-muted); font-size: 12px; }

.login-panel { display: flex; align-items: center; gap: 15px; }
.user-balance { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.user-balance b { color: var(--primary); margin-left: 3px; font-weight: 800; } 
.user-balance a, .user-balance span { color: var(--primary); }
.user-avatar { width: 40px; height: 40px; border-radius: var(--border-radius); overflow: hidden; background: #333; border: 1px solid #444; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.logout-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); border-radius: 50%; transition: 0.2s; background: rgba(255,255,255,0.05); }
.logout-btn:hover { background: var(--primary); color: white; }
.logout-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* --- ФИЛЬТРЫ --- */
.filters-container { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; align-items: center; position: relative; z-index: 50; }
.filter-dropdown { position: relative; }
.filter-btn {
    background: var(--bg-card); padding: 8px 15px; border-radius: var(--border-radius);
    font-weight: 500; font-size: 12px; color: var(--text-main); border: 1px solid #3f3f3f;
    cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-width: 100px; transition: 0.3s;
}
.filter-btn:hover, .filter-dropdown.active .filter-btn { border-color: var(--primary); color: var(--primary); background: #2a2a2a; }
.filter-btn svg { width: 10px; height: 10px; fill: currentColor; margin-left: 10px; transition: 0.3s; }
.filter-dropdown.active .filter-btn svg { transform: rotate(180deg); }
.filter-btn.has-value { color: var(--primary); border-color: var(--primary); background: rgba(229, 9, 20, 0.1); }

.dropdown-menu {
    position: absolute; top: 100%; left: 0; margin-top: 5px;
    background: var(--bg-card); border: 1px solid #3f3f3f; border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: 200px; max-height: 300px;
    overflow-y: auto; display: none; flex-direction: column; padding: 5px; z-index: 100;
}
.filter-dropdown.active .dropdown-menu { display: flex; animation: fadeIn 0.2s ease; }
.dropdown-item { padding: 8px 12px; color: var(--text-muted); font-size: 12px; border-radius: var(--border-radius); text-decoration: none; transition: 0.2s; display: block; cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; }
.dropdown-item:hover, .dropdown-item.checked { background: var(--primary); color: white; }
.dropdown-menu::-webkit-scrollbar { width: 4px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.dropdown-item input { display: none; }

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

.filter-reset { margin-left: auto; color: var(--text-muted); font-size: 12px; cursor: pointer; display: flex; align-items: center; border: none; background: transparent; }
.filter-reset:hover { color: white; }

/* --- СЕТКА (Широкая версия) --- */
.grid-layout {
    display: grid;
    /* 1. Дата: 80px
       2. Название: 1fr (Занимает все свободное место)
       3. Год: 70px (Стало чуть шире)
       4. Сезон: 130px 
       5. Качество: 210px (ЗНАЧИТЕЛЬНО ШИРЕ, чтобы влазил текст)
       6. IDs: 110px
       7. Инструменты: 140px
    */
    grid-template-columns: 80px 1fr 70px 130px 210px 110px 140px; 
    gap: 20px; /* Увеличили отступ, чтобы Год не прилипал к Сезону */
    align-items: center;
}

.list-header { padding: 0 15px; margin-bottom: 10px; color: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.movie-card {
    background: var(--bg-card); 
    border-radius: var(--border-radius); 
    padding: 12px 15px;
    margin-bottom: 8px; box-shadow: var(--shadow); transition: transform 0.2s, background 0.2s; border: 1px solid transparent;
}
.movie-card:hover { transform: translateY(-2px); background: #2a2a2a; border-color: #3f3f3f; }

.col-date { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.col-info h3 { 
    margin: 0 0 6px 0;
    font-size: 15px; 
    font-weight: 700; 
    line-height: 1.3;
}
.col-info h3 a, .js-open-movie { color: var(--text-main); cursor: pointer; transition: 0.2s; }
.col-info h3 a:hover, .js-open-movie:hover { color: var(--primary); }
.meta-tags { font-size: 11px; color: var(--text-muted); display: flex; gap: 6px; flex-wrap: wrap;}
.meta-tags span { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 2px; }

.col-year {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    text-align: center;
}

.badge { padding: 4px 8px; border-radius: 2px; font-size: 11px; font-weight: 600; text-align: center; display: inline-block; white-space: nowrap; }
.badge-red { background: var(--primary); color: white; }
.badge-dark { background: #333; color: var(--text-muted); border: 1px solid #444; }
.tech-stack { display: flex; flex-direction: column; gap: 6px; align-items: flex-start;}

.ids-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.id-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1f1f1f;
    border: 1px solid #333;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    border-radius: 2px;
    height: 22px;
}
.id-badge:hover { background: #333; color: #fff; border-color: #555; }
.id-badge span { color: #fff; margin-left: 5px; font-family: monospace; }
.id-badge.kp:hover { border-color: #f56b00; }
.id-badge.imdb:hover { border-color: #f5c518; }
.id-badge.tmdb:hover { border-color: #01b4e4; }

.tools-panel { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tools-row-top, .tools-row-bottom { display: flex; align-items: center; gap: 6px; }

.code-switch-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-right: 4px; }
.switch-container { position: relative; display: inline-block; width: 32px; height: 16px; }
.switch-container input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 16px; border: 1px solid #444; }
.slider:before { position: absolute; content: ""; height: 10px; width: 10px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(16px); }

.tool-btn { width: 30px; height: 30px; border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; border: 1px solid transparent; }
.btn-copy-code { background: #333; color: #ccc; border-color: #444; }
.btn-copy-code:hover { background: #444; color: #fff; }
.btn-play-movie { background: rgba(229, 9, 20, 0.15); color: #e50914; border-color: rgba(229, 9, 20, 0.3); }
.btn-play-movie:hover { background: #e50914; color: #fff; box-shadow: 0 4px 12px rgba(229,9,20,0.4); }

.title-with-icon { display: inline-flex; align-items: center; gap: 6px; }
.info-icon { width: 14px; height: 14px; fill: var(--text-muted); opacity: 0.6; transition: 0.2s; flex-shrink: 0; }
.title-with-icon:hover .info-icon { fill: var(--primary); opacity: 1; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 1000; display: none; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; justify-content: center; align-items: center; opacity: 1; }
.modal-window { background: var(--bg-card); color: var(--text-main); width: 900px; max-width: 90%; max-height: 90vh; border-radius: 6px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); position: relative; overflow-y: auto; transform: translateY(30px); transition: transform 0.3s ease; border: 1px solid #3f3f3f; }
.modal-overlay.active .modal-window { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-main); font-size: 20px; transition: 0.2s; }
.modal-close:hover { background: var(--primary); }
#modal-content { padding: 40px; color: #dcdcdc; line-height: 1.6; }

.custom-navigation, .navigation { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #252525; font-size: 0 !important; color: transparent; background: transparent !important; }
.navigation span, .navigation div { background: transparent !important; box-shadow: none !important; border: none !important; padding: 0 !important; margin: 0 !important; }
.nav-btn, .navigation a { min-width: 36px; height: 36px; display: inline-flex !important; justify-content: center; align-items: center; background: var(--bg-card) !important; color: var(--text-main) !important; border-radius: var(--border-radius); font-weight: 600; font-size: 13px !important; text-decoration: none; transition: all 0.2s; border: 1px solid transparent !important; cursor: pointer; }
.nav-btn:hover, .navigation a:hover { background: #333 !important; transform: translateY(-2px); color: white !important; }
.nav-btn.active, .navigation span:not(.nav_ext) span, .navigation b, .navigation .current { min-width: 36px; height: 36px; display: inline-flex !important; justify-content: center; align-items: center; background: var(--primary) !important; color: white !important; border-radius: var(--border-radius); font-weight: 600; font-size: 13px !important; box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4) !important; cursor: default; }
.nav-btn.dots, .navigation .nav_ext { background: transparent !important; color: var(--text-muted) !important; font-size: 14px !important; cursor: default; min-width: auto; box-shadow: none !important; }
.custom-navigation + .navigation { display: none !important; }

/* FullStory */
.fs-window { color: #e0e0e0; font-size: 13px; }
.fs-top-grid { display: flex; gap: 30px; margin-bottom: 30px; }
.fs-left { width: 220px; flex-shrink: 0; }
.fs-right { flex-grow: 1; }
.fs-poster { position: relative; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.5); background: #222; }
.fs-poster img { width: 100%; height: auto; display: block; }
.fs-quality { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 2px; }
.fs-ratings { display: flex; gap: 10px; margin-top: 15px; }
.rate-item { flex: 1; background: #252525; border: 1px solid #333; border-radius: var(--border-radius); padding: 8px; text-align: center; display: flex; flex-direction: column; }
.rate-item .val { font-size: 18px; font-weight: 800; }
.rate-item .label { font-size: 10px; color: #888; margin-top: 2px; text-transform: uppercase; }
.kp-rate .val { color: #46d369; } .imdb-rate .val { color: #f5c518; }
.fs-title { margin: 0 0 5px 0; font-size: 26px; line-height: 1.2; color: #fff; }
.fs-orig-title { font-size: 13px; color: #888; margin-bottom: 15px; }
.fs-slogan { font-style: italic; color: #bbb; border-left: 3px solid var(--primary); padding-left: 12px; margin-bottom: 20px; }
.fs-info-list { display: flex; flex-direction: column; gap: 6px; }
.fs-row { display: flex; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px; margin-bottom: 2px; }
.fs-row:last-child { border: none; }
.fs-label { width: 120px; color: #888; font-size: 12px; flex-shrink: 0; }
.fs-val { color: #ddd; font-weight: 500; }
.fs-val.highlight { color: var(--primary); font-weight: 700; }
.fs-description-block { margin-bottom: 30px; background: rgba(255,255,255,0.02); padding: 20px; border-radius: var(--border-radius); }
.fs-description-block h3 { margin: 0 0 15px 0; font-size: 18px; color: #fff; border-left: 4px solid var(--primary); padding-left: 10px; }

/* HEADER STATS & TOKEN */
.header-stats { display: flex; align-items: center; background: #1f1f1f; border: 1px solid #333; padding: 5px 20px; border-radius: var(--border-radius); margin-left: 20px; height: 46px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.stat-item { display: flex; align-items: center; gap: 12px; }
.stat-icon svg { width: 24px; height: 24px; fill: var(--primary); opacity: 0.9; }
.stat-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.stat-value { font-size: 15px; color: #fff; font-weight: 800; letter-spacing: 0.5px; }
.stat-label { font-size: 9px; color: #888; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.stat-divider { width: 1px; height: 24px; background: #333; margin: 0 20px; }
.token-selector-wrap { display: flex; align-items: center; gap: 10px; margin-right: 15px; height: 40px; }
.token-label-row { display: flex; align-items: center; gap: 6px; color: #888; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.token-label-icon { width: 14px; height: 14px; fill: #666; }
.info-icon-wrapper { position: relative; display: flex; align-items: center; cursor: help; margin-left: 2px; }
.info-svg { width: 13px; height: 13px; fill: #555; transition: fill 0.2s; }
.info-icon-wrapper:hover .info-svg { fill: #8b5cf6; }
.custom-tooltip { visibility: hidden; opacity: 0; position: absolute; top: 160%; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: #ddd; padding: 8px 12px; border-radius: 4px; font-size: 11px; white-space: nowrap; border: 1px solid #333; box-shadow: 0 5px 15px rgba(0,0,0,0.5); z-index: 100; pointer-events: none; transition: 0.2s all ease; }
.custom-tooltip::after { content: ''; position: absolute; bottom: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: transparent transparent #333 transparent; }
.info-icon-wrapper:hover .custom-tooltip { visibility: visible; opacity: 1; top: 140%; }
.select-container { position: relative; }
.token-selector-wrap select { background: #1a1a1a; color: #fff; border: 1px solid #333; padding: 6px 25px 6px 10px; border-radius: var(--border-radius); font-size: 12px; font-weight: 500; cursor: pointer; outline: none; appearance: none; min-width: 130px; max-width: 200px; transition: all 0.2s; }
.token-selector-wrap select:hover { border-color: #555; background: #222; }
.select-container::after { content: ''; position: absolute; right: 10px; top: 55%; transform: translateY(-50%); border: 4px solid transparent; border-top-color: #8b5cf6; pointer-events: none; }

/* SCROLL TOP */
.scroll-top-btn { position: fixed; bottom: 20px; right: 15px; width: 36px; height: 36px; background: #1f1f1f; border: 1px solid #333; border-radius: 2px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.scroll-top-btn svg { width: 20px; height: 20px; fill: #fff; transition: transform 0.2s; }
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: #e50914; border-color: #e50914; transform: translateY(-3px); }

/* АДАПТИВ (Hybrid) */
@media (max-width: 1200px) {
    .sidebar { width: 80px; padding: 20px 10px; }
    .brand span, .menu-item span, .promo-card, .user-info { display: none; }
    .main-wrapper { margin-left: 80px; width: calc(100% - 80px); }
    .menu-item { justify-content: center; padding: 15px; }
    .search-bar { width: 250px; }
}

@media (max-width: 900px) {
    body { font-size: 13px; }
    .app-container { display: block; }
    .main-wrapper { margin-left: 0; width: 100%; padding: 15px 15px 85px 15px; overflow-x: hidden; }
    .sidebar { width: 100%; height: auto; position: fixed; bottom: 0; left: 0; top: auto; padding: 8px 10px 20px 10px; border-top: 1px solid #333; background: rgba(20, 20, 20, 0.98); backdrop-filter: blur(10px); z-index: 9999; display: flex; justify-content: center; transform: none; }
    .sidebar .menu-list { display: flex; width: 100%; max-width: 500px; justify-content: space-around; align-items: center; }
    .brand, .promo-card, .menu-item span, .header-stats, .user-profile, .list-header { display: none !important; }
    .menu-item { padding: 10px; margin: 0; background: transparent !important; box-shadow: none !important; }
    .menu-item svg { width: 24px; height: 24px; margin: 0; fill: #777; }
    .menu-item.active svg { fill: var(--primary); }
    .top-header { flex-direction: column; gap: 15px; margin-bottom: 20px; }
    .search-bar { width: 100%; background: #252525; }
    .filters-container { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; margin-bottom: 20px; gap: 8px; -webkit-overflow-scrolling: touch; }
    .filters-container::-webkit-scrollbar { display: none; }
    
    .grid-layout { display: flex; flex-direction: column; background: #1f1f1f; border: 1px solid #333; border-radius: 6px; padding: 16px; margin-bottom: 16px; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.2); gap: 10px; }
    .col-info { order: 1; width: 100%; padding-right: 60px; }
    .col-info h3 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
    .meta-tags { display: flex; flex-wrap: wrap; gap: 6px; opacity: 0.7; }
    .col-year { order: 1; position: absolute; top: 18px; right: 16px; font-size: 14px; background: #252525; padding: 2px 6px; border-radius: 4px; border: 1px solid #333; }
    .col-date { display: none; }
    .tech-stack { order: 2; width: auto; display: inline-flex; flex-wrap: wrap; gap: 8px; flex-direction: row; }
    .ids-stack { order: 3; flex-direction: row; gap: 10px; width: 100%; justify-content: flex-start; margin: 5px 0; }
    .id-badge { width: auto; padding: 4px 10px; font-size: 11px; }
    .tools-panel { order: 4; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid #333; padding-top: 12px; }
    .tools-row-top { margin-bottom: 0; }
    .tool-btn { width: 38px; height: 38px; }

    .modal-window { width: 95% !important; max-height: 95vh !important; padding: 0; top: 2.5vh; transform: none !important; }
    #modal-content { padding: 20px; overflow-y: auto; max-height: calc(95vh - 50px); }
    .fs-top-grid { flex-direction: column; gap: 20px; }
    .fs-left { width: 100%; display: flex; gap: 15px; align-items: flex-start; }
    .fs-poster { width: 110px; flex-shrink: 0; }
    .fs-right { width: 100%; }
    .fs-ratings { flex-direction: row; gap: 10px; margin-top: 10px; }
}
/* --- ОБНОВЛЕННЫЕ СТИЛИ ПРОФИЛЯ И УВЕДОМЛЕНИЙ --- */

/* Блок с именем и иконкой */
.user-name {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px; /* Чуть больше воздуха между логином и конвертом */
}

/* Стили для ЛОГИНА (Аккуратный жирный) */
.user-name a {
    font-weight: 700 !important; /* Было 800, стало 700 (стандартный жирный) */
    font-size: 14px;             /* Размер как у основного текста, не огромный */
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.3px;
}

/* Контейнер для конверта */
.header-notify-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    margin-top: 2px; /* Микро-коррекция по высоте */
}

/* Сам конверт (КРАСНЫЙ) */
.header-notify-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary); /* Красный цвет (#e50914) */
    transition: 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Легкая тень для объема */
}

/* При наведении конверт становится немного ярче */
.header-notify-icon:hover svg {
    fill: #ff1f2b; 
    transform: scale(1.05); /* Легкое увеличение */
}

/* --- ИСПРАВЛЕННЫЙ БЕЙДЖ (Ровный круг) --- */

.notify-badge {
    position: absolute;
    top: -6px;      /* Подняли чуть выше */
    right: -8px;    /* Сдвинули правее */

    background-color: var(--primary); /* Красный фон */
    color: #ffffff;                   /* Белая цифра */

    /* Жесткие размеры для идеального круга */
    height: 18px;
    min-width: 18px; 
    border-radius: 50%; /* Превращаем квадрат в круг */
    
    /* Важно: padding может ломать центрирование, ставим минимальный */
    padding: 0 3px; 
    box-sizing: border-box;

    /* ЦЕНТРИРОВАНИЕ */
    display: flex;
    align-items: center;
    justify-content: center;

    /* ШРИФТ */
    font-size: 10px;
    font-weight: 800;
    line-height: 1; /* ГЛАВНОЕ: Убирает пустое место над/под цифрой */

    /* Обводка цветом фона, чтобы отделить кружок от конверта */
    border: 2px solid #141414; 
    
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}