/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
    position: fixed; top: 64px; right: 16px; z-index: 9500;
    background: var(--surf-el); border: 1px solid var(--border-hi);
    border-radius: 14px; padding: 14px 16px; max-width: 300px;
    box-shadow: 0 16px 48px rgba(0,0,0,.55);
    display: flex; gap: 12px; align-items: flex-start;
    opacity: 0; transform: translateX(24px) scale(.95);
    transition: opacity .3s, transform .35s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.toast-icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-body  { flex: 1; min-width: 0; }
.toast-title { font-size: .76rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.toast-text  { font-size: .68rem; color: var(--muted); line-height: 1.45; }
.toast-actions { display: flex; gap: 7px; margin-top: 10px; }
.tbtn { font-size: .66rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; border: none; cursor: pointer; transition: opacity .15s; font-family: inherit; letter-spacing: .05em; text-transform: uppercase; }
.tbtn-p { background: var(--primary); color: #000; }
.tbtn-s { background: var(--border); color: var(--text); }
.tbtn:hover { opacity: .8; }
.toast-x { flex-shrink: 0; font-size: 13px; color: var(--muted); cursor: pointer; padding: 0 0 0 4px; background: none; border: none; transition: color .15s; }
.toast-x:hover { color: var(--text); }

/* ══════════════════════════════════════
   COMMENT ITEMS (shared)
══════════════════════════════════════ */
.cm-item { display: flex; gap: 9px; animation: cmIn .3s cubic-bezier(.22,1,.36,1); }
@keyframes cmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.cm-ava-link { display: flex; flex-shrink: 0; border-radius: 50%; transition: opacity .2s, transform .2s; }
.cm-ava-link:hover { opacity: .8; transform: scale(1.08); }

.cm-ava {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #1a2a1a, #3CFFA0);
}
.cm-ava[data-color="1"] { background: linear-gradient(135deg,#1a0a2e,#3CFFA0); }
.cm-ava[data-color="2"] { background: linear-gradient(135deg,#2a1500,#FF5C3A); }
.cm-ava[data-color="3"] { background: linear-gradient(135deg,#001a1a,#2FC987); }
.cm-ava[data-color="4"] { background: linear-gradient(135deg,#1a1a00,#FFD700); }
.cm-ava[data-color="5"] { background: linear-gradient(135deg,#1a0020,#C77DFF); }

.cm-body { flex: 1; min-width: 0; }
.cm-top  { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; }
.cm-user { font-size: .67rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.cm-time { font-family: 'Courier New', monospace; font-size: .52rem; color: var(--muted); flex-shrink: 0; }
.cm-text { font-size: .72rem; color: var(--text); line-height: 1.5; word-break: break-word; }

.cm-actions { display: flex; align-items: center; gap: 10px; margin-top: 5px; opacity: .7; transition: opacity .15s; }
.cm-item:hover .cm-actions { opacity: 1; }
.cm-act-btn { font-family: 'Courier New', monospace; font-size: .52rem; letter-spacing: .08em; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; transition: color .15s; text-transform: uppercase; }
.cm-act-btn:hover        { color: var(--primary); }
.cm-act-btn.danger:hover { color: var(--accent); }

.cm-edit-area { margin-top: 6px; display: none; flex-direction: column; gap: 5px; }
.cm-edit-area.visible { display: flex; }
.cm-edit-input { background: var(--surf-el); border: 1px solid var(--border-hi); border-radius: 6px; padding: 6px 9px; color: var(--text); font-family: inherit; font-size: .72rem; resize: none; outline: none; line-height: 1.5; min-height: 52px; transition: border-color .2s; }
.cm-edit-input:focus { border-color: var(--primary); }
.cm-edit-btns { display: flex; gap: 6px; }
.cm-edit-save, .cm-edit-cancel { font-family: 'Courier New', monospace; font-size: .55rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; border: none; cursor: pointer; transition: opacity .15s; }
.cm-edit-save   { background: var(--primary); color: #000; }
.cm-edit-cancel { background: var(--border); color: var(--text); }
.cm-edit-save:hover, .cm-edit-cancel:hover { opacity: .8; }

.cm-like { display: flex; align-items: center; gap: 4px; font-family: 'Courier New', monospace; font-size: .85rem; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; transition: color .15s; }
.cm-like:hover, .cm-like.liked { color: var(--accent); }
.cm-divider { display: flex; align-items: center; gap: 8px; font-family: 'Courier New', monospace; font-size: .5rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.cm-divider::before, .cm-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ══════════════════════════════════════
   CAROUSELS
══════════════════════════════════════ */
#carousel-container { margin-top: 32px; position: relative; z-index: 2; }
.carousel-row { margin-bottom: 6px; }
.cr-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 4px 2px; }
.cr-num  { font-family: var(--fd); font-size: .52rem; font-weight: 700; color: var(--primary); letter-spacing: .04em; }
.cr-title { font-family: var(--fd); font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cr-line { flex: 1; height: 1px; background: var(--border); margin-left: 6px; }
.carousel-wrapper { position: relative; }
.carousel { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 16px 4px 20px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 auto; scroll-snap-align: start; text-align: center; position: relative; cursor: pointer; padding: 6px; }
.carousel-item img { width: 118px; height: 118px; border-radius: 12px; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.22,1,.36,1), filter .3s; box-shadow: 0 10px 24px -6px rgba(0,0,0,.6); }
.carousel-item:not(.locked):hover img { transform: translateY(-6px) scale(1.05); filter: brightness(55%); }
.ci-title { margin-top: 8px; font-size: .65rem; font-weight: 500; max-width: 118px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.carousel-item.locked img       { filter: brightness(28%) saturate(.2); }
.carousel-item.locked:hover img { filter: brightness(35%) saturate(.2); }
.lock-badge { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-55%); font-size: 20px; pointer-events: none; }
.carousel-item.locked .lock-badge { display: block; }
.c-play {
    position: absolute; top: 59px; left: 50%; transform: translate(-50%,-50%);
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.92); display: none; align-items: center;
    justify-content: center; font-size: 12px; color: #111;
    transition: transform .15s, background .15s; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.c-play:hover { transform: translate(-50%,-50%) scale(1.1); background: var(--primary); }
.carousel-item:not(.locked):hover .c-play { display: flex; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surf-el);
    display: flex; align-items: center; justify-content: center;
    z-index: 5; cursor: pointer; transition: opacity .2s, background .2s;
}
.carousel-arrow img   { width: 13px; opacity: .65; }
.carousel-arrow:hover { background: var(--surface); }
.carousel-arrow.left  { left: -12px; }
.carousel-arrow.right { right: -12px; }
.carousel-arrow.hidden { opacity: 0; pointer-events: none; }

/* ══════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════ */
.rp-section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.rp-header  { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-bottom: 1px solid var(--border); }
.rp-title   { font-family: var(--fd); font-size: .52rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.rp-dot     { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.rp-link    { font-size: .59rem; color: var(--primary); opacity: .75; transition: opacity .15s; }
.rp-link:hover { opacity: 1; }
.rp-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 13px; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background .15s;
}
.rp-row:last-child { border-bottom: none; }
.rp-row:hover { background: var(--surf-el); }
.edb  { flex-shrink: 0; width: 34px; text-align: center; background: var(--surf-el); border-radius: 6px; padding: 5px 4px; line-height: 1; }
.edb-d { display: block; font-size: .9rem; font-weight: 700; color: var(--text); }
.edb-m { display: block; font-size: .48rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }
.rp-info { flex: 1; min-width: 0; }
.rp-name { font-size: .72rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.rp-meta { font-size: .6rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-price { flex-shrink: 0; font-size: .67rem; font-weight: 700; color: var(--accent); }
.nthumb   { width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ntag     { font-size: .52rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 3px; }
.ntitle   { font-size: .7rem; font-weight: 500; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 2px; }
.ndate    { font-size: .57rem; color: var(--muted); }
.tcw      { position: relative; width: 33px; height: 33px; flex-shrink: 0; }
.tcw img, .tcp { width: 33px; height: 33px; border-radius: 5px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 12px; background: var(--surf-el); }
.tpo { position: absolute; inset: 0; background: rgba(0,0,0,.55); border-radius: 5px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; font-size: 9px; color: #fff; }
.rp-row:hover .tpo { opacity: 1; }
.tdur { flex-shrink: 0; font-size: .59rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.aava { width: 31px; height: 31px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text); }
.ag1 { background: linear-gradient(135deg,#1a0a2e,#3CFFA0); }
.ag2 { background: linear-gradient(135deg,#2a1500,#FF5C3A); }
.ag3 { background: linear-gradient(135deg,#001a1a,#3CFFA0); }
.abadge { flex-shrink: 0; font-size: .5rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-dim); border: 1px solid rgba(60,255,160,.2); border-radius: 3px; padding: 2px 5px; }

/* ══════════════════════════════════════
   TRACK CARDS (new-tracks page)
══════════════════════════════════════ */
#tracks-list { display: flex; flex-direction: column; gap: 8px; }
.tc-card {
    display: flex; align-items: stretch;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; position: relative;
    transition: background .2s, border-color .2s, transform .2s; cursor: pointer;
}
.tc-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); opacity: 0; transition: opacity .2s; }
.tc-card:hover             { background: var(--surf-el); border-color: var(--border-hi); transform: translateX(4px); }
.tc-card:hover::before     { opacity: 1; }
.tc-card.tc-active         { border-color: var(--border-hi); background: var(--surf-el); }
.tc-card.tc-active::before { opacity: 1; }
.tc-card.locked:hover      { transform: none; border-color: var(--border); }
.tc-card.locked:hover::before { opacity: 0; }

.tc-cover { width: 74px; min-width: 74px; position: relative; flex-shrink: 0; overflow: hidden; }
.tc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s; }
.tc-cover-ph  { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: linear-gradient(135deg, var(--surf-el), var(--surface)); }
.tc-play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.tc-card:not(.locked):hover .tc-play-overlay,
.tc-card.tc-active .tc-play-overlay { opacity: 1; }
.tc-play-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #111; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .15s, background .15s; }
.tc-play-btn:hover { transform: scale(1.1); background: var(--primary); }

.tc-body   { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.tc-top    { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tc-titles { flex: 1; min-width: 0; }
.tc-title  { font-size: .92rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.tc-artist { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-tags   { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tc-tag    { font-size: .48rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; border: 1px solid; white-space: nowrap; }
.tc-tag.genre      { color: var(--primary); background: var(--primary-dim); border-color: rgba(60,255,160,.15); }
.tc-tag.mood       { color: #C77DFF; background: rgba(199,125,255,.07); border-color: rgba(199,125,255,.2); }
.tc-tag.vocal      { color: #FFD700; background: rgba(255,215,0,.06); border-color: rgba(255,215,0,.18); }
.tc-tag.electronic { color: #3CBFFF; background: rgba(60,191,255,.06); border-color: rgba(60,191,255,.18); }
.tc-tag.locked-tag { color: var(--muted); background: transparent; border-color: var(--border); }

.tc-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tc-stat  { font-family: 'Courier New', monospace; font-size: .56rem; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.tc-stat b { color: var(--text); font-weight: 600; }
.tc-right  { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding: 12px 14px 12px 0; gap: 8px; flex-shrink: 0; }
.tc-dur    { font-family: 'Courier New', monospace; font-size: .65rem; color: var(--muted); white-space: nowrap; }
.tc-like   { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; cursor: pointer; font-family: inherit; font-size: .6rem; color: var(--muted); transition: border-color .2s, color .2s, background .2s; white-space: nowrap; }
.tc-like:hover { border-color: rgba(230,80,80,.4); color: var(--text); }
.tc-like.liked { border-color: rgba(230,80,80,.5); color: #e05050; background: rgba(230,80,80,.07); }
.tc-like svg   { width: 11px; height: 11px; fill: currentColor; transition: transform .15s; }
.tc-like:hover svg { transform: scale(1.2); }
.tc-energy      { width: 48px; height: 3px; border-radius: 2px; background: var(--surf-el); overflow: hidden; }
.tc-energy-fill { height: 100%; border-radius: 2px; background: var(--primary); transition: width .3s; }

/* ══════════════════════════════════════
   ARTIST CARDS (new-artists page)
══════════════════════════════════════ */
#artists-list { display: flex; flex-direction: column; gap: 8px; }
.artist-card {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; color: inherit;
    transition: background .2s, border-color .2s, transform .2s; position: relative; overflow: hidden;
}
.artist-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0; transition: opacity .2s; }
.artist-card:hover { background: var(--surf-el); border-color: rgba(255,92,58,.18); transform: translateX(4px); }
.artist-card:hover::before { opacity: 1; }
.ac-ava  { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: #fff; overflow: hidden; }
.ac-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ac-body { flex: 1; min-width: 0; }
.ac-name { font-size: .95rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; display: flex; align-items: center; gap: 7px; }
.ac-verified { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; font-size: .55rem; color: #000; flex-shrink: 0; }
.ac-genres { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.ac-genre  { font-size: .5rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-dim); border: 1px solid rgba(60,255,160,.15); border-radius: 4px; padding: 2px 6px; }
.ac-bio    { font-size: .7rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ac-right  { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.ac-like   { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; cursor: pointer; font-family: inherit; font-size: .6rem; color: var(--muted); transition: border-color .2s, color .2s, background .2s; white-space: nowrap; }
.ac-like:hover { border-color: rgba(230,80,80,.4); color: var(--text); }
.ac-like.liked { border-color: rgba(230,80,80,.5); color: #e05050; background: rgba(230,80,80,.07); }
.ac-like svg   { width: 11px; height: 11px; fill: currentColor; transition: transform .15s; }
.ac-like:hover svg { transform: scale(1.2); }
.ac-listeners   { font-family: 'Courier New', monospace; font-size: .58rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.ac-listeners b { color: var(--text); font-weight: 600; }
.ac-badge { font-size: .5rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: rgba(255,92,58,.1); border: 1px solid rgba(255,92,58,.2); border-radius: 4px; padding: 2px 7px; }

/* ══════════════════════════════════════
   SEARCH (pages)
══════════════════════════════════════ */
.search-wrap  { margin-bottom: 20px; }
.search-inner { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 16px; transition: border-color .2s; }
.search-inner:focus-within { border-color: var(--border-hi); }
.search-inner svg   { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 2; flex-shrink: 0; }
.search-inner input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: inherit; font-size: .85rem; }
.search-inner input::placeholder { color: var(--muted); }
.search-clear { font-size: 13px; color: var(--muted); cursor: pointer; background: none; border: none; padding: 0; line-height: 1; transition: color .15s; display: none; }
.search-clear.visible { display: block; }
.search-clear:hover   { color: var(--text); }
.search-status { font-family: 'Courier New', monospace; font-size: .58rem; color: var(--muted); letter-spacing: .05em; margin-top: 7px; padding-left: 4px; min-height: 16px; }