:root {
            --bg: #0b0d10;
            /* тёмный фон */
            --panel: #11151a;
            /* панели/карточки */
            --muted: #9aa4af;
            /* вторичный текст */
            --text: #e9eef3;
            /* основной текст */
            --brand: #6ee7ff;
            /* акцент 1 */
            --brand2: #b794ff;
            /* акцент 2 */
            --ok: #22c55e;
            /* зелёный */
            --warn: #f59e0b;
            /* жёлтый */
            --err: #ef4444;
            /* красный */
            --radius: 18px;
            --shadow: 0 10px 30px rgba(0, 0, 0, .35);
            --grad: radial-gradient(1200px 600px at 20% -10%, rgba(110, 231, 255, .12), transparent 60%),
                radial-gradient(1200px 600px at 80% -10%, rgba(183, 148, 255, .10), transparent 60%);

  --primary:#6a4eff;     /* фиолет */
  --secondary:#3c74ff;   /* индиго/голубой */
  --accent:#5ecbff;      /* яркий голубой для свечения */
  --light:#e6e8ff;
  --dark:#0b0a16;

        }

        * {
            box-sizing: border-box
        }

        html,
        body {
            height: 100%
        }

        body {
            margin: 0;            
            font-family: 'Montserrat', sans-serif;
            background: var(--bg);
            color: var(--text);
            background-image: var(--grad);
            background-attachment: fixed;
        }

        a {
            color: inherit;
            text-decoration: none
        }

        .tagline {
            font-size: 1.5rem;
            opacity: 0.9;
            margin-bottom: 2rem;
        }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

main.container {
  
            line-height: 1.5;
            letter-spacing: .2px;
}

        /* Header */

        header {
            text-align: center;
            padding: 2rem 0;
        }


        .nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 14px 0
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 800;
            letter-spacing: .4px
        }


        .download-section {
    backdrop-filter: blur(16px);
    box-shadow: 0 0 60px rgba(80, 60, 160, 0.25);
    border: 1px solid rgba(180, 160, 255, 0.08);
}
        
