/*!
 * TATARR Artists — Frontend CSS v3.3 (badge row + avatar/content row + responsive)
 * ionuttatar.ro
 */

/* ── Containere principale (overflow safe) ─────────── */
.tatarr-wrapper, .tatarr-grid {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Variabile + scope ──────────────────────────────── */
.tatarr-wrapper {
    --t-bg:           rgba(255, 255, 255, 0.055);
    --t-bg-hover:     rgba(255, 255, 255, 0.09);
    --t-border:       rgba(255, 255, 255, 0.10);
    --t-border-h:     rgba(255, 255, 255, 0.22);
    --t-gold:         #d4af37;
    --t-gold-soft:    rgba(212, 175, 55, 0.5);
    --t-gold-bg:      rgba(212, 175, 55, 0.12);
    --t-gold-border:  rgba(212, 175, 55, 0.30);
    --t-text:         #fff;
    --t-text-2:       rgba(255, 255, 255, 0.72);
    --t-text-3:       rgba(255, 255, 255, 0.5);
    --t-text-4:       rgba(255, 255, 255, 0.4);
    --t-radius:       16px;
    --t-ease:         cubic-bezier(.2,.8,.2,1);

    color: var(--t-text);
    font-family: var(--e-global-typography-text-font-family, "Roboto"), system-ui, sans-serif;
    box-sizing: border-box;
}
.tatarr-wrapper *, .tatarr-wrapper *::before, .tatarr-wrapper *::after { box-sizing: inherit; }

/* ── CONTROLS (search + filters + sort) ─────────────── */
.tatarr-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 22px;
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter:         blur(22px) saturate(1.3);
}
.tatarr-search-wrap { flex: 1 1 220px; min-width: 200px; }
.tatarr-search {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--t-border);
    border-radius: 10px;
    color: var(--t-text);
    font-size: 13px;
    outline: none;
    transition: border-color .2s var(--t-ease), background .2s var(--t-ease);
}
.tatarr-search::placeholder { color: var(--t-text-3); }
.tatarr-search:focus { border-color: var(--t-gold-soft); background: rgba(255,255,255,0.09); }

.tatarr-filter-wrap { display: flex; flex-wrap: wrap; gap: 5px; flex: 1 1 auto; }
.tatarr-filter-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--t-border);
    border-radius: 999px;
    color: var(--t-text-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all .2s var(--t-ease);
}
.tatarr-filter-btn:hover { color: var(--t-text); border-color: var(--t-border-h); }
.tatarr-filter-btn.active {
    background: var(--t-gold);
    color: #1a1a1a;
    border-color: var(--t-gold);
    box-shadow: 0 3px 12px rgba(212,175,55,0.30);
}
.tatarr-filter-trending.active {
    background: rgba(255,0,0,0.15);
    border-color: rgba(255,0,0,0.4);
    color: #FF4444;
    box-shadow: 0 3px 12px rgba(255,0,0,0.20);
}

