/* Public Profile Styles - Spotify/Premium Style */
:root {
    --p-bg: #000000;
    --p-card-bg: #121212;
    --p-hover: #282828;
    --p-accent: #8b5cf6;
    --p-text: #ffffff;
    --p-subtext: #b3b3b3;
}

body {
    background-color: var(--p-bg);
    position: relative;
    transition: background-color 0.5s ease;
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Theme Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    /* Sit on top of header background to tint it */
    opacity: 0;
    transition: opacity 1.5s ease;
    /* Smoother, larger wash of color starting from top */
    background: radial-gradient(circle at 50% -10%, var(--dynamic-theme-color, transparent) 0%, transparent 100%);
}

body.dynamic-theme-active::before {
    opacity: 0.14;
    /* Refined for seamless wash transition */
}

/* === SWITCH TOGGLE === */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #222;
    transition: .4s;
    border-radius: 34px;
}

.slider-round {
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #8b5cf6;
    /* OFFSZN Purple */
}

input:focus+.slider {
    box-shadow: 0 0 1px #8b5cf6;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* HEADER */
.profile-header {
    background: linear-gradient(180deg, #111 0%, #000 100%);
    /* Fallback darker background */
    padding: 100px 40px 64px;
    /* Restored to 3:1 Panoramic look */
    min-height: 380px;
    /* Ensure enough height for banner visibility */
    border: none;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    /* Glassmorphism Protective Overlay */
}

.profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Lighter veil, no blur (Crisp Image) */
    z-index: 1;
}

.profile-header::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Ultra-smooth multi-stop gradient to eliminate visual division */
    /* Fades from solid black at bottom (0%) to transparent quickly */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.7) 15%,
            rgba(0, 0, 0, 0.3) 30%,
            transparent 50%);
    pointer-events: none;
    z-index: 2;
}


.profile-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    /* Anchor to top to prevent vertical movement */
    gap: 32px;
    position: relative;
    z-index: 10;
}

/* BODY */
.profile-body {
    max-width: 1400px;
    /* Match navbar width */
    margin: 0 auto;
    padding: 20px 40px;
    position: relative;
    z-index: 10;
    /* Match content z-index */
}

/* === PRO TOOLBAR === */
.pro-toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #080808;
    /* Very dark */
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 0 4px;
    /* Minimal padding like Wavs */
    margin-bottom: 24px;
    height: 56px;
}

.toolbar-section.left {
    display: flex;
    height: 100%;
    align-items: center;
}

.dropdown-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #1a1a1a;
    padding: 0 20px;
}

.filters-row {
    display: flex;
    height: 100%;
}

.pro-text-filter {
    height: 100%;
    background: transparent;
    border: none;
    border-right: 1px solid #1a1a1a;
    color: #777;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.pro-text-filter:hover {
    background: #111;
    color: #fff;
}

.toolbar-section.right {
    padding-right: 12px;
}

/* === MAIN TRACK LIST (Wavs Style) === */
.products-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Seamless */
}

.list-row {
    display: grid;
    /* Cover | Play | Waveform | Duration | Title+Author | Tags/Badges | BPM | Key | Price */
    grid-template-columns: 44px 32px 1.2fr 40px 2.2fr 1fr 60px 60px 70px;
    /* Flattened waveform (1.2fr), more name space */
    align-items: center;
    gap: 12px;
    padding: 8px 8px;
    /* Start covers closer to left edge */
    /* Ultra-compact horizontal/vertical padding */
    /* Increased right padding to shift elements left */
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.1s ease;
    background: transparent;
}

.list-row:hover {
    background: #0a0a0a;
}

.list-row:hover .list-actions {
    opacity: 1;
    /* Show actions on hover if desired, or keep visible */
}

/* 1. Cover */
.list-cover img {
    width: 44px;
    /* Compact size */
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    filter: brightness(0.9);
}

/* 2. Play */
.btn-list-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-list-play:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.05);
}

/* 3. Waveform */
.list-waveform {
    height: 24px;
    opacity: 0.8;
    /* Increased opacity */
    background-size: cover;
    background-position: center;
    width: 100%;
}

/* 4. Duration */
.list-duration {
    font-size: 0.8rem;
    color: #555;
    font-family: monospace;
}