.logo{
  font-size:3rem;
  font-weight:900;
  letter-spacing:.5px;
  margin-bottom:1rem;
  background: linear-gradient(90deg, #c8baff 0%, #7b6bff 35%, #55b9ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:
    0 0 18px rgba(123,107,255,.35),
    0 2px 10px rgba(0,0,0,.35);
}

        .logo img {
            width: 42px;
            height: 42px;
            object-fit: contain;
            display: block;
            /*background: radial-gradient(circle at center, #0b0d10 0%, #0b0d10 100%);*/
            border-radius: 12px;
            padding: 4px;
        }

        .menu {
            display: flex;
            gap: 10px;
            flex-wrap: wrap
        }

        .menu a {
            padding: 8px 12px;
            border-radius: 10px;
            color: var(--muted);
            font-weight: 600
        }

        .menu a.active,
        .menu a:hover {
            color: var(--text);
            background: rgba(255, 255, 255, .06)
        }

        .cta {
            display: flex;
            gap: 10px;
            align-items: center
        }

        .btn,
        button {
            appearance: none;
            border: none;
            cursor: pointer;
            padding: 10px 14px;
            border-radius: 12px;
            font-weight: 700;
            background: linear-gradient(135deg, var(--brand), var(--brand2));
            color: #0a0c0f;
            box-shadow: var(--shadow);
            font-size: 1em;
        }

        .btn.ghost {
            background: transparent;
            color: var(--text);
            border: 1px solid rgba(255, 255, 255, .12)
        }

        .btn.small {
            padding: 8px 12px;
            font-weight: 600
        }

        /* Hero */
        .hero {
            padding: 72px 0 0
        }


        .tag {
            display: inline-flex;
            gap: 8px;
            align-items: center;
            padding: 6px 10px;
            border-radius: 999px;
            font-weight: 700;
            color: #0a0c0f;
            background:linear-gradient(135deg, var(--brand), var(--brand2));
        }

        .tag small {
            opacity: .9
        }


        .lead {
            font-size: clamp(16px, 1.6vw, 20px);
            color: var(--muted)
        }

        .hero__card {
            background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
            border: 1px solid rgba(255, 255, 255, .08);
            border-radius: var(--radius);
            padding: 22px
        }

        .hero__grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 14px
        }

        .kpi {
            background: var(--panel);
            border: 1px solid rgba(255, 255, 255, .06);
            border-radius: 14px;
            padding: 14px
        }

        .kpi b {
            font-size: 20px
        }

        /* Sections */
        section {
            padding: 10px 0
        }

        h2 {
            font-size: clamp(24px, 2.6vw, 36px);
            margin: 0 0 10px
        }

        p.section-lead {
            color: var(--muted);
            margin: 0 0 18px
        }

        .features {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px
        }

        .card {
            background: var(--panel);
            border: 1px solid rgba(255, 255, 255, .08);
            border-radius: var(--radius);
            padding: 18px;
            box-shadow: var(--shadow)
        }

        .card h3 {
            margin: 0 0 6px;
            font-size: 18px
        }

        .card p {
            margin: 0;
            color: var(--muted)
        }

        .steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px
        }

        .step {
            background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .02));
            border: 1px dashed rgba(255, 255, 255, .12);
            border-radius: 16px;
            padding: 18px
        }

        .step b {
            display: inline-flex;
            width: 28px;
            height: 28px;
            align-items: center;
            justify-content: center;
            border-radius: 9px;
            background: rgba(110, 231, 255, .2);
            border: 1px solid rgba(110, 231, 255, .45);
            margin-bottom: 6px
        }

        /* Pricing */
        .pricing {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            align-items: stretch
        }

        .price {
            display: flex;
            flex-direction: column;
            padding: 22px;
            border-radius: 20px;
            background: linear-gradient(180deg, rgba(110, 231, 255, .06), rgba(183, 148, 255, .06));
            border: 1px solid rgba(255, 255, 255, .10);
            min-height: 360px
        }

        .price h3 {
            margin: 0 0 6px
        }

        .price ul {
            margin: 12px 0 0;
            padding: 0;
            list-style: none
        }

        .price li {
            margin: 8px 0;
            color: var(--muted)
        }

        .price .num {
            font-size: 32px;
            font-weight: 800
        }

        .actions {
            margin-top: auto;
            display: flex;
            gap: 10px
        }

        /* FAQ */
        .faq {
            grid-template-columns: 1.2fr .8fr;
            gap: 28px
        }

        details {
            background: var(--panel);
            border: 1px solid rgba(255, 255, 255, .08);
            border-radius: 14px;
            padding: 14px
        }

        summary {
            cursor: pointer;
            font-weight: 700
        }

        details p {
            color: var(--muted);
            margin: 10px 0 0
        }

        /* Contact */
        form {
            display: grid;
            gap: 10px
        }

        input,
        textarea {
            width: 100%;
            padding: 12px 14px;
            background: #0e1217;
            color: var(--text);
            border: 1px solid rgba(255, 255, 255, .10);
            border-radius: 12px
        }

        #file-upload-button {
            background: rgba(110, 231, 255, .1);
            border: 1px solid rgba(110, 231, 255, .4);
            color: var(--brand);
            font-weight: 600;
            cursor: pointer;
        }

        textarea {
            min-height: 120px;
            resize: vertical
        }

        /* Footer */
        footer {
            padding: 28px 0;
            color: var(--muted)
        }

        /* Responsive */
        @media (max-width: 980px) {
            .hero__inner {
                grid-template-columns: 1fr
            }

            .features {
                grid-template-columns: 1fr 1fr
            }

            .steps {
                grid-template-columns: 1fr 1fr
            }

            .pricing {
                grid-template-columns: 1fr
            }

            .faq {
                grid-template-columns: 1fr
            }

            .hero {
                padding-top: 44px
            }

            .menu {
                /*display: none*/
            }
        }

        @media (max-width: 560px) {
            .features {
                grid-template-columns: 1fr
            }

            .steps {
                grid-template-columns: 1fr
            }
        }



        /* --- Причесать input[type=file] под тёмную тему --- */
#try .card form label { 
  display:block; 
  font-weight:700; 
  margin:12px 0 6px;
}

#try .card form input[type="file"]{
  appearance:none;
  width:100%;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:#0e1217;
  color:var(--text);
  line-height:1.2;
  text-overflow: ellipsis;
  overflow:hidden;
  white-space:nowrap;
}

/* Кнопка внутри file-input: современные браузеры */
#try .card form input[type="file"]::file-selector-button{
  margin-right:12px;
  border:0;
  padding:8px 12px;
  border-radius:10px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  color:#0a0c0f;
  font-weight:700;
  cursor:pointer;
  transition:transform .06s ease, opacity .2s ease;
}
#try .card form input[type="file"]::file-selector-button:hover{ transform:translateY(-1px) }
#try .card form input[type="file"]::file-selector-button:active{ transform:translateY(0); opacity:.9 }

