/* --- ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ --- */
.user-profile-container { display: none; width: 100%; flex-direction: column; gap: 20px; animation: fadeIn 0.3s ease; margin-top: 20px; }
.profile-hero { background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; position: relative; }

.profile-hero-top { display: flex; align-items: center; padding: 25px 30px; border-bottom: 1px solid var(--line); }
.profile-avatar-wrapper { position: relative; width: 120px; height: 120px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 10px 25px rgba(0,0,0,0.5); border: 2px solid var(--line-strong); cursor: default; transition: all 0.25s ease; }
.profile-avatar-wrapper.editable { cursor: pointer; }
.profile-avatar-wrapper.editable:hover { border-color: var(--cyan); transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(63, 224, 208, 0.4); }
.profile-avatar-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #000; transition: filter 0.25s ease; }
.profile-avatar-wrapper.editable:hover img { filter: brightness(0.5); }
.avatar-overlay { position: absolute; inset: 0; background: transparent; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s ease; font-size: 24px; border-radius: 50%; pointer-events: none; color: #fff; }
.profile-avatar-wrapper.editable:hover .avatar-overlay { opacity: 1; }

.profile-hero-info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding-left: 30px; }
.profile-hero-info h2 { font-family: 'Chakra Petch', sans-serif; font-size: 32px; font-weight: 700; color: #fff; margin: 0; line-height: 1; display: flex; align-items: center; gap: 10px; }
.profile-hero-info .meta-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-2); }

.nickname-wrapper { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; position: relative; transition: background 0.2s ease; border-radius: 6px; }
.edit-nick-btn { opacity: 0; visibility: hidden; cursor: pointer; font-size: 16px; background: transparent; border: none; color: var(--text-2); transition: all 0.2s ease; padding: 4px; line-height: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; box-sizing: border-box; }
.nickname-wrapper:hover .edit-nick-btn { opacity: 1; visibility: visible; }
.nickname-edit-wrapper { display: none; align-items: center; gap: 8px; animation: fadeIn 0.2s ease; }

#edit-gender-btn { max-width: 0; height: 18px; padding: 0 !important; margin: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: all 0.25s ease; min-width: 0; }
#gender-display-wrapper:hover #edit-gender-btn { max-width: 24px; padding: 0 4px !important; margin-left: 4px; opacity: 1; visibility: visible; }

.profile-settings-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); color: var(--text-1); cursor: pointer; border-radius: 8px; padding: 0 16px; height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; transition: 0.2s; box-sizing: border-box; }
.profile-settings-btn:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: var(--text-2); }

