/* ============================================
   KARAOKEY.LK — DESIGN TOKENS
   ============================================ */
:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --surface-2: #131313;
    --surface-3: #1a1a1a;
    --border: #222222;
    --border-soft: #2a2a2a;
    --text: #ffffff;
    --text-dim: #9a9a9a;
    --text-dimmer: #6b6b6b;
    --accent: #ff2d55;
    --accent-dim: #c81f42;
    --accent-soft: rgba(255, 45, 85, 0.16);
    --success: #2ecc71;
    --warning: #f5a623;
    --danger: #ff4d4f;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --nav-h: 68px;
    --maxw: 600px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html.js-fade body { opacity: 0; transition: opacity 200ms ease; }
html.js-fade body.is-visible { opacity: 1; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }
img { max-width: 100%; display: block; }

.app {
    max-width: var(--maxw);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding-bottom: 24px;
}

.app.has-bottom-nav { padding-bottom: calc(var(--nav-h) + 16px); }

.container { padding: 16px; }

/* Desktop: browse pages (Home/Artists/Artist detail/Lists/Favorites) get real
   width to work with instead of a phone-width column floating on a big screen;
   account-y pages (Profile/Subscribe/Payment/auth) stay comfortably narrow on
   purpose, same as most apps keep settings/checkout flows narrow either way. */
@media (min-width: 860px) {
    .app.app-wide { max-width: 1080px; }
}

/* ============================================
   FLASH MESSAGES — single-line toasts, 3/4 down the screen
   ============================================ */
.flash-stack {
    position: fixed;
    top: 75%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(92%, 440px);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: #1c1c1e;
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--text-dim);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    pointer-events: auto;
    animation: flash-in 320ms ease-out;
}
.flash i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.flash span { min-width: 0; }
@keyframes flash-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.flash-out { opacity: 0 !important; transform: translateY(18px) !important; transition: opacity 280ms ease, transform 280ms ease; }
.flash-success { border-left-color: var(--success); }
.flash-success i { color: var(--success); }
.flash-error { border-left-color: var(--danger); }
.flash-error i { color: var(--danger); }
.flash-info { border-left-color: var(--warning); }
.flash-info i { color: var(--warning); }

/* ============================================
   HEADERS
   ============================================ */
.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 4px;
}
.home-header-brand { display: flex; align-items: center; gap: 10px; }
.home-header-brand img { height: 30px; width: auto; }
.home-header-title { font-size: 26px; font-weight: 800; margin: 0; }
.home-header-actions a {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--surface-3); display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 15px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    position: sticky;
    top: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(6px);
    z-index: 20;
    border-bottom: 1px solid var(--border);
}
.back-btn {
    width: 38px; height: 38px; min-width: 38px; border-radius: 50%;
    background: var(--surface-3); display: flex; align-items: center; justify-content: center;
    color: var(--text); font-size: 15px; border: 1px solid var(--border-soft);
}
.page-header-title { flex: 1; text-align: center; font-size: 19px; font-weight: 700; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-header-spacer { width: 38px; min-width: 38px; }

/* ============================================
   PILLS / FILTERS / BUTTONS
   ============================================ */
.pill-row { display: flex; gap: 10px; padding: 10px 16px 18px; overflow-x: auto; scrollbar-width: none; }
.pill-row::-webkit-scrollbar { display: none; }
.pill {
    flex-shrink: 0;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-soft);
    white-space: nowrap;
}
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-dim); }
.btn-secondary { background: var(--surface-3); color: var(--accent); border-color: var(--border-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-soft); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; }
.badge-pending { background: rgba(245, 166, 35, 0.15); color: var(--warning); }
.badge-approved { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.badge-rejected { background: rgba(255, 77, 79, 0.15); color: var(--danger); }
.badge-free { background: var(--surface-3); color: var(--text-dim); }

/* ============================================
   SECTIONS / SONG CARDS / ARTIST CARDS
   ============================================ */
.section { margin-bottom: 8px; }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; }
.section-header h2 { font-size: 17px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }
.section-header h2 i { color: var(--accent); font-size: 15px; }
.section-header a { color: var(--accent); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 4px; }

.hscroll { display: flex; gap: 14px; overflow-x: auto; padding: 8px 16px 18px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }

