* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: #18181b;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.dashboard-stat-card {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.22);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-stat-card h3 {
    font-size: large;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dashboard-stat-card span {
    font-size: 16px;
    font-weight: 600;
    color: #e879f9;
}

.dashboard-stat-card .value {
     font-size: 16px;
    font-weight: 600;
    color: #e879f9;
}


/* Spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Mobile-first touch optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch target sizes */
    .btn-icon,
    .action-btn,
    .filter-btn,
    .pagination-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Add extra padding for touch interactions */
    .upload-card {
        padding: 12px;
    }

    .upload-card-actions {
        gap: 8px;
    }

    .action-btn {
        padding: 8px 12px;
        min-height: 44px;
    }

    /* Remove hover effects that don't work on touch */
    .upload-card:hover {
        border-color: #068fff;
    }

    /* Improve click/tap areas */
    button {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Sticky Header */
h2 {
    font-size: 20px !important;
    line-height: 1.3;
}

.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, #111111, #18181b);
    border-bottom: 1px solid #27272a;
    z-index: 1000;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-height: 60px;
}

.logo-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0 1em;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    font-size: clamp(12px, 2.5vh, 16px);
    transition: all 0.25s ease;
    flex-shrink: 0;
    min-width: 140px;
    height: 44px;
    backdrop-filter: blur(8px);
}

.logo-btn i,
.logo-btn span,
.logo-btn a {
    background: linear-gradient(135deg, #f97316, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.logo-btn a {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    gap: 2px;
    font-size: 20px;
}

.logo-btn a i {
    margin-right: 2px;
}

.logo-btn:hover {
    background: transparent;
    border: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.header-spacer {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.profile-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: 2px solid transparent;
    background-clip: padding-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
    border-radius: 50%;
    z-index: -1;
}

.profile-photo:hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.5), 0 0 32px rgba(139, 92, 246, 0.3);
}

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

.profile-info h1 {
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.profile-info p {
    font-size: 10px;
    color: #a1a1a1;
    margin: 2px 0 0 0;
}

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

.btn-icon {
    background: transparent;
    border: none;
    color: #a1a1a1;
        min-width: 48px;
        min-height: 46px;
        border-radius: 6px;
        cursor: pointer;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        transition: all 0.3s ease;
        font-size: 16px;
        padding: 8px 10px;
        overflow: visible;
    }

    .btn-icon a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: inherit;
        text-decoration: none;
        width: auto;
        height: auto;
}

.btn-icon:hover,
.btn-icon:focus {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    color: #fff;
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.45);
    transform: translateY(-1px);
    outline: none;
}

.btn-icon:hover a,
.btn-icon:focus a {
    color: #fff;
}

.btn-icon:hover i,
.btn-icon:focus i {
    color: #fff;
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

.btn-text {
    font-size: 12px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: visible;
    max-width: none;
}

@media (max-width: 768px) {
    .btn-text {
        font-size: 10px;
        margin-top: 1px;
    }

    .profile-card-details h2 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
}

@media (max-width: 480px) {
    .btn-text {
        font-size: 10px;
        margin-top: 1px;
    }

    .profile-card-details h2 {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
}

.btn-primary {
    background: #068fff;
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #0055cc;
    transform: translateY(-2px);
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 4px;
}

/* Dashboard Grid */
.dashboard-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Right Column Container */
.right-column-container {
    background: none;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    grid-column: 1 / -1; /* span full width of the dashboard grid */
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: auto;
    box-sizing: border-box;
    border-radius: 28px;
}

/* Profile Card */
.profile-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 80vh;
}

.dashboard-page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 24px;
}

.dashboard-intro-copy {
    max-width: 720px;
}

.dashboard-intro-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.dashboard-intro-description {
    color: #a1a1a1;
    line-height: 1.6;
    max-width: 720px;
}

.dashboard-intro-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-intro-actions .btn-primary,
.dashboard-intro-actions .btn-secondary {
    min-width: 140px;
    justify-content: center;
}

.profile-card-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid #27272a;
    margin-bottom: 18px;
}

.profile-card-details {
    text-align: left;
    width: 100%;
}

.profile-card-details h2 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.profile-description {
    color: #a1a1a1;
    font-size: 13px;
    line-height: 1.6;
    margin: 20px 0 0;
}

.subscription-card {
    border-radius: 14px;
    padding: 18px;
    margin: 18px 0;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.subscription-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.6;
}

