    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', sans-serif;
        background: #000;
        color: #ffffff;
        min-height: 100vh;
    }

    a {
        text-decoration: none !important;
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Top Navigation */
    .top-nav {
        background: #1a1a1a;
        padding: 15px 0;
        border-bottom: 1px solid #333;
    }

    .top-nav-content {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    /* Smaller mobile devices */
    @media (max-width: 480px) {
        .top-nav-content {
            gap: 8px;
        }

        .nav-item {
            font-size: 11px;
            padding: 6px 10px;
            gap: 6px;
        }

        .nav-item i {
            font-size: 12px;
        }
    }

    /* Very small devices */
    @media (max-width: 350px) {
        .top-nav-content {
            gap: 6px;
        }

        .nav-item {
            font-size: 10px;
            padding: 5px 8px;
            gap: 4px;
        }

        .nav-item i {
            font-size: 11px;
        }
    }

    /* Tablet and medium screens */
    @media (min-width: 769px) and (max-width: 1024px) {
        .top-nav-content {
            gap: 30px;
        }

        .nav-item {
            font-size: 13px;
        }

        .nav-item i {
            font-size: 15px;
        }
    }


    .nav-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #888;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.3s;
    }

    .nav-item.active {
        color: #fff;
    }

    .nav-item:hover {
        color: #fff;
    }

    .nav-item i {
        font-size: 16px;
    }

    /* Category Filters */
    .category-filters {
        padding-top:30px;
        background: #000;
    }

    .category-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .category-title {
        font-size: 24px;
        font-weight: 600;
        color: #fff;
        margin: 0;
    }

    .toggle-categories-btn {
        background: transparent;
        border: 1px solid #444;
        color: #888;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .toggle-categories-btn:hover {
        border-color: #666;
        color: #fff;
    }

    .toggle-categories-btn i {
        font-size: 12px;
        transition: transform 0.3s;
    }

    .toggle-categories-btn.collapsed i {
        transform: rotate(180deg);
    }

    .categories-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 20px;
        margin-bottom: 40px;
        transition: all 0.3s ease;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
    }

    .categories-grid.show {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    .categories-grid.hidden {
        max-height: 0;
        margin-bottom: 0;
        opacity: 0;
        transform: translateY(-20px);
    }

    .category-card {
        background: #000;
        border: 2px solid #333;
        border-radius: 12px;
        padding: 24px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
    }

    .category-card.featured {
        border-color: #eb611c;
        background: #000;
    }

    .category-card:hover {
        border-color: #555;
        transform: translateY(-2px);
    }

    .category-card.featured:hover {
        border-color: #eb611c;
    }

    .category-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: #333;
        margin: 0 auto 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .category-card.featured .category-icon {
        border: 2px solid #eb611c;
    }

    .category-icon i {
        font-size: 32px;
        color: #fff;
    }

    .category-title {
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        margin: 0;
    }

    /* Category row: full circles visible, no overlap with subnav */
    .track_filter_option_outer {
        float: none !important;
        clear: both;
        display: block;
        width: 100%;
        border-bottom: 1px solid #333 !important;
        margin: 0 !important;
        padding: 28px 0 24px !important;
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    .track_filter_option_inner {
        float: none !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px 8px;
        padding: 0 10px;
        min-height: 0;
    }

    .track_filter_item {
        float: none !important;
        width: auto;
        min-width: 110px;
        flex: 1 1 110px;
        max-width: 160px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .track_filter_item .filter_img_outer {
        float: none !important;
        width: 88px;
        height: 88px;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .track_filter_item p {
        float: none !important;
        margin: 0;
        text-align: center;
        line-height: 1.3;
        font-size: 13px;
        color: #eb611c;
    }

    /* Search and Tags Section */
    .search-tags-section {
        background: #111;
        padding: 16px 0;
        height: auto !important;
        margin: 0 !important;
        clear: both;
    }

    .search-tags-content {
        display: block;
        width: 100%;
    }

    .search-tags-row {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        width: 100%;
    }
   
    .search-box {
        position: relative;
        flex: 0 1 280px;
        max-width: 300px;
        width: 100%;
    }

    .search-input {
        width: 100%;
        background: #222;
        border: 1px solid #444;
        border-radius: 8px;
        padding: 12px 40px 12px 16px;
        color: #fff;
        font-size: 14px;
        outline: none;
        transition: border-color 0.3s;
    }

    .search-input:focus {
        border-color: #666;
    }

    .search-input::placeholder {
        color: #888;
    }

    .search-icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        font-size: 16px;
    }

    .tag-pills {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        flex: 1 1 240px;
        min-width: 0;
    }

    .tag-pill {
        background: #333;
        color: #fff;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
        border: 1px solid #444;
    }

    .tag-pill:hover {
        background: #444;
        border-color: #555;
    }

    .tag-pill.active {
        background: #eb611c;
        border-color: #eb611c;
        color: white;
    }

    .refresh-btn {
        background: transparent;
        border: 1px solid #444;
        color: #888;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .refresh-btn:hover {
        border-color: #666;
        color: #fff;
    }

    .filter-controls {
        background: #111;
        padding: 12px 0 24px;
        border-bottom: 1px solid #333;
        height: auto !important;
        overflow: visible;
        clear: both;
        position: relative;
        z-index: 2;
    }

    .filter-controls-content {
        display: flex;
        align-items: center;
        gap: 10px 12px;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
    }

    .filter-dropdown {
        position: relative;
    }

    .filter-btn {
        background: transparent;
        border: 1px solid #444;
        color: #fff;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        justify-content: space-between;
    }

    .filter-btn:hover {
        border-color: #666;
    }

    .filter-btn i {
        font-size: 12px;
        transition: transform 0.3s;
    }

    .filter-btn.active i {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #222;
        border: 1px solid #444;
        border-radius: 6px;
        min-width: 200px;
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
        margin-top: 4px;
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-item {
        padding: 10px 16px;
        color: #fff;
        cursor: pointer;
        transition: background 0.2s;
        font-size: 13px;
        border-bottom: 1px solid #333;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: #333;
    }

    .dropdown-item.selected {
        background: #eb611c;
    }

    .active-filters {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #2a2a2a;
        position: relative;
        z-index: 1;
    }

    .active-filter {
        background: #333;
        color: #fff;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex: 0 1 auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .active-filter .remove-btn {
        background: none;
        border: none;
        color: #888;
        cursor: pointer;
        font-size: 14px;
        padding: 0;
        margin-left: 4px;
    }

    .active-filter .remove-btn:hover {
        color: #fff;
    }

    .clear-filters-btn {
        background: transparent;
        border: none;
        color: #888;
        font-size: 13px;
        cursor: pointer;
        text-decoration: underline;
        margin-left: 4px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .clear-filters-btn:hover {
        color: #fff;
    }

    .view-controls {
        margin-left: auto;
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    /* Loop Cards Section */
    .loops-section {
        padding: 28px 0 30px;
        background: #000;
        clear: both;
        position: relative;
        z-index: 0;
    }

    .section-header {
        display: none;
        /* Hide the section header */
    }

    .view-btn {
        background: #333;
        border: none;
        padding: 12px;
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        transition: all 0.3s;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .view-btn.active {
        background: #fff;
        color: #000;
    }

    .view-btn:hover:not(.active) {
        background: #444;
    }

    .view-btn i {
        font-size: 16px;
    }

    .beats-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        transition: all 0.3s ease;
    }

    .beats-grid.list-view {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* List view specific styles */
    .beats-grid.list-view .product-card {
        display: flex;
        flex-direction: row;
        height: 120px;
        border-radius: 8px;
    }

    .beats-grid.list-view .product-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
        border-radius: 8px 0 0 8px;
        margin-bottom: 0;
    }

    .beats-grid.list-view .product-info {
        flex: 1;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .beats-grid.list-view .product-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .beats-grid.list-view .product-producer {
        font-size: 14px;
        margin-bottom: 0;
    }

    /* Responsive grid adjustments */
    @media (max-width: 1400px) {
        .beats-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    @media (max-width: 1100px) {
        .beats-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 900px) {
        .beats-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .beats-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Loop Card */
    .loop-card {
        background: #1a1a1a;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s;
        border: 1px solid #333;
        position: relative;
    }

    .loop-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
        border-color: #444;
    }

    .loop-image {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        background: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 8px;
    }

    .loop-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .play-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .loop-card:hover .play-overlay {
        opacity: 1;
    }

    .play-btn {
        background: #ff6000;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s;
    }

    .play-btn:hover {
        background: #ff6000;
        transform: scale(1.1);
    }

    .play-btn i {
        color: #fff;
        font-size: 16px;
        margin-left: 2px;
    }

    .loop-info {
        padding: 16px;
        background: #1a1a1a;
    }

    .loop-title {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 4px;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .loop-producer {
        font-size: 12px;
        color: #888;
        text-decoration: none;
        margin-bottom: 12px;
        display: block;
    }

    .loop-producer:hover {
        color: #aaa;
    }

    .loop-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .make-offer-btn {
        background: transparent;
        border: 1px solid #444;
        color: #fff;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
        justify-content: center;
    }

    .make-offer-btn:hover {
        border-color: #666;
        background: rgba(255, 255, 255, 0.05);
    }

    .make-offer-btn i {
        font-size: 10px;
    }

    .price-section {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .price {
        font-size: 12px;
        font-weight: 600;
        color: #eb611c;
        background: transparent;
        border: 1px solid #444;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .price:hover {
        border-color: #666;
        background: rgba(255, 255, 255, 0.05);
    }

    .price i {
        font-size: 10px;
    }


    /* Player */
    .player {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a1a1a, #222);
        backdrop-filter: blur(10px);
        padding: 15px 20px;
        border-top: 1px solid #333;
        display: none;
        z-index: 200;
    }

    .player-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    .player-info {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .player-artwork {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        background: linear-gradient(135deg, #ff6b35, #ff8c42);
    }

    .player-details h4 {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .player-details p {
        font-size: 12px;
        color: #ccc;
    }

    .player-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .control-btn {
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        font-size: 18px;
        transition: color 0.3s;
    }

    .control-btn:hover {
        color: #ff6b35;
    }

    .player-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .btn {
        padding: 10px 20px;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        text-decoration: none;
        display: inline-block;
    }

    .btn-primary {
        background: linear-gradient(135deg, #ff6b35, #ff8c42);
        color: white;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    }

    .btn-secondary {
        background: transparent;
        color: #fff;
        border: 2px solid #333;
    }

    .btn-secondary:hover {
        border-color: #ff6b35;
        color: #ff6b35;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .top-nav-content {
            gap: 20px;
            font-size: 12px;
        }

        .category-header {
            margin-bottom: 15px;
        }

        .category-title {
            font-size: 20px;
        }

        .toggle-categories-btn {
            font-size: 11px;
            padding: 6px 10px;
        }

        .categories-grid.show {
            max-height: 800px;
            /* More height needed for mobile layout */
        }

        .category-icon {
            width: 60px;
            height: 60px;
        }

        .category-icon i {
            font-size: 24px;
        }

        .search-tags-content {
            flex-direction: column;
            align-items: stretch;
            gap: 15px;
            margin-top: 30px;
        }

        .search-box {
            max-width: none;
        }

        .tag-pills {
            justify-content: center;
        }

        .filter-controls-content {
            flex-direction: column;
            align-items: stretch;
            gap: 15px;
        }

        .view-controls {
            margin: 0;
            justify-content: center;
        }

        .player-content {
            flex-direction: column;
            gap: 15px;
        }

        /* Mobile list view adjustments */
        .loops-grid.list-view .loop-card {
            flex-direction: column;
            height: auto;
        }

        .loops-grid.list-view .loop-image {
            width: 100%;
            height: 160px;
            border-radius: 8px 8px 0 0;
        }

        .loops-grid.list-view .loop-info {
            padding: 16px;
        }

        .loops-grid.list-view .loop-actions {
            flex-direction: column;
            gap: 12px;
            align-items: stretch;
        }

        .loops-grid.list-view .price-section {
            justify-content: space-between;
        }
    }

    /* Responsive category grid adjustments */
    @media (max-width: 1400px) {
        .categories-grid {
            grid-template-columns: repeat(6, 1fr);
        }
    }

    @media (max-width: 1200px) {
        .categories-grid {
            grid-template-columns: repeat(5, 1fr);
        }
    }

    @media (max-width: 1000px) {
        .categories-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    @media (max-width: 800px) {
        .categories-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 600px) {
        .categories-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 400px) {
        .categories-grid {
            grid-template-columns: 1fr;
        }
    }