.tatarr-sort-wrap { flex: 0 0 auto; }
.tatarr-sort-select {
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--t-border);
    border-radius: 8px;
    color: var(--t-text);
    font-size: 12px;
    cursor: pointer;
    outline: none;
    appearance: none;
}
.tatarr-sort-select option { background: #1a1d2e; color: var(--t-text); }

/* ── GRID ────────────────────────────────────────────── */
.tatarr-grid {
    display: grid;
    gap: 16px;
}
.tatarr-cols-1 { grid-template-columns: 1fr; }
.tatarr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tatarr-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tatarr-cols-4 { grid-template-columns: repeat(3, 1fr); }
.tatarr-cols-5 { grid-template-columns: repeat(3, 1fr); }
.tatarr-cols-6 { grid-template-columns: repeat(3, 1fr); }
/* 600–960px: 2 coloane. <600px: 1 coloană. */
@media (max-width: 960px) and (min-width: 600px) { .tatarr-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 599px) { .tatarr-grid { grid-template-columns: 1fr !important; } }

/* ── OVERRIDE TEMĂ: forțăm text alb pe carduri ───────
   Specific scoping ca să NU rupă gradient-urile pe .tatarr-btn-*.
   Tema poate aplica background pe `a`, decoration, etc. — le neutralizăm
   doar pe link-urile non-platformă. */
.tatarr-card { color: #fff; }
a.tatarr-name,
.tatarr-card .tatarr-contact a,
.tatarr-card .tatarr-last-video,
.tatarr-card .tatarr-last-release {
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
a.tatarr-name:hover { color: var(--t-gold) !important; }
.tatarr-card .tatarr-last-video:hover,
.tatarr-card .tatarr-last-release:hover { color: #fff !important; }
.tatarr-card .tatarr-name,
.tatarr-card .tatarr-genre,
.tatarr-card .tatarr-stat-l,
.tatarr-card .tatarr-sync-pending,
.tatarr-card .tatarr-bio,
.tatarr-card .tatarr-prediction,
.tatarr-card .tatarr-sentiment,
.tatarr-card .tatarr-genre,
.tatarr-card .tatarr-brand-name { text-shadow: none; }
.tatarr-card ::selection { background: rgba(212,175,55,0.35); color: #fff; }

/* ── CARD: shell (no padding, footer pinned bottom) ─── */
.tatarr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter:         blur(22px) saturate(1.3);
    transition: transform .35s var(--t-ease), box-shadow .35s var(--t-ease), border-color .35s var(--t-ease), background .35s var(--t-ease);
    overflow: hidden;
}
.tatarr-card * { max-width: 100%; word-break: break-word; }
.tatarr-card:hover {
    border-color: var(--t-border-h);
    background: var(--t-bg-hover);
    box-shadow: 0 18px 44px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
}
.tatarr-card--trending {
    border-color: rgba(229, 9, 20, 0.40);
    box-shadow: inset 0 0 0 1px rgba(229,9,20,0.20), 0 8px 22px rgba(229,9,20,0.10);
}
.tatarr-card--featured {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: inset 0 0 0 1px rgba(212,175,55,0.22), 0 8px 22px rgba(212,175,55,0.10);
}

/* ── HEADER: STÂNGA avatar+gen+featured | DREAPTA conținut ─ */
.tatarr-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px;
    padding: 16px 16px 12px;
}
.tatarr-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: flex-start !important;
    gap: 5px;
    flex-shrink: 0;
    width: 75px;
}
.tatarr-card-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px;
}
.tatarr-card-top-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: 100%;
}
.tatarr-card-top-row .tatarr-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.2;
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
}
.tatarr-card-top-row .tatarr-name.has-badges {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
}
.tatarr-card-top-row .tatarr-name.no-badges {
    display: block !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tatarr-card-top-row .tatarr-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    align-self: flex-start !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    /* Align center vertical cu prima linie a numelui (font 16, line-height 1.2 → ~19.2px) */
    min-height: 19px;
}
.tatarr-card-top-row .tatarr-badges .tatarr-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.tatarr-card-right .tatarr-stats-row {
    justify-content: flex-start;
}

/* ── Avatar (stânga, 70px) ──────────────────────────── */
.tatarr-avatar-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.tatarr-avatar-sub {
    font-size: 11px;
    opacity: 0.4;
    color: #fff;
    line-height: 1.2;
    text-align: center;
    max-width: 80px;
    letter-spacing: 0.02em;
}
.tatarr-avatar,
.tatarr-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--t-gold-soft);
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.tatarr-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 3px solid rgba(212,175,55,0.3);
    color: #d4af37;
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    user-select: none;
}

.tatarr-milestone { box-sizing: border-box; width: 100%; }
.tatarr-milestone-bar { max-width: 100%; }