.song-card { flex-shrink: 0; width: 138px; }
.song-card-cover { width: 138px; height: 138px; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-3); }
.song-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-card-cover--empty, .feature-card-cover--empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-dimmer); font-size: 28px; }
.song-card-title { margin-top: 8px; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-card-artist { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.feature-card { position: relative; flex-shrink: 0; width: 138px; height: 138px; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-3); }
.feature-card img { width: 100%; height: 100%; object-fit: cover; }
.feature-card-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 90%);
}
.feature-card-title { font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-card-artist { font-size: 11px; color: #d8d8d8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.artist-row { display: flex; gap: 18px; overflow-x: auto; padding: 8px 16px 18px; scrollbar-width: none; }
.artist-row::-webkit-scrollbar { display: none; }
.artist-avatar-card, .artist-grid .artist-avatar-card { flex-shrink: 0; width: 96px; text-align: center; }
.artist-avatar { width: 88px; height: 88px; aspect-ratio: 1 / 1; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--surface-3); margin: 0 auto; display: flex; align-items: center; justify-content: center; color: var(--text-dimmer); font-size: 26px; border: 1px solid var(--border-soft); }
.artist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.artist-avatar-name { margin-top: 8px; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-avatar-count { font-size: 11px; color: var(--text-dim); }

.artist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 8px; padding: 12px 16px 24px; }
.artist-grid .artist-avatar-card { width: 100%; }
.artist-grid .artist-avatar { width: 84px; height: 84px; }

@media (min-width: 860px) {
    .artist-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 28px 16px; }
    .artist-grid .artist-avatar { width: 108px; height: 108px; }
}

/* ============================================
   SONG LIST ROWS
   ============================================ */
.list-toolbar { display: flex; gap: 10px; padding: 4px 16px 18px; }
.search-input-wrap { position: relative; margin: 4px 16px 16px; }
.search-input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dimmer); }
.search-input {
    width: 100%; padding: 12px 14px 12px 38px; border-radius: var(--radius-pill);
    background: var(--surface-3); border: 1px solid var(--border-soft); color: var(--text); font-size: 14px;
}
.search-input::placeholder { color: var(--text-dimmer); }

.song-list { padding: 4px 10px 20px; }
.song-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: var(--radius-md); }
.song-row-main { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.song-row-thumb { width: 52px; height: 52px; min-width: 52px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--text-dimmer); }
.song-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.song-row-text { min-width: 0; }
.song-row-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-row-artist { font-size: 13px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-btn { background: none; border: none; color: var(--text-dim); font-size: 18px; padding: 8px; cursor: pointer; }
.favorite-btn .fa-solid { color: var(--accent); }
.song-row.is-hidden { display: none; }

/* Keep list rows at a comfortable reading width even inside the wider
   .app-wide shell — a single column of rows stretched to 1000px+ looks like
   a mistake, not a desktop layout. */
@media (min-width: 860px) {
    .song-list, .search-input-wrap, .list-toolbar { max-width: 680px; margin-left: auto; margin-right: auto; }
    .app-wide .container { max-width: 680px; margin-left: auto; margin-right: auto; }
}

.empty-state { text-align: center; color: var(--text-dim); padding: 48px 20px; }
.empty-state i { font-size: 32px; color: var(--text-dimmer); margin-bottom: 12px; display: block; }

/* ============================================
   BOTTOM NAV
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--maxw);
    height: var(--nav-h);
    background: rgba(6,6,6,0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    z-index: 30;
}
.bottom-nav-inner { display: flex; align-items: center; width: 100%; height: 100%; }
.bottom-nav-brand, .bottom-nav-spacer { display: none; }
.bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-dimmer); font-size: 11px; font-weight: 600; }
.bottom-nav-item i { font-size: 19px; }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item--extra { display: none; }

/* Desktop: this becomes a top nav bar instead of a mobile bottom tab bar.
   It's still the same fixed element, just re-pinned to the top edge and laid
   out as a compact inline pill row instead of stacked icon-over-label tabs —
   position:fixed works regardless of where the <nav> sits in the markup, so
   no template changes are needed to move it. */
@media (min-width: 860px) {
    .bottom-nav {
        top: 0; bottom: auto;
        left: 0; transform: none;
        width: 100%; max-width: none;
        border-top: none;
        border-bottom: 1px solid var(--border);
    }
    .bottom-nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; gap: 6px; }
    .bottom-nav-brand { display: flex; align-items: center; margin-right: 12px; }
    .bottom-nav-brand img { height: 28px; }
    .bottom-nav-spacer { display: block; flex: 1; }
    .bottom-nav-item, .bottom-nav-item--extra {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 9px;
        padding: 10px 18px;
        border-radius: var(--radius-pill);
        font-size: 14px;
    }
    .bottom-nav-item i { font-size: 16px; }
    .bottom-nav-item.active { background: var(--accent-soft); }
    .bottom-nav-item--extra { display: flex; }

    .app.has-bottom-nav { padding-bottom: 24px; padding-top: calc(var(--nav-h) + 20px); }
    .home-header { display: none; } /* the top nav now carries the brand mark */
}

