/* SK Fans — под тёмную тему сайта с жёлтыми акцентами */
:root {
    --skf-bg: #1e1e1e;
    --skf-bg2: #2a2a2a;
    --skf-line: #3a3a3a;
    --skf-text: #e8e8e8;
    --skf-muted: #9a9a9a;
    --skf-accent: #f5c518;
    --skf-accent-text: #111;
    --skf-red: #ff5a5f;
}

/* шапка */
.headtop { position: relative; }
.skf-head { position: absolute; top: 4px; right: 15px; display: flex; gap: 14px; align-items: center; z-index: 20; font-size: 13px; line-height: 1; }
.skf-head-link { color: var(--skf-accent) !important; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.skf-head-link:hover { color: #fff !important; }
.skf-head-link img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.skf-head-float .skf-head { position: fixed; top: auto; bottom: 14px; left: 14px; right: auto; background: var(--skf-bg); border: 1px solid var(--skf-line); border-radius: 20px; padding: 6px 14px; }
@media (max-width: 767px) {
    .skf-head { position: static; justify-content: flex-end; padding: 6px 0 0; }
}

/* кнопки под плеером */
.skf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; position: relative; }
.skf-actions button { background: var(--skf-bg2); color: var(--skf-text); border: 1px solid var(--skf-line); border-radius: 18px; padding: 7px 14px; font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s; }
.skf-actions button:hover { border-color: var(--skf-accent); color: var(--skf-accent); }
.skf-like.on { border-color: var(--skf-red); color: var(--skf-red); }
.skf-like.on .skf-heart { animation: skf-pop .35s ease; }
@keyframes skf-pop { 50% { transform: scale(1.4); } }
.skf-heart { display: inline-block; font-size: 16px; line-height: 1; }

.skf-menu { position: absolute; top: 100%; left: 0; margin-top: 6px; background: var(--skf-bg); border: 1px solid var(--skf-line); border-radius: 8px; padding: 8px; min-width: 240px; max-width: 320px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.5); color: var(--skf-text); }
.skf-menu-h { font-size: 12px; color: var(--skf-muted); padding: 2px 6px 6px; }
.skf-menu-i { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; cursor: pointer; font-weight: normal; margin: 0; }
.skf-menu-i:hover { background: var(--skf-bg2); }
.skf-menu-i small { margin-left: auto; color: var(--skf-muted); }
.skf-menu-new { display: flex; gap: 6px; margin-top: 6px; }
.skf-menu-new input { flex: 1; min-width: 0; background: var(--skf-bg2); border: 1px solid var(--skf-line); color: var(--skf-text); border-radius: 6px; padding: 6px 8px; }
.skf-menu-new button { background: var(--skf-accent); color: var(--skf-accent-text); border: 0; border-radius: 6px; padding: 0 12px; font-weight: bold; cursor: pointer; }
.skf-menu-my { display: block; text-align: right; font-size: 12px; margin-top: 8px; color: var(--skf-accent); }

/* общие элементы */
.skf-btn { background: var(--skf-accent); color: var(--skf-accent-text); border: 0; border-radius: 6px; padding: 9px 18px; font-weight: bold; cursor: pointer; font-size: 14px; }
.skf-btn:hover { filter: brightness(1.08); }
.skf-btn:disabled { opacity: .5; cursor: default; }
.skf-btn-ghost { background: transparent; color: var(--skf-accent); border: 1px solid var(--skf-accent); }
.skf-link { background: none; border: 0; color: var(--skf-muted); cursor: pointer; text-decoration: underline; padding: 4px; font-size: 13px; }
.skf-link:hover { color: var(--skf-text); }
.skf-muted { color: var(--skf-muted); }
.skf-small { font-size: 12px; margin-top: 6px; }
.skf-err { color: var(--skf-red); }
.skf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.skf-box { background: var(--skf-bg); border: 1px solid var(--skf-line); border-radius: 10px; padding: 18px; margin-bottom: 20px; color: var(--skf-text); }
.skf-box h3 { margin-top: 0; }