/* ── Nume (în top-row, stânga) ──────────────────── */
.tatarr-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
a.tatarr-name:hover { color: #d4af37; }

/* ── Gen muzical (sub avatar, în card-left) ──────── */
.tatarr-genre {
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: center;
    width: 75px;
    word-break: break-word;
    line-height: 1.3;
}

/* ── Featured badge (sub gen, în card-left) ──────── */
.tatarr-featured-badge {
    font-size: 9px;
    font-weight: 700;
    color: #d4af37;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50px;
    padding: 2px 6px;
    text-align: center;
}

/* ── Stats row (centrat) ────────────────────────────── */
.tatarr-stats-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2px;
}
.tatarr-stat { display: flex; flex-direction: column; align-items: center; }
.tatarr-stat-v {
    font-size: 15px;
    font-weight: 900;
    color: var(--t-gold);
    line-height: 1.1;
    font-family: "Unbounded", system-ui, sans-serif;
}
.tatarr-stat-l {
    font-size: 10px;
    color: var(--t-text-4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 2px;
}

/* ── Pending sync placeholder ───────────────────────── */
.tatarr-sync-pending {
    font-size: 11px;
    color: var(--t-text-4);
    font-style: italic;
    letter-spacing: 0.02em;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tatarr-sync-pending::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--t-gold);
    box-shadow: 0 0 8px rgba(212,175,55,0.6);
    animation: tatarr-pulse 1.4s ease-in-out infinite;
}
@keyframes tatarr-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1); }
}

/* ── Milestone aurie ─────────────────────────────────── */
.tatarr-milestone {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 4px;
}
.tatarr-milestone-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--t-gold), #f5e27e);
    border-radius: inherit;
    transition: width .8s var(--t-ease);
}
.tatarr-milestone-text {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    color: var(--t-text-4);
    letter-spacing: 0.04em;
    text-align: right;
}

