/* ═══════════════════════════════════════════════════════════════
   MuzMaz — Simple Blue Theme
   Compact header · normal font sizes · #4a76a8 accent
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap');

/* ─── Tokens ─────────────────────────────────────── */
:root {
    /* Brand — VK blue */
    --brand:      #4a76a8;
    --brand-h:    #3d6494;
    --brand-d:    #345583;
    --brand-soft: #edf1f7;
    --brand-soft2:#dae4f0;

    /* Neutrals */
    --ink:    #2a2a2a;
    --ink-2:  #4a4a4a;
    --ink-3:  #6b7280;
    --ink-4:  #9ca3af;
    --line:   #e5e7eb;
    --line-2: #f3f4f6;

    /* Surfaces */
    --bg:      #f7f8fa;
    --surface: #ffffff;

    /* Shape */
    --r-sm: 4px;
    --r:    6px;
    --r-lg: 8px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow:    0 2px 6px rgba(0,0,0,.06);

    /* Player */
    --player-h:   68px;
    --player-h-m: 58px;
}

/* ─── Base ──────────────────────────────────────── */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-size: 16px;
}

body {
    padding-bottom: calc(var(--player-h) + 20px);
    /* iOS Safari safe area (for bottom bar) */
    padding-bottom: calc(var(--player-h) + 20px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--player-h-m) + 16px);
        padding-bottom: calc(var(--player-h-m) + 16px + env(safe-area-inset-bottom, 0px));
    }
}

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-d); }

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0;
}

::selection { background: var(--brand); color: #fff; }

/* ─── Container ─────────────────────────────────── */
.container-app {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ─── Header — SIMPLE, no sticky ─────────────────── */
.nav-top {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.nav-top > .container-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

/* Mobile menu button - hidden by default on desktop */
.navbar-toggler { display: none; }

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink) !important;
    letter-spacing: -0.01em;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--brand);
    border-radius: var(--r);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-icon svg { width: 18px; height: 18px; }

/* When using uploaded favicon PNG - no bg, full-size image */
.brand-icon-img {
    background: transparent;
    padding: 0;
}
.brand-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}

.brand-text {
    display: inline;
    white-space: nowrap;
}

.brand-word {
    color: var(--brand);
    margin: 0;
    padding: 0;
}

.nav-desktop {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-desktop > li {
    display: inline-block;
    list-style: none;
}

.nav-top .nav-link {
    color: var(--ink-2) !important;
    font-weight: 500;
    font-size: .95rem;
    padding: 7px 12px !important;
    border-radius: var(--r-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .12s;
    letter-spacing: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
}

.nav-top .nav-link:hover {
    color: var(--brand) !important;
    background: var(--brand-soft);
}

.nav-top .nav-link.active {
    color: var(--brand) !important;
    background: var(--brand-soft);
    font-weight: 600;
}

.nav-top .nav-link i {
    font-size: .88rem;
    color: var(--ink-4);
}

.nav-top .nav-link.active i,
.nav-top .nav-link:hover i { color: var(--brand); }

.navbar-toggler {
    border: 1px solid var(--line);
    padding: 4px 8px;
    border-radius: var(--r-sm);
    background: #fff;
    font-size: 1rem;
    color: var(--ink);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(74,118,168,.2);
    border-color: var(--brand);
}

/* ─── Search Bar ────────────────────────────────── */
.search-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 3px 3px 3px 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    margin: 16px 0 12px;
    transition: border-color .15s;
}

.search-wrap:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(74,118,168,.15);
}

.search-icon {
    color: var(--ink-4);
    font-size: 1rem;
    flex: 0 0 auto;
}

.search-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 8px 4px;
    font-size: .88rem;
    color: var(--ink);
    outline: none;
    font-family: inherit;
    font-weight: 400;
}

.search-input::placeholder { color: var(--ink-4); }

.btn-search {
    background: var(--brand);
    color: #fff;
    border: 0;
    padding: 7px 14px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background .12s;
    font-family: inherit;
    cursor: pointer;
}

.btn-search:hover { background: var(--brand-h); }

/* ─── Hero ──────────────────────────────────────── */
.hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin: 12px 0 14px;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.hero h1 span { color: var(--brand); }

.hero p {
    margin: 0;
    color: var(--ink-3);
    font-size: .95rem;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.5;
}

/* ─── Card ──────────────────────────────────────── */
.crd {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.crd:hover { box-shadow: var(--shadow-sm); }

.crd-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-2);
}

.crd-hdr h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.crd-hdr h2 i {
    font-size: 1.05rem;
    color: var(--brand);
}