/* 5. Title & Author */
.list-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-title h4 {
    color: #eee;
    font-size: 0.8rem;
    /* Compact and sharp */
    margin: 0 0 1px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-title p {
    color: #444;
    /* Darker to let title stand out */
    font-size: 0.65rem;
    /* Micro size */
    margin: 0;
}

.list-row:hover .list-title h4 {
    color: #fff;
}

/* 6. Tags / Badges (Stems/Royalty) */
.list-badges {
    display: flex;
    gap: 6px;
}

.badge-outline {
    border: 1px solid #333;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

/* 7. Meta (BPM/Key separated) */
.list-meta-cell {
    font-size: 0.8rem;
    color: #777;
    font-weight: 500;
}

/* 8. Price */
.list-price {
    font-size: 0.85rem;
    /* Slightly smaller */
    font-weight: 800;
    /* Bolder for premium feel */
    color: #fff;
    text-align: right;
}

/* Mobile */
@media (max-width: 1200px) {
    .list-row {
        /* Simplified grid for tablet */
        grid-template-columns: 48px 40px 1fr 200px 80px;
    }

    .list-waveform,
    .list-duration,
    .list-badges {
        display: block !important;
    }
}

/* Small Mobile */
@media (max-width: 768px) {

    .profile-header,
    .profile-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .list-row {
        gap: 12px;
        grid-template-columns: 48px 1fr 60px;
    }

    .btn-list-play,
    .list-meta-cell {
        display: none;
    }
}

.profile-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 175px;
    /* Increased from 150px for better presence */
    height: 175px;
    border-radius: 50%;
    background-color: #1a1a1a;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: #444;
    border: 4px solid #1a1a1a;
    transition: transform 0.3s ease;
}

.profile-avatar-img:hover {
    transform: scale(1.02);
}

.profile-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-avatar-btn {
    position: absolute;
    bottom: 8px;
    /* Slightly more offset */
    right: 8px;
    width: 38px;
    /* Slightly larger */
    height: 38px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    font-size: 1.1rem;
}

.owner-avatar-btn:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

.owner-avatar-btn:active {
    transform: scale(0.9);
}

.profile-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-details h1 {
    font-size: 3rem;
    /* Perfectly balanced between small and large */
    font-weight: 900;
    margin: 0;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    letter-spacing: -1.2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.verified-badge {
    color: #3b82f6;
    /* Blue tick */
    font-size: 1.5rem;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--p-subtext);
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.dot-separator {
    font-size: 0.5rem;
}

.profile-bio {
    color: #ccc;
    font-size: 1rem;
    max-width: 600px;
    margin-top: 4px;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    white-space: pre-line;
    /* Respect user line breaks */
    word-break: break-word;
    /* Prevent overflow */
}

.profile-middle-row {
    display: flex;
    align-items: center;
    gap: 40px;
    /* More separation between stats and socials */
    margin-top: 8px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--p-subtext);
}

.profile-stats b {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.social-links {
    display: flex;
    gap: 16px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    color: var(--p-subtext);
    font-size: 1.1rem;
    transition: color 0.15s;
}

.social-link:hover {
    color: #fff;
}

/* NEW: PROFILE TABS */
.profile-tabs-nav {
    display: flex;
    gap: 32px;
    margin-top: 16px;
    border-bottom: none;
    /* REMOVED separating line */
    padding-bottom: 0px;
}

.profile-tab-btn {
    background: none;
    border: none;
    color: #ccc;
    /* Lighter default */
    font-size: 0.8rem;
    font-weight: 700;
    padding: 12px 4px;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.2s;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    /* Strong shadow for readability */
}

.profile-tab-btn:hover {
    color: #fff;
}

.profile-tab-btn.active {
    color: #fff;
}

.profile-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    /* Adjusted to sit at the bottom of the padding */
    left: 0;
    width: 100%;
    height: 3px;
    /* Slightly thicker */
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Shadow for the line */
    border-radius: 2px;
}

.profile-actions {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* === TRANSPARENT OUTLINE BUTTONS (Header) === */
.btn-personalize-compact,
.btn-secondary-compact,
.profile-actions .btn-primary,
.profile-actions .btn-secondary {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
}

.btn-personalize-compact:hover,
.btn-secondary-compact:hover,
.profile-actions .btn-primary:hover,
.profile-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.btn-personalize-compact i,
.btn-secondary-compact i {
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--p-accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 32px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
    padding: 9px 20px;
    border-radius: 32px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.btn-secondary:hover {
    border-color: #fff;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    color: var(--p-subtext);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: #fff;
}



/* === PRO TOOLBAR === */
.pro-toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d0d0d;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    /* Slightly tighter radius like reference */
    padding: 8px 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toolbar-section.left {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar */
}

.divider-v {
    width: 1px;
    height: 20px;
    background: #2a2a2a;
}

/* Primary Filter (Popular) */
.pro-filter-btn.primary-filter {
    background: transparent;
    border: none;
    color: #eab308;
    /* Yellow/Gold for 'Popular' like reference idea or just accent */
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Secondary Filters Row */
.filters-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.pro-text-filter {
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s;
}

.pro-text-filter:hover {
    color: #fff;
}

.pro-text-filter i {
    font-size: 0.65rem;
    margin-top: -2px;
}

/* Search */
.pro-search {
    background: #111;
    border-radius: 8px;
    /* Standard radius, not pill */
    padding: 0 12px;
    display: flex;
    align-items: center;
    width: 240px;
    border: 1px solid #333;
    height: 40px;
    /* Specific height */
    transition: all 0.2s;
}

.pro-search:focus-within {
    border-color: #666;
    background: #161616;
}

.pro-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    flex: 1;
    height: 100%;
}

.pro-search i {
    color: #555;
    font-size: 0.9rem;
}

/* VERIFIED TOOLTIP */
.verified-container {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.verified-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%) translateX(10px);
    background: #111;
    border: 1px solid #333;
    width: 220px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: none;
    /* Instant hide */
    pointer-events: none;
}

.verified-container:hover .verified-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    transition: opacity 0.15s ease, transform 0.15s ease;
    /* Smooth show */
}

.v-tooltip-header {
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--p-accent);
    /* Purple/Brand Color */
    display: flex;
    align-items: center;
    gap: 6px;
}