/* Фолбэк для WebKit */
#try .card form input[type="file"]::-webkit-file-upload-button{
  margin-right:12px;
  border:0;
  padding:8px 12px;
  border-radius:10px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  color:#0a0c0f;
  font-weight:700;
  cursor:pointer;
}



/* Фокус-стили единые для всех полей формы */
#try .card form :where(input[type="file"], input[type="email"], input[type="text"], textarea):focus-visible{
  outline:2px solid rgba(110,231,255,.55);
  outline-offset:2px;
  border-color:rgba(110,231,255,.35);
}

/* Чуть ровнее поля в карточке */
#try .card form :where(input, textarea){
  background:#0e1217;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
}
#try .card{ border-radius:20px; }



#try_cabinet {
  position: absolute; 
  top:0; left:0; right:0; bottom:0; 
  background: rgba(11,13,16,.95); 
  backdrop-filter: saturate(140%) blur(10px);
  z-index:100;
  padding-top:56px; /* чтобы не залезать на хедер */
  overflow:auto;
}
#mytracks { position:relative; z-index:0; } /* чтобы не залезать на секцию загрузки */
/* Скрывать/показывать секции через hidden атрибут */
#try_cabinet[hidden], #mytracks[hidden] { display:none; }
/* Кнопка закрытия секции загрузки */
#try_cabinet .btn.small {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0a0c0f;
  font-weight:600;
  border-radius:50%;
  width:32px; height:32px;
  padding:0;
  font-size:20px;
  line-height:1;
  box-shadow:none;
  transition:transform .06s ease, opacity .2s ease;
}
#try_cabinet .btn.small:hover{ transform:translateY(-1px) }
#try_cabinet .btn.small:active{ transform:translateY(0); opacity
:.9 }
/* Кнопка открытия секции загрузки */
#mytracks .btn.small {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0a0c0f;
  font-weight:600;
  border-radius:50%;
  width:32px; height:32px;
  padding:0;
  font-size:20px;
  line-height:1;
  box-shadow:none;
  transition:transform .06s ease, opacity .2s ease;
}
#mytracks .btn.small:hover{ transform:translateY(-1px) }
#mytracks .btn.small:active{ transform:translateY(0); opacity:.9 }


#try_cabinet .card form input[type="file"]::-webkit-file-upload-button{
  margin-right:12px;
  border:0;
  padding:8px 12px;
  border-radius:10px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  color:#0a0c0f;
  font-weight:700;
  cursor:pointer;
}

#mytracks table, #mytracks th, #mytracks td {
  border: 1px solid rgba(255, 255, 255, .12);
}
#mytracks table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}


#mytracks th, #mytracks td {
  text-align: center;
}
#mytracks th {
  background: rgba(255, 255, 255, .04);
  padding: 10px;
}
#mytracks td {
  padding: 8px;
  color: var(--muted);
}
#mytracks td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 600;
}

/* статусы разным цветом в таблице */
#mytracks td.status-queued { color: var(--muted); } /* В очереди - серый */
#mytracks td.status-processing { color: var(--warn); } /* Обрабатывается - жёлтый */
#mytracks td.status-done { color: var(--ok); } /* Готово - зелёный */
#mytracks td.status-error { color: var(--err); } /* Ошибка - красный */


/* === Hero (karaoke online) — в стиле сайта === */
.hero-title{
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.08;
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: .2px;
}

.hero-sub{
  max-width: 820px;
  line-height: 1.6;
  color: var(--muted);
  opacity: 1;
  margin-bottom: 16px;
}

/* CTA как твои кнопки: градиент + стеклянный ghost */
.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-bottom: 22px;
}

.btn-primary,
.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 800;
  transition: transform .08s ease, filter .18s ease, opacity .18s ease, box-shadow .18s ease;
  will-change: transform;
}

.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0a0c0f;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.btn-primary:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.btn-primary:active{ transform: translateY(0); opacity: .95; }

.btn-secondary{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  backdrop-filter: saturate(130%) blur(8px);
}

.btn-secondary:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
}
.btn-secondary:active{ transform: translateY(0); opacity: .95; }

