/* ==========================================================
   DILENOW SNS — общий стиль (десктоп + мобильная версия)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #070510;
    --bg-soft: #0e0a1d;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #eef0ff;
    --muted: #8f94b8;
    --cyan: #22e3ff;
    --violet: #8b5cf6;
    --pink: #ff3d8b;
    --green: #2ee59d;
    --red: #ff4d6d;
    --gold: #ffc857;
    --grad: linear-gradient(135deg, #8b5cf6 0%, #22e3ff 100%);
    --grad-hot: linear-gradient(135deg, #ff3d8b 0%, #8b5cf6 100%);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --header-h: 68px;
    --bottom-h: 66px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* фоновые «пятна» */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px 400px at 8% 8%, rgba(139, 92, 246, 0.28), transparent 70%),
        radial-gradient(700px 500px at 95% 15%, rgba(34, 227, 255, 0.16), transparent 70%),
        radial-gradient(600px 500px at 50% 105%, rgba(255, 61, 139, 0.14), transparent 70%);
}

a { color: var(--cyan); text-decoration: none; }

/* ---------- Курсор-след (только мышь) ---------- */
.neon-trail {
    position: fixed;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cyan);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 18px var(--cyan), 0 0 36px var(--violet);
    opacity: 0.85;
    transition: left 0.06s ease-out, top 0.06s ease-out;
}
@media (hover: none), (max-width: 900px) { .neon-trail { display: none; } }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(10, 7, 22, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 21px;
    letter-spacing: 1.5px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-subtitle {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--muted);
    margin-top: 3px;
}

.desktop-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.nav-btn, .desktop-nav a {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    padding: 8px 13px;
    border-radius: 999px;
    font: 600 13px 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-btn:hover, .desktop-nav a:hover { color: var(--text); background: var(--surface-strong); }
.nav-btn.active {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45);
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

/* мобильное выезжающее меню */
.mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(10, 7, 22, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu .nav-btn {
    border-radius: var(--radius-sm);
    padding: 13px;
    text-align: left;
    background: var(--surface);
    border-color: var(--border);
    font-size: 14px;
}

/* нижняя панель (телефон) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--bottom-h);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(10, 7, 22, 0.9);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    justify-content: space-around;
}
.bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--muted);
    font: 600 10px 'Inter', sans-serif;
    border-radius: 12px;
    cursor: pointer;
}
.bottom-nav button span { font-size: 21px; line-height: 1; }
.bottom-nav button.active { color: var(--cyan); }
.bottom-nav button.active span { filter: drop-shadow(0 0 8px var(--cyan)); }

/* ---------- Каркас ---------- */
.container { max-width: 1180px; margin: 28px auto; padding: 0 20px; }
.page { display: none; animation: fadeUp 0.35s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Карточки ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
.card.danger { border-color: rgba(255, 77, 109, 0.5); }

h1, h2, h3, h4 { font-family: 'Orbitron', sans-serif; letter-spacing: 0.5px; }
.card h2, .card h3 { margin-bottom: 14px; font-size: 18px; }
.accent { color: var(--cyan); }
.muted { color: var(--muted); }

/* ---------- Зал славы ---------- */
.hall-of-fame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 30px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 200, 87, 0.45);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(255, 200, 87, 0.22), transparent 55%),
        radial-gradient(120% 180% at 100% 100%, rgba(34, 227, 255, 0.16), transparent 55%),
        linear-gradient(120deg, rgba(255, 200, 87, 0.1), rgba(139, 92, 246, 0.14) 55%, rgba(34, 227, 255, 0.1));
    box-shadow: 0 14px 60px rgba(255, 200, 87, 0.18), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* вращающийся золотой ободок по контуру */
.hall-of-fame::before {
    content: '';
    position: absolute;
    inset: -40%;
    z-index: 0;
    background: conic-gradient(from 0deg, transparent 0 78%, rgba(255, 200, 87, .9) 86%, rgba(34, 227, 255, .9) 92%, transparent 100%);
    animation: hofSpin 6s linear infinite;
    opacity: .55;
}
.hall-of-fame::after {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: 1;
    border-radius: calc(var(--radius) - 1px);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(255, 200, 87, 0.22), transparent 55%),
        radial-gradient(120% 180% at 100% 100%, rgba(34, 227, 255, 0.16), transparent 55%),
        linear-gradient(120deg, rgba(10, 7, 20, .92), rgba(14, 10, 29, .92) 55%, rgba(10, 7, 20, .92));
}
@keyframes hofSpin { to { transform: rotate(360deg); } }