.subscription-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.subscription-plan {
    padding: 4px 10px;
    border-radius: 999px;
    color: #d97706;
    font-size: medium;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.subscription-card p {
    margin: 0;
    color: #a1a1a1;
    font-size: 0.85rem;
    line-height: 1.6;
}

.profile-menu {
    width: 100%;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid #27272a;
    border-bottom: 1px solid #27272a;
    gap: 8px;
}

.menu-stat {
    position: relative;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    min-width: 70px;
    gap: 6px;
    transition: all 0.25s ease;
}

.menu-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    font-weight: 700;
}

.bookings-badge {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.gifts-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.section-subtitle {
    color: #a1a1a1;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
}

.uploads-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
    width: 100%;
    margin-left: 16px;
}

.uploads-controls .filter-select {
    max-width: 200px;
    width: 100%;
}

.top-picks-section {
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    width: 100%;
}

.top-picks-section h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #8b5cf6;
}

.top-pick-day-card {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.14), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(99, 102, 241, 0.24);
    border-radius: 22px;
    padding: 20px;
    display: grid;
    gap: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.top-pick-day-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.top-pick-cover {
    min-height: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(6, 182, 212, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-pick-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-pick-day-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.top-pick-day-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.top-pick-play-btn,
.top-pick-link {
    min-width: 140px;
}

@media (max-width: 600px) {
    .top-pick-day-grid {
        grid-template-columns: 1fr;
    }

    .top-pick-cover {
        min-height: 140px;
    }

    .top-pick-day-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 10px;
    }

    .top-pick-play-btn,
    .top-pick-link {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .top-pick-link {
        text-align: center;
    }
}

.top-pick-day-visualizer {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding-top: 12px;
}

.top-pick-day-visualizer .visualizer-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.top-picks-section p {
    margin: 0 0 16px 0;
    color: #a1a1a1;
    font-size: 13px;
}

.playlists-section {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-bottom: 20px;
}

.profile-card-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
    border-radius: 50%;
    z-index: -1;
}

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

.profile-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-card-header .artist-type {
    color: #068fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Header inside stat-card: welcome text and artist type */
.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.stat-card-header .welcome-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.stat-card-header .artist-type {
    color: #068fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 14px 0;
    padding: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    padding: 16px 14px;
    min-height: 98px;
}

.menu-stat {
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 6px;
    padding: 4px 8px;
    transform: translateY(-1px);
    min-width: auto;
    gap: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    box-sizing: border-box;
}

.menu-stat .stat-label,
.menu-stat .stat-label a {
    width: 100%;
    box-sizing: border-box;
}

.menu-stat:hover,
.menu-stat:focus {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    color: #fff;
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.45);
    transform: translateY(-1px);
    outline: none;
}

.stat-value {
    font-size: medium;
    font-weight: 700;
    color: #068fff;
}

.stat-label {
    font-size:x-small;
    color: #a1a1a1;
    text-transform: uppercase;
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 2px;
}

.stat-label a {
    font-size: 8px;
    color: #a1a1a1;
    margin-top: 4px;
}

.earnings-breakdown {
    margin-top: 12px;
    width: 100%;
    text-align: left;
}

.earnings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.earnings-item {
    background: #111827;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.earnings-item.total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    border-color: #0ea5e9;
}

.earnings-label {
    font-size: 11px;
    color: #a1a1a1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.maes-balance-card {
    width: 100%;
    background: linear-gradient(90deg, #06b6d4, #10b981);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 14px 0;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}

.maes-inner {
    display: grid;
    /* Layout children horizontally using grid columns */
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, auto);
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 300px;
}

.maes-label {
    font-size: 13px;
    opacity: 0.95;
}

.maes-amount {
    font-size: medium;
    font-weight: 700;
    margin-top: 4px;
    justify-content: center;
    text-align: center;
}

.maes-action-btn {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.maes-action-btn:hover {
    background: rgba(255,255,255,0.18);
}


.earnings-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* Profile Action Buttons Container */
.profile-actions-button-container {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

/* Edit Profile Button */
.edit-profile-btn {
    flex: none;
    min-width: 140px;
    background: none;
    border: none;
    color: #068fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.edit-profile-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 143, 255, 0.4);
}

.edit-profile-btn:active {
    transform: translateY(0);
}

/* Discover Music Button */
.discover-btn {
    flex: none;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    background: none;
    border: none;
    color: #06b6d4;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: medium;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.discover-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.discover-btn:active {
    transform: translateY(0);
}

/* Admin Panel Button */
.admin-btn {
    background: none;
    border: 1px solid #dc2626;
    color: #dc2626;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.admin-btn:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.admin-btn:active {
    transform: translateY(0);
}

/* Logout Button */
.logout-btn {
    background: #be4208;
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.logout-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Referral Button */
.referral-btn {
    background: none;
    border: 1px solid #8b5cf6;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 400;
    font-size: small;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: 10px;
}

.referral-btn:hover {
    background: #8b5cf6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.referral-btn:active {
    transform: translateY(0);
}

.referral-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.05));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.referral-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 150%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.05), transparent, rgba(168, 85, 247, 0.05));
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.referral-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-left: 10px;
}