/* окно входа */
.skf-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.skf-modal-box { background: var(--skf-bg); color: var(--skf-text); border: 1px solid var(--skf-line); border-radius: 12px; padding: 24px; width: 100%; max-width: 360px; position: relative; }
.skf-modal-box h3 { margin: 0 0 8px; }
.skf-x { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: var(--skf-muted); font-size: 24px; cursor: pointer; line-height: 1; }
.skf-x:hover { color: var(--skf-text); }
.skf-auth { display: block; text-align: center; border-radius: 8px; padding: 11px; margin: 10px 0 0; font-weight: bold; color: #fff !important; text-decoration: none !important; }
.skf-auth-vk { background: #0077ff; }
.skf-auth-ya { background: #fc3f1d; }
.skf-auth:hover { filter: brightness(1.1); }

/* опрос в углу */
.skf-pop { position: fixed; right: 16px; bottom: 16px; width: 320px; max-width: calc(100vw - 32px); background: var(--skf-bg); color: var(--skf-text); border: 1px solid var(--skf-line); border-radius: 12px; padding: 16px; z-index: 99990; box-shadow: 0 12px 40px rgba(0,0,0,.55); transform: translateY(20px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.skf-pop.on { transform: none; opacity: 1; }
.skf-pop-t { font-weight: bold; font-size: 15px; padding-right: 18px; }
.skf-pop-b { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
@media (max-width: 767px) {
    .skf-pop { right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; }
}

/* форма голосования */
.skf-vote-form { position: relative; margin-top: 10px; }
.skf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skf-chips:not(:empty) { margin-bottom: 8px; }
.skf-chip { background: var(--skf-bg2); border: 1px solid var(--skf-accent); color: var(--skf-text); border-radius: 14px; padding: 3px 4px 3px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }
.skf-chip button { background: none; border: 0; color: var(--skf-muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.skf-input { width: 100%; background: var(--skf-bg2); border: 1px solid var(--skf-line); color: var(--skf-text); border-radius: 6px; padding: 9px 10px; font-size: 14px; }
.skf-input:focus { outline: none; border-color: var(--skf-accent); }
.skf-vote-form > .skf-btn { margin-top: 10px; }
.skf-sugg { position: absolute; left: 0; right: 0; background: var(--skf-bg); border: 1px solid var(--skf-line); border-radius: 6px; z-index: 5; margin-top: 2px; overflow: hidden; }
.skf-sugg a, .skf-sugg button { display: block; width: 100%; text-align: left; padding: 8px 10px; background: none; border: 0; color: var(--skf-text) !important; cursor: pointer; font-size: 14px; text-decoration: none !important; }
.skf-sugg a:hover, .skf-sugg button:hover { background: var(--skf-bg2); }
.skf-sugg small { color: var(--skf-muted); margin-left: 6px; }
.skf-result { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.skf-result a { color: var(--skf-accent); }

/* раздел «Выбор зрителей» */
.skf-section h1 { margin-top: 10px; }
.skf-lead { color: var(--skf-muted); max-width: 760px; }
.skf-wishes { list-style: none; margin: 0; padding: 0; }
.skf-wishes li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--skf-line); }
.skf-wishes li:last-child { border-bottom: 0; }
.skf-w-name { flex: 0 0 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skf-w-bar { flex: 1; height: 6px; background: var(--skf-bg2); border-radius: 3px; overflow: hidden; }
.skf-w-bar i { display: block; height: 100%; background: var(--skf-accent); border-radius: 3px; transition: width .4s; }
.skf-w-n { font-size: 12px; color: var(--skf-muted); min-width: 44px; text-align: right; }
.skf-plus { background: var(--skf-bg2); color: var(--skf-accent); border: 1px solid var(--skf-line); border-radius: 12px; padding: 2px 9px; cursor: pointer; font-size: 12px; }
.skf-plus:hover { border-color: var(--skf-accent); }
.skf-pager { margin: 20px 0 30px; }
.skf-pager .page-numbers { display: inline-block; min-width: 34px; padding: 6px 10px; margin: 2px; border: 1px solid var(--skf-line); border-radius: 6px; color: var(--skf-text); }
.skf-pager .page-numbers.current { background: var(--skf-accent); color: var(--skf-accent-text); border-color: var(--skf-accent); }

/* «Мои клипы» */
.skf-my { padding-bottom: 30px; color: var(--skf-text); }
.skf-my-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.skf-my-head a { color: var(--skf-accent); }
.skf-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 10px; scrollbar-width: thin; }
.skf-tab { flex: 0 0 auto; background: var(--skf-bg2); color: var(--skf-text) !important; border: 1px solid var(--skf-line); border-radius: 16px; padding: 6px 14px; text-decoration: none !important; font-size: 14px; cursor: pointer; white-space: nowrap; }
.skf-tab small { color: var(--skf-muted); margin-left: 4px; }
.skf-tab.active { background: var(--skf-accent); color: var(--skf-accent-text) !important; border-color: var(--skf-accent); }
.skf-tab.active small { color: rgba(0,0,0,.6); }
.skf-list-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 16px; }
.skf-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.skf-item { display: flex; align-items: center; gap: 12px; background: var(--skf-bg); border: 1px solid var(--skf-line); border-radius: 8px; padding: 6px; }
.skf-item-play { position: relative; flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; overflow: hidden; }
.skf-item-play img { width: 128px; height: 72px; object-fit: cover; display: block; }
.skf-item-play span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .15s; }
.skf-item-play:hover span { opacity: 1; }
.skf-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.skf-item-t a { color: var(--skf-text) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skf-item-t small { color: var(--skf-muted); }
.skf-item-del { background: none; border: 0; color: var(--skf-muted); font-size: 16px; cursor: pointer; padding: 6px 10px; }
.skf-item-del:hover { color: var(--skf-red); }
@media (max-width: 520px) { .skf-item-play img { width: 96px; height: 54px; } }

/* плеер */
.skf-player { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 12px; margin-bottom: 18px; background: var(--skf-bg); border: 1px solid var(--skf-line); border-radius: 10px; padding: 10px; }
.skf-player[hidden] { display: none; }
.skf-player-screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.skf-player-screen iframe, .skf-player-screen #skf-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.skf-player-side { display: flex; flex-direction: column; min-height: 0; max-height: 420px; }
.skf-now b { display: block; font-size: 15px; }
.skf-now span { color: var(--skf-muted); font-size: 13px; }
.skf-controls { display: flex; gap: 6px; margin: 8px 0; }
.skf-controls button, .skf-controls a { background: var(--skf-bg2); border: 1px solid var(--skf-line); color: var(--skf-text) !important; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 16px; line-height: 1; text-decoration: none !important; }
.skf-controls .on { border-color: var(--skf-accent); color: var(--skf-accent) !important; }
.skf-queue { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.skf-queue li { display: flex; gap: 8px; align-items: center; padding: 5px; border-radius: 6px; cursor: pointer; }
.skf-queue li:hover { background: var(--skf-bg2); }
.skf-queue li.on { background: var(--skf-bg2); outline: 1px solid var(--skf-accent); }
.skf-queue img { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.skf-queue span { min-width: 0; display: flex; flex-direction: column; }
.skf-queue b { font-weight: normal; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skf-queue small { color: var(--skf-muted); font-size: 11px; }
.skf-player-msg { font-size: 13px; color: var(--skf-accent); margin-top: 8px; }
@media (max-width: 860px) {
    .skf-player { grid-template-columns: 1fr; }
    .skf-player-side { max-height: 300px; }
}

/* всплывающая подсказка */
.skf-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #111; color: #fff; border: 1px solid var(--skf-line); padding: 9px 16px; border-radius: 20px; font-size: 14px; z-index: 100001; opacity: 0; transition: all .3s; pointer-events: none; }
.skf-toast.on { opacity: 1; transform: translate(-50%, 0); }