.crd-hdr .all-link {
    color: var(--brand);
    font-size: .82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    background: transparent;
    transition: background .12s;
}

.crd-hdr .all-link:hover {
    background: var(--brand-soft);
}

/* ─── Track Row (kompakt) ───────────────────────── */
.trk-list {
    display: flex;
    flex-direction: column;
}

.trk-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--r-sm);
    transition: background .12s;
    cursor: pointer;
    border-bottom: 1px solid var(--line-2);
    margin: 0 -8px;
}

.trk-row:last-child { border-bottom: 0; }
.trk-row:hover { background: var(--brand-soft); }

.trk-cover {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--line-2);
    position: relative;
    overflow: hidden;
}

.trk-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trk-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
}

.trk-cover-fallback i { font-size: 1.1rem; }

.trk-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.trk-title {
    font-weight: 500;
    font-size: 1rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.trk-artist {
    color: var(--ink-3);
    font-size: .85rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.trk-dur {
    color: var(--ink-4);
    font-size: .85rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
    padding: 0 8px;
}

.trk-acts {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.trk-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    transition: all .12s;
    cursor: pointer;
    padding: 0;
    font-size: .85rem;
}

.trk-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}

.trk-btn-play {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.trk-btn-play:hover {
    background: var(--brand-h);
    border-color: var(--brand-h);
    color: #fff;
}

/* Playing state */
.trk-row.is-playing { background: var(--brand-soft); }
.trk-row.is-playing .trk-title { color: var(--brand); }

/* Loading spinner (track row + player bar) */
@keyframes spin { to { transform: rotate(360deg); } }

.trk-row.is-loading .trk-btn-play i {
    animation: spin .8s linear infinite;
    display: inline-block;
}

.pl-btn-play.is-loading i {
    animation: spin .8s linear infinite;
    display: inline-block;
}

/* ─── Track Detail Hero ─────────────────────────── */
.trk-hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px;
    margin: 12px 0 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 18px;
    align-items: center;
}

.trk-hero-cover {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: var(--r);
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.trk-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trk-hero-body { flex: 1; min-width: 0; }

.trk-hero-title {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.trk-hero-artist {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-3);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 12px;
}

.trk-hero-artist i { color: var(--brand); font-size: .85rem; }

.trk-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--line-2);
    border-radius: var(--r-sm);
    font-size: .82rem;
    color: var(--ink-2);
    font-weight: 500;
    border: 1px solid var(--line);
}

.chip i { color: var(--ink-4); font-size: .88rem; }

.chip.quality {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: var(--brand-soft2);
    font-weight: 600;
}

.chip.quality i { color: var(--brand); }

.trk-hero-acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── Buttons ───────────────────────────────────── */
.btn-pl {
    background: var(--brand);
    color: #fff;
    border: 0;
    padding: 9px 18px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .12s;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-pl:hover { background: var(--brand-h); color: #fff; }
.btn-pl i { font-size: 1rem; }

.btn-pl-outline {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 8px 18px;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .12s;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-pl-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}

/* ─── Breadcrumb ────────────────────────────────── */
.bcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0 8px;
    font-size: .75rem;
    color: var(--ink-4);
    flex-wrap: wrap;
    font-weight: 400;
}

.bcrumb a { color: var(--ink-3); }
.bcrumb a:hover { color: var(--brand); }

.bcrumb-sep { color: var(--ink-4); font-size: .62rem; }
.bcrumb .current { color: var(--ink); font-weight: 500; }

/* ─── Text block (lyrics) ───────────────────────── */
.text-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.text-block-hdr {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line-2);
    font-weight: 600;
    color: var(--ink);
    font-size: .92rem;
}

.text-block-hdr i { color: var(--brand); font-size: .95rem; }

.text-block-hdr small {
    color: var(--ink-4);
    font-weight: 400;
    margin-left: 4px;
    font-size: .72rem;
}

.text-block-body {
    color: var(--ink-2);
    font-size: .85rem;
    line-height: 1.75;
    word-wrap: break-word;
}

/* ─── Footer ────────────────────────────────────── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 14px 0;
    margin-top: 24px;
    color: var(--ink-3);
    font-size: .78rem;
}

.site-footer a {
    color: var(--ink-3);
    font-weight: 500;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    transition: all .12s;
}

.site-footer a:hover { color: var(--brand); background: var(--brand-soft); }

/* ─── Empty state ───────────────────────────────── */
.empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--ink-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.empty i {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 8px;
    display: block;
}

.empty h3 { color: var(--ink); margin-bottom: 6px; font-size: 1rem; }
.empty p { font-size: .82rem; color: var(--ink-4); margin: 0; }