/* === SEO / FAQ — “стеклянные” панели как hero__card === */
.seo,
.faq{
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* мягкое свечение как у фона, но локально */
.seo::before,
.faq::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 180px at 10% 0%, rgba(110,231,255,.10), transparent 55%),
    radial-gradient(520px 180px at 90% 0%, rgba(183,148,255,.10), transparent 55%);
  pointer-events:none;
  opacity:.9;
}

/* чтобы контент был поверх свечения */
/* === Общий контейнер страницы === */
.content{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* === HERO === */
.hero{
  padding: 24px 26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

.hero-title{
  margin-left: 2px; /* микро-сдвиг, визуально ровнее */
}

.hero-sub{
  max-width: 680px; /* важный момент */
}

/* === SEO / FAQ === */
.seo,
.faq{
  max-width: 960px;   /* убираем "размазню" */
  margin-left: auto;
  margin-right: auto;
  padding: 22px 24px;
}

/* Сетка SEO чуть уже и компактнее */
.seo-grid{
  margin-top: 14px;
  gap: 16px;
}

.seo-card{
  padding: 18px;
}

/* FAQ — более плотный */
.faq-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px; /* вертикаль / горизонталь */
  margin-top: 14px;
}

/* Каждая FAQ-карточка — чуть собраннее */
.faq-item{
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.08);
}

/* Чтобы отступы вопрос/ответ не "прыгали" */
.faq-a{
  margin-left: 34px;
}

.faq{
  margin-top: 22px;
}

/* FAQ — чёткое разделение вопрос / ответ */
.faq-q{
  font-weight: 900;
  letter-spacing: .15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.faq-q::before{
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0a0c0f;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  flex: 0 0 auto;
}

.faq-a{
  margin-left: 34px;          /* визуальный отступ от вопроса */
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  line-height: 1.65;
  color: var(--muted);
}


/* === Ритм заголовков === */
.seo-h2{
  margin-bottom: 12px;
}

.seo-h3{
  margin-bottom: 8px;
}

/* Mobile */
@media (max-width: 900px){
  .content{
    padding: 16px 14px 32px;
  }

  .hero{
    padding: 18px 18px 20px;
  }

  .seo,
  .faq{
    padding: 16px;
  }
    .faq-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* === Search hint tooltip (anchored) === */

/* выделение карточек от Vocalize AI */
.track-card--vocalize{
  outline: 1px solid rgba(80, 200, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(80, 200, 255, 0.18), 0 0 18px rgba(80, 200, 255, 0.12);
}

/* бейдж с микрофоном */
.vocalize-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(80, 200, 255, 0.14);
  border: 1px solid rgba(80, 200, 255, 0.30);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.search-hint {
  position: fixed;
  z-index: 9999;
  max-width: min(360px, 92vw);
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(17,21,26,.96), rgba(17,21,26,.88));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  backdrop-filter: saturate(140%) blur(10px);
  transform: translateY(8px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.search-hint.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.search-hint .title {
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: .15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-hint .title::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
  flex: 0 0 auto;
}

.search-hint .text {
  color: var(--muted);
  line-height: 1.55;
}

/* Arrow */
.search-hint::after{
  content:"";
  position:absolute;
  width: 12px;
  height: 12px;
  background: rgba(17,21,26,.94);
  border-left: 1px solid rgba(255,255,255,.10);
  border-top: 1px solid rgba(255,255,255,.10);
  transform: rotate(45deg);
}

/* Highlight for search input */
.search-hint-focus {
  outline: 2px solid rgba(110,231,255,.55);
  outline-offset: 3px;
  border-color: rgba(110,231,255,.35) !important;
  box-shadow: 0 0 0 6px rgba(110,231,255,.10), var(--shadow);
  transition: box-shadow .2s ease, outline-color .2s ease;
}



/* --- Конец правок для секции загрузки треков в кабинете --- */

/* =========================
   Tracks grid (cards)
   ========================= */
.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);
}
.cat-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
      background: linear-gradient(
        180deg,
        rgba(255,255,255,0.06),
        rgba(0,0,0,0.2)
    );
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  min-height:150px;
}
.cat-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:.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 :is(button.action,a.action){
  width:100%;
  border:0;
  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,.10);
  background:#0e1217;
  color:var(--text);
}
.section h2{ margin-bottom:10px; }
.download-btn.is-loading{ opacity:.6; pointer-events:none; }

/* =========================
   KFN preview modal (player)
   ========================= */
.kfn-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.80);
  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:#000;
}
.kfn-stage.has-bg{ background-image:url("https://karaoke-vocalize.com/static/preview_bg.jpg"); }

