/
streamlive
/
streamliveV16
Обзор
Документация
Войти
/
streamlive
/
streamliveV16
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
master
assets/css/style.css
491 строка
29 KB
TwixoffStudio
Create: 023_broadcast_reactions.sql, broadcast_channel.php, broadcast_post_react.php, style.css, antibot.php, header.php
20 июл 2026, 05:43
Верифицирован
20 июл 2026, 05:43
a64edb5
Код
Авторство
О чём код?
:root { --bg: #0b0b10; --bg-elevated: #15151d; --card: #1b1b24; --border: #2a2a36; --text: #f2f2f7; --text-dim: #9a9aac; --accent-1: #fe2c55; /* tiktok red-pink */ --accent-2: #25f4ee; /* tiktok cyan */ --accent-grad: linear-gradient(135deg, var(--accent-1), #ff6b8b 50%, var(--accent-2)); --radius: 16px; --danger: #ff4d4f; --ok: #2ee6a8; } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; min-height: 100vh; overflow-x: hidden; } /* Страховка на весь сайт: длинная ссылка/слово без пробелов (в чате, комментах, где угодно) не должна раздвигать страницу вбок на мобилке. */ p, .chat-msg, .msg-bubble { word-break: break-word; overflow-wrap: anywhere; } a { color: inherit; text-decoration: none; } .container { max-width: 1180px; margin: 0 auto; padding: 0 20px; } /* ---------- Navbar ---------- */ .navbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: rgba(11,11,16,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); } .brand { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; } .nav-links { display: flex; gap: 18px; align-items: center; } .nav-links a { color: var(--text-dim); font-weight: 600; font-size: 14px; } .nav-links a:hover { color: var(--text); } @media (max-width: 860px) { .navbar { flex-wrap: wrap; padding: 10px 14px; gap: 8px; } .nav-links { flex-wrap: wrap; gap: 8px 12px; font-size: 13px; row-gap: 6px; } .nav-links a { font-size: 12.5px; } .nav-links .btn-sm { padding: 6px 12px; font-size: 12.5px; } } .btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: transform .15s ease, opacity .15s ease; } .btn:hover { transform: translateY(-1px); } .btn-primary { background: var(--accent-grad); color: #0b0b10; } .btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); } .btn-danger { background: var(--danger); color: #fff; } .btn-ok { background: var(--ok); color: #06231a; } .btn-sm { padding: 6px 12px; font-size: 12px; } /* ---------- Cards / catalog ---------- */ .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding: 24px 0 60px; } .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, border-color .18s ease; } .card:hover { transform: translateY(-4px); border-color: var(--accent-1); } .card-thumb { aspect-ratio: 9/12; background: linear-gradient(160deg,#1e1e2a,#0f0f16); display: flex; align-items: center; justify-content: center; position: relative; } .card-thumb img { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; } .badge-live { position: absolute; top: 10px; left: 10px; background: var(--accent-1); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; display: flex; align-items: center; gap: 4px; } .badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; } .card-body { padding: 14px; } .card-title { font-weight: 700; font-size: 15px; margin: 0 0 4px; } .card-meta { font-size: 12px; color: var(--text-dim); } .type-tabs { display: flex; gap: 10px; padding-top: 20px; } .type-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-dim); } .type-tabs a.active { background: var(--accent-grad); color: #0b0b10; border-color: transparent; } /* ---------- Forms ---------- */ .form-card { max-width: 480px; margin: 60px auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; } .form-wide { max-width: 720px; } label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin: 16px 0 6px; } input, textarea, select { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); font-size: 14px; font-family: inherit; } input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-2); border-color: transparent; } textarea { resize: vertical; min-height: 90px; } code { word-break: break-all; } @media (max-width: 600px) { .form-card form[style*="flex"] > div { flex: 1 1 100% !important; min-width: 0 !important; } } .oauth-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; } .oauth-btn { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elevated); font-size: 13px; font-weight: 600; } .oauth-btn img { width: 18px; height: 18px; } .alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; } .alert-success { background: rgba(46,230,168,0.12); color: var(--ok); border: 1px solid rgba(46,230,168,0.3); } .alert-error { background: rgba(255,77,79,0.12); color: var(--danger); border: 1px solid rgba(255,77,79,0.3); } /* ---------- Channel view ---------- */ .channel-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; padding: 24px 0 60px; align-items: start; } @media (max-width: 900px) { .channel-layout { grid-template-columns: 1fr; } } .player-wrap { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; position: relative; } .player-wrap video, .player-wrap iframe { width: 100%; height: 100%; border: 0; } .player-logo { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 8px; opacity: .85; pointer-events: none; object-fit: cover; z-index: 5; } .channel-header { display: flex; align-items: center; gap: 14px; margin: 16px 0; flex-wrap: wrap; } .channel-header img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; } .channel-header h1 { font-size: 20px; margin: 0; } @media (max-width: 600px) { .channel-header > div:last-child { margin-left: 0 !important; width: 100%; } } .channel-stats { color: var(--text-dim); font-size: 13px; } .chat-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; height: 640px; } .chat-header { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; } .chat-messages { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; } .chat-msg { font-size: 13px; line-height: 1.4; } .chat-msg b { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; } .chat-msg .del-btn { color: var(--danger); font-size: 11px; margin-left: 6px; cursor: pointer; } .chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); } .chat-input-row input { flex: 1; } .sticker-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 10px; } .sticker-row img { width: 26px; height: 26px; cursor: pointer; border-radius: 6px; } .schedule-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; } .schedule-table th, .schedule-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; } .schedule-table tr.active-row td { color: var(--accent-2); font-weight: 700; } @media (max-width: 600px) { .schedule-table { display: block; overflow-x: auto; white-space: nowrap; } .chat-panel { height: 420px; } } .inline-sticker { width: 22px; height: 22px; vertical-align: middle; margin: 0 1px; } .live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,77,79,0.15); color: var(--danger); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; animation: live-pulse 1.6s infinite; letter-spacing: .3px; } .live-badge-offline { background: rgba(150,150,150,0.15); color: var(--text-dim); animation: none; } @keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } } /* ---------- Форум ---------- */ .forum-cat-list, .forum-thread-list, .forum-post-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; } .forum-cat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: 1fr 140px 260px; gap: 16px; align-items: center; } @media (max-width: 800px) { .forum-cat-card { grid-template-columns: 1fr; } } .forum-cat-title { font-size: 16px; font-weight: 700; color: var(--text); } .forum-cat-title:hover { color: var(--accent-2); } .forum-cat-desc { color: var(--text-dim); font-size: 13px; margin: 4px 0 0; } .forum-cat-stats { display: flex; gap: 18px; } .forum-cat-stats div { text-align: center; font-size: 12px; color: var(--text-dim); } .forum-cat-stats b { display: block; font-size: 16px; color: var(--text); } .forum-cat-last { font-size: 13px; display: flex; flex-direction: column; gap: 2px; } .forum-cat-last a { color: var(--accent-2); } .forum-thread-row { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .forum-thread-main { flex: 1 1 260px; min-width: 0; } .forum-thread-title { font-size: 15px; font-weight: 700; color: var(--text); } .forum-thread-title:hover { color: var(--accent-2); } .forum-thread-stats { display: flex; gap: 16px; } .forum-thread-stats div { text-align: center; font-size: 12px; color: var(--text-dim); } .forum-thread-stats b { display: block; font-size: 14px; color: var(--text); } .pin-badge, .lock-badge, .role-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: middle; } .pin-badge { background: rgba(124,92,255,0.15); color: var(--accent-2); } .lock-badge { background: rgba(255,77,79,0.15); color: var(--danger); } .role-badge { background: var(--accent-grad); color: #fff; } .forum-post { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; } .forum-post-author { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .forum-post-author img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; } .forum-post-body { font-size: 14px; line-height: 1.6; word-break: break-word; } .forum-post-body img.bb-img { max-width: 100%; border-radius: 8px; margin: 6px 0; } .forum-post-body .bb-code-block { position: relative; margin: 8px 0; } .forum-post-body pre.bb-code { background: #0d0d14; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; padding-top: 34px; overflow-x: auto; font-size: 12.5px; white-space: pre-wrap; margin: 0; max-height: 480px; overflow-y: auto; } .forum-post-body .bb-code-copy { position: absolute; top: 6px; right: 6px; z-index: 1; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer; } .forum-post-body .bb-code-copy:hover { color: var(--accent-2); border-color: var(--accent-2); } .forum-post-body .bb-quote { border-left: 3px solid var(--accent-2); background: var(--bg-elevated); padding: 8px 12px; margin: 8px 0; border-radius: 0 8px 8px 0; } .forum-post-body .bb-quote-author { font-size: 12px; font-weight: 700; color: var(--accent-2); margin-bottom: 4px; } .forum-post-body ul.bb-list { margin: 6px 0; padding-left: 22px; } .forum-post-body details.bb-spoiler { margin: 8px 0; background: var(--bg-elevated); border-radius: 8px; padding: 8px 12px; } .forum-post-body details.bb-spoiler summary { cursor: pointer; color: var(--accent-2); font-size: 13px; font-weight: 600; } .forum-post-body .bb-table-wrap { margin: 10px 0; overflow-x: auto; } .reaction-pill { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 2px 8px; font-size: 12px; cursor: pointer; color: var(--text); } .reaction-pill:hover { border-color: var(--accent-2); } .reaction-pill-mine { border-color: var(--accent-2); background: rgba(0,212,255,0.12); } .reaction-add-toggle { background: none; border: 1px dashed var(--border); border-radius: 14px; padding: 2px 6px; font-size: 12px; cursor: pointer; color: var(--text-dim); } .reaction-add-toggle:hover { color: var(--accent-2); border-color: var(--accent-2); } .forum-post-body table.bb-table { border-collapse: collapse; width: 100%; font-size: 13px; } .forum-post-body table.bb-table td, .forum-post-body table.bb-table th { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; } .forum-post-body table.bb-table th { background: var(--bg-elevated); font-weight: 700; } .forum-post-body table.bb-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); } .bb-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; } .bb-toolbar button { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; } .bb-toolbar button:hover { border-color: var(--accent-2); color: var(--accent-2); } /* ---------- Admin ---------- */ .admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 62px); } .admin-sidebar { border-right: 1px solid var(--border); padding: 24px 0; } .admin-sidebar a { display: block; padding: 10px 24px; font-size: 14px; color: var(--text-dim); font-weight: 600; } .admin-sidebar a:hover, .admin-sidebar a.active { color: var(--text); background: var(--bg-elevated); } .admin-content { padding: 30px; } .stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; } .stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; } .stat-card .num { font-size: 30px; font-weight: 800; } .stat-card .lbl { color: var(--text-dim); font-size: 13px; } table.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; } table.admin-table th { text-align: left; background: var(--bg-elevated); padding: 12px 14px; font-size: 12px; color: var(--text-dim); } table.admin-table td { padding: 12px 14px; border-top: 1px solid var(--border); font-size: 13px; } @media (max-width: 720px) { table.admin-table { display: block; overflow-x: auto; white-space: nowrap; border-radius: var(--radius); } table.admin-table th, table.admin-table td { white-space: nowrap; } } .status-pill { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; } .status-pending { background: rgba(255,193,7,0.15); color: #ffc107; } .status-approved { background: rgba(46,230,168,0.15); color: var(--ok); } .status-rejected { background: rgba(255,77,79,0.15); color: var(--danger); } .empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); } /* ---------- Плавающий мини-плеер (эфир не прерывается на других страницах, напр. на форуме) ---------- */ .mini-player { position: fixed; right: 18px; bottom: 18px; width: 300px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.45); overflow: hidden; z-index: 999; } .mini-player-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); } .mini-player-title-link { color: var(--text); font-weight: 700; font-size: 12px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mini-player-title-link:hover { color: var(--accent-2); } .mini-player-controls { display: flex; gap: 2px; flex-shrink: 0; } .mini-player-controls button { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; padding: 3px 7px; border-radius: 6px; } .mini-player-controls button:hover { color: var(--text); background: var(--card); } .mini-player-body { aspect-ratio: 16/9; background: #000; } .mini-player-body iframe { width: 100%; height: 100%; border: 0; } .mini-player.collapsed .mini-player-body { display: none; } @media (max-width: 640px) { .mini-player { width: 220px; right: 10px; bottom: 10px; } } /* ---------- Лайки / избранное ---------- */ #like-btn.liked, .short-like-btn.liked { color: var(--accent-1); border-color: var(--accent-1); } #fav-btn.favorited { color: #ffc107; border-color: #ffc107; } /* ---------- T2000 (ИИ-ассистент) ---------- */ .ai-shell { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin: 24px 0; align-items: start; } .ai-sidebar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 16px; } .ai-conv-link { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text-dim); font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ai-conv-link:hover { background: var(--card); color: var(--text); } .ai-conv-link.active { background: var(--card); color: var(--accent-2); font-weight: 700; } .ai-main { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; } .ai-messages { display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; padding-right: 4px; } .ai-msg { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; } .ai-msg b { font-size: 12px; color: var(--accent-2); } .ai-msg-user b { color: var(--accent-1); } .ai-msg-body { font-size: 14px; line-height: 1.5; margin-top: 4px; white-space: pre-wrap; word-break: break-word; } #ai-form textarea { flex: 1; resize: vertical; font-family: inherit; } @media (max-width: 720px) { .ai-shell { grid-template-columns: 1fr; } .ai-sidebar { position: static; flex-direction: row; overflow-x: auto; } } /* ---------- Нижняя мобильная навигация (в духе TikTok) ---------- */ .mobile-tabbar { display: none; } @media (max-width: 720px) { .mobile-tabbar { display: flex; align-items: center; justify-content: space-around; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: rgba(11,11,16,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); } body { padding-bottom: 58px; } .site-footer { padding-bottom: 20px; margin-top: 24px; } .cookie-banner { bottom: calc(16px + 58px + env(safe-area-inset-bottom, 0px)); } .mini-player { bottom: calc(10px + 58px + env(safe-area-inset-bottom, 0px)) !important; } } .mobile-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; color: var(--text-dim); font-size: 10px; padding: 4px 0; position: relative; } .mobile-tab.active { color: var(--text); } .mobile-tab svg { opacity: .85; } .mobile-tab.active svg { opacity: 1; color: var(--accent-2); } .mobile-tab-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; } .mobile-tab.active .mobile-tab-avatar { outline: 2px solid var(--accent-2); } .mobile-tab-plus-icon { width: 42px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--accent-grad); color: #fff; font-size: 22px; font-weight: 700; border-radius: 8px; line-height: 1; } .mobile-tab-badge { position: absolute; top: -2px; right: 22%; min-width: 15px; height: 15px; padding: 0 3px; background: var(--danger); color: #fff; font-size: 9px; font-weight: 700; border-radius: 999px; display: flex; align-items: center; justify-content: center; } /* ---------- Футер ---------- */ .site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 0 90px; } .site-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-dim); } .site-footer-links { display: flex; gap: 16px; flex-wrap: wrap; } .site-footer-links a { color: var(--text-dim); } .site-footer-links a:hover { color: var(--accent-2); } /* ---------- Баннер согласия на cookie ---------- */ .cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 12px 32px rgba(0,0,0,.45); } .cookie-banner-text { flex: 1; min-width: 220px; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; } .cookie-banner-text a { color: var(--accent-2); } .cookie-banner-actions { flex-shrink: 0; } @media (max-width: 640px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px; } } /* ---------- Юридические страницы / докс ---------- */ .legal-doc { max-width: 820px; margin: 30px auto 70px; } .legal-doc h1 { font-size: 26px; margin-bottom: 4px; } .legal-doc h2 { font-size: 17px; margin: 26px 0 8px; color: var(--text); } .legal-doc p, .legal-doc li { font-size: 14px; line-height: 1.6; color: var(--text-dim); } .legal-doc ul { padding-left: 22px; } .legal-doc code { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 12.5px; } .legal-updated { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; } .legal-links { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; } .legal-links a { color: var(--accent-2); } /* ---------- Галочка верификации (в стиле Telegram) ---------- */ .verify-badge { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: #229ed9; color: #fff; font-size: 10px; line-height: 1; vertical-align: middle; margin-left: 2px; flex-shrink: 0; } /* ---------- Профиль пользователя (в стиле TikTok) ---------- */ .profile-header { display: flex; align-items: center; gap: 20px; margin: 30px 0 10px; flex-wrap: wrap; } .profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg-elevated); border: 2px solid var(--border); } .profile-info h1 { font-size: 22px; margin: 0 0 8px; } .profile-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); } .profile-stats b { color: var(--text); font-size: 14px; } .profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; } .profile-grid-item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border); } .profile-grid-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-elevated); display: block; } .profile-grid-caption { padding: 8px 10px; font-size: 12.5px; } .profile-grid-caption b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .profile-private-badge { font-size: 10.5px; color: var(--text-dim); } @media (max-width: 480px) { .profile-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; } } /* ---------- Бейдж непрочитанных в шапке ---------- */ .nav-messages { position: relative; } .nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 5px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; vertical-align: middle; } /* ---------- Мессенджер ---------- */ .msg-shell { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin: 24px 0 60px; height: calc(100vh - 220px); min-height: 480px; } @media (max-width: 800px) { .msg-shell { grid-template-columns: 1fr; height: auto; } } .msg-sidebar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; overflow-y: auto; } .msg-search-box { position: relative; margin-bottom: 4px; } .msg-search-box input { width: 100%; box-sizing: border-box; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; color: var(--text); font-size: 13px; } .msg-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 6px; max-height: 320px; overflow-y: auto; box-shadow: 0 12px 28px rgba(0,0,0,.4); } .msg-search-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); } .msg-search-item:hover { background: var(--bg-elevated); } .msg-search-item img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--bg-elevated); flex-shrink: 0; } .msg-search-item span { font-size: 13px; } .msg-search-empty { padding: 10px 8px; font-size: 12.5px; color: var(--text-dim); } .msg-conv-list { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; } .msg-conv-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); position: relative; } .msg-conv-item:hover, .msg-conv-item.active { background: var(--bg-elevated); } .msg-conv-item img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--bg-elevated); flex-shrink: 0; } .msg-conv-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; } .msg-conv-meta b { font-size: 13.5px; } .msg-conv-meta span { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .msg-unread-badge { flex-shrink: 0; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-grad); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 5px; } .msg-suggest-list { display: flex; flex-direction: column; gap: 4px; } .msg-suggest-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); } .msg-suggest-item:hover { background: var(--bg-elevated); } .msg-suggest-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg-elevated); flex-shrink: 0; } .msg-suggest-item span { flex: 1; font-size: 13px; } .msg-suggest-item b { font-size: 11.5px; color: var(--accent-2); font-weight: 700; } .msg-chat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; min-height: 400px; } .msg-chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); } .msg-chat-header img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--bg-elevated); } .msg-thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; } .msg-bubble-row { display: flex; } .msg-bubble-row.own { justify-content: flex-end; } .msg-bubble { max-width: 70%; padding: 9px 13px; border-radius: 14px; background: var(--bg-elevated); font-size: 13.5px; line-height: 1.45; word-break: break-word; } .msg-bubble-row.own .msg-bubble { background: var(--accent-grad); color: #fff; } .msg-input-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); } .msg-input-row input { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: 13.5px; } .msg-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 13.5px; padding: 40px; text-align: center; } .player-wrap iframe { width: 100%; height: 100%; max-width: 100%; /* Добавьте это */ border: 0; }