/* ============================================
   FORMS / AUTH PAGES / CARDS
   ============================================ */
.auth-page { display: flex; flex-direction: column; align-items: center; padding: 40px 24px; min-height: 100vh; }
.auth-logo { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; margin-bottom: 18px; }
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }
.auth-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.auth-subtitle { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; text-align: center; }
.auth-card { width: 100%; max-width: 420px; }
.auth-switch { margin-top: 20px; font-size: 14px; color: var(--text-dim); text-align: center; }
.auth-switch a { color: var(--accent); font-weight: 700; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text); font-size: 15px;
    font-family: var(--font);
}
.form-input::placeholder { color: var(--text-dimmer); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--text-dimmer); margin-top: 6px; }
.form-error { font-size: 13px; color: var(--danger); margin-top: 6px; }
.file-input-wrap { border: 1.5px dashed var(--border-soft); border-radius: var(--radius-md); padding: 22px; text-align: center; color: var(--text-dim); font-size: 13px; }
.file-input-wrap i { font-size: 24px; margin-bottom: 8px; display: block; color: var(--text-dimmer); }

.card { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 800; margin: 0 0 12px; }
.kv-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--text-dim); }
.kv-row .v { font-weight: 700; }

/* ============================================
   PLAN / PRICING CARDS
   ============================================ */
.plan-grid { display: flex; flex-direction: column; gap: 14px; }
.plan-card { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 20px; position: relative; }
.plan-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-badge { position: absolute; top: -10px; right: 18px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-pill); }
.plan-name { font-size: 16px; font-weight: 800; }
.plan-price { font-size: 30px; font-weight: 800; margin: 8px 0 2px; }
.plan-price span { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.plan-days { color: var(--text-dim); font-size: 13px; margin-bottom: 16px; }
.plan-card-free { border-color: var(--success); }
.plan-badge-free { background: var(--success); }
.plan-card-disabled { opacity: 0.6; }

/* ============================================
   MODAL (disclaimer, etc.)
   ============================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 300; }
.modal-overlay[hidden] { display: none; }
.modal-box { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); max-width: 420px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 22px; }
.modal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.modal-header i { color: var(--accent); font-size: 20px; }
.modal-header h3 { margin: 0; font-size: 17px; font-weight: 800; }
.modal-body p { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); margin: 0 0 12px; }
.modal-footer { margin-top: 6px; }
.modal-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 14px; cursor: pointer; }
.modal-check input { margin-top: 2px; flex-shrink: 0; }

/* ============================================
   PROFILE
   ============================================ */
.profile-avatar { width: 84px; height: 84px; aspect-ratio: 1 / 1; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; margin: 0 auto 12px; }
.profile-name { text-align: center; font-size: 20px; font-weight: 800; }
.profile-email { text-align: center; color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }

/* ============================================
   NOW PLAYING (song.php)
   ============================================ */
/* height:100vh + overflow:hidden (not min-height) is the load-bearing fix:
   it hard-caps the whole screen to the viewport so NOTHING here can ever
   push the page taller and force an outer scroll — that outer scroll was
   what dragged the top bar out of view. With a hard cap, .lyrics-wrapper is
   the only thing that scrolls (internally), and the top bar / tabs / bottom
   controls just sit at their natural size as ordinary flex children. */
.player-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: #000; max-width: var(--maxw); margin: 0 auto; position: relative; }
.player-topbar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.player-topbar button, .player-topbar a {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-3); border: 1px solid var(--border-soft); border-radius: 50%;
    color: var(--text-dim); font-size: 16px; cursor: pointer;
}
.player-topbar-title { font-weight: 700; font-size: 15px; color: var(--text-dim); }

.player-tabs { flex-shrink: 0; display: flex; justify-content: center; gap: 10px; padding: 4px 0 10px; }
.player-tab { padding: 9px 22px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-dim); font-weight: 700; font-size: 14px; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.player-tab.active { background: var(--accent); color: #fff; }

.player-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.player-cover-view, .player-lyrics-view { display: none; flex: 1; min-height: 0; }
.player-cover-view.active, .player-lyrics-view.active { display: flex; }
.player-cover-view { align-items: center; justify-content: center; padding: 20px; }
.player-cover-view img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.player-cover-view .no-cover { width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--text-dimmer); }