.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,.60); }

.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-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,.7);
  pointer-events:none;
  z-index:31;
}

.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,.30);
  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;
}
.kfn-lyrics .line{ opacity:.75; }
.kfn-lyrics .line.active{ opacity:1; }

.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%));
}
.word.sung{ color:var(--sung); }

/* Timeline (intro / gap) */
.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;
}
.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,.80);
  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; }

/* Controls */
.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;
}

/* Volume columns in controls */
.kfn-volwrap{ display:flex; gap:14px; align-items:center; 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;
  -webkit-appearance: slider-vertical;
  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-vol-v.no-track{ opacity:.30; cursor:not-allowed; }

/* Rate button in title row (optional) */
.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;
}
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* 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;
}
.dock-rating{ padding-top:2px; padding-left:4px; }

/* if there is a hit-layer over the stage - disable clicks */
.kfn-seek-hit, .kfn-overlay, .kfn-lyrics-overlay{ pointer-events:none; }
.kfn-title, .kfn-ratebtn{ pointer-events:auto; position:relative; z-index:31; }

/* =========================
   AD overlay (YouTube-like)
   ========================= */
.kfn-ad{
  position:fixed;
  inset:0;
  z-index:50;
  display:none;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(2px);
  pointer-events:none;
}
.kfn-ad.open{
  display:grid;
  place-items:center;
  pointer-events:auto;
}
.kfn-ad-card{
  width:min(96vw, 980px);
  height:calc(100svh - 24px);
  max-height:calc(100svh - 24px);
  margin:12px;
  border-radius:14px;
  background:#0b0d10;
  position:relative;
  overflow:hidden;
  box-shadow:0 18px 60px rgba(0,0,0,.65);
  border:1px solid rgba(255,255,255,.10);
}
.kfn-ad-top{
  position:absolute;
  left:16px;
  right:16px;
  top:14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  z-index:2;
  pointer-events:none;
}
.kfn-ad-timerbar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
}

.kfn-ad-timerbar .fill {
  height: 100%;
  width: 0%;
  background: #ffd400; /* жёлтая */
}
.kfn-ad-txt{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.55);
}
.kfn-ad-txt b{ font-size:14px; letter-spacing:.2px; }
.kfn-ad-txt span{ font-size:12px; opacity:.85; }

.kfn-ad-media{
  position:absolute;
  left:0;
  right:0;
  top:calc(14px + env(safe-area-inset-top) + 28px);
  bottom:calc(18px + env(safe-area-inset-bottom) + 54px);
  display:block;
  background:#000;
}
.kfn-ad-media img,
.kfn-ad-media video{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#000;
}
.kfn-ad-skip{
  position:absolute;
  right:16px;
  bottom:16px;
  z-index:3;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-weight:800;
  cursor:pointer;  
  opacity: .45;
}


.kfn-ad-skip.ready {
  opacity: 1;
  pointer-events: auto;
}

.kfn-ad-skip:hover {
  background: rgba(0,0,0,.55);
}

.kfn-ad-skip[disabled]{ opacity:.5; cursor:not-allowed; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 720px){
  .tracks-grid{ grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:12px; }
  .search-bar{ flex-direction:column; margin:18px 0; }
  .search-bar input{ width:100%; }
  .track-actions{ grid-template-columns:repeat(2, 1fr); gap:10px; }
  .action{ height:42px; border-radius:12px; }

  .kfn-stage{ inset:0; border-radius:0; }
  .kfn-close{ right:12px; top:12px; padding:12px 14px; border-radius:14px; }
  .kfn-title{ top:12px; font-size:clamp(22px, 6vw, 34px); padding:0 54px; }
  .kfn-lyrics{ padding:0 14px; gap:8px; font-size:clamp(18px, 6.2vw, 44px); }
  .kfn-controls{ gap:10px; padding:10px 12px 14px; flex-wrap:wrap; }
  .kfn-time{ font-size:16px; min-width:44px; }
  .kfn-seek{ flex:1 1 100%; order:3; }
  .kfn-seek .track{ height:18px; }
  .kfn-seek .progress{ opacity:.95; }
  .timeline-slot{ margin-bottom:.25em; }
  .timeline-slot .timeline-bar{ width:min(84vw, 520px); height:14px; }

  .kfn-ad-card{ height:min(74vh, 560px); }
  .kfn-ad-top{ left:12px; right:12px; top:12px; }
  .kfn-ad-skip{ right:12px; bottom:12px; padding:12px 14px; }

  /* volume sliders -> horizontal */
  .kfn-volwrap{ width:100%; justify-content:center; gap:12px; margin-right:0; }
  .kfn-volcol{ flex-direction:row; gap:10px; }
  .kfn-volcol input[type="range"]{
    writing-mode:horizontal-tb;
    -webkit-appearance:none;
    appearance:none;
    width:38vw;
    max-width:220px;
    height:8px;
    border-radius:999px;
    background:rgba(255,255,255,.25);
  }
  .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;
    box-shadow:0 0 0 4px rgba(255,255,255,.35);
  }
  .rvw-modal{ right:12px; bottom:12px; }
}
@media (max-width: 520px){
  .tracks-grid{ grid-template-columns:1fr; }
  .track-card{ padding:12px; }
  .track-title{ font-size:1.05em; }
  .track-author{ font-size:.95em; }
}