.v-tooltip-body {
    font-size: 0.85rem;
    color: #ddd;
    line-height: 1.4;
}

/* Arrow for tooltip (pointing left) */
.verified-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

/* Toggles */
.view-toggles-minimal {
    display: none;
    gap: 8px;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.view-toggle-btn:hover {
    color: #999;
}

.view-toggle-btn.active {
    color: #fff;
}


/* === TRENDING SECTION (Top Grid) === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Force 5 columns */
    align-items: start;
    /* Align all items to top */
    gap: 20px;
    justify-content: start;
}

/* Trending Card Style (Wavs/Kingsway Match) */
.trending-card {
    background: transparent;
    /* Seamless */
    border: none;
    border-radius: 0;
    padding: 0;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    /* Ensure it fills grid cell */
    max-width: 100%;
    /* Prevent expansion */
    min-width: 0;
    /* CRITICAL: Force grid to allow shrinking below min-content */
    align-self: start;
    /* Align to top of grid cell */
}

.t-card-cover {
    width: 100%;
    aspect-ratio: 1/1;
    min-height: 0;
    /* Allow flex to shrink properly */
    flex-shrink: 0;
    /* Prevent image from shrinking */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #111;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.trending-card:hover .t-card-cover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.t-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Badge (Count/Type) inside Image */
.t-overlay-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    z-index: 2;
}

.t-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
}

.t-play-btn i {
    margin-left: 3px;
}

.trending-card:hover .t-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.t-play-btn:hover {
    background: #f0f0f0;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.t-play-btn:active {
    transform: translate(-50%, -50%) scale(0.9) !important;
}


/* Info Container - Prevent text expansion */
.t-card-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* Important for grid/flex children to allow ellipsis */
    overflow: hidden;
}

.t-card-info h4 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 4px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
    display: block;
}


.t-card-info p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

.t-card-info p:hover {
    color: #888;
    text-decoration: underline;
}

/* Author/Artist Names Truncation */
.t-card-author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
    display: block;
}

.t-meta-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: -8px;
    /* Pull closer */
    font-size: 0.75rem;
    color: #555;
    white-space: nowrap;
    /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-chip {
    background: #1f1f1f;
    border-radius: 4px;
    padding: 2px 6px;
    color: #999;
}

/* Trending Grid Responsive */
@media (max-width: 1400px) {
    .trending-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns on tablets */
    }
}

@media (max-width: 1000px) {
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns on small tablets */
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.2rem !important;
    }

    .trending-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
        /* Space for scrollbar if needed */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        -ms-overflow-style: none;
        /* Hide scrollbar IE/Edge */
        margin-right: -20px;
        /* Bleed to edge */
        padding-right: 20px;
    }

    .trending-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .trending-card,
    .skeleton-card {
        width: 145px !important;
        /* Smaller size as requested */
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        gap: 8px !important;
    }

    .skeleton-card-title {
        height: 14px !important;
    }

    .skeleton-card-subtitle {
        height: 10px !important;
    }

    .t-card-cover {
        border-radius: 6px !important;
    }

    /* Small center play button always visible on mobile */
    .t-play-btn {
        opacity: 0.9 !important;
        transform: translate(-50%, -50%) scale(0.7) !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(4px) !important;
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .t-card-info h4 {
        font-size: 0.85rem !important;
    }

    .t-meta-row {
        font-size: 0.7rem !important;
    }
}