.lyrics-wrapper {
    flex: 1; min-height: 0; overflow-y: auto; padding: 10px 15px 20px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none; /* scrolls normally (incl. the auto-scroll-to-line JS) — just no visible scrollbar track */
}
.lyrics-wrapper::-webkit-scrollbar { display: none; }
.lyric-line { margin: 16px 0; text-align: center; cursor: pointer; padding: 6px 5px; }
.line-text { font-size: clamp(17px, 6vw, 34px); font-weight: 800; display: inline-block; letter-spacing: 0.3px; line-height: 1.5; }
.karaoke-word { display: inline-block; transition: color 0.08s linear; margin-right: 6px; color: var(--text-dimmer); }
.player-ctrl-sec.is-disabled { opacity: 0.3; pointer-events: none; }
.line-progress { width: 50%; max-width: 220px; height: 3px; background: #2a2a2a; border-radius: 4px; margin: 6px auto 0; overflow: hidden; }
.line-progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.05s linear; }

/* A normal (non-fixed) flex child now — height:100vh + overflow:hidden on
   .player-page already guarantees it stays on-screen at the bottom, with no
   position:fixed/padding-compensation trick needed. */
.player-bottom-bar {
    flex-shrink: 0;
    background: #000;
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.player-meta { padding: 4px 20px 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.player-song-title { font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.player-song-artist { font-size: 14px; color: var(--text-dim); margin: 0; }
.player-heart-btn { background: none; border: none; color: var(--text-dim); font-size: 22px; padding: 6px; margin-top: 2px; cursor: pointer; }
.player-heart-btn .fa-solid { color: var(--accent); }

.player-seek { padding: 6px 20px 0; }
.seek-range { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--seek-pct, 0%), #333 var(--seek-pct, 0%), #333 100%); }
.seek-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; }
.seek-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; }
.seek-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 6px; font-family: monospace; }

.player-controls { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 14px 20px; }
.player-ctrl-toggle { background: none; border: none; color: var(--text-dimmer); font-size: 18px; cursor: pointer; padding: 6px; }
.player-ctrl-toggle.active { color: var(--accent); }
.player-ctrl-sec { background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 6px; }
.player-play-btn { width: 62px; height: 62px; border-radius: 50%; background: #fff; color: #000; border: none; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }

.player-volume { display: flex; align-items: center; gap: 12px; padding: 4px 24px 6px; }
.player-volume i { color: var(--text-dim); font-size: 14px; }
.volume-range { -webkit-appearance: none; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(to right, #fff 0%, #fff var(--vol-pct, 70%), #333 var(--vol-pct, 70%), #333 100%); }
.volume-range::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; cursor: pointer; }
.volume-range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: none; cursor: pointer; }

.player-queue-label { text-align: center; color: var(--text-dimmer); font-size: 12px; padding: 6px 0 18px; }

.locked-banner { margin: 20px; padding: 20px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); text-align: center; }
.locked-banner i { font-size: 30px; color: var(--accent); margin-bottom: 10px; display: block; }

/* Slide-in menu overlay (from the original karaoke player) */
.karaoke-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 999;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
}
.karaoke-menu-overlay.open { opacity: 1; visibility: visible; }
.karaoke-menu-panel { position: relative; width: 100%; max-width: 480px; max-height: 80vh; background: var(--surface); border-radius: 24px; border: 1px solid var(--border-soft); overflow: hidden; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1); margin: 20px; }
.karaoke-menu-overlay.open .karaoke-menu-panel { transform: scale(1); }
.karaoke-menu-header { padding: 20px; border-bottom: 1px solid var(--border); text-align: center; display: flex; justify-content: center; }
.karaoke-menu-header img { max-width: 90px; height: auto; border-radius: 16px; }
.karaoke-menu-items { padding: 12px 0; max-height: 55vh; overflow-y: auto; }
.karaoke-menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 4px 14px; background: var(--surface); border-radius: 12px; color: #ccc; border: 1px solid var(--border-soft); font-size: 14px; cursor: pointer; }
.karaoke-menu-item i { width: 18px; color: var(--text-dimmer); }
.karaoke-close-menu { position: absolute; top: 14px; right: 14px; background: var(--surface-3); border: 1px solid var(--border-soft); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); cursor: pointer; }

audio { display: none; }

@media (max-width: 380px) {
    .song-card, .song-card-cover, .feature-card { width: 118px; height: 118px; }
}
