      .tracks-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 16px;
            margin-top: 16px;
        }

        .track-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background: var(--panel);
            border-radius: var(--radius);
            padding: 14px;
            box-shadow: var(--shadow);
            min-height: 150px;
            /* чтобы карточки не схлопывались */
        }

        .track-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
        }

        .track-main {
            flex: 1;
            /* занимает всё свободное место */
        }

        .track-title {
            font-weight: 700;
            margin-bottom: 4px;
        }

        .track-author {
            margin-top: auto;
            margin-bottom: 8px;
            color: var(--muted);
            font-size: 0.9em;
        }

        .track-actions {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-top: 10px;
        }

        .action {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 36px;
            border-radius: 10px;
            background: rgba(255, 255, 255, .06);
            border: 1px solid rgba(255, 255, 255, .08);
            color: var(--text);
            text-decoration: none;
            transition: transform .15s ease, background .15s ease;
        }

        .action:hover {
            background: rgba(255, 255, 255, .10);
            transform: translateY(-1px);
        }

        .action .count {
            font-weight: 600;
            opacity: .9;
        }

        .action.selected {
            outline: 2px solid rgba(255, 255, 255, .25);
            background: rgba(255, 255, 255, .14);
        }

        .action.is-loading {
            opacity: .6;
            pointer-events: none;
        }


        .track-actions button.action,
        .track-actions a.action {
            width: 100%;
            /* чтобы занять всю ячейку */
            border: 0;
            background: transparent;
            /* сброс для кнопок */
            background: rgba(255, 255, 255, .06);
            cursor: pointer;
        }

        .search-bar {
            margin: 28px 0;
            display: flex;
            gap: 10px;
        }

        .search-bar input {
            flex: 1;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, .1);
            background: #0e1217;
            color: var(--text);
        }

        .section h2 {
            margin-bottom: 10px;
        }

        .download-btn.is-loading {
            opacity: .6;
            pointer-events: none;
        }

        .kfn-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .8);
            backdrop-filter: blur(2px);
            z-index: 9999;
            display: none
        }

        .kfn-modal.open {
            display: block
        }

        .kfn-stage {
            position: absolute;
            inset: 2vh 2vw;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, .5);

            background-repeat: no-repeat;
            background-size: 100% auto;
            background-position: top center;
            background-color: black;
        }

        .kfn-stage.has-bg {
            background-image: url("https://karaoke-vocalize.com/static/preview_bg.jpg")
        }
        .kfn-vol.no-track {
    opacity: 0.3;
    cursor: not-allowed;
}

        .kfn-close {
            position: absolute;
            right: 18px;
            top: 18px;
            z-index: 200;
            font: 700 18px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
            color: #fff;
            background: rgba(0, 0, 0, .45);
            padding: 10px 14px;
            border-radius: 12px;
            cursor: pointer;
            user-select: none
        }

        .kfn-close:hover {
            background: rgba(0, 0, 0, .6)
        }

        .kfn-canvas {
            position: absolute;
            inset: 0;
            display: grid;
            grid-template-rows: 1fr auto;
            color: #fff
        }

        .kfn-ind {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            pointer-events: none;
            opacity: 0;
            transition: opacity .15s ease;
            font-size: clamp(64px, 10vw, 120px);
            text-shadow: 0 6px 25px rgba(0, 0, 0, .6)
        }

        .kfn-ind.show {
            opacity: 1
        }

        .kfn-seek input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, .25);
            border-radius: 999px;
            outline: none;
        }

        .kfn-seek input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(255, 255, 255, .35);
        }

        .kfn-seek input[type="range"]::-moz-range-thumb {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #fff;
            border: none;
            box-shadow: 0 0 0 4px rgba(255, 255, 255, .35);
        }

        .kfn-seek-wrap {
            position: relative;
            width: 100%
        }

        .kfn-lyrics {
            display: flex;
            flex-direction: column;

            justify-content: center;
            align-items: center;
            gap: 10px;
            padding: 0 36px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            font-size: clamp(18px, 5vw, 60px);
            --future: rgba(255, 255, 255, .35);
            --sung: #fff;
        }

        .kfn-lyrics .line-slot {
            min-height: 1.2em;
            line-height: 1.25;
            text-align: center
        }

        .word {
            display: inline-block;
            white-space: nowrap;
        }

        .word .syll {
            position: relative;
            display: inline-block;
        }


        .word .fill {
            position: absolute;
            inset: 0 auto 0 0;
            white-space: pre;
            pointer-events: none;
            color: var(--sung);
            clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0);
            mask-image: linear-gradient(to right, #000 0 var(--p, 0%), transparent var(--p, 0%));
            -webkit-mask-image: linear-gradient(to right, #000 0 var(--p, 0%), transparent var(--p, 0%));
            
        }


        /* Текст таймлайна «Проигрыш N сек» */
        .timeline {
            display: inline-block;
            padding: .15em .5em;
            border-radius: 999px;
            background: rgba(0, 0, 0, .35);
            color: #fff;
            font-weight: 600;
            letter-spacing: .3px;
            font-size: 80%;
            vertical-align: middle;
        }

        .kfn-lyrics .line {
            opacity: .75
        }

        .kfn-lyrics .line.active {
            opacity: 1
        }


        /* Целиком спетое слово */
        .word.sung {
            color: var(--sung);
        }

        .kfn-title {
            position: absolute;
            top: 10px;
            left: 0;
            right: 0;
            text-align: center;
            font-size: 3.4em;
            font-weight: 600;
            color: #fff;
            text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
            pointer-events: none;
            z-index: 10;
        }



        /* === Контролы снизу: без бегунка === */
        .kfn-controls {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px 14px;
            background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
        }

        .kfn-time {
            font: 600 20px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
            color: #fff;
            opacity: .95;
            min-width: 50px;
            text-align: center
        }

        .kfn-seek {
            flex: 1;
            display: flex;
            align-items: center;
            cursor: pointer;
            height: 24px
        }

        .kfn-seek .track {
            position: relative;
            width: 100%;
            height: 15px;
            border-radius: 999px;
            background: rgba(255, 255, 255, .25);
            overflow: hidden;
            touch-action: none;
        }

        .kfn-seek .progress {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0%;
            background: #fff;
            opacity: .9
        }

        .timeline-slot {
            position: relative;
            min-height: 1.5em;
            text-align: center;
            margin-bottom: .4em;
            font-size: 80%;
        }

        .timeline-slot .timeline-wrap {
            display: inline-flex;
            align-items: center;
            gap: .6em;
            padding: .25em .6em;
            color: #fff;
            font-weight: 600;
            letter-spacing: .3px;
            flex-direction: column-reverse;
        }

        .timeline-slot .timeline-bar {
            position: relative;
            width: min(42vw, 520px);
            height: 3vh;
            border-radius: 3px;
            background: rgba(255, 255, 255, .8);
            overflow: hidden;
        }

        .timeline-slot .timeline-bar .fill {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0%;
            background: #f33;
            opacity: .9;
        }

        .timeline-slot .timeline-label {
            white-space: nowrap;
        }

        /* колонки громкости внутри .kfn-controls */
.kfn-volwrap{
    display:flex; gap:14px; align-items:flex-end; margin-right:8px;
}
.kfn-volcol{
    display:flex; flex-direction:column; align-items:center; gap:6px;
    font-size:12px; color:#dbe2ea; user-select:none;
}
.kfn-volcol input[type="range"]{
    writing-mode: bt-lr;            /* Firefox */
    -webkit-appearance: slider-vertical; /* WebKit */
    width:16px; height:10vh; padding:0;
}
.kfn-volcol input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance:none; width:16px; height:16px; border-radius:50%;
    background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.35);
}
.kfn-volcol input[type="range"]::-moz-range-thumb{
    width:16px; height:16px; border:none; border-radius:50%; background:#fff;
}