/* === MAIN TRACK LIST (Bottom) === */
.products-list-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.list-row {
    display: grid;
    /* Cover | Info | Player | Tags | Price | Actions */
    grid-template-columns: 60px 330px 2fr 210px 80px 110px;
    /* Increased actions width to 140px to fix ovals */
    align-items: center;
    gap: 16px;
    padding: 8px 8px;
    border-bottom: 1px solid #141414;
    transition: background 0.1s;
}

.list-row:hover {
    background: #111;
}

/* Merged Player Column */
.list-col-player {
    display: flex;
    align-items: center;
    gap: 16px;
    /* Tight gap between Play and Wave */
    width: 100%;
    min-width: 0;
}

.list-col-price {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-list-play {
    width: 32px;
    /* Small pro look */
    height: 32px;
    border-radius: 50%;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
    flex-shrink: 0;
    /* Don't shrink */
}

.btn-list-play:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
    border-color: #fff;
}

.list-cover img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* COL: Info (Title + Author) */
.list-col-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 2px;
}

.list-track-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-author-sub {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.list-author-sub {
    color: #666;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* COL: Waveform (Center) */
.list-col-wave {
    width: 100%;
    height: 32px;
    position: relative;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.list-waveform-container {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin-right: 12px;
    /* Space between wave and duration */
}

.list-col-tags {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    /* Align left */
    align-items: center;
}

.badge-outline {
    border: 1px solid #333;
    color: #888;
    font-size: 0.65rem;
    padding: 2px 0;
    /* Changed padding to rely on width for alignment or keep small */
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

/* First Badge: Product Type (Fixed Width for Alignment) */
.badge-type {
    min-width: 80px;
    text-align: center;
    border-color: #444;
    color: #bbb;
}

/* Second Badge: Meta Info (Variable) */
.badge-meta {
    border-color: #333;
    color: #888;
    min-width: 80px;
    /* Optional: Make this fixed too if desired, but user focused on alignment */
    text-align: center;
}

.list-col-meta {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.meta-item span {
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 600;
}

.meta-item small {
    color: #555;
    font-size: 0.65rem;
    font-weight: 700;
}

.list-col-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.2s ease;
}

.list-row:hover .list-col-actions {
    opacity: 1;
    /* Show on hover */
}

.btn-list-price {
    background: var(--p-accent);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 60px;
    transition: filter 0.2s;

}

.btn-list-price:hover {
    filter: brightness(1.1);
}

.btn-list-icon {
    background: transparent;
    border: 1px solid transparent;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    /* Centering fix */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Anti-oval fix */
}

.btn-list-icon:hover {
    color: #fff;
    border-color: #333;
}

/* Play Button Hover (List) */
.btn-list-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-list-play:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.1);
}

.mobile-only-play {
    display: none !important;
}

.mobile-only-filter {
    display: none !important;
}

/* Mobile List Adjustments */
/* Mobile List Adjustments */
@media (max-width: 900px) {
    .list-row {
        /* Player | Info | Actions */
        grid-template-columns: 46px 1fr 120px;
        gap: 12px;
        padding: 12px 16px;
    }

    /* Hide elements not needed on mobile */
    .list-cover,
    .list-col-tags,
    .list-col-price,
    .list-col-player span[id^="duration-"] {
        display: none !important;
    }

    .list-waveform-container {
        display: block !important;
        opacity: 0.5;
        /* Slightly dimmer on mobile to avoid clutter */
    }

    /* Move Player (Button) to first position */
    .list-col-player {
        order: -1;
        width: 46px;
        /* Restrict width since wave is gone */
        justify-content: center;
        gap: 0;
    }

    .list-col-info {
        min-width: 0;
        /* Enable truncation */
    }

    .list-track-title {
        font-size: 0.9rem;
    }

    .list-author-sub {
        font-size: 0.75rem;
    }

    .list-col-actions {
        /* Adjust actions for mobile */
        justify-content: flex-end;
    }

    /* Hide some action buttons on mobile if needed, or keep them */
    .btn-list-icon {
        width: 28px;
        height: 28px;
    }
}


/* === GRID FIXES === */
/* Ensure grid items don't stretch weirdly */
.products-grid {
    /* 5 Columns on large screens roughly */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Slightly smaller minmax to fit more items if needed */
    gap: 20px;
}

/* === LIST VIEW REFINEMENT === */
.products-grid.list-view {
    gap: 2px;
    /* Super tight gap like a spreadsheet/playlist */
}

.products-grid.list-view .product-card {
    border: none;
    /* No border for seamless look */
    border-bottom: 1px solid #1a1a1a;
    /* Line separator only */
    border-radius: 0;
    background: transparent;
    /* Transparent background */
    padding: 12px 16px;
    /* Reduced vertical padding */
    height: 64px;
    /* Compact height */
}

.products-grid.list-view .product-card:first-child {
    border-top: 1px solid #1a1a1a;
}

.products-grid.list-view .product-card:hover {
    background: #111;
    /* Subtle highlight */
    border-color: #1a1a1a;
    /* Maintain separator */
}

.products-grid.list-view .product-cover {
    width: 44px;
    /* Smaller cover */
    height: 44px;
    border-radius: 4px;
}

.products-grid.list-view .product-title {
    font-size: 0.9rem;
    /* Slightly smaller text */
    font-weight: 600;
}

.products-grid.list-view .list-waveform {
    height: 24px;
    opacity: 0.4;
    /* More subtle */
}

/* Hide tags/meta earlier */
@media (max-width: 900px) {
    .filters-row {
        gap: 12px;
    }

    .pro-text-filter {
        font-size: 0.7rem;
    }
}

@media (max-width: 700px) {
    .filters-row {
        display: none;
        /* Hide advanced filters on mobile */
    }
}

/* ADVANCED TOOLBAR */
.profile-toolbar-advanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f0f0f;
    /* Slightly lighter than pure black */
    border: 1px solid #222;
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.adv-search {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    background: #181818;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #222;
    transition: all 0.2s;
    height: 40px;
}

.adv-search:focus-within {
    border-color: #555;
    color: #fff;
    background: #1f1f1f;
}

.adv-search input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    width: 180px;
    font-family: inherit;
}

.vertical-separator {
    width: 1px;
    height: 24px;
    background: #222;
}

.filter-dropdown {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.filter-btn:hover {
    color: #fff;
    background: #1f1f1f;
}

.filter-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    min-width: 140px;
    padding: 4px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.filter-dropdown:hover .filter-menu {
    display: block;
}

.filter-opt {
    padding: 8px 12px;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
}

.filter-opt:hover {
    background: #222;
    color: #fff;
}

.filter-opt.selected {
    color: var(--p-accent);
    background: rgba(139, 92, 246, 0.1);
}

.view-toggles-modern {
    display: flex;
    background: #181818;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #222;
    gap: 2px;
}

.view-btn.icon-only {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #666;
    transition: all 0.2s;
}

.view-btn.icon-only:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.view-btn.icon-only.active {
    background: #333;
    color: #fff;
}

/* PREMIUM LIST VIEW (Track Row Style) */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
}

/* GRID VIEW DEFAULT */
.products-grid {
    display: grid;
    /* STRICT WIDTH: Prevents cards from becoming giant */
    grid-template-columns: repeat(auto-fill, 230px);
    justify-content: start;
    /* Align to start, not center (center looks weird with 1 item) */
    gap: 24px;
}

/* Responsive Grid centering for small screens */
@media (max-width: 550px) {
    .products-grid {
        justify-content: center;
    }
}

.products-grid.list-view .product-card {
    display: grid;
    /* Adjusted Columns for better breathing room */
    /* Play | Cover | Title/Author | Waveform | Tags | BPM/Key | Price/Action */
    grid-template-columns: 50px 64px 2.5fr 2fr 0.8fr 120px 120px;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    height: 84px;
    transition: background 0.2s, border-color 0.2s;
}

.products-grid.list-view .product-card:hover {
    background: #161616;
    border-color: #333;
}

/* List elements overrides */
.products-grid.list-view .product-cover {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.products-grid.list-view .product-title {
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-grid.list-view .product-author {
    font-size: 0.85rem;
    color: #666;
}

.products-grid.list-view .product-tags {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: hidden;
}

.products-grid.list-view .product-footer {
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
}

/* New List-Only Elements */
.list-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #181818;
    color: #fff;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
    /* Hidden in Grid */
}

.list-play-btn:hover {
    border-color: #fff;
    background: #222;
}

.products-grid.list-view .list-play-btn {
    display: flex;
}

.list-meta-info {
    display: none;
    flex-direction: column;
    font-size: 0.75rem;
    color: #777;
    text-align: right;
}

.products-grid.list-view .list-meta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
}

.products-grid.list-view .list-meta-info b {
    color: #ccc;
    font-weight: 600;
}

.list-waveform {
    display: block;
    /* Forced visible */
    height: 30px;
    width: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 40" preserveAspectRatio="none"><path d="M0,20 Q10,5 20,20 T40,20 T60,20 T80,20 T100,20 T120,20 T140,20 T160,20 T180,20 T200,20" stroke="%23333" stroke-width="2" fill="none"/></svg>');
    background-size: cover;
    opacity: 0.5;
}

.products-grid.list-view .list-waveform {
    display: block;
    height: 32px;
    width: 100%;
    /* Brighter waveform */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 40" preserveAspectRatio="none"><path d="M0,20 Q10,10 20,20 T40,20 T60,20 T80,20 T100,5 T120,20 T140,20 T160,20 T180,20 T200,20" stroke="%23555" stroke-width="2" fill="none"/></svg>');
    opacity: 0.7;
}

/* Responsive List */
@media (max-width: 1024px) {
    .products-grid.list-view .product-card {
        grid-template-columns: 48px 60px 1fr 80px;
        /* Hide waveform, tags, bpm on mobile/tablet to fit */
    }

    .products-grid.list-view .list-waveform,
    .products-grid.list-view .product-tags,
    .products-grid.list-view .list-meta-info {
        display: none !important;
    }
}

/* Hide Tags if screen starts getting tight */
@media (max-width: 1200px) {
    .products-grid.list-view .product-card {
        grid-template-columns: 50px 64px 2fr 1.5fr 0px 100px 100px;
    }

    .products-grid.list-view .product-tags {
        display: none;
    }
}

/* TOOLBAR */
.profile-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    margin-bottom: 24px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-tabs {
    display: flex;
    gap: 24px;
    /* Removed border-bottom from here since parent has it */
    margin: 0;
    border: none;
}

.profile-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
}