.hall-of-fame > .hof-left, .hall-of-fame > .badge-elo {
    position: relative;
    z-index: 2;
}
.hof-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.hof-label {
    display: inline-flex; align-items: center; gap: 6px;
    font: 800 11px 'Orbitron', sans-serif; letter-spacing: 2px;
    background: linear-gradient(90deg, var(--gold), #fff3c4, var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: hofShine 3s linear infinite;
}
@keyframes hofShine { to { background-position: -200% center; } }
.hof-name {
    font-size: 28px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    background: linear-gradient(100deg, #fff6df 0%, var(--gold) 35%, #fff 50%, var(--gold) 65%, #fff6df 100%);
    background-size: 240% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: hofShine 4.5s linear infinite;
    filter: drop-shadow(0 0 14px rgba(255, 200, 87, .35));
    margin-top: 3px;
}
.hof-guild { color: var(--muted); font-size: 14px; }

.avatar-square {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    background: var(--bg-soft);
    box-shadow: 0 0 24px rgba(34, 227, 255, 0.35);
    flex-shrink: 0;
}
/* тёплое пульсирующее сияние позади аватара топ-1 */
.hof-left .av-wrap.big { position: relative; }
.hof-left .av-wrap.big::before {
    content: '';
    position: absolute;
    inset: -16px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 87, .45), rgba(34, 227, 255, .18) 55%, transparent 72%);
    filter: blur(6px);
    animation: hofPulse 2.4s ease-in-out infinite alternate;
}
@keyframes hofPulse { from { opacity: .55; transform: scale(.92); } to { opacity: 1; transform: scale(1.08); } }
.table-avatar-square {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    background: var(--bg-soft);
}

.badge-elo {
    font: 800 15px 'Orbitron', sans-serif;
    color: var(--cyan);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 227, 255, 0.1);
    border: 1px solid rgba(34, 227, 255, 0.45);
    white-space: nowrap;
}
.badge-elo.big {
    position: relative;
    font-size: 20px;
    padding: 12px 22px;
    color: #1a1304;
    background: linear-gradient(120deg, #fff3c4, var(--gold) 45%, #ffdd8a);
    border: 1px solid rgba(255, 234, 170, .9);
    box-shadow: 0 0 20px rgba(255, 200, 87, .55), 0 6px 18px rgba(255, 200, 87, .25);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
    animation: hofBadge 2.4s ease-in-out infinite alternate;
}
@keyframes hofBadge { from { box-shadow: 0 0 16px rgba(255, 200, 87, .45), 0 6px 18px rgba(255, 200, 87, .2); } to { box-shadow: 0 0 28px rgba(255, 200, 87, .75), 0 6px 22px rgba(255, 200, 87, .35); } }

/* ---------- Главная: hero + статистика ---------- */
.hero {
    padding: 36px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 227, 255, 0.08));
    margin-bottom: 20px;
}
.hero h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.15; margin-bottom: 12px; }
.hero p { color: var(--muted); max-width: 620px; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.stat-card .num { font: 900 30px 'Orbitron', sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card .lbl { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }

/* ---------- Формы ---------- */
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 4px 0 6px; letter-spacing: 0.5px; }

input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 12px;
    background: rgba(5, 3, 14, 0.7);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: 500 15px 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #5d6285; }
input:focus, select:focus, textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 227, 255, 0.15);
}
input[type="file"] { padding: 10px; font-size: 13px; color: var(--muted); }
input[readonly] { color: var(--cyan); }
textarea { resize: vertical; }

.btn-action, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--grad);
    color: #fff;
    font: 800 14px 'Inter', sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}