/* кнопка в тайтле */
.kfn-ratebtn{
  margin-left:auto; height:32px; padding:0 10px;
  border-radius:10px; border:1px solid rgba(255,255,255,.15);
  background:rgba(0,0,0,.35); color:#fff; cursor:pointer;
}

/* review modal */
.rvw-modal{position:fixed; right:20px; bottom:20px; z-index:9999}
.rvw-modal.min .rvw-win{display:none}
.rvw-modal.min .rvw-dock{display:inline-flex}

.rvw-win{
  width:min(460px, 92vw);
  background:#121720; color:gold; border-radius:14px;
  box-shadow:0 12px 36px rgba(0,0,0,.5); overflow:hidden
}
.rvw-head{display:flex; align-items:center; justify-content:space-between; padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08)}
.rvw-actions button{background:transparent; border:0; color:#fff; font-size:18px; cursor:pointer; opacity:.9}
.rvw-body{padding:12px; display:flex; flex-direction:column; gap:10px}
.rvw-stars{display:flex; gap:6px}
.rvw-stars button{font-size:22px; background:transparent; border:0; color:gold; cursor:pointer; opacity:.85}
.rvw-stars button:hover{opacity:1}
.rvw-comment{width:100%; background:#0e1217; border:1px solid rgba(255,255,255,.12); color:#fff; border-radius:10px; padding:10px}

.rvw-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-top:1px solid rgba(255,255,255,.08)}
.rvw-status{font-size:12px; color:#c6d0e1; min-height:1em}
.rvw-dock{display:none; position:relative; background:#121720; color:#fff; border:1px solid rgba(255,255,255,.12);
  border-radius:999px; padding:8px 14px; cursor:pointer}
/* если есть хит-слой над всей сценой — отключаем клики у него */
.kfn-seek-hit, .kfn-overlay, .kfn-lyrics-overlay { pointer-events: none; }

/* у заголовка и кнопки клики разрешены и они над хит-слоем */
.kfn-title, .kfn-ratebtn { pointer-events: auto; position: relative; z-index: 31; }
.dock-rating{
    padding-top: 2px;
    padding-left: 4px;
}