/* --- Top navigation --- */
.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  margin-top: 1.2rem;
  margin-bottom: .4rem;
  font-size: .95rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #cfd4ff;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(160,150,255,.15);
  transition: 
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}

.nav-link i {
  font-size: .9rem;
  opacity: .85;
}

.nav-link:hover {
  background: rgba(110,90,255,.14);
  border-color: rgba(160,150,255,.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(90,70,255,.35);
}

.nav-link.is-active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: rgba(180,160,255,.45);
  box-shadow: 0 0 22px rgba(120,90,255,.55);
}

.nav-link.is-active i {
  opacity: 1;
}

/* Мягкий акцент для AI-генератора */
.nav-link.nav-accent {
  background: rgba(255,255,255,.04); /* как у обычных */
  color: #e6e8ff;
  border-color: rgba(154,134,255,.55);
  box-shadow: 0 0 0 rgba(130,100,255,0);
  position: relative;
  animation: nav-accent-pulse 3.2s ease-in-out infinite;
}

/* Иконка чуть ярче */
.nav-link.nav-accent i {
  color: #bfaeff;
  opacity: .9;
}

/* Hover — обычный, без анимации */
.nav-link.nav-accent:hover {
  animation: none;
  background: rgba(110,90,255,.14);
  border-color: rgba(160,150,255,.65);
  box-shadow: 0 6px 18px rgba(90,70,255,.35);
}

/* Активная страница — приоритетнее */
.nav-link.nav-accent.is-active {
  animation: none;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: rgba(180,160,255,.45);
  box-shadow: 0 0 22px rgba(120,90,255,.55);
}

/* Пульсация: opacity + лёгкое сияние */
@keyframes nav-accent-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(130,100,255,0);
  }
  50% {
    opacity: .65; /* ← вот те самые 0.2–0.3 “проседания” */
    box-shadow: 0 0 18px rgba(130,100,255,.35);
  }
}


.nav-sep {
  opacity: .35;
  font-weight: 700;
  margin: 0 .2rem;
}

/* Mobile */
@media (max-width: 768px) {
  .top-nav {
    gap: .45rem;
  }
  .nav-link {
    font-size: .9rem;
    padding: .4rem .75rem;
  }
}

/* =========================
   Awards горизонтальный список
   ========================= */

.awards-section h2 {
  margin-bottom: 16px;
}

.awards-list {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.awards-list::-webkit-scrollbar {
  height: 6px;
}
.awards-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 999px;
}

.award-item {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  padding: 16px 12px;
  border-radius: 18px;
  background: linear-gradient(
      180deg,
      rgba(255,255,255,.05),
      rgba(0,0,0,.2)
  );
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}

.award-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.5);
}

.award-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 14px rgba(110,231,255,.35));
}

.award-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}


/* =========================
   Award Modal
   ========================= */

.award-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    z-index: 9999;
    animation: fadeIn .2s ease;
}

.award-modal-content {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,.06),
        rgba(0,0,0,.25)
    );
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 28px;
    width: min(420px, 92vw);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    position: relative;
}

.award-modal-content img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin-bottom: 16px;
}

.award-modal-content h3 {
    margin-bottom: 10px;
}

.award-modal-content p {
    color: var(--muted);
    line-height: 1.6;
}

.award-close {
    position: absolute;
    right: 14px;
    top: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

.award-close:hover {
    opacity: .7;
}

/* ВАЖНО: принудительно скрывать, если стоит hidden */
.award-modal[hidden]{
  display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}