.referral-header {
    flex: 1;
}

.referral-title {
    font-size: 16px;
    font-weight: 700;
    color: #e879f9;
    margin-bottom: 4px;
}

.referral-subtitle {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.4;
}

.playlists-section {
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-bottom: 20px;
}

.playlists-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.playlist-search-bar {
    margin: 12px;
}

.playlist-search-bar input {
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #3f3f46;
    background: #121212;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.playlist-search-bar input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.playlists-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    min-height: 20vh;
}

.playlists-grid .playlist-card {
    flex: 1 1 calc(100% - 16px);
    max-width: 100%;
}

/* Responsive flex layout for playlists */
@media (min-width: 768px) {
    .playlists-grid .playlist-card {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (min-width: 1024px) {
    .playlists-grid .playlist-card {
        flex: 1 1 calc(33.333% - 10.666px);
        max-width: calc(33.333% - 10.666px);
    }
}

@media (min-width: 1280px) {
    .playlists-grid .playlist-card {
        flex: 1 1 calc(25% - 12px);
        max-width: calc(25% - 12px);
    }
}

@media (min-width: 1536px) {
    .playlists-grid .playlist-card {
        flex: 1 1 calc(20% - 12.8px);
        max-width: calc(20% - 12.8px);
    }
}

.playlist-title-cell,.playlist-description-cell,.playlist-button-cell{
    margin: 10px;
}

.playlist-title-cell h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #d97706;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Uploads List Section */
.uploads-section {
    background:none;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    min-height: auto;
    max-height: none;
    padding: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 24px 60px rgba(0, 0, 0, 0.16);
}

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

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #a1a1a1;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #068fff;
    border-color: #068fff;
    color: #fff;
}

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

/* Uploads Grid */
.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    max-width: 100%;
    min-height: 50vh;
    padding-top: 4px;
}

.upload-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    min-width: 0;
    overflow: hidden;
    max-height: 200px;
}

.upload-card:hover {
    border-color: #068fff;
    box-shadow: 0 0 20px rgba(6, 143, 255, 0.1);
}

.upload-card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0;
    overflow: hidden;
}

.upload-thumbnail {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
    color: #fff;
    position: relative;
}

.upload-thumbnail i {
    z-index: 1;
    position: relative;
}

.upload-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-card-info {
    flex: 1;
}

.upload-card-info {
    min-width: 0;
}

