/* search.css - Advanced Search Page Styles */

:root {
    --accent-purple: #ffffff;
    --bg-dark: #070707;
    --sidebar-bg: #0f0f0f;
    --card-bg: #111111;
    --text-main: #ffffff;
    --text-dim: #888888;
    --border-soft: rgba(255, 255, 255, 0.08);
}

.search-main-container {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
    min-height: 80vh;
    overflow-x: hidden;
}

/* --- Sidebar Redesign --- */
.search-sidebar {
    width: 300px;
    flex-shrink: 0;
    height: fit-content;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 20px 10px;
    /* Reduced bottom padding */
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Very tight gap as per ref image */
    /* Tightened gap as per ref */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.search-sidebar::-webkit-scrollbar {
    width: 4px;
}

.search-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.search-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.search-sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-main-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.results-count {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
}

.filter-value-display {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Premium Checkbox --- */
.premium-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #999;
    user-select: none;
    transition: all 0.2s ease;
}

.premium-checkbox.sm {
    font-size: 0.75rem;
    color: #666;
}

.premium-checkbox:hover {
    color: #fff;
}

.premium-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1.5px solid #333;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.premium-checkbox.sm .checkmark {
    height: 14px;
    width: 14px;
}

.premium-checkbox:hover .checkmark {
    border-color: #555;
}

.premium-checkbox input:checked~.checkmark {
    background-color: #fff;
    border-color: #fff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.premium-checkbox input:checked~.checkmark:after {
    display: block;
}

.premium-checkbox .checkmark:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.premium-checkbox.sm .checkmark:after {
    left: 4px;
    top: 1px;
    width: 3.5px;
    height: 7px;
}

/* --- Dual Range Slider --- */
.dual-range-container,
.single-range-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
}

.range-handle {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    outline: none;
    z-index: 2;
}

.range-handle::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.premium-slider {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #1a1a1a;
    height: 4px;
    border-radius: 2px;
    outline: none;
}

.premium-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* --- Premium Select --- */
.premium-select-wrapper {
    position: relative;
    width: 100%;
}

.premium-select {
    width: 100%;
    background: #111;
    border: 1.5px solid #222;
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.premium-select:hover,
.premium-select:focus {
    border-color: #444;
    background: #151515;
}

.premium-select-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #555;
    font-size: 0.8rem;
}

.btn-clear-filters {
    margin-top: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    border-color: #fff;
    color: #000;
    background: #fff;
}

#search-results-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 0;
}

/* Red heart for likes */
.action-icon.liked {
    color: #ff4d4d !important;
}

/* Square badges for BPM/Key */
.info-square-v2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    min-width: 42px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.info-square-v2:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}


.search-section-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 32px 0 16px;
    opacity: 0.9;
    /* Removed border-left and text-transform: uppercase as requested */
}

.search-results-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.results-count {
    font-size: 1.1rem;
    font-weight: 600;
}

.sort-select {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- Track Card (Horizontal Row) --- */
.track-row {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 10px 10px; /* More compact vertical padding */
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background 0.2s;
    cursor: default;
}

.track-row:first-child {
    padding-top: 4px; /* Minimize top spacing on the first result */
}

.track-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Thumbnail Play Overlay */
.thumb-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.track-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s;
}

.thumb-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 1.5rem;
    z-index: 2;
}

.thumb-container:hover .thumb-play-overlay {
    opacity: 1;
}

.thumb-container:hover .track-thumb {
    filter: brightness(0.7);
}

.track-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0; /* Important for ellipsis in children */
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Tighter gap */
    align-items: flex-start;
    text-align: left;
    min-width: 0; /* Important for ellipsis in children */
    overflow: hidden;
}

.track-title {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: text-decoration 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.track-title:hover {
    text-decoration: underline !important;
}

.producer-name {
    cursor: pointer;
    transition: text-decoration 0.2s, color 0.2s;
}

.producer-name:hover {
    text-decoration: underline !important;
    color: #fff !important;
}

.track-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-stats-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.stat-pill-v2 {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    min-width: 32px;
    text-align: center;
}

.meta-separator-v2 {
    color: rgba(255, 255, 255, 0.1);
    font-weight: 300;
    margin: 0 4px;
}

.track-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.track-play-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.track-waveform {
    flex: 1;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    opacity: 0.6;
}

/* Consolidated into .track-meta above */

.track-badges {
    display: flex;
    gap: 8px;
}

.badge-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-transform: uppercase;
}

.track-price-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    min-width: 90px;
}

.track-price-btn:hover {
    background: #eee;
    transform: scale(1.05);
}