/* ── Prediction / sentiment / bio ───────────────────── */
.tatarr-prediction,
.tatarr-sentiment {
    font-size: 11px;
    color: var(--t-text-2);
    line-height: 1.4;
}
.tatarr-bio {
    font-size: 11px;
    color: var(--t-text-2);
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Last video / release ────────────────────────────── */
.tatarr-last-release {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--t-border);
    border-radius: 8px;
    color: var(--t-text-2);
    text-decoration: none;
    font-size: 11px;
    transition: background .2s, border-color .2s;
}
.tatarr-last-release:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--t-border-h);
    color: var(--t-text);
}
.tatarr-last-video {
    width: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    height: auto;
}
.tatarr-last-video img {
    width: 80px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.tatarr-last-video-overlay {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    flex: 1;
}

/* ── Platform buttons (compact horizontal pills, centered) ── */
.tatarr-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    justify-content: flex-start;
    width: 100%;
}
.tatarr-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: transform .2s var(--t-ease), filter .2s var(--t-ease), box-shadow .2s var(--t-ease);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.tatarr-btn svg { width: 12px; height: 12px; flex-shrink: 0; fill: currentColor; }
.tatarr-btn-label { display: none; } /* compact: doar icon + stat */
.tatarr-btn-stat {
    padding: 1px 6px;
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}
.tatarr-btn:hover { transform: translateY(-1px); filter: saturate(1.12); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.tatarr-btn-yt      { background: linear-gradient(135deg, #ff0000, #cc0000); }
.tatarr-btn-spotify { background: linear-gradient(135deg, #1db954, #1aa849); }
.tatarr-btn-tiktok  { background: linear-gradient(135deg, #00f2ea 0%, #000 50%, #ff0050 100%); }
.tatarr-btn-ig      { background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%); }
.tatarr-btn-fb      { background: linear-gradient(135deg, #1877f2, #0d5fc0); }

/* ── Trending actions (Vezi pe Trending + Certificat) ─ */
.tatarr-trending-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.tatarr-trend-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1;
    white-space: nowrap;
    transition: transform .2s var(--t-ease), filter .2s var(--t-ease), box-shadow .2s var(--t-ease);
    cursor: pointer;
    border: 0;
}
.tatarr-trend-btn--view {
    background: linear-gradient(135deg, #ff4757, #c0392b);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(255,71,87,0.30);
}
.tatarr-trend-btn--cert {
    background: rgba(212, 175, 55, 0.18);
    color: var(--t-gold) !important;
    border: 1px solid rgba(212,175,55,0.40);
}
.tatarr-trend-btn--card {
    background: linear-gradient(135deg, #ff3a00, #c00000);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255,58,0,0.35);
}
.tatarr-trend-btn--card:hover { box-shadow: 0 8px 20px rgba(255,58,0,0.45); }
.tatarr-trend-btn:hover { transform: translateY(-1px); filter: saturate(1.1); }
.tatarr-trend-btn--cert:hover {
    background: rgba(212, 175, 55, 0.30);
    border-color: rgba(212,175,55,0.65);
    box-shadow: 0 6px 14px rgba(212,175,55,0.18);
}

/* ── Contact ────────────────────────────────────────── */
.tatarr-contact {
    font-size: 11px;
    color: var(--t-text-4);
}
.tatarr-contact a { color: var(--t-text-2); text-decoration: none; }
.tatarr-contact a:hover { color: var(--t-text); }

/* ── Badge-uri (sus, flow row centrat) ───────────── */
.tatarr-badges {
    position: static;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
    margin: 0;
}
/* Order: VIRAL primul, apoi POPULAR, apoi TRENDING */
.tatarr-badge--viral     { order: 1; }
.tatarr-badge--popular   { order: 2; }
.tatarr-badge--trending  { order: 3; }
.tatarr-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
    text-transform: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;             /* nu mai trunchia poziția — preferă să iasă din 50% decât să taie #N/30 */
    overflow: visible;
    min-width: 0;
}
.tatarr-badge--new          { background: rgba(29,185,84,0.15);  border: 1px solid rgba(29,185,84,0.4);  color: #1DB954; }
.tatarr-badge--viral        { background: rgba(255,58,0,0.20);   border: 1px solid rgba(255,58,0,0.50);  color: #ff7a3a; animation: tatarr-viral-pulse 1.6s ease-in-out infinite; }
@keyframes tatarr-viral-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,58,0,0.45); }
    50%      { box-shadow: 0 0 10px 2px rgba(255,58,0,0.30); }
}
.tatarr-badge--join-recent  { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); font-size: 9px; }
.tatarr-badge--join-1an     { background: rgba(212,175,55,0.08);  border: 1px solid rgba(212,175,55,0.2);  color: rgba(212,175,55,0.6); font-size: 9px; }
.tatarr-badge--join-veteran { background: rgba(212,175,55,0.15);  border: 1px solid rgba(212,175,55,0.35); color: #d4af37; font-size: 9px; }
.tatarr-badge--trending     { background: rgba(229,9,20,0.28);    color: #ff4757; border: 1px solid rgba(229,9,20,0.5); }
.tatarr-badge--popular      { background: rgba(99,102,241,0.22);  color: #a5b4fc; border: 1px solid rgba(99,102,241,0.50); }
.tatarr-badge--featured     { background: rgba(212,175,55,0.20);  color: var(--t-gold); border: 1px solid var(--t-gold-border); }
.tatarr-badge--placeholder  { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); color: rgba(255,255,255,0.2); font-size: 9px; }

/* ── Growth bar trimestrială (4 segmente Q1-Q4) ────── */
.tatarr-growth-bar {
    display: flex;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    gap: 2px;
    margin: 10px 0 3px;
}
.tatarr-growth-seg {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
    cursor: default;
}
.tatarr-growth-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-align: left;
    margin-bottom: 4px;
}

/* ── Join corner (wrapper în footer, dreapta) ─────── */
.tatarr-join-corner {
    display: flex;
    align-items: center;
}
.tatarr-join-corner .tatarr-badge {
    font-size: 10px;
    opacity: 0.8;
}
.tatarr-join-new          { background: rgba(29,185,84,0.15);  color: #1DB954; border: 1px solid rgba(29,185,84,0.40); }
.tatarr-join-join-recent  { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.12); }
.tatarr-join-join-1an     { background: rgba(212,175,55,0.10);  color: rgba(212,175,55,0.75); border: 1px solid rgba(212,175,55,0.30); }
.tatarr-join-join-veteran { background: rgba(212,175,55,0.20);  color: #d4af37; border: 1px solid rgba(212,175,55,0.50); text-shadow: 0 0 8px rgba(212,175,55,0.4); }

/* ── Footer: brand stânga, join-corner dreapta ──────── */
.tatarr-card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
    gap: 8px;
    font-size: 10px;
}
.tatarr-brand {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tatarr-brand-icon {
    width: 14px; height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--t-gold);
    color: #1a1a1a;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    font-family: "Unbounded", system-ui, sans-serif;
}
.tatarr-brand-name {
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--t-gold);
}

/* ── Load More button (auriu) ───────────────────────── */
.tatarr-load-more-wrap {
    text-align: center;
    margin: 32px 0 0;
}
.tatarr-load-more {
    padding: 11px 28px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.30);
    color: var(--t-gold);
    border-radius: 999px;
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s var(--t-ease);
}
.tatarr-load-more:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212,175,55,0.20);
}
.tatarr-load-more:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Hidden state (search/filter JS) ────────────────── */
.tatarr-card--hidden,
.tatarr-card[hidden] { display: none !important; }

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .tatarr-card,
    .tatarr-btn,
    .tatarr-load-more,
    .tatarr-filter-btn { transition: none; }
    .tatarr-card:hover,
    .tatarr-btn:hover,
    .tatarr-load-more:hover { transform: none; }
    .tatarr-sync-pending::before { animation: none; }
}

/* ── MOBILE (≤ 600px) — păstrează layout-ul row, doar reduce dimensiuni ─ */
@media (max-width: 600px) {
    .tatarr-card-header { flex-direction: row; gap: 10px; padding: 12px 12px 8px; }
    .tatarr-card-left { width: 60px; }
    .tatarr-card-right { padding-left: 0; }
    .tatarr-card-top-row { padding-left: 8px; }
    .tatarr-avatar { width: 58px; height: 58px; }
    .tatarr-avatar-placeholder { width: 58px; height: 58px; font-size: 22px; }
    .tatarr-genre { font-size: 8px; max-width: 60px; }
    .tatarr-card-top-row { display: flex !important; flex-direction: row !important; align-items: flex-start !important; justify-content: space-between !important; flex-wrap: nowrap !important; gap: 10px !important; }
    .tatarr-name { font-size: 14px; text-align: left; flex: 1 1 auto !important; min-width: 0 !important; max-width: 100% !important; line-height: 1.2; }
    .tatarr-card-top-row .tatarr-name.has-badges { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; word-break: break-word; }
    .tatarr-card-top-row .tatarr-name.no-badges { display: block !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tatarr-card-top-row .tatarr-badges { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: flex-end !important; gap: 4px !important; flex-shrink: 0 !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; position: static !important; }
    .tatarr-card-top-row .tatarr-badges .tatarr-badge { white-space: nowrap !important; flex-shrink: 0 !important; font-size: 7px !important; padding: 2px 5px !important; }
    .tatarr-badge { font-size: 9px; padding: 2px 6px; }
    .tatarr-stat-v { font-size: 16px; }
    .tatarr-stat-l { font-size: 9px; }
    .tatarr-btn { font-size: 11px; padding: 7px 10px; }
    .tatarr-btn svg { width: 15px; height: 15px; }
    .tatarr-btn-stat { font-size: 10px; padding: 1px 5px; }
    .tatarr-last-video-overlay { font-size: 10px; }
    .tatarr-card-footer { padding: 6px 12px 10px; }
    .tatarr-brand-name { font-size: 10px; }
    .tatarr-growth-label { font-size: 10px; }
    .tatarr-cols-2, .tatarr-cols-3, .tatarr-cols-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   PLATFORM CARDS — YouTube (roșu) + Spotify (verde)
   Wrapper relative cu padding-left ca să facă loc badge-ului logo
   poziționat absolute, centrat vertical, slightly sticking-out la stânga.
   ═══════════════════════════════════════════════════════════════ */
.tatarr-platform-card {
    position: relative;
    height: auto !important;
    aspect-ratio: unset !important;
    padding: 6px 10px;
    margin: 6px 0 10px 0;              /* full-width în card-right, badge plutește în avatar column */
    border-radius: 12px;
    overflow: visible !important;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.tatarr-platform-card--youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.10) 0%, rgba(204, 0, 0, 0.04) 100%);
    border: 1px solid rgba(255, 0, 0, 0.28);
}
.tatarr-platform-card--youtube:hover {
    border-color: rgba(255, 0, 0, 0.55);
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.18);
}

/* SPOTIFY mai compact decât YouTube — accent vizual rămâne pe video */
.tatarr-platform-card--spotify {
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.10) 0%, rgba(29, 185, 84, 0.04) 100%);
    border: 1px solid rgba(30, 215, 96, 0.28);
    padding: 5px 10px !important;
}
.tatarr-platform-card--spotify:hover {
    border-color: rgba(30, 215, 96, 0.55);
    box-shadow: 0 0 14px rgba(30, 215, 96, 0.18);
}