.btn-action { width: 100%; }
.btn-action:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(34, 227, 255, 0.35); }
.btn-action:active, .btn:active { transform: scale(0.98); }
.btn-green  { background: linear-gradient(135deg, #12b981, #22e3ff); box-shadow: 0 6px 24px rgba(46, 229, 157, 0.3); }
.btn-red    { background: linear-gradient(135deg, #ff4d6d, #ff3d8b); box-shadow: 0 6px 24px rgba(255, 77, 109, 0.35); }
.btn-ghost  { background: var(--surface-strong); border: 1px solid var(--border-strong); box-shadow: none; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

.divider { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font: 700 11px 'Orbitron', sans-serif; letter-spacing: 1px; color: var(--cyan); text-transform: uppercase; }
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: var(--surface); }
.rank { font: 800 15px 'Orbitron', sans-serif; color: var(--muted); }
.rank.r1 { color: var(--gold); }
.rank.r2 { color: #cfd6ea; }
.rank.r3 { color: #e08b5a; }
.player-cell { display: flex; align-items: center; gap: 12px; font-weight: 700; }

/* ---------- Профиль ---------- */
.profile-head { display: flex; align-items: center; gap: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.profile-head h2 { margin: 0; font-size: 22px; }
.upload-chip {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    cursor: pointer;
}
.upload-chip:hover { background: var(--violet); }
.upload-chip input { display: none; }

.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.profile-stat { text-align: center; padding: 14px 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.profile-stat .n { font: 900 22px 'Orbitron', sans-serif; }
.profile-stat .l { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); margin-top: 2px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-box { padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.mini-box h4 { font-size: 12px; color: var(--cyan); margin-bottom: 10px; }
.mini-list { max-height: 130px; overflow-y: auto; font-size: 13px; color: #c7cbe8; }
.mini-list > div { padding: 6px 0; border-bottom: 1px solid var(--border); }
.mini-list > div:last-child { border-bottom: none; }

/* ---------- Видео-лента ---------- */
.feed { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.video-card {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.video-author { color: var(--cyan); font-weight: 800; margin-bottom: 4px; }
.video-desc { font-size: 14px; margin-bottom: 10px; color: #d6d9f2; }
.video-card video, .my-video video {
    width: 100%;
    border-radius: var(--radius-sm);
    background: #000;
    object-fit: cover;
    display: block;
}
.video-card video { height: 440px; }
.video-actions { display: flex; gap: 8px; margin: 12px 0; }
.video-actions .btn { flex: 1; }
.comments { max-height: 90px; overflow-y: auto; margin-bottom: 8px; font-size: 13px; color: #c7cbe8; }
.comments p { margin-top: 4px; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { margin: 0; padding: 10px 12px; font-size: 14px; }

.my-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.my-video { padding: 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.my-video video { height: 250px; }
.my-video p { text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Стримеры / баны ---------- */
.streamer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.streamer-row:last-child { border-bottom: none; }
.live-badge { font: 800 11px 'Orbitron', sans-serif; padding: 5px 10px; border-radius: 999px; color: #fff; background: var(--red); animation: pulse 1.6s infinite; }
.offline-badge { font: 700 11px 'Inter', sans-serif; padding: 5px 10px; border-radius: 999px; color: var(--muted); background: var(--surface-strong); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,77,109,.6); } 50% { box-shadow: 0 0 0 8px rgba(255,77,109,0); } }

.status-ban { color: var(--red); font-weight: 700; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

/* ---------- Отчёты (админ) ---------- */
.report-item { padding: 16px; margin-bottom: 12px; border-radius: var(--radius-sm); background: rgba(5, 3, 14, 0.6); border: 1px solid var(--border); }
.report-item p { margin-bottom: 6px; }
.report-item .btn { margin-top: 8px; }

/* ---------- Тост ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    z-index: 100000;
    max-width: 90vw;
    padding: 13px 20px;
    border-radius: 999px;
    background: rgba(20, 15, 40, 0.97);
    border: 1px solid var(--border-strong);
    font-weight: 600;
    box-shadow: var(--shadow);
    transform: translate(-50%, 30px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { border-color: var(--red); }
.toast.success { border-color: var(--green); }

/* ==========================================================
   ПЛАНШЕТ / ТЕЛЕФОН
   ========================================================== */
@media (max-width: 1024px) {
    .desktop-nav .nav-btn { padding: 7px 10px; font-size: 12px; }
}

@media (max-width: 900px) {
    :root { --header-h: 60px; }
    .site-header { padding: 0 16px; }
    .desktop-nav.hide-mobile { display: none; }
    .burger { display: inline-flex; align-items: center; justify-content: center; }
    .bottom-nav { display: flex; }
    body { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
    .container { margin: 18px auto; padding: 0 14px; }
    .toast { bottom: calc(var(--bottom-h) + 20px); }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    .card { padding: 18px; border-radius: 16px; }
    .hero { padding: 24px 20px; }
    .hall-of-fame { flex-direction: column; align-items: flex-start; padding: 18px; }
    .hof-name { font-size: 21px; white-space: normal; }
    .avatar-square { width: 68px; height: 68px; border-radius: 14px; }
    .stat-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
    .profile-head { gap: 14px; }
    .profile-head h2 { font-size: 18px; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .video-card video { height: 60vh; }
    .brand-title { font-size: 18px; }
    .brand-subtitle { font-size: 8px; letter-spacing: 2px; }
    input, select, textarea { font-size: 16px; } /* чтобы iOS не зумил */
    .hide-sm { display: none; }
}


/* ==========================================================
   РАНГИ ТОП-5: рамки, подсветка строк, частицы
   1 — алмаз, 2 — золото, 3 — серебро, 4–5 — бронза
   ========================================================== */
.rank.r4, .rank.r5 { color: #cd7f32; }
.rank.r1 { text-shadow: 0 0 12px rgba(34, 227, 255, 0.8); color: #bff6ff; }
.hint { font-size: 13px; margin: -6px 0 10px; }
tr[data-uid] { cursor: pointer; }

.av-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    line-height: 0;
    padding: 3px;
    border-radius: 14px;
}
.av-wrap.big { padding: 4px; border-radius: 22px; }
.av-wrap img { display: block; border: none !important; border-radius: 11px; box-shadow: none; }
.av-wrap.big img { border-radius: 18px; }

.av-wrap.tier-diamond, .av-wrap.tier-gold, .av-wrap.tier-silver, .av-wrap.tier-bronze {
    background-size: 300% 300%;
    animation: frameShift 3.5s linear infinite;
}
.av-wrap.tier-diamond {
    background-image: linear-gradient(120deg, #e8fbff, #22e3ff, #8b5cf6, #ffffff, #22e3ff, #e8fbff);
    box-shadow: 0 0 16px rgba(34, 227, 255, 0.75), 0 0 34px rgba(139, 92, 246, 0.35);
}
.av-wrap.tier-gold {
    background-image: linear-gradient(120deg, #fff1b8, #ffc857, #b8860b, #ffe08a, #ffc857, #fff1b8);
    box-shadow: 0 0 14px rgba(255, 200, 87, 0.65);
}
.av-wrap.tier-silver {
    background-image: linear-gradient(120deg, #ffffff, #cfd6e6, #8e97ad, #eef1f8, #cfd6e6, #ffffff);
    box-shadow: 0 0 12px rgba(207, 214, 230, 0.55);
}
.av-wrap.tier-bronze {
    background-image: linear-gradient(120deg, #f0a874, #cd7f32, #8a4f1d, #e09b60, #cd7f32, #f0a874);
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.45);
}
@keyframes frameShift { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* подсветка всей строки в таблице */
tr.row-diamond td { background: rgba(34, 227, 255, 0.08); }
tr.row-gold td    { background: rgba(255, 200, 87, 0.08); }
tr.row-silver td  { background: rgba(207, 214, 230, 0.07); }
tr.row-bronze td  { background: rgba(205, 127, 50, 0.06); }
tr.row-diamond td:first-child { box-shadow: inset 3px 0 0 #22e3ff; }
tr.row-gold td:first-child    { box-shadow: inset 3px 0 0 #ffc857; }
tr.row-silver td:first-child  { box-shadow: inset 3px 0 0 #cfd6e6; }
tr.row-bronze td:first-child  { box-shadow: inset 3px 0 0 #cd7f32; }

/* летящие частицы */
.pt {
    position: absolute;
    z-index: 3;
    font-style: normal;
    font-size: 12px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    animation: ptFloat 2.4s ease-in infinite;
}
.pt-0 { left: -6px;  bottom: 4px;  animation-delay: 0s; }
.pt-1 { right: -6px; bottom: 14px; animation-delay: 0.6s; }
.pt-2 { left: 38%;   bottom: -2px; animation-delay: 1.2s; }
.pt-3 { right: 14%;  top: 8px;     animation-delay: 1.8s; }
.av-wrap.big .pt { font-size: 19px; --rise: -46px; }
.tier-gold .pt   { color: #ffc857; text-shadow: 0 0 8px #ffc857; font-size: 14px; }
.tier-silver .pt { color: #e3e8f5; text-shadow: 0 0 8px #cfd6e6; font-size: 14px; }
@keyframes ptFloat {
    0%   { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(var(--rise, -26px)) scale(1.1) rotate(30deg); opacity: 0; }
}

/* ---------- Окно статистики игрока ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 2, 12, 0.78);
    backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: var(--radius);
    background: #0e0a1d;
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 80px rgba(139, 92, 246, 0.35);
    animation: fadeUp 0.25s ease;
}
.modal-x {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--border-strong); background: var(--surface-strong);
    color: var(--text); font-size: 16px; cursor: pointer;
}
.pm-head { display: flex; align-items: center; gap: 18px; padding-right: 40px; margin-bottom: 20px; }
.pm-name { margin: 0 0 2px !important; font-size: 22px !important; overflow-wrap: anywhere; }
.pm-tier { margin-top: 8px; font: 800 12px 'Orbitron', sans-serif; color: var(--muted); }
.pm-tier.tier-diamond { color: #7eeeff; }
.pm-tier.tier-gold    { color: var(--gold); }
.pm-tier.tier-silver  { color: #dfe5f3; }
.pm-tier.tier-bronze  { color: #e09b60; }
.pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.pm-box { text-align: center; padding: 12px 6px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.pm-box .n { font: 900 20px 'Orbitron', sans-serif; }
.pm-box .l { font-size: 9px; letter-spacing: 1.2px; color: var(--muted); margin-top: 3px; }
.pm-box.green .n { color: var(--green); }
.pm-box.red .n   { color: var(--red); }
.pm-box.cyan .n  { color: var(--cyan); }
.pm-box.gold .n  { color: var(--gold); }
.pm-sub { font-size: 13px; color: var(--cyan); margin-bottom: 10px; }
.pm-guilds { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.pm-guild { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.pm-guild .gn { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-guild .gw { color: var(--green); font-weight: 800; }
.pm-guild .gl { color: var(--red); font-weight: 800; }

@media (max-width: 640px) {
    .pm-grid { grid-template-columns: repeat(2, 1fr); }
    .pm-head { gap: 12px; }
    .modal-card { padding: 18px; }
}

/* ==========================================================
   CYBER THEME: неон, анимированные кнопки, новые блоки
   ========================================================== */
body { background: #05030d; }
.neon-trail { display: none !important; }            /* точка за курсором убрана */
h1, h2, h3, h4 { text-shadow: 0 0 14px rgba(139, 92, 246, .5); }
.hint { font-size: 13px; }

.card, .hero, .stat-card, .mini-box { position: relative; }
.card { background: linear-gradient(160deg, rgba(22, 15, 48, .8), rgba(8, 5, 20, .85)); border-color: rgba(34, 227, 255, .22); }
.card::before, .card::after { content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none; }
.card::before { top: -1px; left: -1px; border: 2px solid var(--cyan); border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); filter: drop-shadow(0 0 5px var(--cyan)); }
.card::after { right: -1px; bottom: -1px; border: 2px solid var(--pink); border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); filter: drop-shadow(0 0 5px var(--pink)); }

.hero { overflow: hidden; border-color: rgba(139, 92, 246, .5); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(34, 227, 255, .035) 3px 4px);
    animation: scan 9s linear infinite; }
@keyframes scan { to { background-position: 0 120px; } }
.hall-of-fame { animation: hofGlow 3s ease-in-out infinite alternate; }
@keyframes hofGlow { from { box-shadow: 0 0 22px rgba(255, 200, 87, .18); } to { box-shadow: 0 0 46px rgba(34, 227, 255, .35); } }

/* кнопки: блик при наведении + неоновая пульсация */
.btn, .btn-action { position: relative; overflow: hidden; isolation: isolate; text-transform: uppercase; letter-spacing: .8px; border: 1px solid rgba(255, 255, 255, .2); }
.btn::after, .btn-action::after { content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn:hover::after, .btn-action:hover::after { left: 150%; }
.btn:not(.btn-ghost):not(.btn-sm), .btn-action { animation: neonPulse 3s ease-in-out infinite; }
@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, .55), 0 0 24px rgba(139, 92, 246, .25); }
    50% { box-shadow: 0 0 14px rgba(34, 227, 255, .75), 0 0 34px rgba(34, 227, 255, .35); }
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34, 227, 255, .45); }
.btn:active, .btn-action:active { transform: scale(.96); }
.btn[disabled], .btn-action[disabled] { opacity: .5; animation: none; pointer-events: none; }
.nav-btn.active { animation: navGlow 2.4s ease-in-out infinite alternate; }
@keyframes navGlow { from { box-shadow: 0 0 10px rgba(139, 92, 246, .6); } to { box-shadow: 0 0 20px rgba(34, 227, 255, .7); } }
.nav-btn:hover { text-shadow: 0 0 10px var(--cyan); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 2px rgba(34, 227, 255, .3), 0 0 18px rgba(34, 227, 255, .25); }
th { text-shadow: 0 0 8px rgba(34, 227, 255, .6); border-bottom: 1px solid rgba(34, 227, 255, .35); }
tbody tr:hover td { background: rgba(34, 227, 255, .06); }
.bottom-nav { border-top: 1px solid rgba(34, 227, 255, .4); box-shadow: 0 -6px 24px rgba(139, 92, 246, .25); }

/* подвкладки Игроки / Гильдии */
.subtabs { display: flex; gap: 8px; margin: 4px 0 14px; }
.subtabs button { flex: 1; padding: 11px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font: 800 13px 'Inter', sans-serif; cursor: pointer; transition: all .2s; }
.subtabs button.on { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 0 18px rgba(139, 92, 246, .6); }
.sub { display: none; } .sub.on { display: block; }

/* буква гильдии вместо аватарки */
.g-letter { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--grad-hot); font: 900 18px 'Orbitron', sans-serif; color: #fff; line-height: 1; }
.av-wrap.big .g-letter { width: 84px; height: 84px; border-radius: 18px; font-size: 34px; }

/* уведомления-бейдж */
.nbadge { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font: 800 11px 'Inter', sans-serif; line-height: 18px; text-align: center; box-shadow: 0 0 10px var(--pink); }
.nbadge[hidden] { display: none; }
.bottom-nav .nbadge { position: absolute; margin: -34px 0 0 22px; }
.bottom-nav button { position: relative; }

/* серия побед: огонь */
.streak { position: relative; display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 8px 1px 5px; border-radius: 999px; vertical-align: middle;
    font: 900 12px 'Orbitron', sans-serif; color: #fff; background: linear-gradient(135deg, #ff7a18, #ff3d3d);
    box-shadow: 0 0 10px rgba(255, 122, 24, .8), 0 0 22px rgba(255, 61, 61, .45); animation: fireGlow 1.1s ease-in-out infinite alternate; }
.streak .fl { display: inline-block; font-style: normal; transform-origin: 50% 90%; animation: flick .5s ease-in-out infinite alternate; }
.streak.s2 { background: linear-gradient(135deg, #ffb020, #ff3d3d); box-shadow: 0 0 14px #ff7a18, 0 0 34px rgba(255, 61, 61, .7); }
.streak.s3 { background: linear-gradient(135deg, #fff1b8, #ff7a18, #ff1f5a); color: #2a0a00; box-shadow: 0 0 18px #ffb020, 0 0 46px rgba(255, 31, 90, .85); }
.streak .em { position: absolute; bottom: 70%; width: 4px; height: 4px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 6px #ff9a3c; opacity: 0; animation: ember 1.6s ease-out infinite; }
.streak .e1 { left: 25%; } .streak .e2 { left: 55%; animation-delay: .5s; } .streak .e3 { left: 80%; animation-delay: 1s; }
@keyframes ember { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-24px) translateX(5px) scale(.2); opacity: 0; } }
@keyframes flick { from { transform: scale(1) rotate(-5deg); } to { transform: scale(1.28) rotate(6deg); } }
@keyframes fireGlow { from { filter: brightness(1); } to { filter: brightness(1.25); } }
.pm-box.fire { border-color: #ff7a18; background: rgba(255, 90, 20, .1); animation: fireBox 1.2s ease-in-out infinite alternate; }
.pm-box.fire .n { color: #ffb020; text-shadow: 0 0 12px #ff7a18; }
.pm-box.pink .n { color: var(--pink); }
@keyframes fireBox { from { box-shadow: 0 0 10px rgba(255, 122, 24, .4), inset 0 0 10px rgba(255, 61, 61, .15); } to { box-shadow: 0 0 26px rgba(255, 122, 24, .8), inset 0 0 18px rgba(255, 61, 61, .3); } }

/* окно: кнопка назад, строки истории, списки */
.modal-back { position: absolute; top: 12px; left: 12px; }
.modal-back[hidden] { display: none; }
.modal-body-pad { padding-top: 6px; }
button.pm-guild { width: 100%; font: inherit; color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
button.pm-guild:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(34, 227, 255, .35); }
.pm-guild .go { color: var(--muted); }
.hist { padding: 12px; margin-bottom: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--muted); }
.hist.win { border-left-color: var(--green); } .hist.loss { border-left-color: var(--red); }
.hist .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hist .sc { font: 900 18px 'Orbitron', sans-serif; color: var(--cyan); }
.hist .tag { font: 800 10px 'Inter', sans-serif; padding: 2px 8px; border-radius: 999px; background: rgba(255, 200, 87, .15); border: 1px solid rgba(255, 200, 87, .5); color: var(--gold); }
.hist .tag.p { background: rgba(255, 61, 139, .15); border-color: rgba(255, 61, 139, .5); color: var(--pink); }
.hist small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; margin-bottom: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: 700 14px 'Inter', sans-serif; cursor: pointer; text-align: left; }
.list-row:hover { border-color: var(--cyan); }
.list-row .sub-t { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: auto; }

/* поиск и профиль игрока */
.user-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.user-head h2 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.user-counts { display: flex; gap: 16px; margin: 6px 0 10px; font-size: 13px; color: var(--muted); }
.user-counts b { color: var(--text); font-family: 'Orbitron', sans-serif; }
.seg { display: flex; gap: 6px; margin-bottom: 10px; }
.seg button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font: 700 12px 'Inter', sans-serif; cursor: pointer; }
.seg button.on { color: #fff; background: var(--violet); }
.clickable { cursor: pointer; }
.profile-stat.clickable:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(34, 227, 255, .35); }

/* публикации: сетка + удаление */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.media-item { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--border-strong); cursor: pointer; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .play { position: absolute; left: 8px; top: 8px; font-size: 14px; text-shadow: 0 0 6px #000; }
.media-item .mlike { position: absolute; left: 8px; bottom: 6px; font: 700 12px 'Inter', sans-serif; text-shadow: 0 1px 4px #000; }
.m-del { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border: none; border-radius: 8px; background: rgba(255, 77, 109, .9); color: #fff; font-weight: 900; cursor: pointer; }
.progress { height: 8px; margin: 0 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; display: none; }
.progress.on { display: block; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 10px var(--cyan); transition: width .2s; }
.file-list { font-size: 12px; color: var(--muted); margin: -6px 0 10px; }

/* уведомления и приглашения */
.mini-list .nt { display: flex; gap: 8px; align-items: flex-start; }
.mini-list .nt.new { color: #fff; font-weight: 600; }
.mini-list .nt.new::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.invite { padding: 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(255, 200, 87, .08); border: 1px solid rgba(255, 200, 87, .45); font-size: 13px; }
.invite .row { display: flex; gap: 8px; margin-top: 8px; }
.invite .row .btn { flex: 1; }
.streamer-row .s-left { display: flex; align-items: center; gap: 12px; }
.s-av { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border-strong); background: var(--bg-soft); display: grid; place-items: center; font: 900 18px 'Orbitron', sans-serif; }

/* TikTok-просмотр */
body.noscroll { overflow: hidden; }
.reels { position: fixed; inset: 0; z-index: 100002; background: #000; display: none; }
.reels.open { display: block; }
.reels-scroll { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; scroll-behavior: auto; overscroll-behavior: contain; }
.reel { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; background: #05030d; }
.reel-media { width: 100%; height: 100%; object-fit: contain; }
.reel-info { position: absolute; left: 14px; right: 84px; bottom: calc(24px + env(safe-area-inset-bottom)); text-shadow: 0 2px 8px #000; pointer-events: none; }
.reel-info b { color: var(--cyan); font-size: 16px; }
.reel-info p { margin-top: 4px; font-size: 14px; }
.reel-rail { position: absolute; right: 10px; bottom: calc(90px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.reel-rail button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 52px; padding: 8px 0; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 7, 22, .65); color: #fff; font: 700 11px 'Inter', sans-serif; cursor: pointer; backdrop-filter: blur(6px); }
.reel-rail button span { font-size: 22px; line-height: 1; }
.reel-rail button.on { border-color: var(--pink); box-shadow: 0 0 14px var(--pink); }
.reel-rail img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.reels-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 5; display: flex; justify-content: space-between; pointer-events: none; }
.reels-top button { pointer-events: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 7, 22, .7); color: #fff; font-size: 18px; cursor: pointer; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72%; z-index: 6; display: flex; flex-direction: column; transform: translateY(110%); transition: transform .3s; background: #0e0a1d; border-top: 2px solid var(--cyan); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(34, 227, 255, .25); }
.sheet.open { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); font-family: 'Orbitron', sans-serif; }
.sheet-head button { background: none; border: none; color: var(--text); font-size: 18px; cursor: pointer; }
#sheet-list { flex: 1; overflow-y: auto; padding: 10px 16px; font-size: 14px; }
#sheet-list .cm { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
#sheet-list .cm span { flex: 1; overflow-wrap: anywhere; }
#sheet-list .cm button { background: none; border: none; color: var(--red); cursor: pointer; }
.sheet-form { display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.sheet-form input { margin: 0; }

/* админ: отчёты, жалобы, доступы */
.rp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.rp-type { font: 800 11px 'Orbitron', sans-serif; padding: 4px 10px; border-radius: 999px; background: rgba(34, 227, 255, .12); border: 1px solid rgba(34, 227, 255, .5); color: var(--cyan); }
.rp-type.series { background: rgba(139, 92, 246, .15); border-color: var(--violet); color: #c9b6ff; }
.rp-score { font: 800 18px 'Orbitron', sans-serif; text-align: center; margin: 8px 0; }
.rp-score .a { color: var(--cyan); } .rp-score .b { color: var(--pink); }
.rp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rp-chip { font: 700 12px 'Inter', sans-serif; padding: 5px 10px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border-strong); }
.rp-chip.gold { color: var(--gold); }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.rp-team { padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); overflow-x: auto; }
.rp-team.l { border-top: 2px solid var(--cyan); } .rp-team.r { border-top: 2px solid var(--pink); }
.rp-tbl { min-width: 0; font-size: 12px; } .rp-tbl th, .rp-tbl td { padding: 5px 6px; } .rp-tbl .hs { color: var(--gold); }
.rp-det { margin: 6px 0; font-size: 13px; }
.rp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.warn { color: var(--gold); font-size: 12px; }
.adm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.adm-media { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.adm-media img, .adm-media video { max-width: 220px; max-height: 180px; border-radius: 10px; border: 1px solid var(--border-strong); }

@media (max-width: 640px) {
    .rp-grid { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .reel-rail button { width: 48px; }
}

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 800 11px 'Inter', sans-serif; background: var(--surface-strong); border: 1px solid var(--border-strong); color: var(--muted); }
.chip.l { color: var(--red); border-color: rgba(255, 77, 109, .5); background: rgba(255, 77, 109, .1); }
.chip.w { color: var(--green); border-color: rgba(46, 229, 157, .5); background: rgba(46, 229, 157, .1); }
.chip.g { color: var(--gold); border-color: rgba(255, 200, 87, .5); background: rgba(255, 200, 87, .1); }


/* ---------- история матчей игрока: каждая игра отдельной карточкой, строки сверху вниз ---------- */
.mcard { position: relative; margin-bottom: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.mcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--muted); }
.mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px 11px 20px; }
.mbadge { font: 900 15px 'Orbitron', sans-serif; letter-spacing: 2px; padding: 5px 16px; border-radius: 999px; }
.mdate { font: 600 12px 'Inter', sans-serif; color: var(--muted); }
.mb { display: flex; flex-direction: column; padding: 2px 16px 4px 20px; }
.mr { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .06); font: 600 14px 'Inter', sans-serif; }
.ml { color: var(--muted); font: 800 11px 'Inter', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; flex: 0 0 auto; }
.mv { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.mv.sc { font: 900 18px 'Orbitron', sans-serif; }
.mv.k { font: 900 16px 'Orbitron', sans-serif; color: var(--cyan); }
.mv.h { font: 900 16px 'Orbitron', sans-serif; color: var(--gold); }
.mv.up { font: 900 15px 'Orbitron', sans-serif; color: var(--green); }
.mv.dn { font: 900 15px 'Orbitron', sans-serif; color: var(--red); }
.mt { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 16px 12px 20px; }
.mtag { font: 800 10px 'Inter', sans-serif; padding: 3px 9px; border-radius: 999px; background: rgba(255, 200, 87, .13); border: 1px solid rgba(255, 200, 87, .45); color: var(--gold); }
.mtag.g { background: rgba(46, 229, 157, .12); border-color: rgba(46, 229, 157, .45); color: var(--green); }
.mtag.r { background: rgba(255, 77, 109, .14); border-color: rgba(255, 77, 109, .5); color: var(--red); }
.mtag.p { background: rgba(255, 61, 139, .14); border-color: rgba(255, 61, 139, .5); color: var(--pink); }
.mcard.win { border-color: rgba(46, 229, 157, .45); background: linear-gradient(135deg, rgba(46, 229, 157, .13), rgba(46, 229, 157, .03) 60%); box-shadow: 0 0 22px rgba(46, 229, 157, .18); }
.mcard.win::before { background: var(--green); box-shadow: 0 0 14px var(--green); }
.mcard.win .mbadge { color: #06251a; background: linear-gradient(135deg, #2ee59d, #7dffc4); box-shadow: 0 0 18px rgba(46, 229, 157, .65); }
.mcard.win .mv.sc { color: var(--green); }
.mcard.loss { border-color: rgba(255, 77, 109, .45); background: linear-gradient(135deg, rgba(255, 77, 109, .13), rgba(255, 77, 109, .03) 60%); box-shadow: 0 0 22px rgba(255, 77, 109, .18); }
.mcard.loss::before { background: var(--red); box-shadow: 0 0 14px var(--red); }
.mcard.loss .mbadge { color: #fff; background: linear-gradient(135deg, #ff4d6d, #ff2a55); box-shadow: 0 0 18px rgba(255, 77, 109, .65); }
.mcard.loss .mv.sc { color: var(--red); }
.mcard.draw .mbadge { color: #fff; background: rgba(255, 255, 255, .14); }

/* личное сообщение от администрации в уведомлениях */
.mini-list .nt-admin{padding:10px 12px;border-radius:12px;border:1px solid rgba(167,120,255,.45);background:rgba(139,92,246,.12);color:#eef0ff;margin:6px 0}
.nt-video{display:block;width:100%;max-width:420px;max-height:300px;margin:8px 0;border-radius:10px;background:#000}
.nt-admin small{display:block;margin-top:4px}
#notifications-list{max-height:560px}
.mini-list .nt-admin{display:block}
.mini-list .nt-admin.new::before{display:none}
.mini-list .nt-admin.new{border-color:#ff4fd8;box-shadow:0 0 14px rgba(255,79,216,.35)}
.nt-video{max-height:260px;object-fit:contain}

/* всплывающие уведомления (как пуш на телефоне) */
#push-host{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:100050;display:flex;flex-direction:column;gap:8px;width:min(420px,calc(100vw - 24px));pointer-events:none}
.push-card{pointer-events:auto;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:rgba(18,10,42,.94);backdrop-filter:blur(14px);border:1px solid rgba(167,120,255,.5);box-shadow:0 14px 40px rgba(0,0,0,.55);color:#eef0ff;cursor:pointer;transform:translateY(-130%);opacity:0;transition:transform .4s cubic-bezier(.2,.9,.3,1.2),opacity .3s}
.push-card.in{transform:none;opacity:1}
.push-card.out{transform:translateY(-130%);opacity:0}
.push-card.adm{border-color:#ff4fd8;box-shadow:0 14px 40px rgba(0,0,0,.55),0 0 20px rgba(255,79,216,.4)}
.push-ico{font-size:24px;flex:0 0 auto}
.push-tx{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.push-tx b{font-size:14px}
.push-tx span{font-size:13px;color:#c7cbe8;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.push-x{flex:0 0 auto;border:0;background:transparent;color:#9aa0c8;font-size:22px;line-height:1;cursor:pointer;padding:4px 6px}
@media (prefers-reduced-motion:reduce){.push-card{transition:opacity .2s;transform:none}.push-card.out{transform:none}}