.track-actions-right {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    min-width: 350px;
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--text-dim);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.track-row:hover .track-actions {
    opacity: 1;
    pointer-events: auto;
}

.action-icon {
    cursor: pointer;
    transition: color 0.2s;
}

.action-icon:hover {
    color: #fff;
}

.action-icon.liked {
    color: #ef4444;
}

/* --- Producer Rows --- */
.producer-row:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* --- Exact Match Card --- */
.exact-match-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
}

.btn-primary-sm {
    transition: background 0.2s, transform 0.2s;
}

.btn-primary-sm:hover {
    background: #eee !important;
    transform: scale(1.05);
}

/* --- Filter Accordion --- */
.filter-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
    /* Tight padding as per ref */
    margin: 0;
    transition: none;
    /* Removed "crazy" animation */
}

.filter-header,
.filter-header-static,
.filter-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    user-select: none;
}

.filter-header {
    cursor: pointer;
}

.filter-header:hover .filter-title {
    color: #fff;
}

.filter-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    /* Slightly larger as per ref */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    /* White as per ref */
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title i {
    font-size: 1rem;
}

/* --- Skeletons --- */
.filter-skeleton-container {
    display: none;
    /* Hidden by default */
    padding: 8px 0;
    flex-direction: column;
    gap: 10px;
}

.filter-skeleton {
    height: 20px;
    background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite linear;
    border-radius: 4px;
}

.filter-skeleton.header {
    width: 60%;
    margin-bottom: 8px;
}

.filter-skeleton.option {
    width: 40%;
}

.filter-skeleton.slider {
    height: 4px;
    width: 100%;
    margin: 15px 0;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   PREMIUM CUSTOM DROPDOWN
   ========================================================================== */

.custom-sort-container {
    position: relative;
    min-width: 180px;
}

.sort-trigger {
    width: 100%;
    background: #0A0A0A;
    border: 1px solid #1A1A1A;
    color: #FFFFFF;
    padding: 10px 16px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-trigger:hover {
    border-color: #333;
    background: #111;
}

.sort-trigger i {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s ease;
}

.custom-sort-container.active .sort-trigger {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 1px var(--accent-purple);
}

.custom-sort-container.active .sort-trigger i {
    transform: rotate(180deg);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #0F0F0F;
    border: 1px solid #1A1A1A;
    border-radius: 12px;
    padding: 6px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: dropdownPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownPop {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-sort-container.active .sort-menu {
    display: flex;
}

.sort-item {
    padding: 10px 12px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.sort-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.sort-item.selected {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08); font-weight: 600;
}

.sort-item.selected::after {
    content: "\F26E"; /* Bootstrap Icons check */
    font-family: "bootstrap-icons";
    font-size: 14px;
}

.filter-content.loading .filter-skeleton-container {
    display: flex;
    /* Shown only while loading */
}

.filter-content.loading>*:not(.filter-skeleton-container) {
    display: none;
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.filter-group.active .filter-content {
    max-height: 800px;
    margin-top: 8px;
}

/* Standard (non-accordion) content */
.filter-group:not(.accordion) .filter-content {
    max-height: none;
    overflow: visible;
    margin-top: 8px;
}

.filter-search-container {
    position: relative;
    margin-bottom: 12px;
}

.filter-search-container i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 0.9rem;
}

.filter-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px 8px 32px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.filter-options-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    transition: none;
}

#key-options-container.expanded {
    max-height: none;
    overflow-y: visible;
}

/* Custom Scrollbar for Filters */
.filter-options-scroll::-webkit-scrollbar {
    width: 4px;
}

.filter-options-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.filter-options-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.show-more-btn {
    background: none;
    border: none;
    color: #8b5cf6;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.show-more-btn:hover {
    color: #a78bfa;
}

#search-clear-btn {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #444;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    padding: 5px;
}

#search-clear-btn.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Fallback / No Results Styles --- */
.no-results-premium {
    text-align: center;
    padding: 60px 20px;
    background: #000;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.fallback-section {
    width: 100%;
}

.fallback-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.fallback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.fallback-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fallback-card:hover {
    background: #111;
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.fallback-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.fallback-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.fallback-card:hover .fallback-card-overlay {
    opacity: 1;
}

.fallback-card-overlay i {
    font-size: 2rem;
    color: #fff;
}

.fallback-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fallback-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fallback-card-producer {
    font-size: 0.75rem;
    color: #666;
    cursor: pointer;
}

.fallback-card-producer:hover {
    text-decoration: underline;
    color: #fff;
}

.fallback-card-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
}



/* --- Skeletons & Recommendations Polish --- */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    /* Increased gap for better spacing */
    margin-top: 10px;
}

.recommendation-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
}