.profile-search-input {
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 8px 16px 8px 36px;
    color: #fff;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.2s;
}

.profile-search-input:focus {
    width: 240px;
    border-color: #555;
    background: #161616;
    outline: none;
}

.view-toggles {
    display: flex;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2px;
}

.view-btn {
    background: transparent;
    border: none;
    color: #555;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.view-btn.active {
    background: #333;
    color: #fff;
}

/* LIST VIEW OVERRIDES */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    height: auto;
    gap: 16px;
}

.products-grid.list-view .product-cover {
    width: 64px;
    height: 64px;
    border-radius: 6px;
}

.products-grid.list-view .product-title {
    font-size: 1rem;
    margin-bottom: 4px;
    width: 200px;
    /* Fixed width for title in list */
}

.products-grid.list-view .product-tags {
    flex: 1;
    /* Tags take available space */
    justify-content: flex-start;
}

.products-grid.list-view .product-author {
    display: none;
    /* Hide author in list to save space */
}

.products-grid.list-view .product-footer {
    width: auto;
    gap: 24px;
    margin-top: 0;
    padding-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .profile-controls {
        justify-content: space-between;
    }

    .profile-search-input {
        width: 100%;
    }

    .profile-search-input:focus {
        width: 100%;
    }
}

.product-card {
    background-color: #121212;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #222;
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    background-color: #181818;
    transform: translateY(-4px);
    border-color: #333;
}