.upload-card-info h4 {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.upload-card-info p {
    font-size: 11px;
    color: #a1a1a1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.upload-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #71717a;
    padding: 12px 0;
    border-bottom: 1px solid #27272a;
    margin-bottom: 12px;
}

.upload-card-stats {
    display: flex;
    justify-content: space-around;
    gap: 6px;
    margin-bottom: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 6px;
    background: #27272a;
    border-radius: 4px;
}

.stat-item-value {
    font-size: 12px;
    font-weight: 700;
    color: #068fff;
}

.stat-item-label {
    font-size: 8px;
    color: #a1a1a1;
    text-transform: uppercase;
    margin-top: 2px;
}

.upload-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.action-btn {
    background: #27272a;
    border: none;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.action-btn:hover {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
}

.action-btn.play:hover {
    background: #16a34a;
    color: #fff;
}

.action-btn.share:hover {
    background: #2563eb;
    color: #fff;
}

.action-btn.delete:hover {
    background: #dc2626;
    color: #fff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #18181b;
    border: 1px dashed #27272a;
    border-radius: 12px;
}

.empty-state i {
    font-size: 48px;
    color: #52525b;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    color: #a1a1a1;
    font-size: 14px;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #a1a1a1;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.pagination-btn:hover {
    background: #3f3f46;
    border-color: #068fff;
    color: #068fff;
}

.pagination-btn.active {
    background: #068fff;
    border-color: #068fff;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #a1a1a1;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.playlist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sticky-header {
        gap: 12px;
    }

    .uploads-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 868px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-page-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-intro-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .subscription-top,
    .profile-card-header {
        align-items: stretch;
    }

    .earnings-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 8px 4px;
    }

    .profile-card {
        padding: 16px;
    }

    .right-column-container {
        flex-direction: column;
        gap: 14px;
    }

    .playlists-section {
        max-height: 250px !important;
        padding: 16px !important;
    }

    .uploads-section {
        padding: 14px;
        max-height: none;
    }

    .section-header {
        margin-bottom: 12px;
    }

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

    .upload-card {
        padding: 8px;
    }

    .upload-card-stats {
        gap: 4px;
        margin-bottom: 6px;
    }

    .stat-item {
        padding: 4px;
    }

    .stat-item-value {
        font-size: 11px;
    }

    .stat-item-label {
        font-size: 7px;
    }

    .upload-card-actions {
        gap: 4px;
    }

    .action-btn {
        padding: 4px 6px;
        font-size: 9px;
        gap: 2px;
    }

    .upload-card-info h4 {
        font-size: 11px;
    }

    .upload-card-info p {
        font-size: 10px;
    }

    .upload-card-meta {
        font-size: 10px;
        padding: 8px 0;
        margin-bottom: 8px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .profile-card h2 {
        font-size: 18px;
    }

    .stat-card-header .artist-type {
        font-size: 11px;
    }

    .profile-stats {
        margin: 12px 0;
        padding: 12px 0;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-label a {
        font-size: 7px !important;
    }

    .profile-card-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-card {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        position: sticky;
        top: 80px;
        min-width: 150px;
        padding: 6px;
    }

    .menu-stat {
        text-overflow: ellipsis;
        min-width: 30px;
    }

    .profile-menu {
        margin: 5px 0;
        padding: 2px 0;
    }

    .stat-value {
        font-size: 12px;
    }

    .right-column-container {
        grid-row: 1;
        gap: 10px;
    }

    .uploads-section {
        padding: 14px;
        max-height: none;
    }

    .uploads-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .playlists-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .playlists-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 12px;
    }

    .playlists-header-grid {
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        margin-bottom: 12px;
    }

    .playlists-grid .playlist-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px;
        border-radius: 10px;
        text-align: center;
        flex: 1 1 calc(100% - 12px);
        max-width: 100%;
    }

    .sticky-header {
        padding: 10px 16px;
        gap: 12px;
        min-height: 56px;
    }

    .logo-btn {
        flex: 1;
        min-width: 120px;
        padding: 0 0.75em;
        height: 100%;
        font-size: clamp(11px, 2vh, 14px);
        flex-direction: column;
        gap: 2px;
    }

    .header-spacer {
        flex: 1;
        min-width: 20px;
    }

    .header-right {
        flex-shrink: 0;
        gap: 8px;
    }

    .header-actions {
        gap: 4px;
    }

    .btn-icon {
        min-width: 42px;
        min-height: 42px;
        font-size: 14px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 8px;
    }

    .btn-icon a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: auto;
        height: auto;
    }

    .btn-text {
        font-size: 10px;
    }

    .profile-section {
        gap: 6px;
    }

    .profile-photo {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .profile-info {
        display: block;
    }

    #countryFlagContainer {
        display: none;
    }

    .container {
        padding: 8px 4px;
        max-width: 100%;
    }

    .profile-card {
        padding: 14px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-card-avatar {
        width: 90px;
        height: 90px;
        font-size: 36px;
        margin-bottom: 12px;
    }

    .profile-card h2 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .stat-card-header .artist-type {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .profile-stats {
        margin: 10px 0;
        padding: 10px 0;
        gap: 4px;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-label {
        font-size: small;
    }

    .profile-actions {
        gap: 6px;
        margin-top: 12px;
    }

    .profile-actions-button-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .edit-profile-btn,
    .admin-btn,
    .discover-btn,
    .logout-btn {
        padding: 8px 8px !important;
        border-radius: 6px;
        min-width: auto !important;
        width: 100%;
    }

    .edit-profile-btn i,
    .admin-btn i,
    .discover-btn i,
    .logout-btn i {
        font-size: medium;
    }

    .right-column-container {
        gap: 10px;
    }

    .playlists-section {
        max-height: 250px !important;
        padding: 10px !important;
        border-radius: 8px;
    }

    .playlists-header {
        margin-bottom: 12px;
    }

    .playlists-header h3 {
        font-size: 10px;
        gap: 6px;
    }

    .create-playlist-btn {
        padding: 6px 12px !important;
        font-size: 10px !important;
    }

    .uploads-section {
        padding: 12px;
        border-radius: 8px;
        max-height: none;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .filters {
        width: auto;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .filter-btn {
        padding: 4px 8px;
        font-size: 10px;
        flex-shrink: 0;
    }

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

    .upload-card {
        padding: 8px;
    }

    .upload-card-header {
        gap: 6px;
    }

    .upload-thumbnail {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .upload-card-info h4 {
        font-size: 10px;
    }

    .upload-card-info p {
        font-size: 9px;
    }

    .upload-card-meta {
        font-size: 9px;
        padding: 8px 0;
        margin-bottom: 8px;
    }

    .upload-card-stats {
        gap: 4px;
        margin-bottom: 6px;
    }

    .stat-item {
        padding: 4px;
    }

    .stat-item-value {
        font-size: 10px;
    }

    .stat-item-label {
        font-size: 6px;
    }

    .upload-card-actions {
        gap: 3px;
    }

    .action-btn {
        padding: 4px 6px;
        font-size: 9px;
        min-height: 28px;
        gap: 2px;
    }

    .form-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 12px;
    }

    .upload-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 36px;
        height: 36px;
    }
}

/* Delete Confirmation Modal */
.delete-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.delete-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.delete-confirm-content {
    position: relative;
    background: linear-gradient(135deg, #18181b, #27272a);
    border: 1px solid #3f3f46;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(236, 72, 153, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.delete-confirm-header {
    padding: 20px;
    border-bottom: 1px solid #3f3f46;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.delete-confirm-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.delete-confirm-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #a1a1a1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.delete-confirm-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.delete-confirm-body {
    padding: 20px;
    color: #e4e4e7;
}

.delete-confirm-body p {
    margin: 0;
    line-height: 1.6;
}

.delete-confirm-body p:first-child {
    font-weight: 500;
}

.delete-confirm-actions {
    padding: 16px 20px;
    border-top: 1px solid #3f3f46;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.delete-confirm-cancel-btn,
.delete-confirm-delete-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delete-confirm-cancel-btn {
    background: #27272a;
    color: #fff;
    border: 1px solid #3f3f46;
}

.delete-confirm-cancel-btn:hover {
    background: #3f3f46;
}

.delete-confirm-delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.delete-confirm-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.delete-confirm-delete-btn:active {
    transform: translateY(0);
}

/* Edit Song Modal */
.edit-song-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.edit-song-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.edit-song-content {
    position: relative;
    background: linear-gradient(135deg, #18181b, #27272a);
    border: 1px solid #3f3f46;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(236, 72, 153, 0.2);
    animation: slideIn 0.3s ease;
}

.edit-song-header {
    padding: 20px;
    border-bottom: 1px solid #3f3f46;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.edit-song-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.edit-song-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #a1a1a1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.edit-song-close:hover {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.edit-song-body {
    padding: 20px;
    color: #e4e4e7;
}

.edit-song-body .form-group {
    margin-bottom: 16px;
}

.edit-song-body .form-group:last-child {
    margin-bottom: 0;
}

.edit-song-body .form-group label {
    display: block;
    color: #a1a1a1;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.edit-song-body .form-group input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.edit-song-body .form-group input:focus {
    outline: none;
    border-color: #ec4899;
    background: rgba(39, 39, 42, 0.8);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

.edit-song-actions {
    padding: 16px 20px;
    border-top: 1px solid #3f3f46;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.edit-song-cancel-btn,
.edit-song-save-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-song-cancel-btn {
    background: #27272a;
    color: #fff;
    border: 1px solid #3f3f46;
}

.edit-song-cancel-btn:hover {
    background: #3f3f46;
}

.edit-song-save-btn {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
}

.edit-song-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.edit-song-save-btn:active {
    transform: translateY(0);
}

.edit-song-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Audio Player */
.audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11001;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
    border-top: 1px solid #27272a;
    backdrop-filter: blur(10px);
}

.audio-player {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #fff;
}

/* Row 1: Player Info and Controls */
.player-row-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.player-album-art {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.player-album-art.has-cover i {
    display: none;
}

.player-album-art img.player-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-song-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist-name {
    font-size: 12px;
    color: #a1a1a1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.player-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.player-btn:active {
    transform: scale(0.95);
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.player-time {
    font-size: 12px;
    color: #a1a1a1;
    min-width: 40px;
}

.progress-bar-container {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, #ec4899, #8b5cf6, #06b6d4);
    cursor: pointer;
    outline: none;
}

.progress-bar::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Inline volume control (same row as progress) */
.player-volume-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #27272a;
}

.player-volume-inline i {
    font-size: 12px;
    color: #a1a1a1;
    flex-shrink: 0;
}

.volume-slider-inline {
    width: 60px;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: #27272a;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}

.volume-slider-inline::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ec4899;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(236, 72, 153, 0.3);
}

.volume-slider-inline::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ec4899;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(236, 72, 153, 0.3);
}

.player-right-controls {
    display: none;
}

@media (max-width: 768px) {
    .audio-player {
        gap: 8px;
        padding: 8px 12px;
    }

    .player-row-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        order: 1;
    }

    .player-info {
        width: 100%;
    }

    .player-album-art {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .player-controls {
        width: 100%;
        justify-content: center;
        order: 2;
        gap: 8px;
    }

    .player-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .player-progress {
        order: 3;
        width: 100%;
        gap: 6px;
        flex-wrap: wrap;
    }

    .player-time {
        font-size: 10px;
        min-width: 30px;
        flex-shrink: 0;
    }

    .progress-bar-container {
        flex: 1;
        min-width: 80px;
    }

    .player-volume-inline {
        margin-left: 6px;
        padding-left: 6px;
        gap: 4px;
    }

    .player-volume-inline i {
        font-size: 10px;
    }

    .volume-slider-inline {
        width: 40px;
    }

    /* Modal Optimizations */
    .modal-content {
        width: 95%;
        max-width: 90vw;
        max-height: 85vh;
    }

    .delete-confirm-content,
    .edit-song-content {
        width: 95%;
        max-width: 90vw;
        max-height: 85vh;
    }

    .delete-confirm-header,
    .delete-confirm-body,
    .delete-confirm-actions,
    .edit-song-header,
    .edit-song-body,
    .edit-song-actions {
        padding: 16px;
    }

    .modal-header {
        margin-bottom: 16px;
    }

    .modal-header h2,
    .delete-confirm-header h2,
    .edit-song-header h2 {
        font-size: 16px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .sticky-header {
        padding: 8px 12px;
        gap: 8px;
        min-height: 52px;
        flex-direction: column;
        align-items: stretch;
    }

    .logo-btn {
        flex: 1;
        min-width: 80px;
        padding: 0 0.5em;
        font-size: clamp(10px, 1.8vh, 12px);
        flex-direction: column;
        gap: 2px;
        align-self: center;
        margin-bottom: 8px;
    }

    .header-spacer {
        display: none;
    }

    .header-right {
        gap: 6px;
        width: 100%;
        justify-content: center;
        padding-right: 5px;
        padding-left: 5px;
    }

    .header-actions {
        gap: 3px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .header-actions::-webkit-scrollbar {
        display: none;
    }

    .btn-icon {
        min-width: 40px;
        min-height: 40px;
        font-size: 12px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 5px 8px;
        flex-shrink: 0;
    }

    .btn-icon a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: auto;
        height: auto;
    }

    .btn-text {
        font-size: 10px;
        line-height: 1;
        max-width: none;
    }

    .profile-section {
        gap: 4px;
        justify-content: center;
    }

    .profile-photo {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .container {
        padding: 8px 4px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-card {
        padding: 4px;
        min-width: 150px;
    }

    .menu-stat {
        min-width: 25px;
        text-overflow: ellipsis;
    }

    .profile-menu {
        width: 100%;
        margin: 3px 0;
        padding: 1px 0;
    }

    .stat-value {
        font-size: 10px;
    }

    .profile-card-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .profile-card h2 {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .stat-card-header .artist-type {
        font-size: 9px;
        margin-bottom: 8px;
    }

    .profile-stats {
        margin: 8px 0;
        padding: 8px 0;
        gap: 10px;
    }

    .stat-value {
        font-size: 12px;
    }


    .stat-label a {
        font-size: 5px !important;
    }

    .profile-actions {
        gap: 4px;
        margin-top: 8px;
    }

    .edit-profile-btn,
    .admin-btn,
    .discover-btn,
    .logout-btn {
        padding: 6px 8px !important;
        font-size: small !important;
    }

    .edit-profile-btn i,
    .admin-btn i,
    .discover-btn i,
    .logout-btn i {
        font-size: small;
    }

    .right-column-container {
        flex-direction: column;
        gap: 8px;
        grid-row: 1;
    }

    .playlists-section {
        max-height: 250px !important;
        padding: 10px !important;
    }

    .playlists-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .playlists-header h3 {
        font-size: 8px;
        gap: 4px;
    }

    .create-playlist-btn {
        padding: 4px 8px !important;
        font-size: 9px !important;
    }

    .uploads-section {
        padding: 10px;
        max-height: none !important;
    }

    .section-header {
        margin-bottom: 8px;
    }

    .filters {
        gap: 4px;
    }

/* Ensure uploads section stacks full-width below other items inside right-column-container */
.right-column-container > .uploads-section {
    order: 99;
    flex: 1 1 100%;
    width: 100%;
    align-self: stretch;
    display: block;
}

    .uploads-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    /* Mobile button styles */
    .profile-actions-button-container {
        flex-direction: column;
    }

    .profile-actions-button-container>a {
        min-width: auto !important;
        width: auto !important;
    }

    .edit-profile-btn,
    .admin-btn,
    .discover-btn,
    .logout-btn {
        flex: 1;
        min-width: auto;
        width: 100%;
    }

    /* Mobile referral container */
    .referral-container {
        padding: 5px;
        margin: 5px 0;
    }

    .referral-title {
        font-size: 12px;
    }

    .referral-subtitle {
        font-size: 11px;
    }
}

.upload-card {
    padding: 6px;
}

.upload-thumbnail {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.upload-card-info h4 {
    font-size: 9px;
}

.upload-card-info p {
    font-size: 8px;
}

.upload-card-meta {
    font-size: 8px;
    padding: 6px 0;
    margin-bottom: 6px;
}

.stat-item {
    padding: 3px;
}

.stat-item-value {
    font-size: 9px;
}

.stat-item-label {
    font-size: 5px;
}

.upload-card-actions {
    gap: 2px;
}

.action-btn {
    padding: 3px 4px;
    font-size: 8px;
    min-height: 26px;
    gap: 1px;
}

.pagination-btn {
    padding: 4px 8px;
    font-size: 10px;
    min-width: 32px;
    height: 32px;
}

/* Modal for small screens */
.modal-content,
.delete-confirm-content,
.edit-song-content {
    width: 98%;
    max-width: none;
    max-height: 90vh;
    border-radius: 8px;
}

.delete-confirm-header,
.edit-song-header,
.delete-confirm-body,
.edit-song-body,
.delete-confirm-actions,
.edit-song-actions {
    padding: 12px;
}

.delete-confirm-header h2,
.edit-song-header h2,
.modal-header h2 {
    font-size: 14px;
}

.delete-confirm-close,
.edit-song-close,
.modal-close {
    font-size: 20px;
    width: 28px;
    height: 28px;
}

.delete-confirm-cancel-btn,
.delete-confirm-delete-btn,
.edit-song-cancel-btn,
.edit-song-save-btn {
    padding: 8px 12px;
    font-size: 12px;
}

.form-group label {
    font-size: 9px;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    padding: 6px 8px;
    font-size: 11px;
}

/* Very Small Devices */
@media (max-width: 360px) {
    .sticky-header {
        padding: 6px 8px;
        gap: 6px;
        min-height: 48px;
        flex-direction: column;
        align-items: stretch;
    }

    .logo-btn {
        min-width: 70px;
        padding: 0 0.4em;
        font-size: 11px;
        height: 40px;
        flex-direction: column;
        gap: 2px;
        align-self: center;
        margin-bottom: 6px;
    }

    .header-spacer {
        display: none;
    }

    .header-actions {
        gap: 2px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .header-actions::-webkit-scrollbar {
        display: none;
    }

    .btn-icon {
        min-width: 38px;
        min-height: 38px;
        font-size: 11px;
        gap: 3px;
        flex-shrink: 0;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4px 8px;
    }

    .btn-icon a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: auto;
        height: auto;
    }

    .btn-text {
        font-size: 10px;
        line-height: 1;
        max-width: none;
    }

    .header-right {
        gap: 4px;
        width: 100%;
        justify-content: center;
    }

    .profile-section {
        gap: 3px;
        justify-content: center;
    }

    .profile-section {
        gap: 3px;
    }

    .profile-photo {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Country Flag Responsive */
#countryFlagContainer {
    display: flex;
    align-items: center;
    gap: 4px;
}

#countryFlag {
    font-size: 24px;
}

@media (max-width: 768px) {
    #countryFlag {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #countryFlagContainer {
        display: none;
    }
}

/* Top Picks List Styles */
.top-picks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-pick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.top-pick-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.top-pick-item-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.top-pick-item-info {
    flex: 1;
    min-width: 0;
}

.top-pick-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-pick-item-artist {
    font-size: 12px;
    color: #a1a1a1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-pick-item-play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.top-pick-item-play:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.top-pick-item-play:active {
    transform: scale(0.95);
}

.top-pick-day-card {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.14), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(99, 102, 241, 0.24);
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.top-pick-day-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.top-pick-cover {
    min-height: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(6, 182, 212, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-pick-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-pick-cover.has-cover {
    background: transparent;
}

.top-pick-cover i {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.9);
}

.top-pick-day-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.top-pick-day-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
}

.top-pick-day-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-pick-day-subtitle {
    font-size: 13px;
    color: #a1a1a1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-pick-day-track {
    display: grid;
    gap: 4px;
}

.top-pick-song-name {
    font-size: small;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.top-pick-day-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.top-pick-play-btn,
.top-pick-link {
    min-width: 140px;
    flex: 1 1 auto;
    max-width: 100%;
    white-space: nowrap;
}

.top-pick-play-btn {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: none;
    border-radius: 999px;
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-pick-play-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.top-pick-play-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
}

.top-pick-link {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

@media (max-width: 680px) {
    .top-pick-day-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .top-pick-play-btn,
    .top-pick-link {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .top-pick-action-text {
        display: none;
    }
}

.top-pick-day-visualizer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 16px;
    height: 10px;
}

.visualizer-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.8), rgba(6, 182, 212, 0.6));
    border-radius: 999px;
    animation: pulseBar 1.4s ease-in-out infinite;
}

.visualizer-bar:nth-child(1) { animation-delay: 0s; }
.visualizer-bar:nth-child(2) { animation-delay: 0.15s; }
.visualizer-bar:nth-child(3) { animation-delay: 0.3s; }
.visualizer-bar:nth-child(4) { animation-delay: 0.45s; }
.visualizer-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes pulseBar {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1.15); }
}

/* Music Search Section */
.music-search-section {
    margin-top: 32px;
}

.music-search-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.music-search-section h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-input::placeholder {
    color: #a1a1a1;
}

.filter-select {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    max-width: 200px;
    margin-right: 10px;
    margin-top: 10px;
}

.filter-select:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.filter-select option {
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
}

.music-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    align-items: stretch;
}

.music-search-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "cover"
        "info"
        "stats";
    gap: 10px;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.music-search-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.music-search-item-cover {
    grid-area: cover;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    overflow: hidden;
}

.music-search-item-counter-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    width: calc(100% - 40px);
    padding: 10px 12px;
    border-radius: 14px;
    z-index: 2;
}

.music-search-item-actions-overlay {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.36);
    border-radius: 12px;
    z-index: 2;
    flex-wrap: nowrap;
}

.music-search-item-info,
.music-search-item-stats,
.music-search-item-actions {
    min-height: 0;
}

.music-search-item-info {
    grid-area: info;
}

.music-search-item-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.music-search-item-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.music-search-item-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.music-search-item-info h4 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.music-search-item-info p {
    margin: 0 0 8px 0;
    color: #a1a1a1;
    font-size: 13px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.music-search-item-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 6px;
}

.music-search-item-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
    flex: 1;
}

.music-search-item-actions button,
.music-search-item-actions-overlay button {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: none;
}

.music-search-item-actions-overlay button i {
    font-size: 10px;
}

.music-search-item-actions-overlay button:hover {
    filter: brightness(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.music-search-item-play {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
}

.music-search-item-like {
    background: rgba(236, 72, 153, 0.4);
    border: 1px solid #ec4899;
    color: #ec4899;
}

.music-search-item-like.active {
    background: #ec4899;
    color: #fff;
}

.music-search-item-play:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.music-search-item-add {
    background: rgba(139, 92, 246, 0.4);
    border: 1px solid #8b5cf6;
    color: #8b5cf6;
}

.music-search-item-add:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* Responsive adjustments for music search */
@media (max-width: 520px) {
    .music-search-section .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .search-controls {
        max-width: none;
        flex-direction: column;
        gap: 12px;
    }

    .search-input, .filter-select {
        width: 100%;
    }

    .music-search-results {
        gap: 12px;
    }

    .music-search-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "cover"
            "info"
            "stats";
    }

    .music-search-item-cover {
        height: auto;
        font-size: 20px;
    }

    .music-search-item-actions {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
        width: auto;
        padding: 8px;
    }

    .music-search-item-actions button {
        padding: 10px 12px;
    }
}