/* ─── Tabs (period filters, kategoriya) ─────────── */
.tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 14px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: .88rem;
    color: var(--ink-2);
    text-decoration: none;
    transition: all .12s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab:hover { background: var(--brand-soft); color: var(--brand); }
.tab.active {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}
.tab.active:hover { background: var(--brand-h); color: #fff; }
.tab i { font-size: .95rem; }

/* ─── Pager (pagination) ────────────────────────── */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 16px 0 8px;
    flex-wrap: wrap;
}

.pager-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--r-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-weight: 500;
    font-size: .88rem;
    text-decoration: none;
    transition: all .12s;
}

.pager-btn:hover {
    background: var(--brand-soft);
    border-color: var(--brand-soft2);
    color: var(--brand);
}

.pager-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pager-btn.active:hover {
    background: var(--brand-h);
    color: #fff;
}

/* ─── Contact form ──────────────────────────────── */
.cform {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cform-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cform-field { display: flex; flex-direction: column; gap: 5px; }

.cform-field label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-2);
}

.cform-field input,
.cform-field textarea {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-size: .92rem;
    color: var(--ink);
    font-family: inherit;
    transition: border-color .15s;
}

.cform-field input:focus,
.cform-field textarea:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(74,118,168,.15);
}

.cform-field textarea { resize: vertical; min-height: 100px; }

.cform-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.cform-inline {
    display: flex;
    gap: 6px;
    align-items: center;
}
.cform-inline input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    font-size: .92rem;
    color: var(--ink);
    font-family: inherit;
    outline: 0;
    transition: border-color .15s;
}
.cform-inline input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(74,118,168,.15);
}

@media (max-width: 600px) {
    .cform-row { grid-template-columns: 1fr; }
}

/* ─── Chip cloud (search page) ──────────────────── */
.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.chip-link {
    text-decoration: none;
    color: var(--ink-2);
    font-size: .78rem;
    padding: 4px 10px;
    background: var(--line-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all .12s;
}

.chip-link:hover {
    background: var(--brand-soft);
    border-color: var(--brand-soft2);
    color: var(--brand);
}

.chip-link i { color: var(--ink-4); font-size: .72rem; }
.chip-link:hover i { color: var(--brand); }

/* ═══════════════════════════════════════════════
   STICKY BOTTOM PLAYER
   ═══════════════════════════════════════════════ */
.player-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--player-h);
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 8px rgba(0,0,0,.05);
    z-index: 1040;
    display: none;
    align-items: center;
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;   /* safe area padding adds to height */
    gap: 12px;
    transform: translateY(100%);
    transition: transform .25s;
}

.player-bar.is-active {
    display: flex;
    transform: translateY(0);
}

.pl-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 240px;
}

.pl-cover {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    overflow: hidden;
    flex: 0 0 42px;
}

.pl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pl-meta { min-width: 0; overflow: hidden; }

.pl-title {
    font-weight: 600;
    font-size: .82rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.pl-artist {
    color: var(--ink-3);
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    line-height: 1.3;
}

.pl-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.pl-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pl-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .12s;
    font-size: 1rem;
}

.pl-btn:hover { background: var(--line-2); color: var(--ink); }

.pl-btn-play {
    width: 36px;
    height: 36px;
    background: var(--brand);
    color: #fff !important;
    font-size: 1.05rem;
}

.pl-btn-play:hover { background: var(--brand-h); color: #fff !important; }

.pl-progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 460px;
}

.pl-time {
    color: var(--ink-4);
    font-size: .68rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
    min-width: 30px;
    text-align: center;
}

.pl-progress {
    flex: 1;
    height: 3px;
    background: var(--line);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height .12s;
}

.pl-progress:hover { height: 5px; }

.pl-progress-fill {
    height: 100%;
    background: var(--brand);
    border-radius: inherit;
    width: 0;
    transition: width .12s linear;
}

.pl-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.pl-vol-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pl-vol {
    width: 70px;
    height: 3px;
    background: var(--line);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pl-vol-fill {
    height: 100%;
    background: var(--ink-3);
    border-radius: inherit;
    width: 70%;
}

.pl-close { color: var(--ink-4); font-size: .95rem; }
.pl-close:hover { color: var(--ink); }

/* Mobile progress zone - hidden by default (shown only on mobile) */
.pl-mobile-progress {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 14px;              /* wide click zone */
    background: transparent;
    cursor: pointer;
    z-index: 3;
    padding: 5px 0;            /* fill 4px, top-bottom padding widens click zone */
}

.pl-mobile-progress::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 5px;
    height: 4px;
    background: var(--line);
    pointer-events: none;
}