.profile-hero-stats { display: flex; gap: 24px; padding-left: 30px; border-left: 1px solid var(--line); align-items: center; }
.stat-block { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stat-val { font-family: 'Chakra Petch', sans-serif; font-size: 28px; font-weight: 700; color: #fff; line-height: 1; }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; }

/* --- СТРИК И МАТРИЦА АКТИВНОСТИ --- */
.profile-activity-wrapper {
    display: flex; align-items: center; gap: 14px; background: #0f1115;
    border: 1px solid var(--line-strong); padding: 10px 14px; border-radius: 12px;
    overflow: visible !important;
}
.profile-streak-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 75px; text-align: center; gap: 2px;
}
.streak-count {
    display: flex; align-items: center; gap: 5px; font-family: 'Chakra Petch', sans-serif;
    font-size: 24px; font-weight: 700; color: var(--streak-color, #2ecc71); line-height: 1;
    filter: drop-shadow(0 0 8px var(--streak-shadow, rgba(46, 204, 113, 0.4)));
    transition: color 0.3s ease, filter 0.3s ease;
}
.streak-count svg {
    fill: var(--streak-color, #2ecc71);
    transition: fill 0.3s ease;
}
.streak-label {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: bold;
    color: var(--text-2); text-transform: uppercase; line-height: 1.1;
}

.activity-matrix-container { position: relative; display: flex; align-items: center; overflow: visible !important; }
.activity-matrix {
    display: grid; grid-template-rows: repeat(5, 13px); grid-auto-flow: column;
    grid-auto-columns: 13px; gap: 4.5px;
}
.activity-cell {
    width: 13px; height: 13px; border-radius: 3px; background: rgba(255, 255, 255, 0.06);
    transition: transform 0.15s ease, background 0.15s ease; cursor: pointer;
}
.activity-cell:hover { transform: scale(1.35); z-index: 10; }

/* Базовый цвет пустой ячейки активности */
        .activity-cell { background: rgba(255, 255, 255, 0.05); }

.activity-tooltip {
    position: absolute; top: 0; left: 0; transform: translate(-50%, -100%);
    background: #15181e; border: 1px solid var(--streak-color, #ff5e36); color: #fff; padding: 6px 12px;
    border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
    white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden;
    transition: opacity 0.15s ease; z-index: 999999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9); margin-top: -10px;
    display: inline-flex; align-items: center; gap: 8px;
}
.activity-tooltip::after {
    content: ''; position: absolute; top: 100%; left: var(--arrow-left, 50%); transform: translateX(-50%);
    border-width: 5px; border-style: solid; border-color: var(--streak-color, #ff5e36) transparent transparent transparent;
}
.activity-tooltip .tt-divider { color: rgba(255,255,255,0.25); font-weight: normal; }

.pref-chip { background: rgba(255, 122, 26, 0.1); border: 1px dashed var(--orange); color: var(--orange); padding: 4px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: bold; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: 0.2s; text-transform: uppercase; }
.pref-chip:hover { background: rgba(255, 122, 26, 0.2); }

.user-custom-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px;
    text-transform: uppercase; line-height: 1.2; vertical-align: middle;
    background: var(--badge-bg, rgba(255, 122, 26, 0.12));
    border: 1px solid var(--badge-color, #ff7a1a);
    color: var(--badge-color, #ff7a1a);
    box-shadow: 0 0 10px var(--badge-shadow, rgba(255, 122, 26, 0.25));
}
.user-custom-badge.profile-badge { font-size: 11px; padding: 3px 8px; border-radius: 6px; letter-spacing: 1px; }

.badge-color-palette { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.color-dot-opt {
    width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; transition: all 0.2s; box-sizing: border-box;
}
.color-dot-opt:hover, .color-dot-opt.active {
    transform: scale(1.2); border-color: #fff; box-shadow: 0 0 10px currentColor;
}

.lists-pills { position: relative; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin: 0; flex: 1 1 0%; min-width: 280px; }
.lists-pills-indicator {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 30px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.35s ease, 
                border-color 0.35s ease, 
                box-shadow 0.35s ease,
                opacity 0.2s ease;
}

.lists-pills-indicator.tab-watch { background-color: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.45); box-shadow: 0 0 14px rgba(239, 68, 68, 0.15); }
.lists-pills-indicator.tab-plan  { background-color: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.45); box-shadow: 0 0 14px rgba(168, 85, 247, 0.15); }
.lists-pills-indicator.tab-done  { background-color: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.45); box-shadow: 0 0 14px rgba(34, 197, 94, 0.15); }
.lists-pills-indicator.tab-drop  { background-color: rgba(100, 116, 139, 0.25); border-color: rgba(148, 163, 184, 0.4); box-shadow: 0 0 14px rgba(100, 116, 139, 0.15); }
.lists-pills-indicator.tab-hold  { background-color: rgba(234, 179, 8, 0.18); border-color: rgba(234, 179, 8, 0.45); box-shadow: 0 0 14px rgba(234, 179, 8, 0.15); }
.lists-pills-indicator.tab-fav   { background-color: rgba(217, 70, 239, 0.18); border-color: rgba(217, 70, 239, 0.45); box-shadow: 0 0 14px rgba(217, 70, 239, 0.15); }

.list-pill { 
    position: relative;
    z-index: 1;
    background: rgba(20, 24, 32, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    color: #94a3b8; 
    padding: 6px 14px; 
    border-radius: 30px; 
    cursor: pointer; 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 12px; 
    font-weight: 700; 
    letter-spacing: 0.4px;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-transform: uppercase; 
    white-space: nowrap; 
    user-select: none; 
}
.list-pill:hover { 
    border-color: rgba(255, 255, 255, 0.2); 
    color: #f1f5f9; 
    background: rgba(30, 36, 48, 0.8);
    transform: translateY(-2px); 
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); 
}
.list-pill.active {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.list-pill .lt-count { 
    padding: 2px 7px; 
    border-radius: 10px; 
    font-size: 11px; 
    font-weight: 800;
    line-height: 1.2;
    transition: all 0.2s ease;
}

/* Приглушенные бейджи для неактивных кнопок */
.list-pill.tab-watch .lt-count { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.list-pill.tab-plan .lt-count  { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.list-pill.tab-done .lt-count  { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.list-pill.tab-drop .lt-count  { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.list-pill.tab-hold .lt-count  { background: rgba(234, 179, 8, 0.12); color: #facc15; }
.list-pill.tab-fav .lt-count   { background: rgba(217, 70, 239, 0.12); color: #e879f9; }

/* Цвета текста активных вкладок */
.list-pill.tab-watch.active { color: #fca5a5; }
.list-pill.tab-plan.active  { color: #d8b4fe; }
.list-pill.tab-done.active  { color: #86efac; }
.list-pill.tab-drop.active  { color: #cbd5e1; }
.list-pill.tab-hold.active  { color: #fde047; }
.list-pill.tab-fav.active   { color: #f0abfc; }

/* Бейджи внутри активных кнопок */
.list-pill.tab-watch.active .lt-count { background: rgba(239, 68, 68, 0.3); color: #fff; }
.list-pill.tab-plan.active .lt-count  { background: rgba(168, 85, 247, 0.3); color: #fff; }
.list-pill.tab-done.active .lt-count  { background: rgba(34, 197, 94, 0.3); color: #fff; }
.list-pill.tab-drop.active .lt-count  { background: rgba(148, 163, 184, 0.35); color: #fff; }
.list-pill.tab-hold.active .lt-count  { background: rgba(234, 179, 8, 0.3); color: #fff; }
.list-pill.tab-fav.active .lt-count   { background: rgba(217, 70, 239, 0.3); color: #fff; }

/* Бейджи внутри активных кнопок */
.list-pill.tab-watch.active .lt-count { background: rgba(239, 68, 68, 0.3); color: #fff; }
.list-pill.tab-plan.active .lt-count  { background: rgba(168, 85, 247, 0.3); color: #fff; }
.list-pill.tab-done.active .lt-count  { background: rgba(34, 197, 94, 0.3); color: #fff; }
.list-pill.tab-drop.active .lt-count  { background: rgba(148, 163, 184, 0.35); color: #fff; }
.list-pill.tab-hold.active .lt-count  { background: rgba(234, 179, 8, 0.3); color: #fff; }
.list-pill.tab-fav.active .lt-count   { background: rgba(217, 70, 239, 0.3); color: #fff; }

.profile-expandable-search { 
    display: flex; 
    align-items: center; 
    background: #0f1115; 
    border: 1px solid var(--line-strong); 
    border-radius: 8px; 
    height: 38px; 
    width: 180px;
    padding: 0 12px; 
    cursor: text; 
    transition: 0.2s;
    position: relative; 
    justify-content: flex-start; 
    box-sizing: border-box; 
}
.profile-expandable-search:hover { border-color: var(--text-2); background: rgba(255, 255, 255, 0.02); }
.profile-expandable-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 15px rgba(63, 224, 208, 0.15); }
.profile-expandable-search:focus-within svg { color: var(--cyan); }
.profile-expandable-search svg { color: var(--text-2); flex-shrink: 0; pointer-events: none; transition: 0.2s; }
.profile-expandable-search input { 
    background: transparent; 
    border: none; 
    color: #fff; 
    width: 100%; 
    outline: none; 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 13px; 
    margin-left: 10px; 
    opacity: 1; 
    pointer-events: auto; 
    position: static; 
}

.profile-view-toggle {
    display: flex; background: var(--panel-2); border: 1px solid var(--line-strong);
    border-radius: 8px; overflow: hidden; height: 38px; flex-shrink: 0; position: relative; padding: 2px;
}
.profile-toggle-indicator {
    position: absolute; top: 2px; bottom: 2px; left: 2px; width: 50%;
    background: rgba(63, 224, 208, 0.2); border-radius: 6px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; z-index: 0;
}
.view-btn {
    background: transparent; border: none; color: var(--text-2); padding: 0 12px; cursor: pointer;
    transition: color 0.25s ease; display: flex; align-items: center; justify-content: center;
    flex: 1; position: relative; z-index: 1; -webkit-tap-highlight-color: transparent;
}
.view-btn:hover { color: #fff; background: transparent; }
.view-btn.active { color: var(--cyan); background: transparent; font-weight: bold; }

.profile-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; padding: 15px; }
.profile-list-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; padding: 15px; }

.list-item-card { background: linear-gradient(90deg, rgba(21, 24, 30, 0.8) 0%, rgba(15, 17, 21, 0.9) 100%); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px; display: flex; gap: 15px; align-items: center; cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none; position: relative; overflow: hidden; }
.list-item-card:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 12px rgba(63, 224, 208, 0.15); }
.list-item-poster { width: 52px; height: 74px; border-radius: 6px; object-fit: cover; background: #000; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.list-item-info { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding-right: 10px; }
.list-item-title { color: #fff; font-family: 'Chakra Petch', sans-serif; font-size: 15px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.list-item-meta { color: #27ae60; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: bold; display: flex; align-items: center; gap: 6px; background: rgba(39, 174, 96, 0.1); padding: 2px 6px; border-radius: 4px; width: fit-content; border: 1px solid rgba(39, 174, 96, 0.3); }

.pref-btn { background: var(--panel); border: 1px solid var(--line-strong); padding: 15px 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: all 0.2s ease; font-family: 'JetBrains Mono', monospace; }
.pref-btn:hover { background: rgba(63, 224, 208, 0.1); border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(63, 224, 208, 0.2); }

.gender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0 20px 0; }
.gender-card {
    background: #0f1115; border: 1px solid var(--line-strong); border-radius: 10px;
    padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: bold; color: var(--text-1);
    position: relative; -webkit-tap-highlight-color: transparent;
}
.gender-card:hover { border-color: var(--cyan); transform: translateY(-2px); color: #fff; background: rgba(63, 224, 208, 0.05); }
.gender-card.active {
    border-color: var(--cyan); background: rgba(63, 224, 208, 0.12); color: var(--cyan);
    box-shadow: 0 0 15px rgba(63, 224, 208, 0.2);
}
.gender-card-icon { font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.gender-card-check {
    position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--cyan); color: #000; display: none; align-items: center; justify-content: center; font-size: 9px; font-weight: 900;
}
.gender-card.active .gender-card-check { display: flex; }

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
.mobile-menu-toggle { display: none; background: transparent; border: none; color: #fff; cursor: pointer; padding: 5px; margin-left: 10px; }
.mobile-only-nav { display: none; }
.hide-by-pref { display: none !important; }

@media (min-width: 901px) {
    .mobile-only-nav, .mobile-only-nav-admin { display: none !important; }
    .mobile-header-search-container { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
}

@media (max-width: 900px) {
    .header-brand-title { display: none; } 
    .desktop-only-btn, .desktop-only-profile, .desktop-only-admin { display: none !important; }
    .header-nav { display: none !important; }
    .a-header { background: rgba(11, 13, 17, 0.95); } 
    .a-header-inner { padding: 0 15px; }
    
    body:not(.is-catalog) .a-header { display: none !important; }
    body:not(.is-catalog) .a-main { padding-top: 0 !important; }
    
    .a-header-left.search-active .header-brand { display: none; }
    
    .mobile-header-search-container {
        display: none; flex: 1; background: #0f1115; border: 1px solid var(--line-strong); 
        border-radius: 12px; height: 42px; align-items: center; padding: 0 8px 0 12px; margin-left: 0;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); transition: 0.2s; gap: 4px;
    }
    .mobile-header-search-container:focus-within { border-color: var(--cyan); box-shadow: 0 0 10px rgba(63, 224, 208, 0.15); }
    .mobile-header-search-container.active { display: flex; }
    .mobile-header-search-container input { background: transparent; border: none; color: #fff; width: 100%; margin-left: 6px; outline: none; font-family: 'JetBrains Mono', monospace; font-size: 14px; min-width: 0; }
    .mobile-filter-btn, .mobile-random-btn { background: transparent; border: none; color: var(--text-2); padding: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
    .mobile-filter-btn:hover, .mobile-random-btn:hover { color: var(--cyan); }
    
    .catalog-container { margin-top: 10px !important; }
    .catalog-header { margin-top: 12px !important; margin-bottom: 12px !important; font-size: 18px !important; padding-bottom: 8px !important; }
    .catalog-search-row { display: none !important; }
    .catalog-filters-section { padding: 0; background: transparent; border: none; box-shadow: none; margin-top: 0; gap: 0; }
    #c-filters-collapsible { background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; margin-top: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

    .c-filters-actions { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; padding-top: 14px !important; }
    .c-filters-actions-btns { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; width: 100% !important; }
    .c-filters-actions-btns .c-btn-reset, .c-filters-actions-btns .c-btn-random { padding: 11px 8px !important; font-size: 13px !important; justify-content: center !important; width: 100% !important; }
    .c-filters-actions-btns .c-btn-primary { grid-column: 1 / -1 !important; width: 100% !important; padding: 13px !important; text-align: center !important; margin-top: 2px; }

    .mobile-bottom-nav {
        display: flex; justify-content: space-between; align-items: center;
        position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%);
        width: calc(100% - 20px); max-width: 400px;
        background: rgba(28, 31, 38, 0.85); backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 28px;
        padding: 6px 0; z-index: 9999; box-shadow: 0 10px 40px rgba(0,0,0,0.8);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    }
    .mobile-bottom-nav.nav-hidden {
        transform: translate(-50%, 150%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .m-nav-indicator {
        position: absolute; top: 12px; left: 0;
        width: 48px; height: 32px;
        background: rgba(63, 224, 208, 0.2);
        border-radius: 16px;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
        z-index: 0; pointer-events: none; opacity: 0;
    }
    .m-nav-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        color: #8b92a5; text-decoration: none; font-family: 'JetBrains Mono', monospace;
        font-size: 10px; font-weight: bold; gap: 4px; padding: 6px 4px;
        transition: all 0.25s ease; flex: 1; position: relative; z-index: 1;
        -webkit-tap-highlight-color: transparent; outline: none;
    }
    .m-nav-icon-wrapper {
        width: 48px; height: 32px; display: flex; align-items: center; justify-content: center;
        border-radius: 16px; transition: 0.25s ease;
    }
    .m-nav-item svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; transition: 0.25s; }
    .m-nav-item.active { color: #fff; }
    .m-nav-item.active .m-nav-icon-wrapper { color: var(--cyan); }
    .m-nav-item.active svg { stroke: var(--cyan); transform: scale(1.1); }
    .m-nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; transition: 0.25s; }
    .m-nav-item.active .m-nav-avatar { border-color: var(--cyan); transform: scale(1.05); }
    
    .a-main { padding-bottom: 90px !important; }
    .content-wrapper { padding: 0 10px; }
    .home-section { padding: 0 !important; }

    .home-hero-carousel { height: 55vh; min-height: 340px; max-height: 440px; border-radius: 0 0 24px 24px; margin-left: -10px; margin-right: -10px; width: calc(100% + 20px); box-shadow: 0 10px 30px rgba(0,0,0,0.6); touch-action: pan-y; }
    .home-hero-content { left: 15px; right: 15px; bottom: 20px; text-align: center; align-items: center; gap: 8px; }
    .home-hero-title { font-size: 22px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.9); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 6px; }
    .hero-meta-row { justify-content: center; flex-wrap: wrap; margin-bottom: 2px; }
    .btn-play-hero { width: 100%; justify-content: center; padding: 12px 20px; font-size: 15px; border-radius: 12px; }

    .hero-slider-dots {
        top: 12px; bottom: auto; left: 15px; right: 15px; transform: none;
        display: flex; gap: 6px; z-index: 30; width: auto;
    }
    .hero-slider-dots .hero-dot {
        flex: 1; height: 3px; width: auto; border: none; border-radius: 3px;
        background: rgba(255, 255, 255, 0.25); overflow: hidden; position: relative;
        cursor: pointer; padding: 0; margin: 0;
    }
    .hero-dot-progress {
        position: absolute; top: 0; left: 0; bottom: 0; width: 0%;
        background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
    }
    .hero-slider-dots .hero-dot.seen .hero-dot-progress { width: 100%; }
    .hero-slider-dots .hero-dot.active .hero-dot-progress { animation: storyProgress 5s linear forwards; }
    @keyframes storyProgress { from { width: 0%; } to { width: 100%; } }
    
    .catalog-filters-section { padding: 12px; gap: 12px; margin-top: 10px; }
    .catalog-search-row { gap: 10px; flex-wrap: nowrap; }
    .c-search-wrapper { padding: 0 12px; height: 48px; flex: 1 1 auto; width: 100%; }
    .c-search-wrapper input { font-size: 14px; margin-left: 10px; }
    .cat-filter-btn { height: 48px !important; width: 48px !important; min-width: 48px !important; padding: 0 !important; justify-content: center; flex: 0 0 48px !important; }
    .cat-filter-btn span { display: none; }
    
    .search-page-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .media-card-title { font-size: 13px; margin-bottom: 4px; }
    .media-card-overlay { padding: 15px 10px; }
    
    body:not(.is-catalog) .hero-backdrop-wrapper { padding: 20px 10px 20px !important; margin-top: 0 !important; }
    .hero-backdrop-wrapper { padding: 80px 10px 20px !important; }
    .media-body-section { padding: 15px 0 60px !important; gap: 25px !important; }
    .hero-content { flex-direction: column; text-align: center; gap: 12px; }
    .hero-poster { width: 180px; margin: 0 auto; border-radius: 14px; }
    .hero-ratings-row, .hero-meta-row, .hero-sub-meta { justify-content: center; text-align: center; }
    .hero-meta-row { font-size: 12px !important; gap: 6px !important; }
    .meta-dot { color: var(--text-2); font-size: 12px; display: inline-block; opacity: 0.6; }
    .hero-actions { justify-content: center; flex-wrap: wrap; gap: 8px; }
    .btn-bookmark-hero, .btn-trailer-hero { padding: 10px 16px !important; font-size: 13px !important; height: 40px !important; }
    .bookmark-dropdown { left: 50%; transform: translateX(-50%); }
    
    .viewing-order-container { margin-bottom: 15px !important; border-radius: 10px !important; }
    .vo-header { padding: 10px 14px !important; font-size: 13px !important; letter-spacing: 0.5px !important; }
    .vo-sub-header { padding: 8px 12px 4px !important; font-size: 12px !important; }
    .vo-item { padding: 8px 12px !important; font-size: 12px !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; }
    .vo-item-left { gap: 6px !important; align-items: baseline !important; padding-right: 6px !important; min-width: 0 !important; }
    .vo-item-num { width: 18px !important; font-size: 11px !important; text-align: left !important; }
    .vo-item-title { font-size: 12px !important; }
    .vo-item-desc { font-size: 11px !important; display: inline !important; }
    .vo-item-rating { padding: 2px 6px !important; font-size: 10px !important; border-radius: 6px !important; flex-shrink: 0 !important; align-self: center !important; }
    
    .profile-hero-top { flex-direction: column; text-align: center; padding: 20px 10px; gap: 15px; }
    .profile-hero-info { padding-left: 0; align-items: center; }
    .profile-hero-info div { flex-wrap: wrap; justify-content: center; }
    .profile-hero-stats { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 15px; width: 100%; justify-content: center; gap: 15px; flex-wrap: wrap; }
    .stat-block { align-items: center; }
    
    div[style*="padding: 20px 30px"] { padding: 15px 10px !important; justify-content: center !important; }
    .lists-pills { justify-content: center; }
    div[style*="justify-content: flex-end"] { flex-direction: column; align-items: stretch !important; width: 100%; gap: 15px !important; }
    
    .profile-type-toggle { width: 100%; }
    .profile-type-toggle .view-btn { flex: 1; }
    .profile-expandable-search { width: 100%; max-width: none; }
    .profile-view-toggle { width: 100%; }
    .profile-view-toggle .view-btn { flex: 1; }

    .profile-list-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; padding: 10px 0; }
    .profile-list-list { grid-template-columns: 1fr; padding: 10px 0; }
    
    .player-section { margin-left: -10px !important; margin-right: -10px !important; width: calc(100% + 20px) !important; border-radius: 0; }
    #episode-grid-wrapper { padding: 0 10px !important; }
    .player-toolbar { flex-direction: column; gap: 12px; align-items: stretch; border-radius: 0 !important; border-left: none; border-right: none; padding: 12px 10px !important; }
    .iframe-wrapper, #no-video-message { border-radius: 0 !important; border-left: none; border-right: none; }
    #no-video-message { aspect-ratio: auto !important; padding: 40px 15px !important; min-height: 240px; }
    
    .player-selects { flex-direction: column; width: 100%; gap: 12px; }
    .custom-select-wrapper { width: 100%; }
    #player-source-wrapper { width: 100%; justify-content: space-between; }
    #player-source-wrapper .custom-select-wrapper { flex: 1; min-width: 0; }
    
    #player-movie-info { flex-direction: column; text-align: center; gap: 10px !important; padding: 0 10px; }
    #player-movie-info span { max-width: 100% !important; }
    .theater-btn { justify-content: center; width: 100%; box-sizing: border-box; }
    
    .info-tooltip-text { left: auto; right: -10px; transform: translateY(-10px); width: 240px; }
    .info-tooltip-text::after { left: auto; right: 18px; transform: none; }
    .info-tooltip-wrapper:hover .info-tooltip-text { transform: translateY(0); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .profile-hero-info h2 { font-size: 24px; }
    .stat-val { font-size: 22px; }
    .c-filters-grid { grid-template-columns: 1fr; }
}