/* Badge logo — în coloana avatar, centrat vertical pe cardul respectiv.
   Card-right începe la ~105px de la marginea cardului artist
   (padding 16 + avatar 75 + gap 14). Badge-ul cu left:-90 iese la ~15px,
   bine sub avatar (avatar centrat la ~37px). */
/* Badge poziționat aşa încât CENTRUL să fie pe centrul orizontal al avatarului.
   Calc: card-right.start = padding(16) + avatar(75) + gap(14) = 105 de la card edge.
   Avatar.center = padding(16) + avatar(75)/2 = 53.5 de la card edge.
   badge.left în card-right coords = avatar.center - badge.width/2 - 105.
   Setăm per-badge ca să fie EXACT pe centrul avatarului indiferent de dimensiune. */
.tatarr-platform-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box;
    line-height: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
/* Aproape de wave (wave la -32, badge.right la -30..-31) — gap ~3-5px */
.tatarr-platform-badge--youtube { left: -75px; } /* width 42 → right -33 → 1px gap față de wave */
.tatarr-platform-badge--spotify { left: -70px; } /* width 34 → right -36 → 4px gap față de wave */
.tatarr-platform-badge svg { display: block; }

/* Sound wave — bare animate, între avatar center (~-52) și cardul colorat (0).
   Wave centrat orizontal pe (-52..0) → cca -26 din mijloc.
   left: -22 → wave 32px wide → de la -22 la +10, dar +10 e DEJA în card.
   Mai bine: wave îngust 24px, centrat în zona dintre logo și card.
   După badge (right edge la ≈-30) → wave între -30 și -2. */