.product-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #222;
    position: relative;
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-cover img {
    transform: scale(1.05);
}

.product-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    /* Match screenshot style */
    letter-spacing: -0.5px;
}

.product-tags {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    /* Space for scrollbar if needed */
    scrollbar-width: none;
}

.product-tags::-webkit-scrollbar {
    display: none;
}

.product-tag {
    background: #252528;
    color: #a1a1aa;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-name {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1.8px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.profile-header-info p {
    color: var(--p-subtext);
    font-size: 0.95rem;
    margin: 6px 0 16px;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Push to bottom */
    padding-top: 4px;
}

.product-price {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.btn-card-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.product-card:hover .btn-card-action {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        padding: 25px 16px 24px;
        min-height: 240px;
    }

    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .profile-avatar-img {
        width: 110px;
        height: 110px;
        margin-bottom: 0;
    }

    .profile-details {
        align-items: center;
        gap: 8px;
    }

    .profile-details h1 {
        font-size: 1.5rem;
    }

    .profile-bio {
        display: none;
    }

    .profile-actions {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }

    .profile-stats {
        gap: 12px !important;
    }

    .profile-stats .stat b {
        font-size: 0.8rem !important;
    }

    .profile-stats .stat b div {
        font-size: 0.6rem !important;
    }

    .social-links {
        gap: 10px !important;
    }

    .social-links a,
    .social-links div {
        font-size: 0.85rem !important;
        width: 16px !important;
        height: 16px !important;
    }

    /* === NEW TRACKLIST REDESIGN (MOBILE V2) === */
    .pro-toolbar-container {
        padding: 0 16px;
        margin-bottom: 12px;
        justify-content: space-between !important;
        gap: 0;
    }

    .toolbar-section.left {
        gap: 0 !important;
    }

    /* Search Input Expansion Logic (MOBILE) */
    .pro-search {
        width: 40px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 0 10px !important;
        justify-content: center !important;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s !important;
        overflow: hidden;
        cursor: pointer;
        border-radius: 8px !important;
        /* Rounded square initially */
    }

    .pro-search.active {
        width: 100% !important;
        flex: 1;
        background: #111 !important;
        border-color: #333 !important;
        border-radius: 20px !important;
        /* Pill when active as in Image 3 */
        margin-right: 12px;
        justify-content: flex-start !important;
        padding: 0 15px !important;
    }

    .pro-search input {
        display: none;
        width: 0;
        opacity: 0;
        transition: opacity 0.2s;
    }

    .pro-search.active input {
        display: block;
        width: 100%;
        opacity: 1;
    }

    .pro-search i {
        color: #888 !important;
        font-size: 1.1rem !important;
        flex-shrink: 0;
    }

    .pro-search.active i {
        color: #fff !important;
        margin-right: 10px;
    }

    /* Hide divider and text filters on mobile */
    .divider-v,
    .filters-row {
        display: none !important;
    }

    /* New Filter Icon on Right */
    .toolbar-section.right {
        display: flex;
        align-items: center;
    }

    /* We use the existing Search icon logic but repositioned. 
       Actually, let's make the "POPULAR" button look like a Filter icon on mobile. */
    .toolbar-section.left .dropdown-wrapper {
        display: none !important;
        /* Hide Popular on left */
    }

    /* Final Toolar: Search Icon [Left] ... Filter icon [Right] */
    .pro-toolbar-container::after {
        display: none !important;
    }

    .toolbar-section.left {
        display: none !important;
        /* Hide Popular dropdown and text filters */
    }

    .toolbar-section.right {
        order: -1;
        /* Move Search section to the left */
        width: 100%;
        display: flex !important;
        justify-content: space-between !important;
        flex-direction: row !important;
    }

    .mobile-only-filter {
        display: flex !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px !important;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem !important;
        padding: 0 !important;
    }

    .list-row {
        grid-template-columns: 50px 1fr auto !important;
        grid-template-areas: "cover info actions";
        gap: 12px !important;
        padding: 12px 16px !important;
        align-items: center;
    }

    .list-cover {
        grid-area: cover;
        display: block !important;
        width: 50px !important;
        height: 50px !important;
    }

    .list-cover img {
        border-radius: 4px;
    }

    .list-col-info {
        grid-area: info;
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        text-align: left;
    }

    .list-track-title {
        font-size: 0.9rem !important;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .list-author-sub {
        font-size: 0.75rem !important;
        color: #888 !important;
        margin-top: 0 !important;
    }

    /* Tags/Badges inside Info column on mobile */
    .list-col-tags {
        display: flex !important;
        margin-top: 2px;
        gap: 4px;
    }

    .badge-outline {
        font-size: 0.6rem !important;
        padding: 1px 4px !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    /* Hide price and waveform on mobile list */
    .list-col-price,
    .list-waveform-container {
        display: none !important;
    }

    .list-col-player {
        display: none !important;
        /* We'll move play button to actions via JS or float */
    }

    .list-col-actions {
        grid-area: actions;
        display: flex !important;
        gap: 6px !important;
        width: auto !important;
        justify-content: flex-end;
    }

    .btn-list-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: none !important;
        color: #fff !important;
    }

    /* Manual placement of Play button via styling if JS change is too complex 
       Actually, I'll update JS for structure but let's make CSS robust. */
    .mobile-only-play {
        display: flex !important;
        background: #fff !important;
        color: #000 !important;
    }
}

/* === ARTIST HOVER CARD === */
.artist-hover-trigger {
    transition: color 0.2s;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.artist-hover-trigger:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

#artist-hover-card {
    position: fixed;
    display: none;
    background: #181818;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 12px;
    /* Smaller padding */
    width: 220px;
    /* Mini Width */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
}

#artist-hover-card.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reduced gap */
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.ahc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced gap */
}