.recommendation-card-img-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 16px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.recommendation-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendation-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommendation-card-producer {
    font-size: 0.8rem;
    color: #666;
}

/* Skeleton Pulse Animation */
@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

.skeleton {
    background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite linear;
    border-radius: 8px;
}

.track-row-skeleton {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 80px;
    width: 100%;
}

.thumb-skeleton {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
}

.info-skeleton {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.title-skeleton {
    height: 16px;
    width: 240px;
}

.meta-skeleton {
    height: 12px;
    width: 160px;
}

.actions-skeleton {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    min-width: 350px;
    justify-content: flex-end;
}

.icon-skeleton {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.btn-skeleton {
    width: 90px;
    height: 35px;
    border-radius: 8px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 70%;
}

.premium-select {
    appearance: none;
    -webkit-appearance: none;
}

/* =====================================================================
   MOBILE RESPONSIVE — Search Page
   Target: Compact rows with thumb + title + producer/type/bpm only.
   No action icons, no price btn, no sort dropdown.
   ===================================================================== */
@media (max-width: 768px) {

    /* --- Layout --- */
    .search-main-container {
        margin: 12px auto;
        padding: 0 12px;
        gap: 0;
    }

    .search-sidebar {
        display: none;
    }

    /* --- Results Header --- */
    .results-header {
        margin-bottom: 16px;
        padding-bottom: 8px;
    }

    .results-count {
        font-size: 1.1rem;
        font-weight: 800;
    }

    .results-sort {
        display: none;
    }

    /* --- Track Row --- */
    .track-row {
        padding: 12px 4px;
        gap: 14px;
        flex-wrap: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        overflow: hidden;
        max-width: 100%;
    }

    .track-row:first-child {
        padding-top: 8px;
    }

    .track-left {
        gap: 14px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        max-width: calc(100% - 70px); /* viewport minus thumbnail */
    }

    /* Thumbnail */
    .thumb-container {
        width: 56px;
        height: 56px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .thumb-play-overlay {
        opacity: 0;
    }

    /* Info block */
    .track-info {
        gap: 3px;
        min-width: 0;
        overflow: hidden;
        max-width: 100%;
    }

    .track-title {
        font-size: 0.92rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }

    .track-meta {
        font-size: 0.78rem;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: hidden;
        white-space: nowrap;
    }

    .track-stats-inline {
        margin-left: 0;
        gap: 6px;
        flex-shrink: 0;
    }

    .stat-pill-v2 {
        font-size: 0.68rem;
        padding: 2px 6px;
    }

    .meta-separator-v2 {
        margin: 0 2px;
    }

    /* === MOBILE ACTIONS === */
    .track-actions-right {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-width: auto;
    }

    .track-actions {
        display: flex;
        gap: 12px;
    }

    .track-actions i.bi-stars {
        display: none !important; /* hide generate icon to save space */
    }

    .track-price-btn {
        display: none !important; /* hide price button */
    }

    /* Waveform */
    .track-waveform {
        display: none;
    }

    /* Badges */
    .track-badges {
        display: none;
    }

    /* --- Exact Match Producer Card --- */
    .exact-match-card {
        padding: 16px !important;
        gap: 14px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
    }

    .exact-match-card img {
        width: 60px !important;
        height: 60px !important;
    }

    .exact-match-card .view-profile-btn {
        display: none;
    }

    /* --- Producer Row --- */
    .producer-row {
        padding: 10px 4px !important;
        gap: 12px !important;
    }

    .producer-row img {
        width: 42px !important;
        height: 42px !important;
    }

    /* --- Fallback / No Results --- */
    .no-results-premium {
        padding: 40px 16px;
        border-radius: 16px;
    }

    .fallback-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .fallback-card {
        padding: 8px;
        border-radius: 12px;
    }

    /* --- Recommendations --- */
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .recommendation-section h3 {
        font-size: 1rem !important;
        margin-bottom: 16px !important;
    }

    /* --- Skeletons --- */
    .actions-skeleton {
        display: none;
    }

    .track-row-skeleton {
        gap: 14px;
        padding: 12px 4px;
    }

    .title-skeleton {
        width: 160px;
    }

    .meta-skeleton {
        width: 120px;
    }
}

/* Tablet breakpoint — hide sidebar but keep price/actions */
@media (min-width: 769px) and (max-width: 992px) {
    .search-sidebar {
        display: none;
    }

    .track-waveform {
        display: none;
    }

    .track-info {
        flex: 1;
        width: auto;
    }

    .track-badges {
        display: none;
    }

    .track-actions-right {
        min-width: auto;
        gap: 16px;
    }

    .track-actions {
        gap: 16px;
    }
}