.tatarr-platform-wave {
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 26px;
    height: 22px;
    z-index: 4;
    pointer-events: none;
    line-height: 0;
}
.tatarr-platform-wave span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    animation: tatarrWave 1.4s ease-in-out infinite;
}
.tatarr-platform-wave span:nth-child(1) { height: 30%; animation-delay: 0s; }
.tatarr-platform-wave span:nth-child(2) { height: 70%; animation-delay: .1s; }
.tatarr-platform-wave span:nth-child(3) { height: 100%; animation-delay: .2s; }
.tatarr-platform-wave span:nth-child(4) { height: 60%; animation-delay: .3s; }
.tatarr-platform-wave span:nth-child(5) { height: 40%; animation-delay: .4s; }
.tatarr-platform-wave--youtube { color: #FF0000; opacity: 0.65; }
.tatarr-platform-wave--spotify { color: #1DB954; opacity: 0.65; }
@keyframes tatarrWave {
    0%, 100% { transform: scaleY(0.4); }
    50%      { transform: scaleY(1); }
}
/* YT badge landscape (raport ~7:5, ca brand) */
.tatarr-platform-badge--youtube {
    width: 42px;
    height: 30px;
    background: #FF0000;
    border-radius: 7px;
}
.tatarr-platform-badge--youtube svg { width: 24px; height: 17px; }
/* Spotify badge cerc (brand) */
.tatarr-platform-badge--spotify {
    width: 34px;
    height: 34px;
    background: #1DB954;
    border-radius: 50%;
}
.tatarr-platform-badge--spotify svg { width: 22px; height: 22px; }

/* ── INTERIOR YOUTUBE ── păstrăm flex-row existent al .tatarr-last-video */
.tatarr-platform-card .tatarr-last-video {
    width: 100%;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 10px;
    padding: 0 !important;
}

/* ── INTERIOR SPOTIFY ── layout horizontal compact, mai mic decât YouTube */
.tatarr-spotify-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    text-decoration: none !important;
    color: #fff !important;
}
.tatarr-spotify-cover {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}
.tatarr-spotify-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* ── Permite badge-ului să iasă în afara cardului artist (desktop) ── */
.tatarr-card { overflow: visible !important; }
.tatarr-card .tatarr-card-body { overflow: visible !important; }

/* ── MOBIL — overflow hidden ca să NU iasă conținutul din viewport ── */
@media (max-width: 768px) {
    .tatarr-card {
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .tatarr-card .tatarr-card-body { overflow: hidden !important; }
    /* Badge + wave compact pe mobil, mai aproape de card */
    .tatarr-platform-badge--youtube { left: -50px !important; }
    .tatarr-platform-badge--spotify { left: -48px !important; }
    .tatarr-platform-wave        { left: -22px !important; width: 18px !important; }
}

/* Mobile — avatar 60px, card-right începe la ~80px de margine.
   Badge la left:-75 → cade pe avatar col (centrat la ~30px). */
@media (max-width: 768px) {
    .tatarr-platform-card {
        padding: 5px 8px;
        margin: 5px 0 8px 0;
    }
    .tatarr-platform-card--spotify {
        padding: 4px 8px !important;
    }
    /* Mobile — avatar 60px col, card padding ~12, gap ~8.
       Card-right.start = 12+60+8 = 80. Avatar.center = 12+30 = 42.
       badge.left in card-right coords = 42 - badge.width/2 - 80. */
    .tatarr-platform-badge--youtube {
        width: 36px;
        height: 26px;
        left: -75px;
    }
    .tatarr-platform-badge--youtube svg { width: 20px; height: 14px; }
    .tatarr-platform-badge--spotify {
        width: 28px;
        height: 28px;
        left: -72px;
    }
    .tatarr-platform-badge--spotify svg { width: 18px; height: 18px; }
    .tatarr-platform-wave { left: -28px; width: 22px; height: 18px; }
    .tatarr-platform-wave span { width: 2.5px; }
    .tatarr-spotify-cover { width: 38px !important; height: 38px !important; }
    .tatarr-spotify-name { font-size: 11.5px; }
}

/* ═══════════════════════════════════════════════════════════════
   STATS GRID — 3 stat-cards moderne (YT subs / Views / Scor #TATARR)
   Lățime egală 1fr×3, icon mic inline cu label, numere full visible.
   ═══════════════════════════════════════════════════════════════ */
.tatarr-card-stats {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin: 14px 0 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.tatarr-card-stat {
    position: relative;
    padding: 10px 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tatarr-card-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent, transparent) 0%, transparent 60%);
    opacity: 0.08;
    pointer-events: none;
}
.tatarr-card-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(212,175,55,0.30);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.tatarr-card-stat .stat-value {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3px;
    background: linear-gradient(135deg, #f4e5a1, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip !important;
    letter-spacing: -0.02em;
}
/* La grilă 2-cards-row (>=600 <960) cardul artist e mai lat → fonturi mai mari */
@media (min-width: 600px) and (max-width: 960px) {
    .tatarr-card-stat .stat-value { font-size: 22px; }
}
/* Single col (≤599px) → folosim mobile rules de mai jos */
.tatarr-card-stat .stat-value-max {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.5;
    margin-left: 2px;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: rgba(244,229,161,0.7);
}
.tatarr-card-stat .stat-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.60);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip !important;
    min-width: 0;
    max-width: 100%;
}
.tatarr-card-stat .stat-label-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    opacity: 0.85;
}

