/* --- ГЛОБАЛЬНЫЙ СКРОЛЛБАР И ПРОКРУТКА --- */
html { scroll-behavior: smooth; overflow-y: scroll; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
img { color: transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* --- ШАПКА --- */
.a-header { height: 60px; background: rgba(21, 24, 30, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; justify-content: center; position: fixed; top: 0; left: 0; right: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.a-header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1400px; height: 100%; padding: 0 24px; box-sizing: border-box; }
.a-header-left { display: flex; align-items: center; height: 100%; flex: 1; }
.a-header-left > * + * { margin-left: 24px; }

.header-brand { display: flex; align-items: center; text-decoration: none; color: #fff; margin-right: 10px; }
.header-brand > * + * { margin-left: 10px; }
.header-logo-box { background: var(--cyan); width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #000; font-family: 'Chakra Petch', sans-serif; box-shadow: 0 0 15px rgba(63, 224, 208, 0.4); }
.header-brand-title { font-size: 18px; font-weight: 700; font-family: 'Chakra Petch', sans-serif; letter-spacing: 0.5px; text-transform: uppercase; }

.header-hub-btn { text-decoration: none; color: var(--text-2); font-size: 12px; font-weight: bold; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; padding: 6px 12px; background: rgba(255,255,255,0.05); border-radius: 8px; transition: 0.2s; display: flex; align-items: center; }
.header-hub-btn > * + * { margin-left: 6px; }
.header-hub-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.header-nav { display: flex; align-items: center; height: 100%; border-left: 1px solid var(--line-strong); padding-left: 24px; position: relative; gap: 24px; }

.admin-dropdown-wrapper { position: relative; display: inline-flex; align-items: center; }
.admin-dropdown-btn { 
    background: rgba(255, 122, 26, 0.12); 
    border: 1px solid rgba(255, 122, 26, 0.4); 
    color: var(--orange); 
    padding: 7px 14px; 
    border-radius: 8px; 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 12px; 
    font-weight: 700; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 7px; 
    transition: all 0.2s ease; 
}
.admin-dropdown-btn:hover, .admin-dropdown-wrapper.open .admin-dropdown-btn { 
    background: var(--orange); 
    color: #000; 
    border-color: var(--orange); 
    box-shadow: 0 0 15px rgba(255, 122, 26, 0.35); 
}
.admin-dropdown-btn svg { transition: transform 0.2s ease; }
.admin-dropdown-wrapper.open .admin-dropdown-btn svg.chevron { transform: rotate(180deg); }

.admin-dropdown-menu { 
    position: absolute; 
    top: calc(100% + 8px); 
    right: 0; 
    background: #15181e; 
    border: 1px solid rgba(255, 122, 26, 0.4); 
    border-radius: 10px; 
    padding: 6px; 
    display: none; 
    flex-direction: column; 
    gap: 4px; 
    min-width: 210px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 15px rgba(255, 122, 26, 0.15); 
    z-index: 1000; 
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); 
}
.admin-dropdown-wrapper.open .admin-dropdown-menu { display: flex; }

.admin-menu-item { 
    background: transparent; 
    border: none; 
    color: #d0d4dc; 
    padding: 9px 12px; 
    text-align: left; 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 12px; 
    font-weight: 600; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    width: 100%; 
    box-sizing: border-box; 
}
.admin-menu-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-menu-item.danger { color: #ff5e5e; }
.admin-menu-item.danger:hover { background: rgba(255, 68, 68, 0.15); color: #ff7878; }
.admin-menu-item.warning { color: #f39c12; }
.admin-menu-item.warning:hover { background: rgba(243, 156, 18, 0.15); color: #f1c40f; }
.admin-menu-item svg { flex-shrink: 0; }

.h-nav-item { color: var(--text-2); font-size: 14px; font-weight: 700; font-family: 'Chakra Petch', sans-serif; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 6px; height: 100%; position: relative; cursor: pointer; transition: color 0.25s ease; letter-spacing: 1px; z-index: 1; margin: 0 !important; }
.h-nav-item:hover, .h-nav-item.active { color: #fff; }

.h-nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--cyan);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px rgba(63, 224, 208, 0.6);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.a-header-right { display: flex; align-items: center; }
.header-right-profile { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 12px; border-radius: 8px; transition: background 0.2s; text-decoration: none; border: 1px solid transparent; }
.header-right-profile:hover { background: var(--panel); border-color: var(--line-strong); }
.h-profile-name { font-size: 13px; color: #fff; font-weight: bold; font-family: 'JetBrains Mono', monospace; }
.h-avatar-box { position: relative; width: 34px; height: 34px; }
.h-avatar-box img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }

/* --- ОСНОВНАЯ РАЗМЕТКА И КАРТОЧКИ --- */
.a-main { padding: 60px 0 40px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.content-wrapper { width: 100%; max-width: 1400px; padding: 0 24px; box-sizing: border-box; transition: padding-right 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
body.drawer-open .content-wrapper { padding-right: 360px; max-width: 100%; }

.a-empty-state { margin-top: 15vh; text-align: center; color: var(--text-2); font-family: 'JetBrains Mono', monospace; }
.a-empty-state .icon { font-size: 64px; margin-bottom: 20px; filter: drop-shadow(0 0 20px rgba(255,255,255,0.1)); }

.search-page-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-card { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; border: 1px solid var(--line-strong); background: #0f1115; display: block; }
.media-card::before { content: ""; display: block; padding-top: 150%; }
.media-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.media-card:hover { border-color: var(--cyan); transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 15px rgba(63, 224, 208, 0.2); }
.media-card:hover img { transform: scale(1.08); }

.media-card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,13,17,1) 0%, rgba(11,13,17,0.7) 40%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; opacity: 0.9; transition: 0.3s; }
.media-card:hover .media-card-overlay { opacity: 1; background: linear-gradient(0deg, rgba(11,13,17,1) 0%, rgba(11,13,17,0.85) 50%, transparent 100%); }

.media-card-title { color: #fff; font-family: 'Chakra Petch', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.media-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-2); }
.admin-hide-btn { position: absolute; top: 40px; right: 10px; background: rgba(231, 76, 60, 0.9); color: #fff; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; z-index: 20; font-family: sans-serif; font-size: 14px; border: 1px solid rgba(255,255,255,0.2); transition: 0.2s; cursor: pointer; opacity: 0; }
.admin-restore-card-btn { position: absolute; top: 40px; right: 10px; background: rgba(63, 224, 208, 0.9); color: #000; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; z-index: 20; font-size: 13px; font-weight: bold; border: 1px solid rgba(255,255,255,0.3); transition: 0.2s; cursor: pointer; opacity: 0; }
.media-card:hover .admin-hide-btn, .media-card:focus-visible .admin-hide-btn,
.media-card:hover .admin-restore-card-btn, .media-card:focus-visible .admin-restore-card-btn { opacity: 1; }
.admin-hide-btn:hover { background: #c0392b; transform: scale(1.1); box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }
.admin-restore-card-btn:hover { background: var(--cyan); transform: scale(1.1); box-shadow: 0 0 10px rgba(63, 224, 208, 0.6); }

.media-card.is-hidden-admin { opacity: 0.45; filter: grayscale(0.85); border: 1px dashed #ff4444; }
.media-card.is-hidden-admin:hover { opacity: 0.9; filter: grayscale(0.2); border-color: #ff4444; box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3); }
.hidden-admin-badge {
    position: absolute; top: 10px; left: 10px; z-index: 15;
    background: rgba(255, 68, 68, 0.85); color: #fff;
    font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 800;
    padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.card-rating { background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: bold; padding: 4px 8px; border-radius: 6px; display: flex; align-items: center; gap: 4px; border: 1px solid rgba(255,255,255,0.1); position: absolute; top: 10px; left: 10px; }
.card-type-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: bold; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); text-transform: uppercase; }
.card-status-bar { position: absolute; top: 0; left: 0; width: 100%; height: 3px; z-index: 10; }
.status-done { background: #27ae60; box-shadow: 0 0 10px #27ae60; }
.status-plan { background: #b072ff; box-shadow: 0 0 10px #b072ff; }

/* --- КАТАЛОГ И ВЫДВИЖНОЙ DRAWER --- */
.catalog-container { display: none; width: 100%; flex-direction: column; animation: fadeIn 0.3s ease; margin-top: 25px; }
.catalog-bar-wrapper { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-bottom: 25px; }
.catalog-search-row { display: flex; gap: 12px; width: 100%; align-items: center; }

.c-search-wrapper { display: flex; align-items: center; background: #0f1115; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; height: 50px; transition: 0.2s; flex: 1; min-width: 0; }
.c-search-wrapper:focus-within { border-color: var(--cyan); box-shadow: 0 0 15px rgba(63, 224, 208, 0.2); }
.c-search-wrapper svg { color: var(--text-2); flex-shrink: 0; }
.c-search-wrapper input { background: transparent; border: none; color: #fff; width: 100%; margin-left: 12px; outline: none; font-family: 'JetBrains Mono', monospace; font-size: 14px; }

.cat-filter-btn { height: 50px; padding: 0 18px; font-weight: bold; border-color: var(--line-strong); flex-shrink: 0; border-radius: 12px; background: #0f1115; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 13px; transition: 0.2s; }
.cat-filter-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.cat-filter-btn.active { background: rgba(63, 224, 208, 0.15); border-color: var(--cyan); color: var(--cyan); }
.filter-badge-count { background: var(--cyan); color: #000; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 10px; line-height: 1; display: none; }

.quick-tags-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 4px 6px 2px; margin: -6px -4px -2px -2px; }
.quick-tags-bar::-webkit-scrollbar { display: none; }
.q-tag { background: #15181e; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; user-select: none; }
.q-tag:hover { border-color: #fff; color: #fff; transform: translateY(-1px); }
.q-tag.active { background: rgba(63, 224, 208, 0.15); border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 10px rgba(63, 224, 208, 0.2); }
.q-tag svg { width: 13px; height: 13px; stroke: currentColor; }

.filters-drawer-overlay { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.filters-drawer { 
    position: fixed; top: 60px; right: 0; bottom: 0; 
    width: 340px; max-width: 85vw; background: rgba(18, 20, 26, 0.96); 
    backdrop-filter: blur(16px); border-left: 1px solid var(--line-strong); 
    z-index: 100; box-shadow: -10px 0 30px rgba(0,0,0,0.5); 
    display: flex; flex-direction: column; transform: translateX(100%); 
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
    pointer-events: auto; 
}
body.drawer-open .filters-drawer { transform: translateX(0); }

.drawer-header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-title { font-family: 'Chakra Petch', sans-serif; font-size: 18px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; margin: 0; }
.drawer-title svg { color: var(--cyan); }
.drawer-close-btn { background: transparent; border: none; color: var(--text-2); cursor: pointer; padding: 4px; border-radius: 6px; display: flex; transition: 0.2s; }
.drawer-close-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }

.drawer-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.drawer-footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; background: #0f1115; }

.c-filter-group label { color: #a1a6b4; font-size: 11px; font-weight: bold; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; display: block; letter-spacing: 0.5px; }
.c-filter-group select, .c-filter-group input { width: 100%; background: #0f1115; border: 1px solid var(--line); color: #fff; height: 42px; border-radius: 8px; padding: 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 13px; outline: none; cursor: pointer; transition: 0.2s; box-sizing: border-box; }
.c-filter-group select:hover, .c-filter-group input:hover { border-color: #a1a6b4; }
.c-filter-group select:focus, .c-filter-group input:focus { border-color: var(--cyan); }

.rating-chips-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: #0f1115; border: 1px solid var(--line); padding: 4px; border-radius: 8px; }
.r-chip { background: transparent; border: 1px solid transparent; color: var(--text-2); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; padding: 7px 0; text-align: center; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; user-select: none; display: flex; align-items: center; justify-content: center; gap: 2px; }
.r-chip:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.r-chip.active { background: rgba(63, 224, 208, 0.15); border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 10px rgba(63, 224, 208, 0.2); }

.c-filter-group input[type="number"]::-webkit-outer-spin-button, 
.c-filter-group input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.c-filter-group input[type="number"] { -moz-appearance: textfield; }
.c-search-wrapper input::placeholder, .c-filter-group input::placeholder { color: #7b8398; }
.c-filters-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 5px; border-top: 1px solid var(--line); padding-top: 24px;}

.c-btn-primary { background: var(--cyan); color: #000; border: none; padding: 12px 28px; border-radius: 8px; font-family: 'Chakra Petch', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: 0.2s; box-shadow: 0 4px 15px rgba(63, 224, 208, 0.2); }
.c-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(63, 224, 208, 0.4); }
.c-btn-reset { background: transparent; border: 1px solid var(--line-strong); color: #a1a6b4; padding: 12px 24px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.c-btn-reset:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.05); }

.c-btn-random {
    background: rgba(63, 224, 208, 0.08); border: 1px solid var(--cyan); color: var(--cyan);
    padding: 12px 20px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px;
    font-weight: bold; cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; -webkit-tap-highlight-color: transparent;
}
.c-btn-random:hover, .cat-search-random-btn:hover {
    background: var(--cyan) !important; color: #000 !important; border-color: var(--cyan) !important;
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(63, 224, 208, 0.35);
}
.c-btn-random svg, .cat-search-random-btn svg { transition: stroke 0.2s, color 0.2s; flex-shrink: 0; }
.c-btn-random:hover svg, .cat-search-random-btn:hover svg { stroke: #000; color: #000; }
.c-btn-random svg rect, .cat-search-random-btn svg rect { fill: transparent; }
.c-btn-random svg circle, .cat-search-random-btn svg circle { fill: currentColor; }

.btn-hint-badge {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 17px; height: 17px; border-radius: 50%; background: rgba(63, 224, 208, 0.15);
    border: 1px solid var(--cyan); color: var(--cyan); font-size: 11px; font-weight: bold;
    font-family: 'JetBrains Mono', monospace; cursor: help; margin-left: 2px; transition: 0.2s;
}
.c-btn-random:hover .btn-hint-badge { background: #000; color: var(--cyan); border-color: #000; }
.btn-hint-tooltip {
    position: absolute; bottom: calc(100% + 10px); right: -10px;
    background: #15181e; border: 1px solid var(--cyan); padding: 10px 14px;
    border-radius: 8px; width: 220px; font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: normal; line-height: 1.4; color: #fff; text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8); opacity: 0; visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1000; pointer-events: none;
}
.btn-hint-tooltip::after {
    content: ''; position: absolute; top: 100%; right: 14px;
    border-width: 5px; border-style: solid;
    border-color: var(--cyan) transparent transparent transparent;
}
.btn-watchparty-wrapper:hover .watchparty-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.cat-search-random-btn {
    background: rgba(63, 224, 208, 0.06); border: 1px solid var(--cyan); color: var(--cyan);
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease, margin 0.35s ease, background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    max-width: 200px; opacity: 1; overflow: hidden; white-space: nowrap;
}
.catalog-filters-section.filters-open .cat-search-random-btn {
    max-width: 0 !important; opacity: 0 !important; padding: 0 !important;
    margin: 0 !important; border: none !important; pointer-events: none;
}
.catalog-header { font-family: 'Chakra Petch', sans-serif; font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-strong); padding-bottom: 15px; text-transform: uppercase; margin-top: 40px; }

/* --- ГЛАВНАЯ СТРАНИЦА И КАРУСЕЛИ --- */
.home-container { display: none; width: 100%; flex-direction: column; animation: fadeIn 0.4s ease; padding-bottom: 60px; }
.home-hero-carousel { position: relative; width: 100%; height: 45vh; min-height: 380px; max-height: 450px; border-radius: 0 0 24px 24px; overflow: hidden; margin-bottom: 40px; border-bottom: 1px solid var(--line-strong); background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease-in-out; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.home-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: blur(4px) brightness(0.6); transform: scale(1.05); }
.home-hero-gradient { position: absolute; inset: 0; background: linear-gradient(90deg, #0b0d11 0%, rgba(11,13,17,0.8) 40%, rgba(11,13,17,0.2) 100%), linear-gradient(0deg, #0b0d11 0%, transparent 40%); }
.home-hero-content { position: absolute; bottom: 15%; left: 5%; max-width: 800px; z-index: 10; display: flex; flex-direction: column; gap: 15px; }
.home-hero-title { font-family: 'Chakra Petch', sans-serif; font-size: 48px; font-weight: 700; color: #fff; line-height: 1.1; text-shadow: 0 4px 15px rgba(0,0,0,0.8); margin: 0; }
.hero-slider-dots { position: absolute; bottom: 20px; right: 40px; display: flex; gap: 8px; z-index: 20; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.2s; }
.hero-dot.active { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transform: scale(1.2); }

.home-section { width: 100%; max-width: 1400px; margin: 0 auto 50px auto; padding: 0 24px; box-sizing: border-box; }
.home-section-title { font-family: 'Chakra Petch', sans-serif; font-size: 22px; font-weight: 700; color: #fff; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; margin-bottom: 20px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.home-section-title svg { color: var(--cyan); }

.carousel-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(21, 24, 30, 0.6); border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.3s ease; backdrop-filter: blur(4px); box-shadow: 0 4px 15px rgba(0,0,0,0.5); opacity: 0.3; }
.carousel-wrapper:hover .carousel-btn { opacity: 0.85; background: rgba(21, 24, 30, 0.9); border-color: var(--line-strong); box-shadow: 0 10px 20px rgba(0,0,0,0.7); }
.carousel-btn:hover { background: var(--cyan) !important; color: #000 !important; border-color: var(--cyan) !important; transform: translateY(-50%) scale(1.1) !important; opacity: 1 !important; box-shadow: 0 0 20px rgba(63, 224, 208, 0.4) !important; }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }
.carousel-btn.hidden-btn { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: translateY(-50%) scale(0.8) !important; }

.horizontal-scroll-grid { display: flex; overflow-x: auto; padding-top: 15px; padding-bottom: 15px; margin-top: -15px; scrollbar-width: none; flex: 1; }
.horizontal-scroll-grid > * + * { margin-left: 15px; }
.horizontal-scroll-grid::-webkit-scrollbar { display: none; }
.horizontal-scroll-grid .media-card { min-width: 180px; max-width: 180px; flex-shrink: 0; }

.continue-card { min-width: 320px; max-width: 320px; height: 180px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; justify-content: flex-end; padding: 15px; text-decoration: none; box-sizing: border-box; }
.continue-card:hover { border-color: var(--cyan); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.continue-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: brightness(0.6); transition: 0.3s;}
.continue-card:hover .continue-bg { filter: brightness(0.4); transform: scale(1.05); }
.continue-content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.continue-title { font-family: 'Chakra Petch', sans-serif; font-size: 16px; font-weight: bold; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 4px rgba(0,0,0,0.8);}
.continue-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cyan); font-weight: bold; text-shadow: 0 2px 4px rgba(0,0,0,0.9);}
.continue-progress-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.continue-progress-bar { height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.continue-remove-btn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; z-index: 10; font-family: sans-serif; font-size: 14px; border: 1px solid rgba(255,255,255,0.2); transition: 0.2s; opacity: 0; backdrop-filter: blur(4px); }
.continue-card:hover .continue-remove-btn { opacity: 1; }
.continue-remove-btn:hover { background: #e74c3c; transform: scale(1.1); box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); border-color: #e74c3c; }

/* --- HERO СТРАНИЦА ТАЙТЛА --- */
.hero-view-container { display: none; width: 100%; flex-direction: column; animation: fadeIn 0.3s ease; }
.hero-top-bar {
    position: relative; z-index: 10; width: 100%; max-width: 1400px;
    margin: 0 auto 20px auto; display: flex; align-items: center; justify-content: flex-start; gap: 12px;
}
.hero-back-btn, .hero-random-btn {
    background: rgba(21, 24, 30, 0.75); backdrop-filter: blur(10px);
    border: 1px solid var(--line-strong); color: #fff;
    padding: 8px 16px; border-radius: 8px; font-family: 'JetBrains Mono', monospace;
    font-size: 13px; font-weight: bold; cursor: pointer; display: inline-flex;
    align-items: center; gap: 8px; transition: all 0.2s ease; text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); -webkit-tap-highlight-color: transparent;
}
.hero-back-btn:hover { background: var(--cyan); color: #000; border-color: var(--cyan); transform: translateX(-3px); box-shadow: 0 0 15px rgba(63, 224, 208, 0.3); }
.hero-random-btn { border-color: rgba(63, 224, 208, 0.3); color: var(--cyan); }
.hero-random-btn:hover { background: var(--cyan); color: #000; border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 0 15px rgba(63, 224, 208, 0.3); }
.hero-random-btn svg { transition: stroke 0.2s; }
.hero-random-btn:hover svg { stroke: #000; }
.hero-random-btn svg circle { fill: currentColor; }

.hero-backdrop-wrapper { position: relative; width: 100%; padding: 75px 24px 40px; box-sizing: border-box; margin-top: -60px; overflow: hidden; }
.hero-backdrop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: blur(15px) brightness(0.3); transform: scale(1.1); z-index: 0; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(0deg, #0b0d11 0%, rgba(11,13,17,0.85) 50%, rgba(11,13,17,0.5) 100%); z-index: 1; }

.hero-content { position: relative; z-index: 2; display: flex; gap: 40px; width: 100%; max-width: 1400px; margin: 0 auto; align-items: flex-start; }
.hero-poster { width: 260px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; background: #000; aspect-ratio: 2/3; object-fit: cover; cursor: pointer; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.hero-poster:hover { transform: scale(1.03) translateY(-5px); border-color: var(--cyan); box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 20px rgba(63, 224, 208, 0.3); }

.hero-info { display: flex; flex-direction: column; gap: 15px; flex: 1; margin-bottom: 0; }
.hero-title { font-family: 'Chakra Petch', sans-serif; font-size: 48px; font-weight: 700; color: #fff; line-height: 1.1; text-shadow: 0 4px 10px rgba(0,0,0,0.5); margin: 0; }
.hero-original-title { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--text-2); margin-top: -5px; line-height: 1.5; }

.selectable-title { cursor: pointer; transition: color 0.2s, background 0.2s; border-radius: 4px; padding: 2px 4px; margin: 0 -4px; display: inline-block; }
.selectable-title:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
::selection { background: var(--cyan); color: #000; }
::selection svg, svg::selection { fill: inherit; stroke: inherit; color: inherit; }
button { user-select: none; }

.hero-meta-row { display: flex; align-items: center; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #e0e0e0; flex-wrap: wrap; margin-top: 5px; }
.hero-rating-badge { background: #27ae60; color: #fff; font-weight: bold; padding: 4px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 0 10px rgba(39, 174, 96, 0.4); border: 1px solid #2ecc71; text-decoration: none; cursor: pointer; transition: transform 0.2s, filter 0.2s; }
.hero-rating-badge:hover { filter: brightness(1.15); transform: translateY(-2px); }
.hero-age-badge { color: var(--orange); background: rgba(255, 122, 26, 0.08); padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; user-select: none; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(255, 122, 26, 0.4); }
.hero-dot { color: var(--text-2); }

.meta-link { color: inherit; text-decoration: none; cursor: pointer; transition: 0.2s; border-bottom: 1px dashed rgba(255,255,255,0.3); }
.meta-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.hero-age-badge.clickable { cursor: pointer; border-style: dashed; position: relative; }
.hero-age-badge.clickable:hover { background: rgba(255, 122, 26, 0.22); border-color: #ff944d; border-style: solid; color: #fff; box-shadow: 0 0 12px rgba(255, 122, 26, 0.35); transform: translateY(-1px); }
.hero-age-badge.clickable:active { transform: translateY(0); }
.status-watch { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero-sub-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-2); display: flex; gap: 20px; flex-wrap: wrap; margin-top: 5px; }
.hero-sub-meta span strong { color: #fff; font-weight: normal; margin-left: 4px; }

.hero-desc-container { display: flex; flex-direction: column; gap: 4px; max-width: 800px; margin: 4px 0 0 0; }
.hero-desc { 
    font-family: 'Chakra Petch', sans-serif; font-weight: 500; font-size: 15px; color: var(--text-1); 
    line-height: 1.6; margin: 0; overflow: hidden; text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
    max-height: 72px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease; 
}
.hero-desc.expanded { max-height: 1000px; }
.hero-desc-toggle-btn { 
    display: none; align-items: center; gap: 5px; color: var(--cyan); 
    font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: bold; 
    cursor: pointer; background: transparent; border: none; padding: 2px 0 0 0; margin: 0; 
    width: fit-content; transition: color 0.2s ease; 
}
.hero-desc-toggle-btn:hover { color: #fff; text-decoration: underline; }
.hero-desc-toggle-btn svg { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.hero-actions { display: flex; gap: 15px; margin-top: 0; position: relative; z-index: 10; }
.btn-play-hero { background: #fff; color: #000; border: none; padding: 14px 32px; border-radius: 8px; font-family: 'Chakra Petch', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-play-hero:hover { background: var(--cyan); transform: scale(1.05); box-shadow: 0 10px 20px rgba(63, 224, 208, 0.3); }

.btn-trailer-hero { background: transparent; border: 1px solid var(--line-strong); color: #fff; padding: 14px 24px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(4px); }
.btn-trailer-hero:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.bookmark-wrapper { position: relative; display: inline-flex; }
.btn-bookmark-hero { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; padding: 14px 20px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: bold; cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; gap: 10px; backdrop-filter: blur(8px); height: 100%; box-sizing: border-box;}
.btn-bookmark-hero:hover, .bookmark-wrapper:hover .btn-bookmark-hero { background: rgba(63, 224, 208, 0.12); border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 15px rgba(63, 224, 208, 0.15); }
.btn-bookmark-hero.active { background: var(--cyan) !important; color: #000 !important; border-color: var(--cyan) !important; box-shadow: 0 0 20px rgba(63, 224, 208, 0.35); }
.btn-bookmark-hero.active .bm-chevron { stroke: #000; }

.bm-chevron { transition: transform 0.25s ease; opacity: 0.7; margin-left: 2px; }
.bookmark-wrapper:hover .bm-chevron { transform: rotate(180deg); opacity: 1; color: var(--cyan); }

.bookmark-dropdown { position: absolute; bottom: calc(100% + 8px); left: 0; background: rgba(21, 24, 30, 0.95); backdrop-filter: blur(16px); border: 1px solid var(--cyan); border-radius: 10px; padding: 6px; display: none; flex-direction: column; gap: 3px; min-width: 210px; box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 15px rgba(63, 224, 208, 0.1); z-index: 20; }
.bookmark-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 12px; background: transparent; }
.bookmark-wrapper:hover .bookmark-dropdown { display: flex; animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.bm-option { background: transparent; border: none; color: #fff; padding: 10px 15px; text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 13px; border-radius: 6px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.bm-option:hover { background: rgba(255,255,255,0.05); }
.bm-option.active { background: rgba(63, 224, 208, 0.15); color: var(--cyan); font-weight: bold; }

.media-body-section { width: 100%; max-width: 1400px; margin: 0 auto; padding: 30px 24px 60px; box-sizing: border-box; display: flex; flex-direction: column; gap: 40px; }
.section-header-title { font-family: 'Chakra Petch', sans-serif; font-size: 20px; font-weight: 700; color: #fff; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; margin-bottom: 20px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.section-header-title svg { color: var(--cyan); }

.frames-container { width: 100%; display: none; }
.frames-scroll { display: flex; gap: 15px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; margin-top: -10px; scrollbar-width: none; }
.frames-scroll::-webkit-scrollbar { display: none; }
.frame-img { height: 140px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); object-fit: cover; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); flex-shrink: 0; }
.frame-img:hover { transform: scale(1.03); border-color: var(--cyan); }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; }
.review-card { background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.review-header { display: flex; align-items: center; gap: 15px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--cyan); }
.review-author { font-family: 'Chakra Petch', sans-serif; font-weight: bold; color: #fff; font-size: 16px; margin-bottom: 4px; }
.review-score { color: #27ae60; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: bold; background: rgba(39, 174, 96, 0.1); padding: 2px 8px; border-radius: 4px; display: inline-block; border: 1px solid #2ecc71; }
.review-text { color: var(--text-1); font-size: 13px; line-height: 1.6; font-family: 'JetBrains Mono', monospace; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* --- ПОРЯДОК ПРОСМОТРА --- */
.viewing-order-container { background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; margin-bottom: 30px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.vo-header { background: var(--panel); padding: 14px 20px; font-family: 'Chakra Petch', sans-serif; font-size: 16px; font-weight: bold; color: #fff; text-transform: uppercase; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; user-select: none; transition: 0.2s; border-bottom: 1px solid transparent; letter-spacing: 1px; }
.vo-header:hover { background: rgba(63, 224, 208, 0.1); color: var(--cyan); }
.vo-header svg { color: var(--cyan); }
.vo-collapse-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.vo-collapse-wrapper.open { grid-template-rows: 1fr; }
.vo-collapse-inner { overflow: hidden; display: flex; flex-direction: column; }

.vo-sub-header { transition: all 0.3s ease; opacity: 1; max-height: 60px; overflow: hidden; }
.vo-sub-header.hidden { opacity: 0; max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; border-top-color: transparent !important; margin: 0 !important; }

.vo-list { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.vo-item { padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; max-height: 100px; opacity: 1; overflow: hidden; }
.vo-item.hidden-ova { max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; opacity: 0; border-top-color: transparent !important; margin: 0; border-width: 0; }
.vo-item:hover { background: rgba(63, 224, 208, 0.05); }
.vo-item.active { background: rgba(63, 224, 208, 0.1); border-left: 3px solid var(--cyan); padding-left: 17px; pointer-events: none; }
.vo-item-left { display: flex; gap: 10px; align-items: flex-start; flex: 1; padding-right: 15px; }
.vo-item-num { color: var(--text-2); font-weight: bold; flex-shrink: 0; width: 24px; text-align: right; }
.vo-item.active .vo-item-num { color: var(--cyan); }
.vo-item-title { color: var(--cyan); font-weight: bold; transition: 0.2s; }
.vo-item:hover .vo-item-title { color: #fff; text-decoration: underline; }
.vo-item.active .vo-item-title { color: #fff; text-decoration: none; }
.vo-item-desc { color: var(--text-2); font-size: 12px; }
.vo-item-rating { font-family: 'JetBrains Mono', monospace; font-weight: bold; font-size: 11px; padding: 3px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); flex-shrink: 0; }

.vo-toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.vo-toggle-switch input { opacity: 0; width: 0; height: 0; }
.vo-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #0f1115; border: 1px solid var(--line-strong); transition: .4s; border-radius: 20px; }
.vo-slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background-color: var(--text-2); transition: .4s; border-radius: 50%; }
.vo-toggle-switch input:checked + .vo-slider { background-color: rgba(63, 224, 208, 0.2); border-color: var(--cyan); }
.vo-toggle-switch input:checked + .vo-slider:before { transform: translateX(16px); background-color: var(--cyan); }

/* --- МОДАЛЬНЫЕ ОКНА И ЛАЙТБОКС --- */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(6px); }
.modal.is-open { animation: modalFadeIn 0.25s ease forwards; }
.modal.is-closing { animation: modalFadeOut 0.2s ease forwards; }
.modal-content { background: var(--panel-2); margin: 10% auto; padding: 30px; border: 1px solid var(--line-strong); border-radius: 12px; width: 340px; text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.6); font-family: 'JetBrains Mono', monospace; }
.close { color: var(--text-2); position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.close:hover { color: var(--text-0); }

.lb-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #fff; font-size: 48px; cursor: pointer; transition: 0.2s; opacity: 0.5; padding: 20px; z-index: 10002; }
.lb-nav-btn:hover { opacity: 1; color: var(--cyan); }
#lb-prev { left: 20px; }
#lb-next { right: 20px; }

#lightbox-img {
    max-width: 90%; 
    max-height: 85vh; 
    border-radius: 8px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    user-select: none;
    display: block;
}

#lightbox-modal.is-open #lightbox-img {
    animation: lightboxZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#lightbox-modal.is-closing #lightbox-img {
    animation: lightboxZoomOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes lightboxZoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes lightboxZoomOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.92); }
}

.bg-grid-mask { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 10%, #0b0d11 80%); pointer-events: none; z-index: 1; }

.loader-overlay { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 90; background: rgba(11, 13, 17, 0.6); backdrop-filter: blur(16px); }
.loader-box { position: relative; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 16px; overflow: hidden; background: rgba(21, 24, 30, 0.8); box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.loader-box::before { content: ''; position: absolute; width: 200%; height: 200%; background: conic-gradient(transparent, transparent, transparent, var(--cyan)); animation: rotate 1.5s linear infinite; }
.loader-box::after { content: ''; position: absolute; inset: 3px; background: #0f1115; border-radius: 13px; }
.loader-logo { position: relative; z-index: 1; font-family: 'Chakra Petch', sans-serif; font-weight: 800; font-size: 26px; color: #fff; text-shadow: 0 0 15px rgba(63, 224, 208, 0.8); animation: pulse-glow 2s ease-in-out infinite; }
.loader-text { margin-top: 24px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--cyan); font-weight: bold; text-transform: uppercase; letter-spacing: 1.5px; animation: pulse-opacity 1.5s ease-in-out infinite; text-shadow: 0 0 10px rgba(63, 224, 208, 0.4); }

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes pulse-glow { 0%, 100% { text-shadow: 0 0 15px rgba(63, 224, 208, 0.8); color: #fff; } 50% { text-shadow: 0 0 5px rgba(63, 224, 208, 0.3); color: #d0d4dc; } }
@keyframes pulse-opacity { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--panel); border: 1px solid var(--line-strong); color: var(--text-0); padding: 12px 20px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); animation: fadeIn 0.2s ease; }
.toast.fade-out { opacity: 0; transition: opacity 0.3s ease; }

*:focus-visible { outline: none !important; } 
.media-card:focus-visible, .continue-card:focus-visible, .collection-card:focus-visible, .list-item-card:focus-visible {
    border-color: var(--cyan) !important;
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 25px rgba(63, 224, 208, 0.8) !important;
}
.media-card:focus-visible img, .collection-card:focus-visible img, .list-item-card:focus-visible img, .continue-card:focus-visible .continue-bg {
    transform: scale(1.08);
    filter: brightness(0.6);
}
.media-card:focus-visible .media-card-overlay {
    opacity: 1;
    background: linear-gradient(0deg, rgba(11,13,17,1) 0%, rgba(11,13,17,0.85) 50%, transparent 100%);
}
button:focus-visible, a:focus-visible, .custom-select-trigger:focus-visible, .list-pill:focus-visible {
    outline: 3px solid var(--cyan) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 20px rgba(63, 224, 208, 0.5) !important;
    border-radius: 8px;
}



/* Адаптив модального окна добавления рецензии */
.review-modal-content {
    max-width: 620px;
    width: 92%;
    height: 76vh;
    max-height: 820px;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 22px 24px;
    box-sizing: border-box;
    margin: auto;
    border-radius: 12px;
}

.review-modal-body {
    background: #0f1115;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

@media (max-width: 768px) {
    #admin-add-review-modal {
        align-items: flex-start !important;
        padding: 10px 0 !important;
        overflow-y: auto !important;
    }

    .review-modal-content {
        width: 95% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        max-height: unset !important;
        margin: 10px auto 40px auto !important;
        padding: 16px 14px !important;
    }

    .review-modal-body {
        overflow: visible !important;
        flex: none !important;
        gap: 12px !important;
        padding: 12px 10px !important;
    }

    .review-two-col {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    #review-content-input {
        min-height: 110px !important;
        height: 110px !important;
    }

    .review-modal-actions {
        flex-direction: column-reverse !important;
        gap: 8px !important;
        margin-top: 6px !important;
    }

    .review-modal-actions button {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px !important;
    }
}