.ahc-avatar {
    width: 42px;
    /* Mini Avatar */
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #444;
}

.ahc-info {
    display: flex;
    flex-direction: column;
}

.ahc-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ahc-name i.bi-patch-check-fill {
    color: #1DB954;
    /* Verified Green */
    font-size: 0.9rem;
}

.ahc-stats {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

.ahc-btn-follow {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.ahc-btn-follow:hover {
    background: #444;
}

/* EMPTY STATE CTA (YouTube Studio Style) */
.empty-state-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin: 20px 0;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.1);
    /* Purple tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-icon i {
    font-size: 32px;
    color: #8b5cf6;
}

.empty-state-cta h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.empty-state-cta p {
    font-size: 0.9rem;
    color: #888;
    max-width: 400px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-upload-first {
    background: #8b5cf6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upload-first:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.list-waveform,
.list-waveform-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 28px !important;
    min-width: 100px !important;
    background: transparent !important;
}

/* Banner Options in Modal */
.banner-option {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease !important;
}

.banner-option:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
    z-index: 10;
}

/* ==================== BIO MENTIONS ==================== */
.bio-mention {
    color: var(--p-accent);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.bio-mention:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

/* ==================== FILTERS MODAL (Spanish & B&W) ==================== */
.filters-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 30000;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.filters-modal.active {
    display: flex;
}

.fm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: #000;
    border-bottom: 2px solid #111;
}

