body { background: #f6f7f9; }
.cam-card { border: 1px solid #e3e5e8; overflow: hidden; color: inherit; transition: box-shadow .15s; }
.cam-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.cam-thumb { position: relative; aspect-ratio: 16/9; background: #222 url(/static/img/nocam.svg) center/40% no-repeat; }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-badge { position: absolute; left: 6px; top: 6px; font-weight: 500; }
.cam-src { position: absolute; right: 6px; top: 6px; opacity: .8; }
.cam-title { font-weight: 500; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.player-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 6px; overflow: hidden; }
.player-wrap iframe, .player-wrap video, .player-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.player-wrap .loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: rgba(0,0,0,.45); z-index: 5; pointer-events: none; transition: opacity .3s; }
.player-wrap .loading.hide { opacity: 0; }
.player-wrap .loading .spin { width: 54px; height: 54px; border: 5px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: wcwspin .9s linear infinite; }
.player-wrap .loading .txt { font-size: .95rem; text-shadow: 0 1px 3px #000; }
@keyframes wcwspin { to { transform: rotate(360deg); } }
.cand-thumb { width: 160px; height: 90px; object-fit: cover; background: #222; }
.table-sm td, .table-sm th { vertical-align: middle; }
.sugg { position: absolute; z-index: 20; background: #fff; border: 1px solid #ccc; max-height: 220px; overflow: auto; width: 100%; }
.sugg div { padding: 4px 8px; cursor: pointer; }
.sugg div:hover { background: #eef; }
.online-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #28a745; box-shadow: 0 0 0 0 rgba(40,167,69,.6); animation: wcwpulse 1.6s infinite; vertical-align: middle; }
.online-dot.small { width: 7px; height: 7px; animation: none; }
@keyframes wcwpulse { 0% { box-shadow: 0 0 0 0 rgba(40,167,69,.6); } 70% { box-shadow: 0 0 0 8px rgba(40,167,69,0); } 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); } }
@media (prefers-reduced-motion: reduce) { .online-dot { animation: none; } }
.stats-table td { padding: .25rem .4rem; border: 0; }
.stats-table .st-key { white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.stats-table .st-bar { width: 100%; }
.stats-table .bar { height: 12px; background: linear-gradient(90deg, #2bb0ff, #0b5fd8); border-radius: 3px; min-width: 2px; }
.stats-table .st-num { white-space: nowrap; font-weight: 500; }
.online-list li { padding: 2px 0; }
.seo-intro { max-width: 900px; color: #444; }
.seo-home p { max-width: 900px; }
.legal { max-width: 900px; }
.legal h2 { margin-top: 1.5rem; }
/* пункты меню не переносятся (английские подписи длиннее) */
.navbar .nav-link { white-space: nowrap; }