.pl-mobile-progress-fill {
    position: absolute;
    left: 0;
    top: 5px;
    height: 4px;
    background: var(--brand);
    width: 0;
    transition: width .12s linear;
    pointer-events: none;
}

/* Player mobile - compact single row */
@media (max-width: 768px) {
    :root { --player-h-m: 60px; }

    .player-bar {
        height: var(--player-h-m);
        padding: 6px 12px 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        gap: 10px;
        flex-wrap: nowrap;
        align-items: center;
    }

    /* Show mobile progress zone */
    .pl-mobile-progress { display: block; }

    /* Left: cover + title/artist */
    .pl-info {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
        gap: 10px;
    }
    .pl-cover { width: 40px; height: 40px; flex: 0 0 40px; }
    .pl-title { font-size: .9rem; }
    .pl-artist { font-size: .78rem; }

    /* Right: control buttons */
    .pl-center {
        flex: 0 0 auto;
    }
    .pl-progress-row { display: none; }
    .pl-controls { gap: 2px; }
    .pl-btn { display: inline-flex; }
    .pl-btn { width: 32px; height: 32px; font-size: 1rem; }
    .pl-btn-play { width: 38px; height: 38px; font-size: 1.1rem; }
    .pl-right { display: none; }
}

/* Even more compact on small phones */
@media (max-width: 380px) {
    .player-bar { padding: 6px 8px 0; gap: 8px; }
    .pl-cover { width: 36px; height: 36px; flex: 0 0 36px; }
    .pl-controls .pl-btn:not(.pl-btn-play) { display: none; }
}

/* ═══════════════════════════════════════════════
   OFFCANVAS MOBILE MENU (slides from right)
   ═══════════════════════════════════════════════ */
.mmenu-panel {
    background: var(--surface);
    box-shadow: -8px 0 24px rgba(0,0,0,.1);
    width: 280px !important;
    max-width: 85vw;
}

.mmenu-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.mmenu-hdr-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.mmenu-close {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .12s;
    font-size: .95rem;
}

.mmenu-close:hover {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: var(--brand-soft2);
}

.mmenu-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mmenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--r);
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: background .12s;
}

.mmenu-link:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.mmenu-link.active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

.mmenu-link i {
    font-size: 1.15rem;
    color: var(--ink-4);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.mmenu-link:hover i,
.mmenu-link.active i { color: var(--brand); }

.navbar-toggler {
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: var(--r-sm);
    background: #fff;
    font-size: 1.3rem;
    color: var(--ink);
    line-height: 1;
    cursor: pointer;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(74,118,168,.2);
    border-color: var(--brand);
    outline: none;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 991.98px) {
    /* Hide desktop nav, show hamburger */
    .nav-desktop { display: none !important; }
    .navbar-toggler { display: inline-flex !important; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
    .container-app { padding: 0 14px; }

    .nav-top { padding: 8px 0; }
    .navbar-brand { font-size: 1.05rem; }
    .brand-icon { width: 30px; height: 30px; }
    .brand-icon svg { width: 17px; height: 17px; }

    .hero { padding: 14px 16px; margin-top: 8px; }
    .hero h1 { font-size: 1.15rem; }
    .hero p { font-size: .88rem; }

    .search-wrap { margin: 12px 0 10px; padding: 3px 3px 3px 12px; }
    .search-input { padding: 8px 4px; font-size: .95rem; }
    .btn-search { padding: 8px 14px; font-size: .88rem; }
    .btn-search span { display: none; }

    .crd { padding: 12px 14px; }
    .crd-hdr h2 { font-size: 1rem; }

    .trk-hero {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 14px;
    }
    .trk-hero-cover { flex: 0 0 140px; width: 140px; height: 140px; margin: 0 auto; }
    .trk-hero-title { font-size: 1.3rem; }
    .trk-hero-artist { font-size: .95rem; }
    .trk-hero-meta { justify-content: center; }
    .trk-hero-acts { justify-content: center; }

    .trk-cover { flex: 0 0 46px; width: 46px; height: 46px; }
    .trk-title { font-size: .95rem; }
    .trk-artist { font-size: .82rem; }
    .trk-btn { width: 32px; height: 32px; font-size: .95rem; }
    .trk-dur { display: none; }
}

@media (max-width: 480px) {
    .trk-hero-acts { flex-direction: column; width: 100%; }
    .trk-hero-acts .btn-pl,
    .trk-hero-acts .btn-pl-outline { width: 100%; justify-content: center; }

    .hero h1 { font-size: 1.1rem; }
    .trk-hero-title { font-size: 1.2rem; }
}