.fm-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.btn-close-modal {
    background: #111;
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.fm-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #000;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.fm-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.2px;
}

/* Radio/Checkbox Rows */
.fm-options-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fm-option {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-size: 1rem;
    color: #aaa;
    font-weight: 500;
}

.fm-option input[type="radio"],
.fm-option input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: #fff;
    background: #000;
    border: 2px solid #333;
    appearance: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.fm-option input[type="checkbox"] {
    border-radius: 4px;
}

.fm-option input:checked {
    background: #fff;
    border-color: #fff;
}

.fm-option input:checked::after {
    content: "\F26E";
    /* Bootstrap check icon code */
    font-family: "bootstrap-icons";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 0.9rem;
    font-weight: 900;
}

.fm-option span {
    transition: color 0.2s;
}

.fm-option:hover span,
.fm-option input:checked+span {
    color: #fff;
}

/* Tempo Slider (B&W Style) */
.tempo-range-container {
    padding: 10px 0;
}

.tempo-values {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    margin-bottom: 24px;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.tempo-slider-track {
    height: 6px;
    background: #111;
    border-radius: 3px;
    position: relative;
    margin: 32px 0;
}

.tempo-slider-fill {
    position: absolute;
    height: 100%;
    background: #fff;
    border-radius: 3px;
}

.tempo-thumb {
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.tempo-thumb::after {
    content: "";
    width: 2px;
    height: 12px;
    background: #000;
    border-radius: 1px;
}

/* Key Selector Grid */
.key-selector-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.key-btn {
    background: #000;
    border: 2px solid #222;
    color: #fff;
    height: 58px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-btn.active {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

/* Footer UI */
.fm-footer {
    padding: 24px;
    display: flex;
    gap: 16px;
    background: #000;
    border-top: 2px solid #111;
}

.fm-btn-cancel {
    background: #111;
    color: #fff;
    border: none;
    height: 64px;
    flex: 1;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
}

.fm-btn-apply {
    background: #fff;
    color: #000;
    border: none;
    height: 64px;
    flex: 1;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
}

/* MOBILE ROW FIX: Ensure actions are visible */
@media (max-width: 768px) {
    .list-col-actions {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: auto !important;
        margin-left: auto;
    }

    .btn-list-icon {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        /* Ensure it's not hidden */
    }

    .mobile-only-play {
        display: flex !important;
        color: #000 !important;
        /* Black icon on white disk */
    }

    /* Color handled by JS logic for better toggle visibility */

    .list-row:hover .list-col-actions,
    .list-row:active .list-col-actions {
        opacity: 1 !important;
    }
}