        html { scrollbar-gutter: stable; overflow-x: hidden; }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --primary: #FF1744;
            --secondary: #00E5FF;
            --accent: #FFD600;
            --dark: #0A0E27;
            --purple: #B388FF;
            --pink: #FF4081;
            --pad-x: clamp(1rem, 5vw, 6%);
            --header-h: clamp(56px, 8vw, 80px);
            --cover-w: 210px;
        }
        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #0F1528 0%, #171D32 55%, #1D2038 100%);
            background-attachment: fixed;
            color: #fff;
            overflow-x: hidden;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ─── PARTICLES ─── */
        .particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
        .particle { position: absolute; width: 2px; height: 2px; background: var(--secondary); border-radius: 50%; animation: float 15s infinite; opacity: 0.2; }
        @keyframes float {
            0%,100% { transform: translate(0,0); }
            25% { transform: translate(40px,-80px); }
            50% { transform: translate(-40px,-160px); }
            75% { transform: translate(80px,-80px); }
        }

        /* ─── HEADER ─── */
        header {
            position: fixed; top: 0; left: 0; right: 0;
            z-index: 1000;
            height: var(--header-h);
            padding: 0 var(--pad-x);
            backdrop-filter: blur(24px);
            background: rgba(10,14,39,0.95);
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        nav {
            display: flex; align-items: center; justify-content: space-between;
            height: 100%; max-width: 1200px; margin: 0 auto;
            gap: clamp(0.5rem, 2vw, 2rem);
        }
        .logo {
            font-family: 'Unbounded', cursive;
            font-size: clamp(1rem, 3vw, 1.5rem);
            font-weight: 900;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
            white-space: nowrap; flex-shrink: 0; text-decoration: none;
        }
        .nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); list-style: none; }
        .nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; font-size: clamp(0.8rem, 1.5vw, 0.9rem); transition: color 0.25s; white-space: nowrap; }
        .nav-links a:hover, .nav-links a.active { color: var(--secondary); }
        
        .header-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
        .search-bar {
            display: flex; align-items: center;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
            border-radius: 24px; padding: 0 1rem; height: 40px;
            transition: all 0.3s; gap: 0.5rem;
            width: clamp(38px, 25vw, 205px);
            cursor: pointer; overflow: hidden;
        }
        .search-bar:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
        .search-icon { color: rgba(255,255,255,0.4); font-size: 0.9rem; flex-shrink: 0; display: flex; align-items: center; line-height: 1; }
        .search-bar-label { color: rgba(255,255,255,0.35); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
        .header-auth-btns { display:flex; align-items:center; gap:0.5rem; }
        .login-btn-header { display:flex; align-items:center; gap:0.4rem; padding:0 1.1rem; height:40px; background:linear-gradient(135deg,var(--primary),#ff5577); border:none; border-radius:8px; color:#fff; font-size:0.82rem; font-weight:700; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; transition:box-shadow .2s; }
        .login-btn-header:hover { box-shadow:0 4px 14px rgba(255,23,68,0.35); }
        .register-btn-header { display:flex; align-items:center; gap:0.4rem; padding:0 1.1rem; height:40px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:8px; color:rgba(255,255,255,0.8); font-size:0.82rem; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; transition:all .2s; }
        .register-btn-header:hover { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.2); color:#fff; }
        @media(max-width:480px) { .register-btn-header { display:none; } }
        /* ─── AUTH MODAL ─── */
/* Auth modal */
/* Auth modal */
/* Auth modal */
        .auth-modal-overlay { display:none; position:fixed; inset:0; z-index:6000; background:rgba(0,0,0,0.75); backdrop-filter:blur(8px); align-items:center; justify-content:center; padding:1rem; animation:authOverlayIn .25s ease-out; transition:background-image .3s; }
        .auth-modal-overlay.open { display:flex; }
        @keyframes authOverlayIn { from { opacity:0; } to { opacity:1; } }
        .auth-modal {
            background:linear-gradient(180deg,rgba(15,20,42,0.99) 0%,rgba(10,14,26,0.99) 100%);
            border:1px solid rgba(255,255,255,0.08); border-radius:24px;
            padding:2.2rem 2rem 1.8rem; max-width:400px; width:100%;
            box-shadow:0 32px 80px rgba(0,0,0,0.7),0 0 0 1px rgba(255,255,255,0.04),0 0 120px rgba(0,229,255,0.03);
            position:relative; animation:authSlideUp .35s ease-out;
        }
        @keyframes authSlideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
        .auth-form-in { transition: opacity .70s ease; }
        .auth-modal-close { position:absolute; top:0.8rem; right:1rem; background:none; border:none; color:rgba(255,255,255,0.3); font-size:1.6rem; cursor:pointer; transition:color .2s; line-height:1; }
        .auth-modal-close:hover { color:#fff; }
        .auth-modal-logo { text-align:center; margin-bottom:0.3rem; }
        .auth-logo-img { height: 26px; width: auto; display: inline-block; }
        .auth-modal-sub { text-align:center; font-size:0.75rem; color:rgba(255,255,255,0.35); margin-bottom:1.5rem; letter-spacing:0.04em; }
        .auth-tabs { display:flex; gap:0; margin-bottom:1.2rem; border-radius:12px; overflow:hidden; border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.03); }
        .auth-tab { flex:1; padding:0.6rem; background:transparent; border:none; color:rgba(255,255,255,0.4); font-family:'Inter',sans-serif; font-size:0.82rem; font-weight:600; cursor:pointer; transition:all .25s; }
        .auth-tab.active { background:rgba(255,255,255,0.08); color:#fff; }
        .auth-tab:hover:not(.active) { color:rgba(255,255,255,0.7); }
        .auth-field { margin-bottom:0.75rem; }
        .auth-field label { display:block; font-size:0.72rem; color:rgba(255,255,255,0.45); margin-bottom:0.35rem; font-weight:600; letter-spacing:0.03em; }
        .auth-input { width:100%; padding:0.65rem 0.85rem; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:11px; color:#fff; font-size:0.84rem; font-family:'Inter',sans-serif; outline:none; transition:border-color .2s,box-shadow .2s; box-sizing:border-box; }
        .auth-input:focus { border-color:var(--secondary); box-shadow:0 0 0 3px rgba(0,229,255,0.08); }
        .auth-input.error { border-color:rgba(255,23,68,0.5); }
        .auth-input:-webkit-autofill,
        .auth-input:-webkit-autofill:hover,
        .auth-input:-webkit-autofill:focus,
        .auth-input:-webkit-autofill:active { -webkit-text-fill-color:#fff !important; -webkit-box-shadow:0 0 0 1000px #101428 inset !important; box-shadow:0 0 0 1000px #101428 inset !important; transition:background-color 5000s ease-in-out 0s; font-family:'Inter',sans-serif !important; font-size:0.84rem !important; caret-color:#fff; }
        .auth-btn { width:100%; padding:0.7rem; background:linear-gradient(135deg,var(--primary),#ff5577); border:none; border-radius:11px; color:#fff; font-size:0.88rem; font-weight:700; cursor:pointer; font-family:'Inter',sans-serif; margin-top:0.5rem; transition:box-shadow .2s,transform .15s; }
        .auth-btn:hover { box-shadow:0 6px 20px rgba(255,23,68,0.35); transform:translateY(-1px); }
        .auth-btn:active { transform:translateY(0); }
        .auth-btn:disabled { opacity:0.5; cursor:not-allowed; transform:none; }
        .auth-link { background:none; border:none; color:var(--secondary); font-size:0.78rem; cursor:pointer; font-family:'Inter',sans-serif; padding:0; font-weight:500; }
        .auth-link:hover { text-decoration:underline; }
        .auth-checkbox { display:flex; align-items:flex-start; gap:0.6rem; margin:0.6rem 0 0.3rem; cursor:pointer; user-select:none; }
        .auth-checkbox input[type="checkbox"] { position:absolute; opacity:0; width:0; height:0; }
        .auth-checkbox .cb-box { width:15px; height:15px; flex-shrink:0; margin-top:2px; border-radius:4px; border:1.5px solid rgba(255,255,255,0.18); background:rgba(255,255,255,0.04); transition:border-color .15s, background .15s; position:relative; }
        .auth-checkbox:hover .cb-box { border-color:rgba(0,229,255,0.45); }
        .auth-checkbox .cb-box::after { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1.5,5.5 4,8 8.5,2' fill='none' stroke='%2300e5ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/7px 7px no-repeat; opacity:0; transition:opacity .15s; }
        .auth-checkbox input[type="checkbox"]:checked ~ .cb-box { background:rgba(0,229,255,0.1); border-color:rgba(0,229,255,0.9); }
        .auth-checkbox input[type="checkbox"]:checked ~ .cb-box::after { opacity:1; }
        .auth-checkbox span { font-size:0.72rem; color:rgba(255,255,255,0.45); line-height:1.4; }
        .auth-checkbox a { color:var(--secondary); text-decoration:none; }
        .auth-checkbox a:hover { text-decoration:underline; }
        .auth-alert { display:none; background:rgba(255,23,68,0.08); border:1px solid rgba(255,23,68,0.2); border-radius:10px; padding:0.55rem 0.8rem; color:rgba(255,100,100,0.9); font-size:0.78rem; margin-bottom:0.7rem; line-height:1.4; }
        .auth-alert.visible { display:block; }
        .auth-divider { display:flex; align-items:center; gap:0.7rem; margin:0.6rem 0; }
        .auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:rgba(255,255,255,0.07); }
        .auth-divider span { font-size:0.7rem; color:rgba(255,255,255,0.25); }
        .auth-forgot { text-align:right; margin:-0.3rem 0 0.4rem; }
        .header-auth-btns { display:flex; align-items:center; gap:0.5rem; }
        .login-btn-header { display:flex; align-items:center; gap:0.4rem; padding:0 1.1rem; height:40px; background:linear-gradient(135deg,var(--primary),#ff5577); border:none; border-radius:8px; color:#fff; font-size:0.82rem; font-weight:700; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; transition:box-shadow .2s; }
        .login-btn-header:hover { box-shadow:0 4px 14px rgba(255,23,68,0.35); }
        .register-btn-header { display:flex; align-items:center; gap:0.4rem; padding:0 1.1rem; height:40px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:8px; color:rgba(255,255,255,0.8); font-size:0.82rem; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; transition:all .2s; }
        .register-btn-header:hover { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.2); color:#fff; }
        @media(max-width:480px) {
            .auth-modal { padding:1.5rem 1.3rem 1.3rem; border-radius:18px; }
            .header-auth-btns .register-btn-header { display:none; }
        }
        .header-auth-btns { display:flex; align-items:center; gap:0.5rem; }
        .login-btn-header { display:flex; align-items:center; gap:0.4rem; padding:0 1.1rem; height:40px; background:linear-gradient(135deg,var(--primary),#ff5577); border:none; border-radius:8px; color:#fff; font-size:0.82rem; font-weight:700; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; transition:box-shadow .2s; }
        .login-btn-header:hover { box-shadow:0 4px 14px rgba(255,23,68,0.35); }
        .register-btn-header { display:flex; align-items:center; gap:0.4rem; padding:0 1.1rem; height:40px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:8px; color:rgba(255,255,255,0.8); font-size:0.82rem; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; transition:all .2s; }
        .register-btn-header:hover { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.2); color:#fff; }
        @media(max-width:480px) {
            .auth-modal { padding:1.5rem 1.3rem 1.3rem; border-radius:18px; }
            .header-auth-btns .register-btn-header { display:none; }
        }
        .header-auth-btns { display:flex; align-items:center; gap:0.5rem; }
        .login-btn-header { display:flex; align-items:center; gap:0.4rem; padding:0 1.1rem; height:40px; background:linear-gradient(135deg,var(--primary),#ff5577); border:none; border-radius:8px; color:#fff; font-size:0.82rem; font-weight:700; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; transition:box-shadow .2s; }
        .login-btn-header:hover { box-shadow:0 4px 14px rgba(255,23,68,0.35); }
        .register-btn-header { display:flex; align-items:center; gap:0.4rem; padding:0 1.1rem; height:40px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:8px; color:rgba(255,255,255,0.8); font-size:0.82rem; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; transition:all .2s; }
        .register-btn-header:hover { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.2); color:#fff; }
        @media(max-width:480px) {
            .auth-modal { padding:1.5rem 1.3rem 1.3rem; border-radius:18px; }
            .header-auth-btns .register-btn-header { display:none; }
        }
        @media(max-width:480px) { .auth-modal { padding:1.5rem 1.3rem 1.3rem; border-radius:18px; } }
        /* Never show burger - user-chip handles mobile navigation */
        .burger-btn { display: none !important; }

        .mobile-nav {
            display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
            background: rgba(10,14,39,0.98); backdrop-filter: blur(24px);
            border-bottom: 1px solid rgba(255,255,255,0.1);
            z-index: 999; padding: 1.2rem var(--pad-x);
            flex-direction: column; gap: 0.5rem;
            animation: slideDown 0.25s ease-out;
        }
        .mobile-nav.open { display: flex; }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        .mobile-nav a {
            color: rgba(255,255,255,0.8); text-decoration: none;
            font-weight: 500; padding: 0.75rem 1rem;
            border-radius: 10px; transition: all 0.2s;
            background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
            height: 40px; display: flex; align-items: center; font-size: 0.85rem; justify-content: center;
        }
        .mobile-nav a:hover { color: var(--secondary); background: rgba(0,229,255,0.07); border-color: rgba(0,229,255,0.2); }
        @media (min-width: 801px) {
            .mobile-nav-page-link { display: none !important; }
            nav .nav-links { display: flex; }
            nav .search-bar { display: flex; }
        }
        .dropdown-item.mobile-only { display: none; }
        .header-search-row { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; padding: 6px var(--pad-x) 8px; background: rgba(10,14,39,0.97); backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,0.06); z-index: 1001; }
        .header-search-row .search-bar { width: 100%; max-width: 100%; border-radius: 12px; height: 40px; }


        /* ─── SEARCH MODAL ─── */
        .search-modal-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(0,0,0,0.75); z-index: 4000; backdrop-filter: blur(2px);
        }
        .search-modal-overlay.open {
            display: flex; flex-direction: column; align-items: center;
            padding: var(--header-h) clamp(0.5rem, 3vw, 1.5rem) 0;
            animation: fadeIn 0.2s ease-out;
        }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .search-modal-box {
            width: 100%; max-width: 680px;
            animation: slideDown 0.25s ease-out;
        }
        .search-modal-input-wrap {
            display: flex; align-items: center; gap: 0.9rem;
            background: rgba(18,22,48,0.99);
            border: 1px solid rgba(0,229,255,0.35); border-bottom: none;
            border-radius: 16px 16px 0 0; padding: 0 1.4rem; height: 58px;
        }
        .search-modal-icon { color: rgba(0,229,255,0.55); font-size: 1.1rem; flex-shrink: 0; display: flex; align-items: center; line-height: 1; }
        .search-modal-input {
            background: none; border: none; color: #fff; outline: none;
            width: 100%; font-size: clamp(0.9rem, 2.5vw, 1.05rem); font-family: 'Inter', sans-serif;
        }
        .search-modal-input::placeholder { color: rgba(255,255,255,0.28); }
        .search-modal-close {
            background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 50%; color: rgba(255,255,255,0.5); cursor: pointer;
            font-size: 0.75rem; width: 28px; height: 28px;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s;
        }
        .search-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
        .search-modal-body { background: rgba(14,18,40,0.99); border: 1px solid rgba(0,229,255,0.35); border-radius: 0 0 16px 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); overflow: hidden; }
        .search-modal-scroll { padding: 1.3rem 1.6rem 1.6rem; max-height: calc(100dvh - var(--header-h) - 58px - 2.5rem); overflow-y: auto; scroll-behavior: smooth; overscroll-behavior: contain; }
        .search-modal-scroll::-webkit-scrollbar { width: 4px; }
        .search-modal-scroll::-webkit-scrollbar-track { background: transparent; }
        .search-modal-scroll::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.25); border-radius: 2px; }
        .search-modal-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
        .search-modal-tab {
            padding: 0.38rem 1rem; border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.12);
            background: transparent; color: rgba(255,255,255,0.6);
            font-size: 0.85rem; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.2s;
        }
        .search-modal-tab:hover { border-color: rgba(255,255,255,0.28); color: #fff; background: rgba(255,255,255,0.05); }
        .search-modal-tab.active { background: var(--secondary); border-color: var(--secondary); color: #000; font-weight: 700; }
        .search-modal-section-label { font-size: 0.72rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; margin-bottom: 0.75rem; }
        .search-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
        .search-history-clear { background: none; border: none; color: rgba(255,255,255,0.3); font-size: 0.75rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: color 0.2s; padding: 0; }
        .search-history-clear:hover { color: var(--primary); }
        .search-history-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
        .search-history-tag {
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
            border-radius: 20px; padding: 0.38rem 1rem; font-size: 0.85rem;
            color: rgba(255,255,255,0.55); cursor: pointer; transition: all 0.2s;
            display: flex; align-items: center; gap: 0.45rem;
        }
        .search-history-tag:hover { background: rgba(0,229,255,0.08); border-color: var(--secondary); color: var(--secondary); }
        .search-modal-popular { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
        .search-modal-popular-tag {
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px; padding: 0.38rem 1rem; font-size: 0.85rem;
            color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s;
        }
        .search-modal-popular-tag:hover { background: rgba(0,229,255,0.1); border-color: var(--secondary); color: var(--secondary); }
        .search-results { display: none; }
        .search-results.visible { display: block; }
        .search-static.hidden { display: none; }
        .search-result-item {
            display: flex; align-items: center; gap: 0.9rem;
            padding: 0.6rem 0.5rem; border-radius: 10px; cursor: pointer; transition: background 0.15s;
        }
        .search-result-item:hover { background: rgba(255,255,255,0.05); }
        .search-result-img { width: 38px; height: 52px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.07); }
        .search-result-info { flex: 1; min-width: 0; }
        .search-result-name { font-size: 0.92rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.2rem; }
        .search-result-meta { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
        .search-result-rating { font-size: 0.8rem; color: var(--accent); font-weight: 600; flex-shrink: 0; display: flex; align-items: center; gap: 5px; }
        .search-empty { text-align: center; padding: 1.5rem 0 0.5rem; }
        .search-empty-emoji { font-size: 2.2rem; margin-bottom: 0.6rem; }
        .search-empty-text { font-size: 0.92rem; margin-bottom: 0.3rem; }
        .search-empty-hint { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
        .search-dropdown, .search-overlay { display: none !important; }
        .search-dropdown, .search-overlay { display: none !important; }
        .search-dropdown, .search-overlay { display: none !important; }

        /* ─── AUTH MODALS ─── */
        .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 5000; backdrop-filter: blur(4px); align-items: center; justify-content: center; }
        .modal-content { background: linear-gradient(135deg, rgba(18,22,50,0.99), rgba(28,18,50,0.99)); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: clamp(1.5rem, 5vw, 2.5rem); width: min(90vw, 440px); position: relative; animation: slideDown 0.3s ease-out; max-height: 92dvh; overflow-y: auto; }
        .modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.08); border: none; color: rgba(255,255,255,0.5); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: all 0.2s; flex-shrink: 0; }
        .modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
        .modal-header { margin-bottom: 1.8rem; padding-right: 2.5rem; }
        .modal-header h2 { font-family: 'Unbounded', cursive; font-size: clamp(1.1rem, 5vw, 1.5rem); margin-bottom: 0.4rem; background: linear-gradient(135deg,var(--secondary),var(--purple)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; line-height: 1.3; }
        .modal-header p { color: rgba(255,255,255,0.5); font-size: clamp(0.8rem, 3vw, 0.9rem); }
        .form-group { margin-bottom: 1.2rem; }
        .form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: rgba(255,255,255,0.8); }
        .input-icon-wrapper { position: relative; }
        .input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; }
        .input-icon-wrapper input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 0.75rem 1rem 0.75rem 2.8rem; color: #fff; font-family: 'Inter',sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
        .input-icon-wrapper input:focus { border-color: var(--secondary); }
        .input-icon-wrapper input::placeholder { color: rgba(255,255,255,0.25); }
        .validation-error { color: var(--primary); font-size: 0.78rem; margin-top: 0.35rem; display: none; }
        .form-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
        .form-checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
        .form-checkbox input { accent-color: var(--secondary); }
        .forgot-password { color: var(--secondary); text-decoration: none; font-size: 0.85rem; }
        .modal-button { width: 100%; padding: 0.9rem; background: linear-gradient(135deg, var(--primary), #ff5577); border: none; border-radius: 10px; color: #fff; font-weight: 700; font-size: 1rem; font-family: 'Inter',sans-serif; cursor: pointer; transition: all 0.25s; }
        .modal-button:hover { background: linear-gradient(135deg, #ff3355, var(--primary)); box-shadow: 0 4px 16px rgba(255,23,68,0.4); }
        .modal-switch { text-align: center; margin-top: 1.2rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
        .modal-switch a { color: var(--secondary); text-decoration: none; font-weight: 600; }
        .back-to-login { text-align: center; margin-top: 1rem; }
        .back-to-login a { color: var(--secondary); text-decoration: none; font-size: 0.85rem; }
        .modal-message { background: rgba(0,229,255,0.07); border: 1px solid rgba(0,229,255,0.2); border-radius: 10px; padding: 0.9rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; line-height: 1.5; }
        .link-cyan { color: var(--secondary); }

        /* ─── GALLERY MODAL ─── */
        .gallery-modal-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(0,0,0,0.92); z-index: 6000;
            backdrop-filter: blur(12px);
            align-items: center; justify-content: center;
            animation: fadeIn 0.22s ease-out;
            padding: 1rem;
        }
        .gallery-modal-overlay.open { display: flex; }
        .gallery-modal {
            width: min(92vw, 560px);
            background: rgba(14,18,42,0.98);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 24px;
            overflow: hidden;
            animation: slideDown 0.26s ease-out;
            display: flex; flex-direction: column;
            box-shadow: 0 40px 100px rgba(0,0,0,0.8);
        }
        .gallery-modal-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 1rem 1.4rem;
            border-bottom: 1px solid rgba(255,255,255,0.07);
            flex-shrink: 0;
        }
        .gallery-modal-title {
            font-family: 'Unbounded', cursive; font-size: 0.82rem; font-weight: 700;
            color: rgba(255,255,255,0.9);
        }
        .gallery-modal-close {
            background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
            border-radius: 50%; color: rgba(255,255,255,0.6); cursor: pointer;
            font-size: 0.78rem; width: 32px; height: 32px;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s; flex-shrink: 0;
        }
        .gallery-modal-close:hover { background: rgba(255,23,68,0.2); border-color: rgba(255,23,68,0.4); color: #fff; }
        .gallery-main {
            position: relative; flex: 1;
            display: flex; align-items: center; justify-content: center;
            padding: 2.5rem 3.5rem 2.5rem;
            min-height: 300px;
            background: rgba(0,0,0,0.2);
        }
        .gallery-main-img {
            max-height: 380px; max-width: 100%;
            object-fit: contain; border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.7);
            transition: opacity 0.15s ease;
        }
        .gallery-nav-btn {
            position: absolute; top: 50%; transform: translateY(-50%);
            background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
            border-radius: 50%; color: rgba(255,255,255,0.8); cursor: pointer;
            width: 40px; height: 40px; font-size: 1rem;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s; z-index: 2;
        }
        .gallery-nav-btn:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.3); }
        .gallery-prev { left: 0.8rem; }
        .gallery-next { right: 0.8rem; }
        .gallery-counter {
            position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%);
            font-size: 0.7rem; color: rgba(255,255,255,0.4); font-weight: 600;
            background: rgba(0,0,0,0.4); padding: 2px 10px; border-radius: 20px;
        }
.gallery-thumbs {
    display: flex; gap: 0.55rem; padding: 0.9rem 1.4rem 1.1rem;
    overflow-x: auto; scrollbar-width: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
    justify-content: center; flex-wrap: wrap;
}
        .gallery-thumbs::-webkit-scrollbar { display: none; }
        .gallery-thumb {
            width: 50px; height: 68px; border-radius: 8px; object-fit: cover;
            flex-shrink: 0; cursor: pointer; opacity: 0.45;
            border: 2px solid transparent;
            transition: all 0.18s;
        }
        .gallery-thumb:hover { opacity: 0.75; transform: translateY(-2px); }
        .gallery-thumb.active { opacity: 1; border-color: var(--secondary); box-shadow: 0 4px 12px rgba(0,229,255,0.3); }
        /* Make cover clickable */
        .cover-card { cursor: pointer; }
        .cover-card::after { display: none; }
        .cover-gallery-overlay {
            position: absolute; inset: 0; border-radius: 14px;
            background: rgba(0,0,0,0);
            display: flex; align-items: center; justify-content: center;
            transition: background 0.3s ease; z-index: 1; pointer-events: none;
        }
        .cover-gallery-inner {
            display: flex; flex-direction: column; align-items: center; gap: 0.32rem;
        }
        .cover-gallery-inner svg {
            color: rgba(255,255,255,0.85);
            opacity: 0;
            transform: translateY(6px) scale(0.82);
            transition: opacity 0.26s ease, transform 0.3s cubic-bezier(0.34,1.4,0.64,1), color 0.22s ease, filter 0.22s ease;
        }
        .cover-gallery-inner span {
            font-size: 0.6rem; font-weight: 700; font-family: 'Unbounded', cursive;
            color: rgba(255,255,255,0.9); letter-spacing: 0.09em;
            text-shadow: 0 1px 6px rgba(0,0,0,0.7);
            opacity: 0;
            transform: translateY(5px);
            transition: opacity 0.26s ease 0.07s, transform 0.28s cubic-bezier(0.34,1.3,0.64,1) 0.07s;
        }
        .cover-card:hover .cover-gallery-overlay { background: rgba(0,0,0,0.52); }
        .cover-card:hover .cover-gallery-inner svg {
            opacity: 1;
            transform: translateY(0) scale(1);
            color: var(--secondary);
            filter: drop-shadow(0 0 10px rgba(0,229,255,0.65));
        }
        .cover-card:hover .cover-gallery-inner span {
            opacity: 1;
            transform: translateY(0);
        }
        .cover-badge, .cover-vol { position: absolute; z-index: 2; }

        /* ─── FOOTER ─── */
        footer { background: rgba(10,14,39,0.8); border-top: 1px solid rgba(255,255,255,0.1); padding: 48px 0 24px; position: relative; z-index: 10; margin-top: 3rem; }
        .footer-content { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 32px; box-sizing: border-box; }
        .footer-section h3 { font-family: 'Unbounded', cursive; font-size: 0.88rem; margin-bottom: 14px; background: linear-gradient(135deg, var(--secondary), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        .footer-section p { color: rgba(255,255,255,0.7); line-height: 1.6; font-size: 0.82rem; }
        .footer-links { list-style: none; }
        .footer-links li { margin-bottom: 8px; }
        .footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; font-size: 0.82rem; }
        .footer-logo { height: 28px; width: auto; display: block; }
        .footer-links a:hover { color: var(--secondary); }
        @media (max-width: 900px) { .footer-content { grid-template-columns: 1fr 1fr; } }
        @media (max-width: 480px) { .footer-content { padding-left: 20px; padding-right: 20px; } .footer-content { grid-template-columns: 1fr; } }

        /* ══════════════════════════════════════════
           TITLE PAGE
        ══════════════════════════════════════════ */

        /* ─── HERO BANNER ─── */
        .hero-outer {
            margin-top: var(--header-h);
            padding: 0 var(--pad-x);
        }
        .hero-inner {
            max-width: 1200px;
            margin: 0 auto;
            height: clamp(200px, 20vw, 300px);
            position: relative;
            overflow: hidden;
            border-radius: 0 0 20px 20px;
        }
        .hero-bg {
            position: absolute; inset: -15px;
            background: center 50% / cover no-repeat;
            filter: brightness(0.5) saturate(1.2);
        }
        .hero-bg.fallback { background: linear-gradient(135deg, #1a0a2e 0%, #0d1830 50%, #1a0a1e 100%); }
        .hero-fade-bottom {
            position: absolute; inset: 0;
            background: linear-gradient(to bottom,
                rgba(13,17,40,0) 0%,
                rgba(13,17,40,0.05) 38%,
                rgba(13,17,40,0.72) 68%,
                rgba(13,17,40,1) 100%
            );
        }
        .hero-fade-left {
            position: absolute; inset: 0;
            background: linear-gradient(to right,
                rgba(13,17,40,0.7) 0%,
                rgba(13,17,40,0.15) 30%,
                transparent 55%
            );
        }
        .hero-fade-top {
            position: absolute; top: 0; left: 0; right: 0; height: 70px;
            background: linear-gradient(to bottom, rgba(10,14,39,0.35) 0%, transparent 100%);
        }

        /* ─── PAGE LAYOUT ─── */
        /*
            Three columns inside a 1200px container.
            Cover card overlaps the hero banner by --cover-overlap.
            Title name + stats appear BELOW the overlap zone.
        */
        :root { --cover-overlap: 130px; }

        .page-body {
            max-width: 1200px;
            margin: calc(-1 * var(--cover-overlap)) auto 0;
            padding: 0 var(--pad-x) 0;
            display: grid;
            grid-template-columns: var(--cover-w) 1fr;
            grid-template-rows: var(--cover-overlap) auto auto;
            column-gap: 2rem;
            position: relative;
            z-index: 10;
            box-sizing: border-box;
            width: 100%;
        }

        /* ─── LEFT COLUMN ─── */
        /* Spans all three rows; cover sits in the overlap zone, then btn + meta below */
        .col-left {
            grid-column: 1;
            grid-row: 1 / 4;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            align-self: start;
        }

        .cover-card-wrap {
            position: relative;
            width: 100%;
            flex-shrink: 0;
        }
        .cover-card {
            position: relative;
            width: 100%;
            aspect-ratio: 2/3;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 24px 64px rgba(0,0,0,0.75), 0 0 0 2px rgba(255,255,255,0.08);
            flex-shrink: 0;
            isolation: isolate;
        }
        .cover-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .cover-badge {
            position: absolute; top: 9px; left: 9px;
            background: linear-gradient(135deg, var(--primary), #ff5577);
            color: #fff; font-size: 0.66rem; font-weight: 700;
            padding: 3px 8px; border-radius: 5px;
            font-family: 'Unbounded', cursive; letter-spacing: 0.04em;
        }
        .cover-vol {
            position: absolute; top: 9px; right: 9px;
            background: rgba(0,0,0,0.68); backdrop-filter: blur(6px);
            color: rgba(255,255,255,0.82); font-size: 0.68rem; font-weight: 600;
            padding: 3px 8px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.13);
        }

        .btn-read {
            display: flex; align-items: center; justify-content: center; gap: 0.45rem;
            height: 42px; padding: 0 1rem; border-radius: 10px; border: none; cursor: pointer;
            font-family: 'Unbounded', cursive; font-size: 0.72rem; font-weight: 700;
            width: 100%; transition: all 0.22s;
            background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(179,136,255,0.15));
            border: 1px solid rgba(0,229,255,0.4);
            box-shadow: 0 0 14px rgba(0,229,255,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
            color: #fff !important;
            -webkit-text-fill-color: #fff !important;
            position: relative; z-index: 2; overflow: hidden;
        }
        .btn-read .btn-read-text {
            background: linear-gradient(135deg, var(--secondary), var(--purple));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
            font-weight: 700;
        }
        @keyframes btnReadShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
        .btn-read::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.1) 50%, transparent 100%);
            background-size: 200% 100%; animation: btnReadShimmer 2.5s linear infinite; pointer-events: none;
        }
        .btn-read:hover {
            background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(179,136,255,0.25));
            border-color: rgba(0,229,255,0.7);
            box-shadow: 0 0 22px rgba(0,229,255,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
        }
        .btn-read-mobile { display: none; }

        /* ─── ACTION BUTTONS (В избранное / Добавить в список) ─── */
        .btn-action-row {
            display: flex; flex-direction: column; gap: 0.85rem; width: 100%; position: relative; z-index: 2;
        }
        .btn-fav-title {
            display: flex; align-items: center; justify-content: center; gap: 0.4rem;
            width: 100%; padding: 0.58rem 0.75rem; border-radius: 10px;
            border: 1px solid rgba(179,136,255,0.22); cursor: pointer;
            font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600;
            background: rgba(179,136,255,0.07);
            color: rgba(179,136,255,0.85); transition: all 0.22s; white-space: nowrap;
        }
        .btn-fav-title:hover {
            background: rgba(179,136,255,0.14); border-color: rgba(179,136,255,0.45);
            color: var(--purple); box-shadow: 0 3px 12px rgba(179,136,255,0.18);
        }
        .btn-fav-title.active {
            background: rgba(179,136,255,0.14); border-color: rgba(179,136,255,0.5);
            color: var(--purple); box-shadow: 0 3px 12px rgba(179,136,255,0.2);
        }
        .btn-fav-title.active svg { fill: var(--purple); stroke: var(--purple); }
        .btn-add-list {
            display: flex; align-items: center; justify-content: center; gap: 0.4rem;
            width: 100%; padding: 0.58rem 0.75rem; border-radius: 10px; cursor: pointer;
            font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600;
            background: rgba(62,207,142,0.07); border: 1px solid rgba(62,207,142,0.22);
            color: rgba(62,207,142,0.85); transition: all 0.22s; white-space: nowrap;
        }
        .btn-add-list:hover {
            background: rgba(62,207,142,0.14); border-color: rgba(62,207,142,0.45);
            color: #3ecf8e; box-shadow: 0 3px 12px rgba(62,207,142,0.18);
        }
        .btn-add-list.has-status {
            background: rgba(62,207,142,0.12); border-color: rgba(62,207,142,0.4);
            color: #3ecf8e;
        }
        .btn-add-list.has-status:hover {
            background: rgba(62,207,142,0.2); border-color: #3ecf8e;
            box-shadow: 0 3px 12px rgba(62,207,142,0.25); color: #3ecf8e;
        }
        .btn-add-list span { overflow: hidden; text-overflow: ellipsis; }
        /* Mobile action bar — inside page-body grid at ≤480px */
        .mobile-action-bar { display: none; }
        @media (max-width: 480px) {
            .mobile-action-bar {
                display: flex; gap: 0.65rem;
                grid-column: 1 / -1;
                grid-row: 2;
                padding: 0.5rem 0 0;
                margin-top: 20px;
                box-sizing: border-box;
                position: relative; z-index: 12;
            }
            .mobile-action-bar .btn-fav-title,
            .mobile-action-bar .btn-add-list { flex: 1; }
            /* Hide the in-col-left action row at ≤480px */
            .col-left .btn-action-row { display: none !important; }
        }
        /* At 481px+: show buttons in col-left, hide mobile-action-bar */
        @media (min-width: 481px) {
            .mobile-action-bar { display: none !important; }
            .col-left .btn-action-row {
                display: flex !important;
                flex-direction: column;
                gap: 0.85rem;
                width: 100%;
            }
        }

        /* ─── ADD TO LIST MODAL (titles.html style) ─── */
        .atl-overlay {
            display: none; position: fixed; inset: 0; z-index: 5000;
            background: rgba(0,0,0,0.78); backdrop-filter: blur(6px);
            align-items: center; justify-content: center;
            padding: 1rem;
            animation: fadeIn 0.18s ease-out;
            overscroll-behavior: contain;
        }
        .atl-overlay.open { display: flex; }
        .atl-box {
            background: linear-gradient(135deg, #0d1124, #111a36);
            border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
            width: 100%; max-width: 640px; max-height: 92dvh; overflow: hidden;
            box-shadow: 0 32px 80px rgba(0,0,0,0.7);
            animation: slideDown 0.28s cubic-bezier(0.22, 1, 0.36, 1);
            display: flex; flex-direction: column;
        }
        .atl-head {
            display: flex; align-items: center; justify-content: space-between;
            padding: 1.2rem 1.4rem 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            background: linear-gradient(135deg, rgba(13,17,36,0.99), rgba(17,26,54,0.99));
            border-radius: 20px 20px 0 0; backdrop-filter: blur(20px);
            flex-shrink: 0;
        }
        .atl-head-left { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1; overflow: hidden; padding-right: 0.75rem; }
        .atl-cover { width: 44px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
        .atl-head h3 { font-family: 'Unbounded', cursive; font-size: 0.92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
        .atl-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 50%; cursor: pointer; transition: all 0.2s; color: rgba(255,255,255,0.45); flex-shrink: 0; }
        .atl-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
        .atl-body { padding: 1.4rem 1.6rem 0.5rem; overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; overscroll-behavior: contain; }
        .atl-body::-webkit-scrollbar { width: 4px; }
        .atl-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.09); border-radius: 2px; }
        .atl-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin-bottom: 0.55rem; display: flex; align-items: center; gap: 0.4rem; transition: color 0.3s; }
        .atl-f-row { margin-bottom: 1.2rem; }
        /* Status buttons grid */
        .atl-status-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0;
        }
        .atl-status-btn {
            display: flex; align-items: center; gap: 0.45rem;
            padding: 0.55rem 0.75rem; border-radius: 9px; cursor: pointer;
            font-size: 0.8rem; font-weight: 600; font-family: 'Inter', sans-serif;
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
            color: rgba(255,255,255,0.6); transition: all 0.18s; text-align: left;
        }
        .atl-status-btn:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); }
        .atl-status-btn.active { font-weight: 700; }
        .atl-status-btn[data-s="reading"].active { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.35); color: var(--secondary); }
        .atl-status-btn[data-s="planned"].active { background: rgba(179,136,255,0.1); border-color: rgba(179,136,255,0.35); color: var(--purple); }
        .atl-status-btn[data-s="completed"].active { background: rgba(62,207,142,0.1); border-color: rgba(62,207,142,0.35); color: #3ecf8e; }
        .atl-status-btn[data-s="on-hold"].active { background: rgba(255,214,0,0.1); border-color: rgba(255,214,0,0.35); color: var(--accent); }
        .atl-status-btn[data-s="dropped"].active { background: rgba(255,23,68,0.08); border-color: rgba(255,23,68,0.3); color: var(--primary); }
        .atl-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
        /* Chapters styled num-wrap */
        .atl-num-wrap { position: relative; width: 90px; }
        .atl-num-input {
            width: 100%; background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.09); border-radius: 9px;
            padding: 0.55rem 1.8rem 0.55rem 0.75rem; color: #fff;
            font-family: 'Inter', sans-serif; font-size: 0.85rem; outline: none;
            transition: all 0.2s; text-align: center;
            -moz-appearance: textfield; appearance: textfield;
        }
        .atl-num-input::-webkit-outer-spin-button,
        .atl-num-input::-webkit-inner-spin-button { -webkit-appearance: none; }
        .atl-num-input:focus { border-color: rgba(0,229,255,0.35); background: rgba(0,229,255,0.025); }
        .atl-num-arrows { position: absolute; right: 0; top: 0; bottom: 0; width: 1.6rem; display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,0.07); }
        .atl-num-arrow { flex: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,0.3); transition: all 0.15s; user-select: none; }
        .atl-num-arrow:first-child { border-bottom: 1px solid rgba(255,255,255,0.07); border-radius: 0 9px 0 0; }
        .atl-num-arrow:last-child { border-radius: 0 0 9px 0; }
        .atl-num-arrow:hover { background: rgba(0,229,255,0.12); color: var(--secondary); }
        .atl-num-arrow svg { pointer-events: none; }
        .atl-chapters-row { display: flex; align-items: center; gap: 0.55rem; }
        .atl-chapters-sep { color: rgba(255,255,255,0.3); font-weight: 700; }
        .atl-chapters-total-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.45); font-weight: 600; }
        .atl-chapters-progress { height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; margin-top: 0.55rem; }
        .atl-chapters-progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--secondary), var(--purple)); transition: width 0.3s; }
        /* Rating categories grid */
        .atl-ratings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0; }
        .atl-r-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 0.75rem; user-select: none; -webkit-user-select: none; }
        .atl-r-card-top { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.55rem; }
        .atl-r-card-icon { display: flex; align-items: center; flex-shrink: 0; }
        .atl-r-card-label { font-size: 0.72rem; color: rgba(255,255,255,0.55); flex: 1; }
        .atl-r-card-val { font-size: 0.82rem; font-weight: 700; min-width: 1.2rem; text-align: right; }
        .atl-r-slider { width: 100%; height: 4px; border-radius: 2px; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,0.1); touch-action: none; display: block; }
        .atl-r-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--thumb-color, var(--accent)); cursor: grab; box-shadow: 0 0 8px var(--thumb-color, var(--accent)); }
        .atl-r-slider:active::-webkit-slider-thumb { cursor: grabbing; }
        .atl-r-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--thumb-color, var(--accent)); cursor: grab; border: none; box-shadow: 0 0 8px var(--thumb-color, var(--accent)); }
        /* ATL footer */
        .atl-footer {
            display: flex; align-items: center; gap: 0.6rem;
            padding: 1rem 1.6rem 1.4rem;
            border-top: 1px solid rgba(255,255,255,0.06);
            background: linear-gradient(135deg, rgba(13,17,36,0.99), rgba(17,26,54,0.99));
            border-radius: 0 0 20px 20px; backdrop-filter: blur(20px);
            flex-shrink: 0;
        }
        .atl-btn-del { background: rgba(255,23,68,0.07); border: 1px solid rgba(255,23,68,0.2); border-radius: 10px; color: rgba(255,80,80,0.7); font-size: 0.82rem; font-weight: 600; padding: 0.65rem 1rem; cursor: pointer; font-family: 'Inter',sans-serif; transition: all 0.2s; display: none; align-items: center; gap: 0.4rem; white-space: nowrap; }
        .atl-btn-del:hover { background: rgba(255,23,68,0.15); border-color: rgba(255,23,68,0.4); color: rgba(255,80,80,1); }
        .atl-btn-del.visible { display: flex; }
        /* На очень маленьких экранах — только иконка */
        @media (max-width: 380px) {
            .atl-btn-del { padding: 0.65rem 0.7rem; }
            .atl-btn-del-text { display: none; }
        }
        .atl-btn-cancel { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 600; padding: 0.65rem 1.2rem; cursor: pointer; font-family: 'Inter',sans-serif; transition: all 0.2s; margin-left: auto; white-space: nowrap; }
        .atl-btn-cancel:hover { background: rgba(255,255,255,0.1); color: #fff; }
        .atl-btn-save { background: linear-gradient(135deg,#3ecf8e,#2db87a); border: none; border-radius: 10px; color: #fff; font-size: 0.85rem; font-weight: 700; padding: 0.65rem 1.4rem; cursor: pointer; font-family: 'Inter',sans-serif; transition: box-shadow 0.2s; white-space: nowrap; }
        .atl-btn-save:hover { box-shadow: 0 4px 16px rgba(62,207,142,0.4); }
        @media (max-width: 540px) {
            .atl-overlay { align-items: center; padding: 0.75rem; overflow: hidden; }
            .atl-box { border-radius: 16px !important; width: calc(100vw - 1.5rem) !important; max-width: calc(100vw - 1.5rem) !important; margin: 0 !important; max-height: 88dvh !important; overflow-x: hidden !important; }
            .atl-head { padding: 0.9rem 1rem; border-radius: 16px 16px 0 0; }
            .atl-body { padding: 1rem 1rem 0.5rem; }
            .atl-footer { padding: 0.75rem 1rem 1rem; border-radius: 0 0 16px 16px; }
            .atl-ratings-grid { grid-template-columns: 1fr; }
            .atl-r-card { min-width: 0; overflow: hidden; }
        }

        .meta-box {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 12px; padding: 0.9rem;
            display: flex; flex-direction: column; gap: 0.58rem;
            position: relative; z-index: 2;
        }
        .meta-row { display: flex; flex-direction: column; gap: 0.12rem; }
        .meta-label { font-size: 0.58rem; color: rgba(255,255,255,0.28); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
        .meta-value { font-size: 0.79rem; color: rgba(255,255,255,0.8); font-weight: 500; line-height: 1.35; }
        .meta-value a { color: var(--secondary); text-decoration: none; }
        .meta-value a:hover { text-decoration: underline; }
        .meta-hr { height: 1px; background: rgba(255,255,255,0.055); }

        /* ─── CENTER TOP: title heading — aligned with top of cover card ─── */
        .col-center-top {
            grid-column: 2;
            grid-row: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding-bottom: 0.8rem;
            padding-right: 3rem;
            min-width: 0;
        }
        .title-name {
            font-family: 'Unbounded', cursive;
            font-size: clamp(1.6rem, 3vw, 2.2rem);
            font-weight: 900; line-height: 1.1; color: #fff;
            margin: 0 0 0.25rem;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .title-name-en { font-size: 0.83rem; color: rgba(255,255,255,0.65); font-weight: 400; margin-bottom: 0.75rem; }
        .title-meta-row { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
        .rating-pill {
            display: inline-flex; align-items: center; gap: 0;
            background: rgba(255,212,0,0.1); border: 1px solid rgba(255,212,0,0.22);
            border-radius: 8px; padding: 0.28rem 0.7rem;
        }
        .rating-num { font-family: 'Unbounded', cursive; font-size: 0.98rem; font-weight: 700; color: var(--accent); margin-left: 3px; margin-right: 1px; }
        .rating-count { font-size: 0.7rem; color: rgba(255,255,255,0.65); display: inline-flex; align-items: center; gap: 0.18rem; margin-left: 0.45rem; }
        .status-badge { font-size: 0.66rem; font-weight: 700; padding: 0.27rem 0.72rem; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.07em; }
        .status-ongoing { background: rgba(0,229,255,0.09); border: 1px solid rgba(0,229,255,0.28); color: var(--secondary); }
        .status-seinen { background: rgba(255,212,0,0.08); border: 1px solid rgba(255,212,0,0.2); color: var(--accent); }
        .status-completed { background: rgba(62,207,142,0.09); border: 1px solid rgba(62,207,142,0.28); color: #3ecf8e; }
        .status-announced { background: rgba(179,136,255,0.09); border: 1px solid rgba(179,136,255,0.28); color: #B388FF; }
        .status-paused { background: rgba(255,152,0,0.09); border: 1px solid rgba(255,152,0,0.28); color: #ff9800; }
        .status-dropped { background: rgba(255,82,82,0.09); border: 1px solid rgba(255,82,82,0.28); color: #ff5252; }
        .status-genre { background: rgba(255,212,0,0.08); border: 1px solid rgba(255,212,0,0.2); color: var(--accent); }

        /* ─── CENTER BOTTOM: tabs + content ─── */
        .col-center-bottom {
            grid-column: 2;
            grid-row: 2 / 4;
            min-width: 0;
            padding-top: 0.6rem;
            padding-right: calc(268px + 2rem);
        }

        /* Tabs */
        .tabs-bar { display: flex; border-bottom: 1px solid rgba(255,255,255,0.09); margin-bottom: 1.4rem; overflow-x: auto; scrollbar-width: none; }
        .tabs-bar::-webkit-scrollbar { display: none; }
        .tab-btn { padding: 0.6rem 1.15rem; font-size: 0.78rem; font-weight: 700; font-family: 'Unbounded', cursive; color: rgba(255,255,255,0.42); cursor: pointer; white-space: nowrap; border: none; border-bottom: 2px solid transparent; background: none; transition: all 0.2s; }
        .tab-btn:hover { color: rgba(255,255,255,0.75); }
        .tab-btn.active { color: var(--secondary); border-bottom-color: var(--secondary); }
        /* Tab panes stacked in grid so switching doesn't affect layout */
        .tabs-content { position: relative; }
        .tab-pane { display: none; }
        /* Center columns: avoid overlap with absolute col-right */
        @media (max-width: 1100px) {
            .col-center-bottom { padding-right: calc(230px + 1.5rem); }
        }
        @media (max-width: 900px) {
            .col-center-bottom { padding-right: 0; padding-bottom: 1.3rem; }
        }

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

        /* Tags */
        .tags-row { display: flex; flex-wrap: wrap; gap: 0.42rem; margin-bottom: 1.15rem; }
        .tag { padding: 0.27rem 0.78rem; border-radius: 20px; font-size: 0.73rem; font-weight: 600; transition: all 0.18s; cursor: pointer; text-decoration: none; }
        .tag-g { background: rgba(0,229,255,0.07); border: 1px solid rgba(0,229,255,0.18); color: var(--secondary); }
        .tag-g:hover { background: rgba(0,229,255,0.14); }
        .tag-t { background: rgba(179,136,255,0.07); border: 1px solid rgba(179,136,255,0.16); color: var(--purple); }
        .tag-t:hover { background: rgba(179,136,255,0.14); }
        .tag-a { background: rgba(255,23,68,0.08); border: 1px solid rgba(255,23,68,0.2); color: #ff7090; }

        /* Description */
        .desc { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.72); margin-bottom: 1.1rem; }
        .desc-short { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
        .show-more { color: var(--secondary); background: none; border: none; cursor: pointer; font-size: 0.8rem; font-weight: 600; padding: 0; margin-bottom: 1.3rem; display: inline-flex; align-items: center; gap: 0.28rem; }
        .show-more:hover { text-decoration: underline; }

        /* Section heading */
        .sec-label { font-size: 0.64rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.62rem; }

        /* Translators */
        .translators { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.3rem; }
        @media (max-width: 900px) { .translators { margin-bottom: 0; } }
        .tr-chip { display: flex; align-items: center; gap: 0.45rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 0.38rem 0.78rem; font-size: 0.79rem; color: rgba(255,255,255,0.68); transition: all 0.18s; cursor: pointer; }
        .tr-chip:hover { border-color: var(--secondary); color: var(--secondary); }
        .tr-avatar { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.58rem; font-weight: 700; flex-shrink: 0; overflow: hidden; }
        .tr-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

        /* Comments */
        .comment-card { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; padding: 0.85rem; margin-bottom: 0.65rem; }
        .comment-top { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.45rem; }
        .comment-av { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; }
        .comment-author { font-size: 0.79rem; font-weight: 600; }
        .comment-date { font-size: 0.63rem; color: rgba(255,255,255,0.3); }
        .comment-body { font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.68); }
        .comment-input { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); border-radius: 11px; padding: 0.85rem; display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 0.45rem; }
        .comment-textarea { flex: 1; background: none; border: none; outline: none; resize: none; color: rgba(255,255,255,0.65); font-family: 'Inter',sans-serif; font-size: 0.8rem; line-height: 1.5; min-height: 36px; }
        .comment-send { background: linear-gradient(135deg,var(--primary),#ff5577); border: none; border-radius: 8px; color: #fff; padding: 0.42rem 0.95rem; font-size: 0.76rem; font-weight: 600; cursor: pointer; flex-shrink: 0; align-self: flex-end; transition: box-shadow 0.2s; }
        .comment-send:hover { box-shadow: 0 4px 12px rgba(255,23,68,0.35); }

        /* Chapters */
        .chapters-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
        .chapters-lbl { font-family: 'Unbounded', cursive; font-size: 0.77rem; font-weight: 700; color: rgba(255,255,255,0.6); }
        .sort-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 8px; padding: 0.36rem 0.85rem; color: rgba(255,255,255,0.52); font-size: 0.73rem; cursor: pointer; transition: all 0.18s; font-family: 'Inter',sans-serif; }
        .sort-btn:hover { background: rgba(0,229,255,0.07); color: var(--secondary); border-color: rgba(0,229,255,0.22); }
        .chapters-list { display: flex; flex-direction: column; gap: 0.32rem; }
        .ch-item { display: flex; align-items: center; justify-content: space-between; padding: 0.68rem 0.9rem; border-radius: 9px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.052); cursor: pointer; transition: all 0.16s; gap: 1rem; }
        .ch-item:hover { background: rgba(0,229,255,0.055); border-color: rgba(0,229,255,0.17); }
        .ch-item.is-new { border-color: rgba(0,229,255,0.16); }
        .chapter-row { display: flex; align-items: center; justify-content: space-between; padding: 0.68rem 0.9rem; border-radius: 9px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.052); cursor: pointer; transition: all 0.16s; gap: 0.75rem; }
        .chapter-row:hover { background: rgba(0,229,255,0.055); border-color: rgba(0,229,255,0.17); }
        .ch-num-wrap { display: flex; align-items: center; gap: 0.45rem; flex: 1; min-width: 0; }
        .ch-num-label { font-weight: 700; font-size: 0.83rem; color: rgba(255,255,255,0.55); white-space: nowrap; flex-shrink: 0; }
        .ch-num-val { font-weight: 800; font-size: 0.88rem; color: #fff; white-space: nowrap; flex-shrink: 0; }
        .ch-title-name { font-size: 0.76rem; color: rgba(255,255,255,0.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ch-meta { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
        .ch-date { font-size: 0.68rem; color: rgba(255,255,255,0.3); white-space: nowrap; }
        .ch-team { font-size: 0.68rem; color: rgba(0,229,255,0.55); white-space: nowrap; }
        .ch-views { font-size: 0.68rem; color: rgba(255,255,255,0.28); display: flex; align-items: center; gap: 0.25rem; }
        .ch-new { font-size: 0.58rem; font-weight: 700; color: var(--secondary); background: rgba(0,229,255,0.09); border: 1px solid rgba(0,229,255,0.2); padding: 2px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
        .ch-latest-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; box-shadow: 0 0 5px var(--secondary); margin-left: 2px; vertical-align: middle; }
        .ch-icon { font-size: 0.72rem; opacity: 1; }
        .load-more { text-align: center; margin-top: 0.75rem; padding: 0.62rem; border-radius: 9px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.065); cursor: pointer; font-size: 0.78rem; color: rgba(255,255,255,0.42); transition: all 0.18s; }
        .load-more:hover { background: rgba(0,229,255,0.06); color: var(--secondary); border-color: rgba(0,229,255,0.17); }

        /* ─── CHAPTERS RESPONSIVE ─── */
        @media (max-width: 600px) {
            .chapter-row { padding: 0.6rem 0.75rem; }
            .ch-num-val { font-size: 0.82rem; }
            .ch-title-name { font-size: 0.7rem; }
            .ch-meta { gap: 0.4rem; }
            .ch-team { font-size: 0.63rem; }
            .ch-date { font-size: 0.6rem; }
        }
        @media (max-width: 400px) {
            .ch-meta { gap: 0.3rem; }
            .ch-date { display: none; }
        }

        /* ─── RIGHT COLUMN ─── */
        .col-right {
            display: flex; flex-direction: column; gap: 1.2rem;
            padding-top: calc(var(--cover-overlap) + 1.2rem);
            align-self: start;
            position: absolute;
            right: var(--pad-x);
            top: 0;
            width: 268px;
        }
        .sdb { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 13px; padding: 0.95rem; }
        .sdb-title { font-family: 'Unbounded', cursive; font-size: 0.64rem; font-weight: 700; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.82rem; }

        /* Friends list */
        .friends-list { display: flex; flex-direction: column; gap: 0; }
        .friend-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.52rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .friend-row:last-child { border-bottom: none; }
        .friend-left { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1; overflow: hidden; }
        .friend-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.07); }
        .friend-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
        .friend-nick { font-size: 0.77rem; font-weight: 600; color: rgba(255,255,255,0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
        .friend-right { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; flex-wrap: nowrap; }
        .friend-status { font-size: 0.65rem; font-weight: 600; white-space: nowrap; }
        .friend-status.reading { color: var(--secondary); }
        .friend-status.planned { color: #B388FF; }
        .friend-status.completed { color: #3ecf8e; }
        .friend-status.on-hold { color: var(--accent); }
        .friend-status.dropped { color: var(--primary); }
        .friend-score { font-size: 0.66rem; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 0.15rem; white-space: nowrap; }
        .friend-score svg { flex-shrink: 0; }
        .friend-row.hidden-friend { display: none; }
        .friends-show-all {
            display: flex; align-items: center; justify-content: center; gap: 0.3rem;
            margin-top: 0.5rem; padding: 0.38rem 0;
            font-size: 0.7rem; font-weight: 600; color: rgba(0,229,255,0.7);
            cursor: pointer; border-radius: 8px;
            background: rgba(0,229,255,0.04); border: 1px solid rgba(0,229,255,0.12);
            transition: all 0.18s;
            font-family: 'Inter', sans-serif;
            width: 100%;
        }
        .friends-show-all:hover { background: rgba(0,229,255,0.09); color: var(--secondary); border-color: rgba(0,229,255,0.25); }
        .friends-show-all svg { transition: transform 0.2s; }
        .friends-show-all.expanded svg { transform: rotate(180deg); }

        /* Stats */
        .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-bottom: 0.85rem; }
        .stat-it { text-align: center; }
        .stat-n { font-family: 'Unbounded', cursive; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.14rem; }
        .stat-l { font-size: 0.68rem; color: rgba(255,255,255,0.36); }

        /* Lists bars */
        .list-bars { display: flex; flex-direction: column; gap: 0.42rem; }
        .lb-row { display: flex; align-items: center; gap: 0.52rem; }
        .lb-label { font-size: 0.67rem; color: rgba(255,255,255,0.5); width: 82px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .lb-track { flex: 1; height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
        .lb-fill { height: 100%; border-radius: 3px; }
        .lb-pct { font-size: 0.62rem; color: rgba(255,255,255,0.36); width: 30px; text-align: right; flex-shrink: 0; }

        /* Rating bars */
        .rating-bars { display: flex; flex-direction: column; gap: 0.35rem; }
        .rb-row { display: flex; align-items: center; gap: 0.42rem; }
        .rb-label { font-size: 0.67rem; color: rgba(255,255,255,0.45); width: 16px; text-align: right; flex-shrink: 0; }
        .rb-track { flex: 1; height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
        .rb-fill { height: 100%; border-radius: 3px; }
        .rb-count { font-size: 0.62rem; color: rgba(255,255,255,0.3); width: 30px; text-align: right; flex-shrink: 0; }

        /* Similar */
        /* ─── MANGA CARDS (profile style) ─── */
        .manga-card {
            background: linear-gradient(135deg, rgba(26,31,58,0.5), rgba(45,27,61,0.5));
            border-radius: 16px; overflow: hidden; cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(255,255,255,0.1); position: relative;
            display: flex; flex-direction: column; text-decoration: none; color: #fff;
        }
        .manga-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,0.4); border-color: var(--secondary); }
        .manga-card-img {
            position: relative; overflow: hidden;
            aspect-ratio: 3/3.7;
            clip-path: inset(0 0 10px 0);
            margin-bottom: -10px;
        }
        .manga-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
        .manga-card:hover .manga-card-img img { transform: scale(1.08); }
        .manga-card-rating {
            position: absolute; bottom: clamp(1rem,2vw,1.3rem); left: clamp(0.4rem,1vw,0.7rem);
            background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); color: #fff;
            padding: 0.22rem 0.5rem; border-radius: 12px;
            font-size: clamp(0.65rem,1.1vw,0.75rem); font-weight: 600; z-index: 2;
            display: flex; align-items: center; gap: 0.25rem;
        }
        .manga-card-type {
            position: absolute; top: clamp(0.4rem,1vw,0.7rem); right: clamp(0.4rem,1vw,0.7rem);
            background: var(--primary); color: #fff;
            padding: 0.22rem 0.5rem; border-radius: 16px;
            font-size: clamp(0.55rem,1vw,0.65rem); font-weight: 700; z-index: 2;
        }
        .manga-card-type.manhwa { background: linear-gradient(135deg,#7C4DFF,#B388FF); }
        .manga-card-type.manhua { background: linear-gradient(135deg,#FF6D00,#FFAB40); }
        .manga-card-type.manga { background: linear-gradient(135deg,var(--primary),#ff5577); }
        .manga-card-body { padding: clamp(0.6rem,1.5vw,1rem); flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
        .manga-card-title { font-size: clamp(0.78rem,1.4vw,0.92rem); font-weight: 700; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .manga-card-sub { font-size: clamp(0.65rem,1.1vw,0.75rem); color: rgba(255,255,255,0.5); }
        .fav-titles-row {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: clamp(0.6rem, 1.5vw, 1rem);
        }
        .fav-titles-row.cols-5 { grid-template-columns: repeat(5, 1fr); }
        @media (min-width: 1301px) {
            .fav-titles-row { grid-template-columns: repeat(7, 1fr); }
        }
        @media (max-width: 1300px) {
            .fav-titles-row .fav-card:nth-child(n+7) { display: none; }
        }
        @media (max-width: 1100px) {
            .fav-titles-row .fav-card:nth-child(n+6) { display: none; }
        }
        @media (max-width: 768px) {
            .fav-titles-row .fav-card:nth-child(n+5) { display: none; }
        }
        @media (max-width: 500px) {
            .fav-titles-row .fav-card:nth-child(n+4) { display: none; }
        }
        .fav-card .manga-card-img { aspect-ratio: 3/3.7; }
        .fav-card .manga-card-body { padding: 0.7rem 0.85rem 0.85rem; }
        .fav-card .manga-card-title { font-size: clamp(0.72rem, 1.3vw, 0.88rem); }
        .fav-card .manga-card-sub { font-size: clamp(0.65rem, 1vw, 0.75rem); }

        /* ─── COMMENTS SECTION ─── */
        .comments-section { margin-top: 0.5rem; }
        .comments-header { margin-bottom: 1.1rem; }
        .comments-title { font-family: 'Unbounded', cursive; font-size: 0.82rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
        .comments-count { display: inline-flex; align-items: center; justify-content: center; background: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.2); color: var(--secondary); border-radius: 20px; padding: 0.1rem 0.55rem; font-size: 0.7rem; }

        .new-comment-box { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
        .new-comment-inner { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
        .new-comment-textarea {
            width: 100%; background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
            padding: 0.75rem; color: #fff; font-family: 'Inter', sans-serif;
            font-size: 0.83rem; line-height: 1.5; resize: none; outline: none;
            min-height: 70px; transition: border-color 0.2s;
        }
        .new-comment-textarea:focus { border-color: rgba(0,229,255,0.35); }
        .new-comment-textarea::placeholder { color: rgba(255,255,255,0.28); }
        .new-comment-actions { display: flex; justify-content: flex-end; }

        .comments-list { display: flex; flex-direction: column; gap: 0; }
        @keyframes cmtHighlight {
            0%   { background: rgba(0,229,255,0.18); border-radius: 10px; }
            70%  { background: rgba(0,229,255,0.10); border-radius: 10px; }
            100% { background: transparent; }
        }
        .comment-card-full {
            display: flex; gap: 0.75rem;
            padding: 1rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.055);
            overflow: visible; position: relative;
        }
        .comment-card-full.cmt-highlighted { animation: cmtHighlight 1.8s ease-out forwards; }
        .comment-card-full:last-child { border-bottom: none; }
        .comment-card-full .comment-av {
            width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.68rem; font-weight: 700;
            overflow: hidden;
        }
        .comment-card-full .comment-av img {
            width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
        }
        .comment-main { flex: 1; min-width: 0; }
        .comment-card-full .comment-top { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.4rem; }
        .comment-card-full .comment-author { font-size: 0.82rem; font-weight: 700; color: #fff; }
        .comment-card-full .comment-date { font-size: 0.67rem; color: rgba(255,255,255,0.3); }
        .comment-card-full .comment-body { font-size: 0.83rem; line-height: 1.65; color: rgba(255,255,255,0.78); margin-bottom: 0.55rem; }
        .comment-footer { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.55rem; margin-bottom: 0.55rem; }
        .cmt-action-btn {
            display: inline-flex; align-items: center; gap: 0.3rem;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
            border-radius: 20px; padding: 0.22rem 0.65rem;
            color: rgba(255,255,255,0.75); font-size: 0.72rem; font-weight: 600;
            cursor: pointer; transition: all 0.18s; font-family: 'Inter', sans-serif;
            height: 28px; box-sizing: border-box; line-height: 1;
        }
        .cmt-action-btn:hover { border-color: rgba(255,255,255,0.32); color: #fff; background: rgba(255,255,255,0.1); }
        .cmt-action-btn.liked { border-color: rgba(0,229,255,0.4); color: var(--secondary); background: rgba(0,229,255,0.07); }
        .cmt-action-btn.disliked { border-color: rgba(255,23,68,0.4); color: var(--primary); background: rgba(255,23,68,0.07); }
        .cmt-icon { font-size: 0.75rem; }
        .reply-toggle-btn { border-color: transparent; }

        /* Reply form */
        .reply-form { margin-top: 0.65rem; display: flex; flex-direction: column; gap: 0.4rem; }
        .reply-textarea {
            width: 100%; background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
            padding: 0.6rem 0.75rem; color: #fff; font-family: 'Inter', sans-serif;
            font-size: 0.8rem; line-height: 1.5; resize: none; outline: none;
            min-height: 56px; transition: border-color 0.2s;
        }
        .reply-textarea:focus { border-color: rgba(0,229,255,0.3); }
        .reply-textarea::placeholder { color: rgba(255,255,255,0.25); }

        /* Reply form footer: media btn + send */
        .reply-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
        .reply-send-btn {
            background: linear-gradient(135deg, var(--primary), #ff5577);
            border: none; border-radius: 7px; color: #fff;
            padding: 0.38rem 1rem; font-size: 0.76rem; font-weight: 600;
            cursor: pointer; transition: box-shadow 0.2s;
        }
        .reply-send-btn:hover { box-shadow: 0 4px 12px rgba(255,23,68,0.35); }

        /* Media upload button (comments & replies) */
        .cmt-media-btn {
            display: inline-flex; align-items: center; gap: 0.3rem;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
            border-radius: 7px; padding: 0.32rem 0.7rem;
            color: rgba(255,255,255,0.55); font-size: 0.73rem; font-weight: 600;
            cursor: pointer; transition: all 0.18s; font-family: 'Inter', sans-serif;
        }
        .cmt-media-btn:hover { background: rgba(0,229,255,0.08); border-color: rgba(0,229,255,0.3); color: var(--secondary); }

        /* Media preview strip */
        .media-preview-strip {
            display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem;
        }
        .media-preview-item {
            position: relative; width: 72px; height: 72px;
            border-radius: 8px; overflow: hidden;
            border: 1px solid rgba(255,255,255,0.12);
            flex-shrink: 0;
        }
        .media-preview-item img, .media-preview-item video {
            width: 100%; height: 100%; object-fit: cover; display: block;
        }
        .media-preview-remove {
            position: absolute; top: 2px; right: 2px;
            background: rgba(0,0,0,0.7); border: none; border-radius: 50%;
            color: #fff; font-size: 0.6rem; width: 16px; height: 16px;
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            line-height: 1;
        }

        /* Attached media in comment body */
        .comment-media { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.55rem; }
        .comment-media img, .comment-media video {
            max-width: 240px; max-height: 180px;
            border-radius: 10px; object-fit: cover;
            border: 1px solid rgba(255,255,255,0.1);
            cursor: pointer;
        }
        @media (max-width: 480px) {
            .comment-media img, .comment-media video {
                max-width: 100%; width: 100%; height: auto; max-height: 220px;
            }
        }

        /* new-comment-box media area */
        .new-comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }

        /* ─── SPOILER ─── */
        .spoiler-wrap {
            display: inline; cursor: pointer;
        }
        .spoiler-label {
            display: inline-block;
            background: rgba(255,212,0,0.1); border: 1px solid rgba(255,212,0,0.3);
            color: var(--accent); border-radius: 6px;
            padding: 0.1rem 0.5rem; font-size: 0.72rem; font-weight: 600;
            cursor: pointer; user-select: none; transition: background 0.2s;
        }
        .spoiler-wrap:hover .spoiler-label { background: rgba(255,212,0,0.18); }
        .spoiler-text {
            display: none;
            filter: blur(4px);
            transition: filter 0.3s;
        }
        .spoiler-wrap.revealed .spoiler-label { display: none; }
        .spoiler-wrap.revealed .spoiler-text {
            display: inline;
            filter: blur(0);
        }


        /* ─── REPLIES COLLAPSE ─── */
        .replies-toggle-btn {
            display: inline-flex; align-items: center; gap: 0.35rem;
            background: none; border: none; color: var(--secondary);
            font-size: 0.75rem; font-weight: 600; cursor: pointer;
            font-family: 'Inter', sans-serif; padding: 0.25rem 0;
            margin-top: 0.4rem; transition: opacity 0.15s;
        }
        .replies-toggle-btn:hover { opacity: 0.75; }
        .replies-toggle-btn .rtb-arrow { font-size: 0.6rem; transition: transform 0.2s; }
        .replies-toggle-btn.open .rtb-arrow { transform: rotate(180deg); }
        .replies-list { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0; border-left: 2px solid rgba(0,229,255,0.18); padding-left: 0.75rem; margin-left: 0.25rem; }
        .reply-card { padding: 0; border-left: none !important; margin-left: 0 !important; border-bottom: none !important; }
        .replies-list .replies-list { border-left: 2px solid rgba(0,229,255,0.18); padding-left: 0.75rem; margin-left: 0.25rem; }
        .replies-hidden { display: none; }


        /* Responsive similar row */
        @media (max-width: 900px) {
            .similar-cards-row { grid-template-columns: repeat(4, 1fr); }
            .similar-cards-row .sim-card:nth-child(n+5) { display: none; }
        }
        @media (max-width: 680px) {
            /* Horizontal scroll on small screens */
            .similar-cards-row {
                display: flex !important;
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: 0.75rem;
                padding-bottom: 0.75rem;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .similar-cards-row::-webkit-scrollbar { display: none; }
            .similar-cards-row .sim-card {
                flex: 0 0 44vw !important;
                max-width: 180px;
                min-width: 130px;
                scroll-snap-align: start;
                display: flex !important;
                border-radius: 16px;
            }
            .fw-inner .sim-card:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.08); }
            .fw-inner .sim-card:hover .sim-card-img img { transform: none; }
        }
        @media (max-width: 480px) {
            .similar-cards-row .sim-card {
                flex: 0 0 48vw !important;
                max-width: 165px;
            }
            .new-comment-box .comment-av { display: none; }
        }

        /* ─── FULL-WIDTH SECTIONS ─── */
        .fullwidth-sections {
            max-width: 1200px;
            padding: 0 var(--pad-x);
        }
        @media (min-width: 901px) {
            .fullwidth-sections { display: none; }
        }
        @media (max-width: 900px) {
            .fullwidth-sections { margin-top: 0; }
        }
        /* Похожие + Комментарии — aligned with page-body */
        .content-main-sections {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--pad-x);
            box-sizing: border-box;
            width: 100%;
            flex: 1;
        }
        @media (min-width: 1201px) and (max-width: 1300px) {
            .content-main-sections { max-width: 100%; }
        }
        @media (min-width: 1301px) {
            .content-main-sections { padding: 0; }
        }
        @media (max-width: 900px) {
            .content-main-sections { max-width: 1200px; margin-top: 0; }
        }

        /* Похожие scroll on small screens */
        .fav-titles-scroll-wrap { }
        @media (max-width: 600px) {
            .fav-titles-scroll-wrap {
                overflow-x: auto; -webkit-overflow-scrolling: touch;
                padding-bottom: 0.5rem;
                scrollbar-width: none;
            }
            .fav-titles-scroll-wrap::-webkit-scrollbar { display: none; }
            .fav-titles-scroll-wrap .fav-titles-row {
                display: flex !important; flex-wrap: nowrap !important;
                gap: 0.5rem; width: max-content; grid-template-columns: unset !important;
            }
            .fav-titles-scroll-wrap .fav-titles-row .fav-card { width: 120px !important; flex-shrink: 0; display: block !important; min-width: 120px; }
        }

        .fw-section { margin-top: 2.5rem; margin-bottom: 0; }
        /* Fix: ensure spacing between Похожие and Комментарии matches spacing above Похожие */
        .content-main-sections .fw-section:first-child { padding-bottom: 0; margin-bottom: -4px; }
        .content-main-sections .fw-section + .fw-section { margin-top: 2.5rem; }
        @media (max-width: 900px) {
            .fw-section { margin-top: 1.5rem; margin-bottom: 0; }
            .content-main-sections .fw-section:first-child { margin-bottom: -6px; }
            .content-main-sections .fw-section + .fw-section { margin-top: 1.5rem; }
        }
        .fw-inner { width: 100%; }
        .fw-title {
            font-family: 'Unbounded', cursive;
            font-size: 0.82rem; font-weight: 700;
            color: rgba(255,255,255,0.55);
            text-transform: uppercase; letter-spacing: 0.1em;
            margin-bottom: 1rem;
        }

        /* fav-titles-row responsive */
        @media (max-width: 1100px) {
            .fav-titles-row { grid-template-columns: repeat(5, 1fr); }
        }
        @media (max-width: 768px) {
            .fav-titles-row { grid-template-columns: repeat(4, 1fr); }
        }
        @media (max-width: 500px) {
            .fav-titles-row { grid-template-columns: repeat(3, 1fr); }
        }

        /* Mobile meta-box block (shown ≤900px, before mobile-stats) */
        .mobile-meta-block { display: none; }
        @media (max-width: 900px) {
            .col-left .meta-box { display: none; }
            .mobile-meta-block {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0.5rem 1.5rem;
                margin-bottom: 0.75rem;
                background: rgba(255,255,255,0.03);
                border: 1px solid rgba(255,255,255,0.07);
                border-radius: 13px;
                padding: 0.9rem 1rem;
            }
            .mobile-meta-block .meta-row { gap: 0.1rem; }
            .mobile-meta-block .meta-label { font-size: 0.6rem; }
            .mobile-meta-block .meta-value { font-size: 0.78rem; }
        }
        @media (max-width: 480px) {
            .mobile-meta-block { grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
        }

        /* Mobile stats — hidden by default, shown on small screens */
        .mobile-stats-block { display: none; }
        .mobile-friends-links { display: none; }
        @media (max-width: 900px) {
            .mobile-friends-links { display: block; }
            .mobile-fl-grid { display: block; }
        }
        @media (max-width: 900px) {
            .mobile-stats-block {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
                margin-bottom: 0.75rem;
                background: rgba(255,255,255,0.03);
                border: 1px solid rgba(255,255,255,0.07);
                border-radius: 13px;
                padding: 1rem;
            }
            .mobile-stats-grid {
                grid-column: 1 / -1;
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 0.5rem;
                margin-bottom: 0.75rem;
                padding-bottom: 0.75rem;
                border-bottom: 1px solid rgba(255,255,255,0.07);
            }
            .mobile-stats-grid .ss-item {
                text-align: center; padding: 0.6rem 0.3rem;
                background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
                border-radius: 10px;
            }
            .mobile-stats-bars { grid-column: 1; }
            .mobile-stats-ratings { grid-column: 2; }
        }
        @media (max-width: 480px) {
            .mobile-stats-block {
                grid-template-columns: 1fr;
                padding: 0.85rem;
                gap: 0.75rem;
            }
            .mobile-stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.5rem;
            }
            .mobile-stats-bars { grid-column: 1; }
            .mobile-stats-ratings { grid-column: 1; }
            .cover-badge { font-size: 0.55rem; padding: 2px 6px; }
            .cover-vol { font-size: 0.55rem; padding: 2px 6px; }
        }

        /* ─── LOGOUT MODAL ─── */
        .logout-modal-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(0,0,0,0.7); z-index: 8000;
            backdrop-filter: blur(4px);
            align-items: center; justify-content: center;
        }
        .logout-modal-overlay.open { display: flex; animation: fadeIn 0.2s ease-out; }
        .logout-modal {
            background: rgba(13,17,38,0.99);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 20px; padding: 2rem;
            max-width: 380px; width: calc(100% - 2rem);
            box-shadow: 0 24px 60px rgba(0,0,0,0.6);
            text-align: center;
            animation: slideDown 0.25s ease-out;
        }
        .logout-modal-icon {
            width: 56px; height: 56px; border-radius: 16px;
            background: rgba(255,23,68,0.08); border: 1px solid rgba(255,23,68,0.2);
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 1rem;
        }
        .logout-modal-title { font-family: 'Unbounded', cursive; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
        .logout-modal-text { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; line-height: 1.6; }
        .logout-modal-btns { display: flex; gap: 0.75rem; justify-content: center; }
        .logout-btn-confirm {
            background: linear-gradient(135deg, var(--primary), #ff5577);
            border: none; border-radius: 10px; color: #fff;
            font-size: 0.85rem; font-weight: 700; padding: 0.65rem 1.5rem;
            cursor: pointer; font-family: 'Inter', sans-serif; transition: box-shadow 0.2s;
        }
        .logout-btn-confirm:hover { box-shadow: 0 4px 16px rgba(255,23,68,0.4); }
        .logout-btn-cancel {
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
            border-radius: 10px; color: rgba(255,255,255,0.8);
            font-size: 0.85rem; font-weight: 600; padding: 0.65rem 1.5rem;
            cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s;
        }
        .logout-btn-cancel:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: #fff; }

        /* ─── REVIEWS ─── */
        .rev-list { display: flex; flex-direction: column; gap: 1rem; }
        .rev-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 1.1rem 1.2rem; }
        .rev-card-head { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 0.8rem; }
        .rev-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.07); margin-top: 1px; }
        .rev-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
        .rev-meta-col { flex: 1; min-width: 0; }
        .rev-meta-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
        .rev-meta { flex: 1; min-width: 0; overflow: hidden; }
        /* rev-nick: display:block!important чтобы ellipsis работал с gradient-классами */
        .rev-nick { display: block !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; font-weight: 700; color: #fff; }
        .rev-head-right { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; flex-wrap: nowrap; }
        .rev-actions-row { display: none; }
        @media (max-width: 480px) {
            .rev-score-badge { font-size: 0.67rem; padding: 0.13rem 0.36rem; gap: 0.18rem; border-radius: 6px; }
            .rev-score-badge svg { width: 9px; height: 9px; }
            .rev-status-chip { font-size: 0.61rem; padding: 0.13rem 0.36rem; border-radius: 6px; }
            .rev-head-right .rev-own-actions { display: none; }
            .rev-actions-row { display: flex; justify-content: flex-end; gap: 0.2rem; margin-top: 0.3rem; }
        }
        .rev-author { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .rev-date { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 0.1rem; }
        .rev-score-badge { display: flex; align-items: center; gap: 0.3rem; background: rgba(255,214,0,0.1); border: 1px solid rgba(255,214,0,0.25); border-radius: 8px; padding: 0.22rem 0.55rem; font-size: 0.78rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
        .rev-status-chip { font-size: 0.68rem; font-weight: 600; padding: 0.22rem 0.55rem; border-radius: 8px; background: rgba(62,207,142,0.1); border: 1px solid rgba(62,207,142,0.25); color: #3ecf8e; white-space: nowrap; }
        /* rev scores grid (card display) */
        .rev-scores-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.45rem; margin-bottom: 0.85rem; }
        @media (max-width:400px) { .rev-scores-grid { grid-template-columns: repeat(2,1fr); } }
        .rev-dr-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 0.6rem 0.75rem; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
        .rev-dr-icon { display: flex; flex-shrink: 0; }
        .rev-dr-icon svg { width: 15px; height: 15px; }
        .rev-dr-info { min-width: 0; flex: 1; }
        .rev-dr-label { font-size: 0.68rem; color: rgba(255,255,255,0.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
        .rev-dr-val { font-size: 0.95rem; font-weight: 700; color: var(--accent); }
        .rev-dr-max { font-size: 0.62rem; color: rgba(255,255,255,0.2); margin-left: 0.12rem; }
        .rev-text { font-size: 0.82rem; color: rgba(255,255,255,0.8); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
        .rev-text.collapsed { display: -webkit-box; -webkit-line-clamp: 7; line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
        .rev-expand-btn { margin-top: 0.5rem; font-size: 0.75rem; color: var(--secondary); cursor: pointer; background: none; border: none; padding: 0; font-family: 'Inter', sans-serif; }
        .rev-own-actions { display: flex; gap: 0.4rem; margin-left: auto; }
        .rev-own-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); cursor: pointer; color: rgba(255,255,255,0.5); transition: all 0.18s; }
        .rev-own-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
        .rev-own-btn.del:hover { background: rgba(255,23,68,0.1); border-color: rgba(255,23,68,0.3); color: var(--primary); }
        .rev-empty { text-align: center; padding: 2.5rem 1rem; color: rgba(255,255,255,0.35); }
        .rev-empty-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
        /* Write review form */
        .rev-write-wrap { margin-bottom: 1.5rem; }
        .rev-write-btn { display: flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%; padding: 0.58rem 0.75rem; border-radius: 10px; background: linear-gradient(135deg,rgba(0,229,255,0.1),rgba(179,136,255,0.1)); border: 1px solid rgba(0,229,255,0.3); color: var(--secondary); font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Unbounded',cursive; letter-spacing: 0.03em; }
        .rev-write-btn:hover { background: linear-gradient(135deg,rgba(0,229,255,0.18),rgba(179,136,255,0.18)); border-color: rgba(0,229,255,0.5); }
        .rev-form { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; padding: 1.1rem 1.2rem; display: none; }
        .rev-form.open { display: block; margin-top: 0.8rem; }
        .rev-form-title { font-family: 'Unbounded',cursive; font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
        .rev-form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
        .rev-form-label { font-size: 0.7rem; color: rgba(255,255,255,0.45); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
        .rev-form-select { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.5rem 0.65rem; color: #fff; font-size: 0.8rem; font-family: 'Inter',sans-serif; outline: none; }
        .rev-form-select:focus { border-color: rgba(0,229,255,0.35); }
        .rev-form-select option { background: #12162e; }
        .rev-status-readonly { cursor: default; color: rgba(255,255,255,0.7); user-select: none; }
        /* slider cards in form (like titles.html r-card) */
        .rev-r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.9rem; }
        @media (max-width: 500px) { .rev-r-grid { grid-template-columns: 1fr; } }
        .rev-r-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 0.7rem; }
        .rev-r-top { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem; }
        .rev-r-label { font-size: 0.72rem; color: rgba(255,255,255,0.55); flex: 1; }
        .rev-r-val { font-size: 0.82rem; font-weight: 700; color: var(--accent); min-width: 1.5rem; text-align: right; }
        .rev-r-slider { width: 100%; height: 4px; border-radius: 2px; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,0.1); display: block; touch-action: none; }
        .rev-r-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--rthumb,var(--secondary)); cursor: grab; box-shadow: 0 0 6px var(--rthumb,var(--secondary)); }
        .rev-r-slider:active::-webkit-slider-thumb { cursor: grabbing; }
        .rev-r-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--rthumb,var(--secondary)); cursor: grab; border: none; box-shadow: 0 0 6px var(--rthumb,var(--secondary)); }
        /* overall score display */
        .rev-overall-disp { display: flex; align-items: center; gap: 1.1rem; padding: 0.9rem 1.1rem; background: linear-gradient(135deg,rgba(255,214,0,0.08),rgba(255,120,0,0.05)); border: 1px solid rgba(255,214,0,0.22); border-radius: 14px; margin-bottom: 0.9rem; position: relative; overflow: hidden; }
        .rev-overall-disp::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 80% 50%,rgba(255,214,0,0.06),transparent 70%); pointer-events:none; }
        .rev-overall-left { flex: 1; min-width: 0; }
        .rev-overall-lbl { font-size: 0.63rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.12em; display: block; margin-bottom: 0.5rem; font-weight: 700; }
        .rev-overall-bar-wrap { height: 6px; background: rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; }
        .rev-overall-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#FFD600,#FF9800); transition: width 0.4s ease; box-shadow: 0 0 8px rgba(255,214,0,0.35); }
        .rev-overall-num { font-size: 1.35rem; font-weight: 800; line-height: 1; white-space: nowrap; background: linear-gradient(135deg,#FFD600,#FF9800); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
        .rev-overall-denom { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.25); -webkit-text-fill-color: rgba(255,255,255,0.25); }
        /* list info banner */
        .rev-list-info { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.8rem; border-radius: 9px; margin-bottom: 0.85rem; font-size: 0.74rem; color: rgba(255,255,255,0.6); }
        .rev-list-info a { color: var(--secondary); text-decoration: none; font-weight: 600; }
        .rev-textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 0.8rem; color: #fff; font-family: 'Inter',sans-serif; font-size: 0.83rem; line-height: 1.65; resize: vertical; outline: none; min-height: 120px; transition: border-color 0.2s; box-sizing: border-box; }
        .rev-textarea:focus { border-color: rgba(0,229,255,0.35); }
        .rev-textarea::placeholder { color: rgba(255,255,255,0.28); }
        .rev-form-footer { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.85rem; }
        .rev-cancel-btn { padding: 0.5rem 1rem; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 0.75rem; cursor: pointer; font-family: 'Unbounded',cursive; font-weight: 600; letter-spacing: 0.02em; }
        .rev-submit-btn { padding: 0.5rem 1.2rem; border-radius: 8px; background: linear-gradient(135deg,rgba(0,229,255,0.15),rgba(179,136,255,0.15)); border: 1px solid rgba(0,229,255,0.35); color: var(--secondary); font-size: 0.75rem; font-weight: 700; cursor: pointer; font-family: 'Unbounded',cursive; letter-spacing: 0.03em; }
        .rev-submit-btn:hover { background: linear-gradient(135deg,rgba(0,229,255,0.25),rgba(179,136,255,0.25)); }
        .rev-login-hint { padding: 0.75rem 1rem; background: rgba(0,229,255,0.04); border: 1px solid rgba(0,229,255,0.12); border-radius: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }

        /* ─── TOAST ─── */
        #toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(calc(100% + 3rem)); background: rgba(16,20,46,0.97); border: 1px solid rgba(0,229,255,0.28); border-radius: 12px; padding: 0.7rem 1.4rem; color: #fff; font-size: 0.86rem; font-weight: 600; z-index: 9999; transition: transform 0.3s ease; pointer-events: none; backdrop-filter: blur(16px); }
        #toast.show { transform: translateX(-50%) translateY(0); }

        /* ─── RESPONSIVE ─── */
        @media (min-width: 1201px) and (max-width: 1300px) {
            .page-body { padding-left: var(--pad-x); padding-right: var(--pad-x); max-width: 100%; }
            .col-right { right: var(--pad-x); }
        }
        @media (min-width: 1301px) and (max-width: 1399px) {
            .page-body { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
            .col-right { right: calc(50% - 600px); }
            .hero-outer { padding: 0; }
            .hero-inner { max-width: 1200px; margin: 0 auto; }
        }
        @media (min-width: 1400px) {
            .page-body { padding-left: 0; padding-right: 0; }
            .col-right { right: 0; }
        }
        @media (max-width: 1100px) {
            :root { --cover-w: 185px; --cover-overlap: 145px; }
            .page-body { grid-template-columns: var(--cover-w) 1fr; column-gap: 1.5rem; }
            .col-right { width: 230px; right: var(--pad-x); }
            /* user-chip handles mobile menu */
        }
        @media (max-width: 900px) {
            :root { --cover-w: 165px; --cover-overlap: 130px; }
            .page-body {
                grid-template-columns: var(--cover-w) 1fr;
                grid-template-rows: var(--cover-overlap) auto auto;
            }
            .col-left { grid-row: 1 / 4; }
            .col-center-top { grid-column: 2; grid-row: 1; }
            .col-center-bottom { grid-column: 2; grid-row: 2 / 4; }
            .col-right { display: none; }
            .hero-inner { height: clamp(180px, 27vw, 300px); }
        }
        @media (max-width: 800px) {
            /* On mobile: user-chip is the menu trigger, search moves to row below */
            .user-menu-wrap { display: flex !important; }
            nav .search-bar { display: none; }
            nav .nav-links { display: none; }
            .header-search-row { display: block; }
            .user-chip { padding: 4px 10px 4px 4px; max-width: 160px; }
            .user-chip-name { display: block; font-size: 0.78rem; }
            .mobile-nav { top: calc(var(--header-h) + 54px); }
            .hero-outer { margin-top: calc(var(--header-h) + 54px); }
        }
        @media (min-width: 600px) and (max-width: 800px) {
            .user-chip { max-width: 200px; }
            .user-chip-name { max-width: 130px; }
        }
        @media (max-width: 800px) {
            .user-dropdown {
                position: fixed;
                top: calc(var(--header-h) + 54px) !important;
                right: 0 !important; left: 0 !important;
                width: 100vw !important; min-width: unset !important;
                border-radius: 0 0 18px 18px !important;
                border-top: 1px solid rgba(255,255,255,0.06) !important;
                max-height: calc(100vh - var(--header-h) - 54px - 20px);
                overflow-y: auto;
                padding-left: var(--pad-x) !important;
                padding-right: var(--pad-x) !important;
            }
            .dropdown-header { margin-left: -1px; margin-right: -1px; }
            .dropdown-item.mobile-only { display: flex; }
        }

        @media (max-width: 860px) {
            .title-name { max-width: 90%; }
        }
        @media (max-width: 680px) {
            :root { --cover-w: 120px; --cover-overlap: 100px; }
            .hero-inner { height: clamp(150px, 38vw, 240px); }
            .page-body { column-gap: 0.9rem; }
            .title-name { font-size: clamp(1.1rem, 5vw, 1.5rem); }
        }
        @media (max-width: 480px) {
            :root { --cover-overlap: 0px; }

            /* ── Hero: sits right below header, full-width, rounded bottom ── */
            .hero-outer {
                padding: 0;
                margin-top: var(--header-h);
                margin-bottom: 0;
            }
            .hero-inner {
                height: 250px;
                border-radius: 0 0 20px 20px;
                max-width: 100%;
                overflow: hidden;
                position: relative;
            }
            .hero-bg { filter: brightness(0.45) saturate(1.2); }
            .hero-fade-bottom {
                background: linear-gradient(to bottom,
                    rgba(13,17,40,0) 0%,
                    rgba(13,17,40,0.5) 60%,
                    rgba(13,17,40,0.95) 100%
                );
            }

            /* ── page-body: pulled up to overlap hero ── */
            .page-body {
                grid-template-columns: 100px 1fr;
                grid-template-rows: auto auto auto;
                margin-top: -180px;
                padding-top: 1rem;
                padding-bottom: 1rem;
                padding-left: var(--pad-x);
                padding-right: var(--pad-x);
                position: relative;
                z-index: 10;
            }

            /* col-left: cover card only */
            .col-left {
                grid-column: 1;
                grid-row: 1;
                flex-direction: column;
                gap: 0.5rem;
                align-items: stretch;
                position: relative;
                z-index: 11;
            }
            .cover-card { width: 100%; aspect-ratio: 2/3; flex-shrink: 0; }

            /* hide btn-read in col-left on mobile, show inline version */
            .btn-read { display: none; }
            .btn-read-mobile {
                display: flex !important; align-items: center; justify-content: center; gap: 0.4rem;
                padding: 0.58rem 0.75rem; border-radius: 10px; cursor: pointer;
                font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600;
                background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(179,136,255,0.15));
                border: 1px solid rgba(0,229,255,0.4);
                box-shadow: 0 0 14px rgba(0,229,255,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
                color: #fff !important; -webkit-text-fill-color: #fff !important;
                width: 100%; margin-top: 0.5rem;
                opacity: 1 !important; filter: none !important;
                transition: all 0.22s;
                position: relative; z-index: 11; overflow: hidden;
            }
            .btn-read-mobile .btn-read-text {
                background: linear-gradient(135deg, var(--secondary), var(--purple));
                -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
                font-weight: 700;
            }
            .btn-read-mobile::after {
                content: ''; position: absolute; inset: 0;
                background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.1) 50%, transparent 100%);
                background-size: 200% 100%; animation: btnReadShimmer 2.5s linear infinite; pointer-events: none;
            }
            .btn-read-mobile:hover {
                background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(179,136,255,0.25));
                border-color: rgba(0,229,255,0.7);
                box-shadow: 0 0 22px rgba(0,229,255,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
                transform: translateY(-1px);
            }

            /* col-center-top: title + ratings, right of cover */
            .col-center-top {
                grid-column: 2;
                grid-row: 1;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                padding: 0 0 0 0.75rem;
                position: relative;
                z-index: 11;
            }
            .title-name { font-size: clamp(1rem, 5vw, 1.35rem); }
            .title-name-en { font-size: 0.72rem; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
            .title-meta-row { flex-wrap: wrap; gap: 0.4rem; }
            .rating-pill { padding: 0.22rem 0.5rem; }
            .rating-num { font-size: 0.85rem; }
            .rating-count { font-size: 0.62rem; }
            .status-badge { font-size: 0.6rem; padding: 0.2rem 0.55rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

            /* col-center-bottom: full width, row 3 */
            .col-center-bottom {
                grid-column: 1 / -1;
                grid-row: 3;
                padding-top: 1rem;
                z-index: 25;
            }
        }

        @media (min-width: 481px) and (max-width: 499px) {
    .status-badge { font-size: 0.4rem; }
}

        @media (min-width: 481px) and (max-width: 525px) {
            .title-name-en { font-size: 0.73rem; }
        }
        @media (min-width: 500px) and (max-width: 525px) {
            .status-badge { font-size: 0.5rem; }
        }

        /* ─── AI BADGE ─── */
        @keyframes aiBadgeGlow {
            0%, 100% { border-color: rgba(179,136,255,0.18); box-shadow: 0 0 0 rgba(179,136,255,0); }
            50% { border-color: rgba(179,136,255,0.4); box-shadow: 0 0 12px rgba(179,136,255,0.12); }
        }
        .ai-badge {
            display: inline-flex; align-items: center; gap: 0.4rem;
            margin-top: 0.75rem; padding: 0.35rem 0.75rem;
            border-radius: 8px; background: rgba(179,136,255,0.08);
            border: 1px solid rgba(179,136,255,0.18);
            font-size: 0.75rem; color: rgba(179,136,255,0.75);
            user-select: none; line-height: 1;
            animation: aiBadgeGlow 3s ease-in-out infinite;
        }
        .ai-badge svg { flex-shrink: 0; opacity: 0.7; }

        /* ─── DESCRIPTION PARAGRAPHS ─── */
        #descText p { margin-bottom: 0.75em; }
        #descText p:last-child { margin-bottom: 0; }

        /* Mobile desc collapse button */
        .desc-more-btn {
            display: none;
            margin-top: 0;
            margin-bottom: 1rem;
            background: none;
            border: 1px solid rgba(0,229,255,0.3);
            border-radius: 20px;
            color: var(--secondary);
            font-size: 0.78rem;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            padding: 0.3rem 1rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .desc-more-btn:hover { background: rgba(0,229,255,0.08); }

        /* Wrapper to contain desc + button on mobile */
        .desc-collapse-wrap { position: relative; }

        @media (max-width: 1439px) {
            .desc-collapse-wrap:not(.expanded) #descText {
                max-height: 18em;
                overflow: hidden;
            }
            .desc-more-btn { display: inline-block; }
        }
        @media (max-width: 1024px) {
            .desc-collapse-wrap:not(.expanded) #descText { max-height: 14em; }
        }
        @media (max-width: 768px) {
            .desc-collapse-wrap:not(.expanded) #descText { max-height: 10em; }
        }
        @media (max-width: 480px) {
            .desc-collapse-wrap:not(.expanded) #descText { max-height: 6em; }
            /* meta-box on tiny screens */
            .meta-box { padding: 0.6rem; font-size: 0.72rem; }
            .meta-value { font-size: 0.7rem; }
        }

        /* ─── MEDIA LIGHTBOX ─── */
        .media-lightbox-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(0,0,0,0.92); z-index: 7000;
            backdrop-filter: blur(8px);
            align-items: center; justify-content: center;
            animation: fadeIn 0.2s ease-out;
        }
        .media-lightbox-overlay.open { display: flex; }
        .media-lightbox-inner {
            position: relative; max-width: 90vw; max-height: 85vh;
            display: flex; align-items: center; justify-content: center;
        }
        .media-lightbox-inner img {
            max-width: 100%; max-height: 85vh;
            border-radius: 12px; object-fit: contain;
            box-shadow: 0 0 60px rgba(0,0,0,0.6);
            display: block;
        }
        .media-lightbox-close {
            position: absolute; top: 8px; right: 8px;
            background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50%; color: #fff; cursor: pointer;
            font-size: 1rem; width: 32px; height: 32px;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.2s; z-index: 1;
        }
        .media-lightbox-close:hover { background: rgba(255,255,255,0.2); }

        /* ─── COMMENTS MOBILE ─── */
        @media (max-width: 500px) {
            .wall-cmt-footer { flex-wrap: wrap; gap: 0.3rem; }
            .wall-cmt-btn { font-size: 0.68rem; padding: 0.18rem 0.5rem; height: 26px; }
            .wall-replies-list .comment-card-full { overflow: visible; min-width: 0; }
            .wall-replies-list .cmt-main { min-width: 0; overflow: visible; }
            .wall-new-comment { padding: 0.65rem; gap: 0.5rem; }
            .wall-guest-icon { width: 12px; height: 12px; }
            .wall-new-textarea { font-size: 0.79rem; padding: 0.6rem; min-height: 58px; }
            .wall-send-btn, .wall-attach-btn { padding: 0.4rem 0.85rem !important; font-size: 0.75rem !important; height: 32px !important; }
            .wall-attach-btn { display: inline-flex !important; }
        }
        /* Ensure comment cards don't clip content */
        .profile-wall-comments .comment-card-full { overflow: visible !important; }
        .cmt-own-actions { opacity: 0; }
        @media (hover: none) {
            .profile-wall-comments .comment-card-full .cmt-own-actions { opacity: 1; }
        }

        /* ─── WALL COMMENTS ─── */
        .profile-wall-comments { }
        .profile-wall-comments .comment-card-full {
            display: flex; gap: 0.75rem;
            padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .profile-wall-comments .comment-card-full:last-child { border-bottom: none; }
        .profile-wall-comments .cmt-av {
            width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
            overflow: hidden; background: rgba(255,255,255,0.07);
        }
        .profile-wall-comments .cmt-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
        .profile-wall-comments .cmt-main { flex: 1; min-width: 0; padding-right: 1.2rem; }
        .profile-wall-comments .cmt-top { display: flex; align-items: center; gap: 0.45rem; flex-wrap: nowrap; }
        .profile-wall-comments .cmt-author { font-size: 0.82rem; font-weight: 700; color: #fff; }
        .profile-wall-comments .cmt-date { font-size: 0.67rem; color: rgba(255,255,255,0.3); align-self: center; line-height: 1; vertical-align: middle; position: relative; top: 1px; }
        .profile-wall-comments .cmt-body { font-size: 0.83rem; line-height: 1.65; color: rgba(255,255,255,0.78); margin-bottom: 0.55rem; }
        .cmt-author-premium {
            background: linear-gradient(135deg, var(--secondary), var(--purple));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
            font-weight: 700;
        }
        .cmt-author-ultimate {
            background: linear-gradient(135deg, #FFAA00, #FF3864);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
            font-weight: 700;
        }
        .cmt-own-actions { margin-left: auto; display: flex; gap: 0.25rem; opacity: 0; transition: opacity 0.15s; }
        .profile-wall-comments .comment-card-full:hover .cmt-own-actions { opacity: 1; }
        .cmt-own-action-btn {
            background: none; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
            color: rgba(255,255,255,0.4); font-size: 0.7rem; padding: 3px 6px;
            cursor: pointer; display: flex; align-items: center; transition: all 0.15s;
        }
        .cmt-own-action-btn:hover { border-color: rgba(255,255,255,0.25); color: #fff; background: rgba(255,255,255,0.07); }
        .cmt-own-action-btn.del:hover { border-color: rgba(255,23,68,0.4); color: var(--primary); background: rgba(255,23,68,0.07); }
        .cmt-pinned-banner { display: flex; align-items: center; gap: 0.3rem; font-size: 0.67rem; color: rgba(255,210,80,0.75); margin-bottom: 0.45rem; }
        .cmt-pin-btn { position: absolute; top: 1rem; right: 0; background: none; border: none; padding: 2px 3px; cursor: pointer; color: rgba(255,255,255,0.2); display: inline-flex; align-items: center; transition: color 0.15s; }
        .cmt-pin-btn:hover { color: rgba(0,229,255,0.7); }
        .cmt-pin-btn.pinned { color: rgba(0,229,255,0.85); }
        .wall-cmt-footer { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; margin-bottom: 0.4rem; }
        .wall-cmt-btn {
            display: inline-flex; align-items: center; gap: 0.28rem;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
            border-radius: 20px; color: rgba(255,255,255,0.72); font-size: 0.72rem; font-weight: 600;
            padding: 0.35rem 0.6rem; cursor: pointer;
            font-family: 'Inter', sans-serif; transition: all 0.18s;
        }
        .wall-cmt-btn svg { display: block; flex-shrink: 0; }
        .wall-cmt-btn:hover { border-color: rgba(255,255,255,0.32); color: #fff; background: rgba(255,255,255,0.1); }
        .wall-cmt-btn.liked { border-color: rgba(0,229,255,0.4); color: var(--secondary); background: rgba(0,229,255,0.07); }
        .wall-cmt-btn.disliked { border-color: rgba(255,23,68,0.4); color: var(--primary); background: rgba(255,23,68,0.07); }
        .wall-edit-form { display: none; margin-top: 0.5rem; }
        .wall-edit-form.open { display: block; }
        .wall-edit-textarea {
            width: 100%; background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
            padding: 0.65rem; color: #fff; font-family: 'Inter', sans-serif;
            font-size: 0.82rem; line-height: 1.5; resize: none; outline: none;
            min-height: 60px; transition: border-color 0.2s; box-sizing: border-box; width: 100%;
        }
        .wall-edit-textarea:focus { border-color: rgba(0,229,255,0.5); }
        .wall-edit-footer { display: flex; gap: 0.4rem; margin-top: 0.4rem; justify-content: flex-end; }
        .wall-edit-save {
            background: rgba(0,229,255,0.12); border: 1px solid rgba(0,229,255,0.3);
            border-radius: 8px; color: var(--secondary); font-size: 0.78rem; font-weight: 600;
            padding: 0.38rem 0.9rem; cursor: pointer; font-family: 'Inter', sans-serif;
        }
        .wall-edit-save:hover { background: rgba(0,229,255,0.22); }
        .wall-edit-cancel {
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px; color: rgba(255,255,255,0.55); font-size: 0.78rem;
            padding: 0.38rem 0.9rem; cursor: pointer; font-family: 'Inter', sans-serif;
        }
        .wall-edit-cancel:hover { background: rgba(255,255,255,0.08); color: #fff; }
        .wall-edit-attach {
            display: inline-flex; align-items: center; justify-content: center;
            width: 28px; height: 28px; border-radius: 7px; cursor: pointer; flex-shrink: 0;
            border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
            color: rgba(255,255,255,0.45); transition: all 0.18s; margin-right: auto;
        }
        .wall-edit-attach:hover { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3); color: var(--secondary); }
        .wall-edit-media-preview { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.35rem; }
        .wall-edit-media-preview:empty { display: none; }
        .wall-reply-form { margin-top: 0.65rem; display: none; flex-direction: column; gap: 0.4rem; }
        .wall-reply-form.open { display: flex; }
        .wall-reply-textarea {
            width: 100%; background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1); border-radius: 9px;
            padding: 0.6rem; color: #fff; font-family: 'Inter', sans-serif;
            font-size: 0.8rem; line-height: 1.5; resize: none; outline: none;
            min-height: 54px; transition: border-color 0.2s;
        }
        .wall-reply-textarea:focus { border-color: rgba(0,229,255,0.3); }
        .wall-reply-textarea::placeholder { color: rgba(255,255,255,0.25); }
        .wall-reply-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
        .wall-reply-attach {
            display: inline-flex; align-items: center; justify-content: center;
            width: 28px; height: 28px; border-radius: 7px; cursor: pointer; flex-shrink: 0;
            border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
            color: rgba(255,255,255,0.45); transition: all 0.18s; margin-right: auto;
        }
        .wall-reply-attach:hover { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3); color: var(--secondary); }
        .wall-reply-media-preview { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.35rem; }
        .wall-reply-media-preview:empty { display: none; }
        .wall-reply-media-item { position: relative; display: inline-flex; }
        .wall-reply-media-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 7px; border: 1px solid rgba(255,255,255,0.1); display: block; }
        .rm-reply-media { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; background: rgba(255,23,68,0.85); border-radius: 50%; border: none; cursor: pointer; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
        .wall-reply-send {
            background: linear-gradient(135deg, var(--primary), #ff5577);
            border: none; border-radius: 9px; color: #fff;
            padding: 0.45rem 1.2rem; font-size: 0.8rem; font-weight: 700;
            cursor: pointer; font-family: 'Inter', sans-serif; transition: box-shadow 0.2s;
        }
        .wall-reply-send:hover { box-shadow: 0 4px 12px rgba(255,23,68,0.35); }
        .wall-replies-list { margin-top: 0.5rem; display: none; flex-direction: column; gap: 0; border-left: 2px solid rgba(0,229,255,0.18); padding-left: 0.75rem; margin-left: 0.25rem; }
        .wall-replies-list.open { display: flex; }
        .wall-new-comment {
            display: flex; gap: 0.75rem; margin-bottom: 1.2rem;
            background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09);
            border-radius: 11px; padding: 0.85rem;
        }
        .wall-new-inner { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
        .wall-new-textarea {
            width: 100%; background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
            padding: 0.75rem; color: #fff; font-family: 'Inter', sans-serif;
            font-size: 0.83rem; line-height: 1.5; resize: none; outline: none;
            min-height: 66px; transition: border-color 0.2s;
        }
        .wall-new-textarea:focus { border-color: rgba(0,229,255,0.35); }
        .wall-new-textarea::placeholder { color: rgba(255,255,255,0.28); }
        .wall-new-actions { display: flex; align-items: center; justify-content: space-between; }
        .wall-guest-icon { width: 20px; height: 20px; }
        .wall-send-btn {
            display: inline-flex; align-items: center; gap: 0.4rem;
            background: linear-gradient(135deg, var(--primary), #ff5577);
            border: none; border-radius: 9px; color: #fff;
            padding: 0.45rem 1.2rem; font-size: 0.8rem; font-weight: 700;
            cursor: pointer; font-family: 'Inter', sans-serif; transition: box-shadow 0.2s;
            height: 36px; box-sizing: border-box; line-height: 1;
        }
        .wall-send-btn:hover { box-shadow: 0 4px 14px rgba(255,23,68,0.35); }
        .wall-attach-btn {
            display: inline-flex !important; align-items: center !important; gap: 0.4rem !important;
            background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.14) !important;
            color: rgba(255,255,255,0.75) !important; padding: 0.45rem 1.2rem !important;
            font-size: 0.8rem !important; font-weight: 700 !important; border-radius: 9px !important;
            line-height: 1 !important; box-sizing: border-box !important; height: 36px !important;
        }
        .wall-attach-btn:hover { background: rgba(255,255,255,0.12) !important; border-color: rgba(255,255,255,0.28) !important; color: #fff !important; box-shadow: none !important; }
        .wall-replies-toggle {
            display: inline-flex; align-items: center; gap: 0.35rem;
            background: none; border: none; color: var(--secondary);
            font-size: 0.75rem; font-weight: 600; cursor: pointer;
            font-family: 'Inter', sans-serif; padding: 0.25rem 0;
            margin-top: 0.35rem; transition: opacity 0.15s;
        }
        .wall-replies-toggle:hover { opacity: 0.75; }
        .wall-textarea-wrap { position: relative; }
        .wall-drop-hint {
            position: absolute; inset: 0;
            display: none;
            flex-direction: column; align-items: center; justify-content: center;
            gap: 0.45rem;
            border-radius: 10px;
            color: var(--secondary);
            font-size: 0.84rem; font-weight: 600;
            pointer-events: none;
            z-index: 5;
            background: rgba(0,229,255,0.04);
        }
        .wall-drop-hint svg { opacity: 0.75; }
        .wall-textarea-wrap.drag-over .wall-drop-hint { display: flex; }
        .wall-textarea-wrap.drag-over .wall-new-textarea {
            border-color: var(--secondary) !important;
            background: rgba(0,229,255,0.06) !important;
            box-shadow: 0 0 0 2px rgba(0,229,255,0.18), inset 0 0 24px rgba(0,229,255,0.03);
            color: transparent;
        }
        .media-preview-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; }
        .media-preview-item {
            position: relative;
            width: 68px; height: 68px; flex-shrink: 0;
            border-radius: 9px; overflow: hidden;
            border: 1px solid rgba(255,255,255,0.14);
            background: rgba(255,255,255,0.05);
        }
        .media-preview-item img, .media-preview-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
        .media-preview-remove {
            position: absolute; top: 4px; right: 4px;
            width: 18px; height: 18px; border-radius: 50%;
            background: rgba(10,14,39,0.82);
            border: 1px solid rgba(255,255,255,0.22);
            color: rgba(255,255,255,0.9);
            font-size: 0.55rem; line-height: 1;
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: background 0.15s, border-color 0.15s;
        }
        .media-preview-remove:hover { background: rgba(255,23,68,0.8); border-color: rgba(255,23,68,0.5); color: #fff; }
        .cmt-body { word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; max-width: 100%; }
        .comment-card-full { overflow: visible; min-width: 0; max-width: 100%; }
        .cmt-main { min-width: 0; overflow: hidden; word-break: break-word; max-width: 100%; }
        /* ─── SIDEBAR STATS ─── */
        .sidebar-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 1rem; }
        .ss-item {
            text-align: center; padding: 0.7rem 0.5rem;
            background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
        }
        .ss-number { font-family: 'Unbounded', cursive; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.18rem; }
        .ss-number.cyan { color: var(--secondary); }
        .ss-number.red { color: var(--primary); }
        .ss-number.yellow { color: var(--accent); }
        .ss-number.purple { color: var(--purple); }
        .ss-number.pink { color: var(--pink); }
        .ss-label { font-size: 0.68rem; color: rgba(255,255,255,0.38); }

        /* ─── USER MENU ─── */
        .user-menu-wrap { position: relative; flex-shrink: 0; }
        .user-chip {
            display: flex; align-items: center; gap: 0.55rem;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
            border-radius: 50px; padding: 4px 14px 4px 4px;
            cursor: pointer; transition: all 0.25s; max-width: 220px;
            user-select: none;
        }
        .user-chip:hover { background: rgba(0,229,255,0.06); border-color: var(--secondary); }
        .user-chip-avatar {
            width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
            flex-shrink: 0; background: rgba(255,255,255,0.07); position: relative;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.7rem; font-weight: 700; overflow: visible;
            border: 2px solid rgba(255,255,255,0.18);
        }
        .user-chip-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
        .user-chip-name {
            font-size: 0.83rem; font-weight: 600; color: rgba(255,255,255,0.9);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            max-width: 130px;
        }
        @media (min-width: 801px) and (max-width: 1000px) {
            .user-chip-name { max-width: 60px; }
        }
        @media (min-width: 1000px) {
            .user-chip-name { max-width: 135px; }
        }
        @media (max-width: 374px) {
            .user-chip-name { max-width: 60px; }
        }
        .user-chip-arrow { font-size: 0.55rem; color: rgba(255,255,255,0.4); flex-shrink: 0; transition: transform 0.2s; margin-left: 0; }
        .user-menu-wrap:hover .user-chip-arrow,
        .user-menu-wrap.mobile-open .user-chip-arrow { transform: rotate(180deg); }
        @media (max-width: 800px) {
            .user-chip { padding: 4px 10px 4px 4px; max-width: 160px; }
            .user-chip-name { display: block; font-size: 0.78rem; }
        }
        @media (min-width: 600px) and (max-width: 800px) {
            .user-chip { max-width: 200px; }
            .user-chip-name { max-width: 130px; }
        }
        /* Mobile chip overrides — after base .user-chip to ensure correct cascade */
        @media (max-width: 800px) {
            .user-chip { padding: 4px 10px 4px 4px; max-width: 160px; }
            .user-chip-name { display: block; font-size: 0.78rem; }
        }
        @media (min-width: 600px) and (max-width: 800px) {
            .user-chip { max-width: 200px; }
            .user-chip-name { max-width: 130px; }
        }
        .user-dropdown {
            position: fixed; top: var(--header-h); right: 0;
            background: rgba(13,17,38,0.98);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 18px; padding: 0.6rem;
            min-width: 268px; z-index: 2000;
            box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,255,255,0.05);
            backdrop-filter: blur(32px);
            opacity: 0; pointer-events: none;
            transform: translateY(6px);
            transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
            transform-origin: top right;
        }
        .user-menu-wrap:hover .user-dropdown,
        .user-menu-wrap.mobile-open .user-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
        @media (max-width: 1024px) {
            /* On touch/tablet devices disable CSS hover — rely only on JS click toggle */
            .user-menu-wrap:hover .user-dropdown { opacity: 0; pointer-events: none; transform: translateY(6px); }
            .user-menu-wrap.mobile-open .user-dropdown { opacity: 1 !important; pointer-events: all !important; transform: translateY(0) !important; }
            .user-menu-wrap:hover .user-chip-arrow { transform: none; }
            .user-menu-wrap.mobile-open .user-chip-arrow { transform: rotate(180deg) !important; }
        }
        /* Mobile dropdown: click-driven (JS handles) */
        .user-menu-wrap.mobile-open .user-dropdown {
            opacity: 1 !important;
            pointer-events: all !important;
            transform: translateY(0) !important;
        }
        /* Dropdown z-index above search row */
        .user-dropdown {
            z-index: 2100 !important;
        }
        .user-dropdown::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
        .dropdown-header {
            display: flex; align-items: stretch; gap: 0.75rem;
            padding: 0.8rem; margin-bottom: 0.45rem;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.1);
            overflow: hidden;
            position: relative;
            isolation: isolate;
            min-height: 64px;
        }
        .dropdown-header-bg {
            position: absolute; inset: 0;
            background-position: center center;
            background-size: 110%;
            background-repeat: no-repeat;
        }
        .dropdown-header-bg::after { content: ''; position: absolute; inset: 0; background: rgba(6,9,26,0.85); }
        .dropdown-avatar {
            width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
            background: rgba(255,255,255,0.07);
            display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
            border: 2px solid rgba(255,255,255,0.25); position: relative; z-index: 1; align-self: center;
        }
        .dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
        .dropdown-user-info { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 1; }
        .dropdown-username { font-size: 0.88rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 145px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
        .dropdown-plan-badge {
            display: inline-flex; align-items: center; gap: 0.25rem;
            font-size: 0.66rem; font-weight: 700; align-self: flex-start;
            background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(179,136,255,0.15));
            border: 1px solid rgba(0,229,255,0.4);
            box-shadow: 0 0 10px rgba(0,229,255,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
            border-radius: 5px; padding: 2px 7px; position: relative; overflow: hidden;
        }
        .dropdown-plan-badge .badge-text {
            background: linear-gradient(135deg, var(--secondary), var(--purple));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        @keyframes badgeShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
        .dropdown-plan-badge::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.1) 50%, transparent 100%);
            background-size: 200% 100%; animation: badgeShimmer 3s linear infinite; pointer-events: none;
        }
        .dropdown-plan-badge.ultimate {
            background: linear-gradient(135deg, rgba(255,170,0,0.15), rgba(255,56,100,0.15));
            border: 1px solid rgba(255,170,0,0.4);
            box-shadow: 0 0 10px rgba(255,170,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
        }
        .dropdown-plan-badge.ultimate .badge-text {
            background: linear-gradient(135deg, var(--accent), var(--primary));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .dropdown-plan-badge.ultimate::after {
            background: linear-gradient(90deg, transparent 0%, rgba(255,170,0,0.1) 50%, transparent 100%);
            background-size: 200% 100%;
        }
        .dropdown-plan-badge.free { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); box-shadow: none; }
        .dropdown-plan-badge.free .badge-text { background: none; -webkit-background-clip: unset; -webkit-text-fill-color: rgba(255,255,255,0.70); background-clip: unset; }
        .dropdown-plan-badge.free::after { display: none; }
        .dropdown-item {
            display: flex; align-items: center; gap: 0.6rem;
            padding: 0.5rem 0.85rem; border-radius: 10px;
            color: rgba(255,255,255,0.62); font-size: 0.82rem;
            cursor: pointer; transition: all 0.15s; text-decoration: none;
        }
        .dropdown-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
        .dropdown-item.active { color: #fff; background: rgba(255,255,255,0.05); }
        .dropdown-item-icon { font-size: 0.88rem; flex-shrink: 0; width: 20px; display: flex; align-items: center; justify-content: center; }
        .dropdown-item-badge { margin-left: auto; background: var(--primary); color: #fff; font-size: 0.6rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px 1px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .chip-notif-dot { position: absolute; top: -2px; right: -7px; min-width: 14px; height: 14px; background: var(--primary); border-radius: 7px; font-size: 0.52rem; font-weight: 700; color: #fff; display: none; align-items: center; justify-content: center; padding: 0 3px 1px; }
        .dropdown-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 0.35rem 0.4rem; }
        .dropdown-item.logout { color: rgba(255,80,80,0.6); }
        .dropdown-item.logout:hover { background: rgba(255,23,68,0.08); color: rgba(255,90,90,0.9); }

        /* ─── WALL COMMENTS CSS (from profile) ─── */
        .cmt-author-premium {
            background: linear-gradient(135deg, var(--secondary), var(--purple));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
            display: inline;
        }
        .cmt-author-ultimate {
            background: linear-gradient(135deg, #FFAA00, #FF3864);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
            display: inline;
        }
        .role-badge{display:inline-flex;align-items:center;justify-content:center;line-height:1;flex-shrink:0;opacity:0.72;}
        .role-badge.role-translator{color:#B388FF;}
        .role-badge.role-author{color:#F97316;}
        .media-lightbox-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(0,0,0,0.92); z-index: 7000;
            backdrop-filter: blur(8px); align-items: center; justify-content: center;
        }
        .media-lightbox-overlay.open { display: flex; }
        .media-lightbox-inner { position: relative; max-width: 90vw; max-height: 85vh; display: flex; align-items: center; justify-content: center; }
        .media-lightbox-inner img { max-width: 100%; max-height: 85vh; border-radius: 12px; object-fit: contain; box-shadow: 0 0 60px rgba(0,0,0,0.6); display: block; }
        .media-lightbox-close {
            position: absolute; top: 8px; right: 8px;
            background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50%; color: #fff; cursor: pointer;
            font-size: 1rem; width: 32px; height: 32px;
            display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 1;
        }
        .media-lightbox-close:hover { background: rgba(255,255,255,0.2); }
        .wall-textarea-wrap { position: relative; }
        .wall-drop-hint {
            position: absolute; inset: 0; display: none;
            flex-direction: column; align-items: center; justify-content: center;
            gap: 0.45rem; border-radius: 10px; color: var(--secondary);
            font-size: 0.84rem; font-weight: 600; pointer-events: none; z-index: 5;
            background: rgba(0,229,255,0.04);
        }
        .wall-drop-hint svg { opacity: 0.75; }
        .wall-textarea-wrap.drag-over .wall-drop-hint { display: flex; }
        .wall-textarea-wrap.drag-over .wall-new-textarea {
            border-color: var(--secondary) !important;
            background: rgba(0,229,255,0.06) !important;
            box-shadow: 0 0 0 2px rgba(0,229,255,0.18); color: transparent;
        }
        .cmt-own-actions {
            display: flex; gap: 0.25rem; margin-left: auto; flex-shrink: 0;
            opacity: 0; transition: opacity 0.18s ease; pointer-events: none; align-self: center;
        }
        .comment-card-full:hover .cmt-own-actions { opacity: 1; pointer-events: all; }
        .cmt-own-action-btn {
            width: 24px; height: 24px; border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.07);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.18s; flex-shrink: 0;
        }
        .cmt-own-action-btn.edit { color: rgba(0,229,255,0.7); }
        .cmt-own-action-btn.edit:hover { background: rgba(0,229,255,0.15); border-color: rgba(0,229,255,0.4); color: var(--secondary); }
        .cmt-own-action-btn.del { color: rgba(255,100,100,0.7); }
        .cmt-own-action-btn.del:hover { background: rgba(255,23,68,0.15); border-color: rgba(255,23,68,0.4); color: var(--primary); }
        @media (max-width: 700px) { .cmt-own-actions { opacity: 1; pointer-events: all; } }
        .wall-edit-form { display: none; margin-top: 0.5rem; }
        .wall-edit-form.open { display: block; }
        .wall-edit-textarea {
            width: 100%; background: rgba(255,255,255,0.04);
            border: 1px solid rgba(0,229,255,0.25); border-radius: 8px;
            color: #fff; font-family: 'Inter', sans-serif; font-size: 0.83rem;
            padding: 0.55rem 0.75rem; resize: none; outline: none;
            min-height: 60px; transition: border-color 0.2s;
        }
        .wall-edit-textarea:focus { border-color: rgba(0,229,255,0.5); }
        .wall-edit-footer { display: flex; gap: 0.4rem; margin-top: 0.4rem; justify-content: flex-end; }
        .wall-edit-save {
            background: rgba(0,229,255,0.12); border: 1px solid rgba(0,229,255,0.35);
            border-radius: 7px; color: var(--secondary); font-size: 0.78rem; font-weight: 600;
            padding: 0.3rem 0.85rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.18s;
        }
        .wall-edit-save:hover { background: rgba(0,229,255,0.22); }
        .wall-edit-cancel {
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
            border-radius: 7px; color: rgba(255,255,255,0.55); font-size: 0.78rem;
            padding: 0.3rem 0.85rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.18s;
        }
        .wall-edit-cancel:hover { background: rgba(255,255,255,0.08); color: #fff; }
        .wall-edit-attach {
            display: inline-flex; align-items: center; justify-content: center;
            width: 28px; height: 28px; border-radius: 7px; cursor: pointer; flex-shrink: 0;
            border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
            color: rgba(255,255,255,0.45); transition: all 0.18s; margin-right: auto;
        }
        .wall-edit-attach:hover { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3); color: var(--secondary); }
        .wall-edit-media-preview { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.35rem; }
        .wall-edit-media-preview:empty { display: none; }
        .wall-edit-media-item { position: relative; display: inline-flex; }
        .wall-edit-media-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
        .wall-edit-media-item .rm-edit-media {
            position: absolute; top: -5px; right: -5px; width: 16px; height: 16px;
            background: rgba(255,23,68,0.85); border-radius: 50%; border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center; color: #fff;
            font-size: 10px; line-height: 1; font-weight: 700;
        }
        .media-preview-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; }
        .media-preview-item {
            position: relative; width: 68px; height: 68px; flex-shrink: 0;
            border-radius: 9px; overflow: hidden;
            border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05);
        }
        .media-preview-item img, .media-preview-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
        .media-preview-remove {
            position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%;
            background: rgba(10,14,39,0.82); border: 1px solid rgba(255,255,255,0.22);
            color: rgba(255,255,255,0.9); font-size: 0.55rem; line-height: 1;
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: background 0.15s; backdrop-filter: blur(4px);
        }
        .media-preview-remove:hover { background: rgba(255,23,68,0.8); border-color: rgba(255,23,68,0.5); }

        /* cmt-* aliases for profile-style JS compatibility */
        .profile-wall-comments .comment-card-full .comment-av,
        .profile-wall-comments .cmt-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; overflow: hidden; background: rgba(255,255,255,0.07); }
        .profile-wall-comments .comment-av img,
        .profile-wall-comments .cmt-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
        .comment-main, .cmt-main { flex: 1; min-width: 0; overflow: hidden; word-break: break-word; max-width: 100%; padding-right: 1.2rem; }
        .comment-top, .cmt-top { display: flex; align-items: center; gap: 0.45rem; flex-wrap: nowrap; }
        .cmt-top { min-height: 24px; }
        .comment-author, .cmt-author { font-size: 0.82rem; font-weight: 700; color: #fff; }
        .comment-date, .cmt-date { font-size: 0.67rem; color: rgba(255,255,255,0.3); align-self: center; line-height: 1; position: relative; top: 1px; }
        .cmt-top > a { line-height: 1; display: inline-flex; align-items: center; }
        .comment-body, .cmt-body { font-size: 0.83rem; line-height: 1.65; color: rgba(255,255,255,0.78); margin-bottom: 0.55rem; word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
        .comment-card-full { overflow: visible; min-width: 0; max-width: 100%; }
            .guest-burger { display:none; flex-direction:column; justify-content:center; align-items:center; width:40px; height:40px; cursor:pointer; gap:5px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:8px; flex-shrink:0; transition:background .2s; }
        .guest-burger:hover { background:rgba(255,255,255,0.1); }
        .guest-burger span { width:18px; height:2px; background:rgba(255,255,255,0.8); border-radius:2px; transition:all .3s; }
        .guest-burger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
        .guest-burger.open span:nth-child(2) { opacity:0; }
        .guest-burger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }
        .guest-mobile-nav { display:none; position:fixed; top:calc(var(--header-h) + 54px); left:0; right:0; background:rgba(10,14,39,0.98); backdrop-filter:blur(24px); border-bottom:1px solid rgba(255,255,255,0.1); z-index:2100; padding:0.6rem var(--pad-x) 0.7rem; flex-direction:column; gap:0.4rem; animation:slideDown .25s ease-out; }
        .guest-mobile-nav.open { display:flex; }
        .guest-mobile-nav a { color:rgba(255,255,255,0.8); text-decoration:none; font-size:0.85rem; font-weight:500; padding:0.7rem 1rem; border-radius:10px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06); display:flex; align-items:center; gap:0.5rem; transition:all .2s; }
        .guest-mobile-nav a:hover, .guest-mobile-nav a.active { color:var(--secondary); background:rgba(0,229,255,0.07); border-color:rgba(0,229,255,0.2); }
        .guest-mobile-nav .gmn-auth-row { display:flex; gap:0.5rem; margin-bottom:0.25rem; }
        .guest-mobile-nav .gmn-auth-row .login-btn-header,
        .guest-mobile-nav .gmn-auth-row .register-btn-header { flex:1; justify-content:center; }
        .guest-mobile-nav .gmn-sep { height:1px; background:rgba(255,255,255,0.07); margin:0.15rem 0; }
        @media(max-width:800px) { .header-auth-btns .guest-burger { display:flex; } .header-auth-btns .login-btn-header, .header-auth-btns .register-btn-header { display:none; } }
#headerAuthArea { display: flex; align-items: center; justify-content: flex-end; }

/* ── Ad banner ── */
.ad-banner-wrap { padding: clamp(2rem, 3vw, 3rem) var(--pad-x) clamp(1rem, 2vw, 1.5rem); }
.ad-banner { position: relative; max-width: 1200px; margin: 0 auto; height: 150px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
.ad-banner-link { display: block; width: 100%; height: 100%; }
.ad-banner-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: opacity 0.2s; }
.ad-banner-link:hover .ad-banner-img { opacity: 0.9; }
@media (max-width: 480px) { .ad-banner { height: 90px; } }