.tatarr-card-stat--youtube { --accent: #ff0000; }
.tatarr-card-stat--views   { --accent: #fbbf24; }
.tatarr-card-stat--score {
    --accent: #d4af37;
    background: linear-gradient(135deg, rgba(212,175,55,0.10), rgba(244,229,161,0.02));
    border-color: rgba(212,175,55,0.30);
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 6px 6px;
}
.tatarr-card-stat--score .stat-value { font-size: 12px; }
.tatarr-card-stat--score .stat-value-max { font-size: 8px; }

.tatarr-card-stat--score::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 28px;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(212,175,55,0.20) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: tatarrGlowPulse 3s ease-in-out infinite;
}
@keyframes tatarrGlowPulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

.score-info {
    display: flex;
    flex-direction: column;
    z-index: 1;
    min-width: 0;
    flex: 1 1 auto;
}

/* ── VINIL #TATARR ── */
.tatarr-vinyl-wrapper {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) drop-shadow(0 0 8px rgba(212,175,55,0.25));
}
.tatarr-vinyl {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
@media (min-width: 600px) and (max-width: 960px) {
    .tatarr-vinyl-wrapper { width: 42px; height: 42px; }
}
.tatarr-vinyl {
    width: 100%;
    height: 100%;
    animation: tatarrVinylSpin 6s linear infinite;
    transform-origin: 50% 50%;
}
.tatarr-card-stat--score:hover .tatarr-vinyl { animation-duration: 2s; }
@keyframes tatarrVinylSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Viteză rotație per tier */
.tatarr-card-stat--score[data-score-tier="elite"]  .tatarr-vinyl { animation-duration: 3s; }
.tatarr-card-stat--score[data-score-tier="star"]   .tatarr-vinyl { animation-duration: 4s; }
.tatarr-card-stat--score[data-score-tier="rising"] .tatarr-vinyl { animation-duration: 6s; }
.tatarr-card-stat--score[data-score-tier="activ"]  .tatarr-vinyl { animation-duration: 9s; }
.tatarr-card-stat--score[data-score-tier="new"]    .tatarr-vinyl { animation-duration: 12s; }

@media (max-width: 768px) {
    .tatarr-card-stats {
        /* flex layout, no grid template */
        gap: 5px;
        margin: 10px 0 4px;
    }
    .tatarr-card-stat { padding: 8px 6px; min-width: 0; }
    .tatarr-card-stat .stat-value { font-size: 15px; margin-bottom: 3px; }
    .tatarr-card-stat .stat-value-max { font-size: 8px; }
    .tatarr-card-stat .stat-label { font-size: 8px; letter-spacing: 0.3px; gap: 3px; }
    .tatarr-card-stat .stat-label-icon { width: 10px; height: 10px; }
    .tatarr-card-stat--score { gap: 5px; padding: 6px 6px; }
    .tatarr-vinyl-wrapper { width: 28px; height: 28px; }
    .tatarr-card-stat--score .stat-value { font-size: 13px; }
    .tatarr-vinyl { animation-duration: 8s; }
}

/* Viewport foarte mic (≤360px) — fallback */
@media (max-width: 360px) {
    .tatarr-card-stat .stat-value { font-size: 13px; }
    .tatarr-card-stat .stat-label { font-size: 7px; letter-spacing: 0; }
    .tatarr-card-stat .stat-label-icon { width: 9px; height: 9px; }
    .tatarr-card-stat--score .stat-value { font-size: 12px; }
    .tatarr-vinyl-wrapper { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .tatarr-vinyl { animation: none; }
    .tatarr-stat-card--score::after { animation: none; }
}
