:root {
    --primary: #ed7d31;
    --secondary: #fec107;
    --dark: #0f0c29;
    --darker: #0a081c;
    --light: #f8f9fa;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
}
/* =========================================
   PREMIUM GLOBAL SCROLLBAR
   Modern • Soft • Music Platform Style
========================================= */

/* Firefox */
*{
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color .25s ease;
}

/* Show on hover */
*:hover{
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}

/* =========================================
   Chrome / Edge / Safari
========================================= */

/* Scrollbar */
*::-webkit-scrollbar{
    width: 7px;
    height: 7px;
}

/* Track */
*::-webkit-scrollbar-track{
    background: transparent;
    border-radius: 20px;
}

/* Thumb */
*::-webkit-scrollbar-thumb{
    background: transparent;
    border-radius: 20px;
    transition: background .25s ease;
}

/* Hover State */
*:hover::-webkit-scrollbar-thumb{
    background:
        linear-gradient(
            180deg,
            rgba(237,125,49,0.75),
            rgba(254,193,7,0.55)
        );
}

/* Active Drag */
*::-webkit-scrollbar-thumb:active{
    background:
        linear-gradient(
            180deg,
            rgba(237,125,49,1),
            rgba(254,193,7,0.9)
        );
}

/* Optional subtle track on hover */
*:hover::-webkit-scrollbar-track{
    background: rgba(255,255,255,0.03);
}

/* Remove arrows/buttons */
*::-webkit-scrollbar-button{
    display: none;
    width: 0;
    height: 0;
}

/* Corner */
*::-webkit-scrollbar-corner{
    background: transparent;
}
/* Custom font */
@font-face {
    font-family: 'nexa';
    src: url('https://miximelo.com/assets/fonts/nexa/NexaText-Regular.woff2') format('woff2'),
         url('https://miximelo.com/assets/fonts/nexa/NexaText-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nexa';
    src: url('https://miximelo.com/assets/fonts/nexa/NexaText-Bold.woff2') format('woff2'),
         url('https://miximelo.com/assets/fonts/nexa/NexaText-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}



.active{
    color: var(--primary) !important; /* Bootstrap green or pick your brand color */

}
.active i {
    transform: scale(1.2) rotate(10deg);    
}
    .text-muted {
    color: rgba(245, 245, 245, 0.4) !important;
}
.bg-dark{
    background: var(--darker) !important;
}
.bg-primary,.btn-primary{
    background-color: var(--primary) !important;
}
    .text-primary {
    color: var(--primary) !important;
}
h3, h2, h1, h4, h5,h6{
    color: var(--light) !important;
}
/* Base styles */
body.dark-theme {
    background-color: var(--darker);
    color: var(--light);
    font-family: 'nexa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 60px;
    padding-bottom: 80px;
    
}

    body{
        font-size:0.8rem !important;
    }

@media (max-width: 575.98px) {
    body{
        font-size:0.68rem !important;
    }
}

a {
    color: var(--light);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

img{
    object-fit: cover;
    transition: transform 0.3s;
}
img:hover {
    transform: scale(1.1);
}
.featured-section {
  background: var(--dark, #f9f9f9);
}
.purchase-btn, .purchase-track-btn, button {
    width: auto !important;
    min-width: auto !important;
    padding: 0.25rem 0.5rem !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;

}

/* For buttons with just icons */
.purchase-btn i, .purchase-track-btn i, button i {
    margin: 0 !important;
}

/* For buttons with text */
.purchase-track-btn {
    padding: 0.25rem 0.75rem !important;
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #e06c1f;
    border-color: #e06c1f;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Header styles */
.navbar,footer {
    background-color: var(--dark) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-name {
    margin-left: 10px;
    font-weight: bold;
    font-size: 1.5rem;
}

.search-container {
    position: relative;
    
}

.search-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 180px;
    transition: width 0.3s;
    height: 37px;
    
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    width: 300px;
}

.search-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    margin-right: 10px !important;
}

.user-dropdown img {
    border: 2px solid var(--primary);
}

/* Main content */
.main-content {
    min-height: calc(100vh - 140px);
}

.sidebar-column {
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--dark);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.main-column {
    padding: 1rem;
    overflow-y: auto;
    height: calc(100vh - 140px);
}

.content-container {
    max-width: 100%;
}

.sidebar-title {
    color: var(--light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--light);
}

.nav-link.active {
    font-weight: bold;
}

/* Sections */
.section-title {
    color: var(--light);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.see-all {
    color: var(--light);
    font-size: 0.9rem;
    text-decoration: none;
}

.see-all:hover {
    text-decoration: underline;
}

/* Featured section */
.featured-section {
    margin-bottom: 2.5rem;
}

.featured-card {
    height: 25vh;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.featured-content {
    position: relative;
    z-index: 2;
    width: 60%;
}

.featured-badge {
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.featured-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.featured-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Card items 

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark);
}

.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: var(--dark);
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 6px;
}
*/

.card-item {
    flex: 0 0 auto;
    width: 150px;
    transition: transform 0.2s;
}

.card-item:hover {
    transform: scale(1.05);
}

.card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: -8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-cover:hover img {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-cover:hover .play-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
}
.card-subtitle span, card-title span{
    animation: scroll-marquee 10s linear infinite;
}
.card-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
}
/* Animation keyframes */
@keyframes scroll-marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.row{
    margin: 0 auto;
}
/* Artist items */
.artist-item {
    flex: 0 0 auto;
    width: 172px;
    text-align: center;

}

.artist-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.5rem;
    cursor: pointer;
    position: relative;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.artist-avatar:hover img {
    transform: scale(1.1);
}

.artist-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.artist-type {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Friends activity */
.friend-activity {
    margin-top: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-details {
    flex-grow: 1;
}

.activity-details p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.activity-details small {
    font-size: 0.75rem;
}
    .top-artists {
    margin-top: 20px;
}

.artist-item {
    text-align: center;

    cursor: pointer;
}

.artist-avatar img {
    object-fit: cover;
    transition: transform .2s ease;
}

.artist-avatar img:hover {
    transform: scale(1.06);
}

.artist-name {
    margin-top: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
}

.artist-name:hover {
    text-decoration: underline;
}

.follow-btn {
    padding: 3px 5px;
    font-size: 0.5rem;
    border: 1px solid var(--light);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    background: var(--dark);
    transition: background .2s;
}

.follow-btn:hover {
    background: #17a84f;
}

/* Store items */
.store-item {
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px dashed white;
}

.store-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.store-item-info {
    flex-grow: 1;
}

.store-item-info h6 {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.store-item-info .price {
    font-size: 0.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.store-item-info button {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sidebar-column {
        display: none;
    }
    
    .main-column {
        padding: 0;
        margin-top:7%;
    }
    
    .featured-card {
        height: 200px;
    }
    
    .featured-content {
        width: 100%;
    }
    
    .featured-card h3 {
        font-size: 1.5rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .search-input:focus {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .featured-card {
        height: 180px;
        padding: 1rem;
    }
    
    .featured-card h3 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .card-item {
        width: 162px;
    }
    
    .artist-item {
        width: 100px;
    }
    
    .artist-avatar {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 576px) {
    .brand-name {
        margin-top:5%;
    }
    
    .featured-card {
        height: 150px;
    }
    
    .featured-card h3 {
        font-size: 1.1rem;
    }
    
    .card-item {
        width: 41%;
    }
    
    .artist-item {
        width: 132px;
    }
    
    .artist-avatar {
        width: 130px;
        height: 130px;
    }
}

/* Ad container styles */
.ad-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
}

.ad-content {
    position: relative;
}

.ad-content img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-text {
    padding: 15px;
    color: white;
}

.ad-text h5, .ad-text h6 {
    margin-bottom: 5px;
    color: white;
}

.ad-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.ad-video-container, .ad-audio-container {
    padding: 15px;
}

.ad-video-footer, .ad-audio-footer {
    padding: 10px 15px;
    text-align: center;
    background: rgba(0,0,0,0.2);
}

.ad-video-footer a, .ad-audio-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.ad-section {
    margin-top: 20px;
    padding: 0;
}

.ad-section .ad-content {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px -15px;
        border-radius: 0;
    }
}

/* Add to your CSS file */
.like-btn {
    transition: all 0.2s ease;
}

.like-btn:hover {
    color: var(--bs-pink) !important;
}

.like-btn.active {
    color: var(--bs-pink) !important;
}

.like-btn i {
    transition: transform 0.2s ease;
}

.like-btn:hover i {
    transform: scale(1.1);
}

.like-btn.active i {
    transform: scale(1.1);
}

/* Force all dropdown menus to be above everything */
.dropdown-menu {
    z-index: 999999999 !important;
    position: absolute !important;
    will-change: transform;
    overflow: visible !important;
}

/* Remove any hidden overflow from ancestors that could clip the menu */
.track-item,
.track-menu-cell,
.dropdown,
.tracks-list,
.album-tracks-section,
.track-row,
.list-group,
.playlist-container {
    overflow: visible !important;
}

/* Ensure menu container doesn't clip its children */
.dropdown {
    position: static !important;  /* makes dropdown relative to nearest positioned ancestor? Actually better to let absolute positioning work */
}

/* Alternative: make dropdown container relative and menu absolute with high z-index */
.track-menu-cell {
    position: relative;
    z-index: auto;
}

.track-menu-cell .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 0.125rem;
}
/* Dropdown menu styling for both mobile and desktop */
.dropdown-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem !important;
}

.dropdown-toggle::after {
    display: none !important; /* Hide the default dropdown arrow */
}

/* Three dots menu icon styling */
.bi-three-dots-vertical {
    font-size: 1.2rem;
    color: #6c757d;
}


/* Album Actions Container */
.album-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
    align-items: center;
}

/* Base Button Styles */
.album-action-btn {
    position: relative;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Purchase Button - Animated Gradient */
.purchase-btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary), #ec4899);
    background-size: 200% 200%;
    color: white;
    animation: gradientPulse 8s ease infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
    animation: gradientPulse 4s ease infinite;
}

.purchase-btn:active {
    transform: translateY(0);
}

/* Like Button - Heartbeat Effect */
.like-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.like-btn .bi-heart-fill {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
/* Purchased State - Celebration Effect */
.purchased-btn {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    position: relative;
    overflow: hidden;
}

.purchased-btn::after {
    content: "✓";
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.purchased-btn:hover::after {
    right: 15px;
    opacity: 1;
}

/* Mobile Specific Styles */
@media (max-width: 767.98px) {
    .album-actions {
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .album-action-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .purchase-btn {

        max-width: calc(100% - 100px);
    }

}

/* Desktop Specific Enhancements */
@media (min-width: 768px) {
    .album-actions {
        justify-content: flex-start;
    }
    
    .purchase-btn {
        min-width: 180px;
    }
    
    .like-btn:hover {
        animation: heartbeat 1.5s infinite;
    }
}

/* Animations */
@keyframes gradientPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.purchase-btn:hover::before {
    opacity: 0.3;
    transform: translate(50%, 50%);
}

/* ===================== */
/* MODAL SYSTEM - DARK THEME */
/* ===================== */

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
    bottom: 20vh !important; 
}

/* Base Modal Styling */
.modal {
    --modal-accent: var(--primary);
    --modal-bg: #1a1a1a;
    --modal-text: #f8f9fa;
    --modal-border: var(--primary);
}
.modal {

  bottom: 20vh !important; 

}

.modal-content {
            background: var(--dark);
            color: var(--text-primary);
            border: 1px solid var(--lighter);
            border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--modal-text);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
        
        .btn-close {
            filter: invert(1);
            opacity: 0.8;
        }

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Modal Header */
.modal-header {
            border-bottom: 1px solid var(--lighter);
            padding: 20px;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--modal-accent), transparent);
    opacity: 0.7;
}

.modal-title {
    color: white !important;
            font-weight: 700;
    font-size: 1.4rem;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.modal-header .btn-close {
    filter: invert(1) brightness(0.8);
    opacity: 0.7;
    transition: all 0.2s ease;
    align-self: center;
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    filter: invert(1) brightness(1);
}

/* Modal Body */
.modal-body {
    padding: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 20px;
}

/* Modal Footer */
.modal-footer {
    border-top: 1px solid var(--lighter);
            padding: 15px 20px;
}

/* Modal Buttons */
.modal-btn {
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    min-width: 100px;
    text-align: center;
}

.modal-btn-primary {
    background: var(--modal-accent);
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.modal-btn-primary:hover {
    background: lighten(var(--modal-accent), 5%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--modal-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Special Modal Types */
/* Purchase Modal */
.modal-purchase .modal-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent);
}

.modal-purchase .modal-footer {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent);
}

/* Download Modal */
.modal-download .modal-body {
    text-align: center;
}

.modal-download .download-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-download .download-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.modal-download .download-option i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--modal-accent);
}

/* Share Modal */
.modal-share .share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-share{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-share .share-btn:hover {
    transform: translateY(-3px);
}

.modal-share{
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal.fade .modal-dialog {
    animation: modalFadeIn 0.3s forwards;
}

/* Responsive Adjustments */
@media (max-width: 575.98px) {
    .modal-content {
        margin-right: 1.2rem;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
}


/* ===================== */
/* CUSTOM SCROLLBAR FOR MODALS */
/* ===================== */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--modal-accent);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: lighten(var(--modal-accent), 10%);
}

/* Base Dark Theme */
#addToPlaylistModal .modal-content {

    border-radius: 12px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease-in-out;
}

/* Modal Header */
#addToPlaylistModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#addToPlaylistModal .modal-title {
    font-size: 1.3rem;
    font-weight: bold;

}

#addToPlaylistModal .btn-close {
    filter: invert(1);
}

/* Playlist Items */
#addToPlaylistModal .list-group-item {
    background-color: #2a2a40;
    color: #e0e0f0;
    border: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: transform 0.2s ease, background-color 0.2s;
}

#addToPlaylistModal .list-group-item:hover {
    background-color: #3b3b55;
    transform: scale(1.02);
    cursor: pointer;
}

/* Buttons */
#addToPlaylistModal .btn {
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#addToPlaylistModal .btn-outline-primary:hover {
    color: #fff;
}

#addToPlaylistModal .btn-primary {

    border-color: #6c63ff;
}

#addToPlaylistModal .btn-primary:hover {
    background-color: #574ee6;
}

#addToPlaylistModal .btn-secondary {
    background-color: #44475a;
    border: none;
}

#addToPlaylistModal .btn-secondary:hover {
    background-color: #5c5f75;
}

/* Form Fields */
.form-label,.form-check-label {
    color: #ccc;
    font-weight: 500;
}

#addToPlaylistModal .form-control {
    background-color: #2d2d40;
    border: 1px solid #3f3f5a;
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s;
}

#addToPlaylistModal .form-control:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
    background-color: #2d2d40;
}

/* Form Check (Public Playlist) */
.form-check-input {
    background-color: var(--primary);
    border-color: #6c63ff;
}

#addToPlaylistModal .form-check-input:checked {
    background-color: #6c63ff;
    border-color: #6c63ff;
}

#addToPlaylistModal .form-check-label {
    color: var(--primary);
}

/* Spinner */
#addToPlaylistModal .spinner-border {
    color: var(--primary);
}

/* Alerts */
#addToPlaylistModal .alert {
    border-radius: 8px;
    background-color: #2e2e44;
    color: #f5f5f5;
    border: 1px solid #444;
}

#addToPlaylistModal .alert-warning {
    background-color: #4e4300;
    color: #fff3cd;
}

#addToPlaylistModal .alert-info {
    background-color: #1d365c;
    color: #b8daff;
}

#addToPlaylistModal .alert-danger {
    background-color: #5a1c1c;
    color: #f8d7da;
}

/* Form Animation */
#addToPlaylistModal #newPlaylistForm {
    animation: fadeSlideIn 0.4s ease forwards;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Padding */
#addToPlaylistModal .modal-body {
    padding: 1.5rem;
}

#addToPlaylistModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}





/* Alert base styling */
.alert {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--light);
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 18px; /* Space from border stripe */
    border-left: 6px solid var(--primary); /* Default stripe colour */
}

/* Type-based colouring with matching stripes */
.alert-success {
    background-color: var(--success);
    border-left-color: var(--success);
}
.alert-danger {
    background-color: var(--danger);
    border-left-color: var(--danger);
}
.alert-warning {
    background-color: var(--warning);
    color: #000;
    border-left-color: var(--warning);
}
.alert-info {
    background-color: var(--info);
    border-left-color: var(--info);
}
.alert-secondary {
    background-color: var(--secondary);
    color: #000;
    border-left-color: var(--secondary);
}

/* Slide-in animation */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Close button tweaks */
.alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.alert-warning .btn-close,
.alert-secondary .btn-close {
    filter: none; /* Keep dark icon for bright alerts */
}
.alert .btn-close:hover {
    opacity: 1;
}








/* Notification container fixed at the top */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100000000000000000000;
}

/* Notification base styling */
.notification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--light);
    font-size: 0.9rem;
    min-width: 260px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideDown 0.4s ease-out;
    border-left: 5px solid var(--primary); /* Default brand stripe */
}

/* Type-specific colours */
.notification.success {
    background: var(--success);
    border-left-color: var(--success);
}
.notification.error {
    background: var(--danger);
    border-left-color: var(--danger);
}
.notification.warning {
    background: var(--warning);
    border-left-color: var(--warning);
    color: #000;
}
.notification.info {
    background: var(--info);
    border-left-color: var(--info);
}

/* Icon styling */
.notification i {
    font-size: 1.2rem;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-20%); }
}


/* Explicit 'E' badge */
.explicit-badge {
    display: inline-block !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: #121212 !important; 
    background-color: #b3b3b3 !important; 
    border-radius: 3px !important;
    padding: 1px 2px !important;
    margin-left: 4px !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}


        
/* Base badge style */
.quality-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 0.45rem;
    margin-left: 5px;
    color: white;
    text-transform: uppercase;
}

/* Superscript for HI-RES and LOSSLESS */
.badge-hi-res,
.badge-lossless {
    vertical-align: super;
    font-size: 0.3rem;
}

/* HI-RES style */
.badge-hi-res {
    background: linear-gradient(135deg, #ffd700, #c0c0c0);
    color: black;
}

/* LOSSLESS style */
.badge-lossless {
    background: linear-gradient(135deg, #3a3a3a, #2f2f2f);
    border: 1px solid #888;
}

/* STANDARD badge (subscript) */
.badge-standard {
    background: #555;
    color: white;
    font-weight: normal;
    opacity: 0.8;
    vertical-align: sub;
    font-size: 0.3rem;
}

/* Fallback for unknown qualities (also subscript) */
.badge-unknown {
    background: linear-gradient(135deg, #999, #666);
    color: white;
    border: 1px dashed #ccc;
    vertical-align: sub;
    font-size: 0.3rem;
}

        
/* Base style for quality indicator */
.quality-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6rem;
    margin-top: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: default;
}

.quality-indicator .label-text {
    display: inline;
}

.quality-indicator.premium {
    color: var(--gold);
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.3);
}

.quality-indicator.upgrade-cta {
    color: #aaa;
}

.quality-indicator.upgrade-cta a {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 600;
}

/* Tooltip */
.quality-indicator[title] {
    position: relative;
}

/* Optional tooltip popups (replace title attr with JS tooltip if desired) */

/* Mobile styles */
@media (max-width: 600px) {
    .quality-indicator {
        font-size: 0.7rem;
        padding: 3px 8px;
        border-radius: 12px;
        background-color: #222;
        gap: 4px;
    }

    .quality-indicator .label-text {
        display: none; /* hide full text */
    }

    .quality-indicator.premium::after {
        content: "HI-RES";
        font-size: 0.7rem;
        background: linear-gradient(135deg, #ffd700, #c0c0c0);
        color: black;
        padding: 2px 6px;
        border-radius: 6px;
    }

    .quality-indicator.upgrade-cta::after {
        content: "FREE";
        font-size: 0.7rem;
        background: #444;
        color: white;
        padding: 2px 6px;
        border-radius: 6px;
    }
}





/* ── Compact Greeting Styles ────────────────────────────────────────── */

.user-greeting {
    position: relative;
    color: #fff;
    /* Reduced padding and margin for a tighter fit */
    padding: 0.75rem 1rem !important; 
    border-radius: 12px !important;
    overflow: hidden;
    /* Softened shadow and blur for a cleaner look */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(8px) !important;
    animation: fadeInUp 0.8s ease-out forwards;
    margin-bottom: 1rem;
}

/* Slimmer Animated Border */
.user-greeting::before {
    content: "";
    position: absolute;
    inset: 0; /* Flush to edges */
    border-radius: inherit;
    padding: 1.5px; /* Thinner border line */
    background: linear-gradient(120deg, #ff6ec4, #7873f5, #4ade80, #facc15, #f87171);
    background-size: 400% 400%;
    -webkit-mask: 
        linear-gradient(#000 0 0) content-box, 
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 6s linear infinite;
}

/* Compact Heading */
.user-greeting h2 {
    /* Significantly reduced font size for a logged-in feel */
    font-size: 1.15rem !important; 
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    margin: 0 !important; /* Remove bottom margin to keep it centered */
    background: linear-gradient(90deg, #facc15, #f97316, #ef4444, #22d3ee);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textFlow 5s ease infinite;
}

/* Style for the "Brand" span if not logged in */
.user-greeting h2 .brand {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sub-text (only shows when logged out) */
.user-greeting p {
    font-size: 0.85rem !important; /* Smaller text */
    color: rgba(255,255,255,0.7) !important;
    margin: 0.5rem 0 0.75rem 0 !important;
    line-height: 1.4;
}

/* Compact Registration Button */
.register-btn {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 6px 16px !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}

/* ── Mobile Optimization ────────────────────────────────────────────── */

@media (max-width: 576px) {
    .user-greeting {
        padding: 0.6rem 0.8rem !important;
    }
    
    .user-greeting h2 {
        font-size: 1rem !important;
    }
}


/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes textFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatBG {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.1); }
}















  .Verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;          /* scales with font */
    height: 1em;
    margin-left: 0.25em;
    background: linear-gradient(135deg, #4a90e2, #3578e5); 
    border-radius: 25%;   /* rounded star-like shape */
    clip-path: polygon(
      50% 0%, 
      61% 35%, 
      98% 35%, 
      68% 57%, 
      79% 91%, 
      50% 70%, 
      21% 91%, 
      32% 57%, 
      2% 35%, 
      39% 35%
    );
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3); /* subtle shadow */
  }

  .Verified-badge::after {
    content: '✔';
    color: #fff;
    font-size: 0.5em;     /* smaller checkmark inside badge */
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
  }

  /* Optional tooltip */
  .Verified-badge:hover::before {
    content: 'Verified Artist';
    position: absolute;
    bottom: 125%;
    background: #000;
    color: #fff;
    padding: 0.2em 0.4em;
    font-size: 0.75em;
    border-radius: 0.25em;
    white-space: nowrap;
    opacity: 0.9;
  }
                                              .verified-badge {
    color: var(--primary);
    font-size: 0.8rem;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.verified-badge i {
    transform: translateY(-1px);
}

  .floating-icon {
            position: absolute;
            font-size: 24px;
            color: rgba(237, 125, 49, 0.2);
            z-index: -1;
        }
        
        .icon-1 {
            top: 10%;
            left: 15%;
            animation: float 15s infinite ease-in-out;
        }
        
        .icon-2 {
            top: 20%;
            right: 10%;
            animation: float 18s infinite ease-in-out;
        }
        
        .icon-3 {
            bottom: 15%;
            left: 20%;
            animation: float 12s infinite ease-in-out;
        }
        
        .icon-4 {
            bottom: 25%;
            right: 15%;
            animation: float 20s infinite ease-in-out;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(10deg); }
        }
        
                .background-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.05;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ed7d31' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
            z-index: -1;
        }
        


/* Fix dropdown z-index issues */
.dropdown-menu {
    z-index: 1050 !important; /* Higher than Bootstrap's default z-index */
    background: var(--dark) !important;

    /* Big shadow */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
                0 8px 20px rgba(0, 0, 0, 0.4) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

/* Ensure dropdowns are positioned correctly */
.dropdown {
    position: relative !important;
}

/* Additional fixes for dropdown visibility */
.dropdown-menu {
    position: absolute !important;
    z-index: 1060 !important; /* Even higher for playlist and track dropdowns */
}

/* Make sure dropdowns appear above other elements */
.modal-backdrop {
    z-index: 1040 !important; /* Ensure modal backdrop is below dropdowns */
}

.modal {
    z-index: 1050 !important; /* Modal content z-index */
}

/* Fix for mobile dropdown positioning */
@media (max-width: 768px) {

}

        
            /* Base purchase button */
.btn-purchase {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-weight: 600;
  color: var(--light);
  background: linear-gradient(135deg, var(--primary), var(--secondary)); /* modern blue gradient */
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Hover state with depth */
.btn-purchase:hover {
  background: linear-gradient(135deg, #1a82ff, #0060d9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* Icon styling */
.btn-purchase i {
  font-size: 0.8rem !important;
  transition: transform 0.3s ease;
}

/* Small bounce on hover */
.btn-purchase:hover i {
  transform: scale(1.15);
}

/* Ripple glow effect */
.btn-purchase::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 10%, transparent 40%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.btn-purchase:hover::after {
  transform: scale(1);
}

            /* Base dropdown item refinement */
.download-btn {
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--light) !important;
  background: linear-gradient(135deg, var(--secondary), var(--primary)); /* Spotify green gradient */
  transition: all 0.25s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Hover effect with subtle elevation */
.download-btn:hover {
  background: linear-gradient(135deg, #23c85d, #1aa64a);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* Icon styling */
.download-btn i {
  font-size: 0.8rem !important;
  transition: transform 0.3s ease;
}

/* Animate the icon when hovering */
.download-btn:hover i {
  transform: translateY(2px);
}

/* Marketing touch: ripple glow on hover */
.download-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 10%, transparent 40%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.download-btn:hover::after {
  transform: scale(1);
}

/* Dropdown menu */
.dropdown-menu {
    background-color: var(--dark);
    border: 1px solid var(--light);
}

.dropdown-item {
    color: var(--text-primary);
    padding: 8px 16px;
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--text-primary);
}

.dropdown-divider {
    border-color: var(--light);
}



/* Glossy 'shine' stripe using a pseudo-element */
.miximelo-subscribed h2::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -40%;
  width: 40%;
  height: 120%;
  transform: skewX(-25deg) translateX(-120%);
  pointer-events: none;

  /* bright stripe that will sweep across */
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,255,255,0) 100%
  );

  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0.9;
  will-change: transform;
  animation: miximelo-shine 2.6s ease-in-out infinite;
}

/* gentle pulsing glow (separate from shine) */
.miximelo-subscribed.halo h2 {
  text-shadow:
    0 2px 6px rgba(0,0,0,0.25),
    0 0 14px rgba(255,107,107,0.18),
    0 0 28px rgba(142,45,226,0.10);
}

@keyframes miximelo-shine {
  0%   { transform: skewX(-25deg) translateX(-120%); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: skewX(-25deg) translateX(120%); opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: skewX(-25deg) translateX(240%); opacity: 0; }
}

/* Small badge on the top-right corner */
.badge-subscribed {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(90deg,#6ee7b7,var(--primary));
  color: #042; /* dark text for contrast */
  padding: 0.18rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(50,50,93,0.12);
  transform-origin: center;
  transform: translateZ(0);
}

/* Make sure it looks good on small screens */
@media (max-width: 420px) {
  .miximelo-subscribed {
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
  }
  .badge-subscribed { top: -4px; right: -4px; font-size: 0.6rem; padding: 0.12rem 0.45rem; }
}

/* Accessibility: respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .miximelo-subscribed h2::after {
    animation: none;
    opacity: 0;
  }
}


 /* 
 @media (max-width: 768px) {

    .list-group-item.track-item.playlist-track .dropdown-menu {
        bottom: 100px !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;

        width: 100% !important;
        max-height: 55vh !important;
        height: auto !important;

        border-radius: 24px 24px 0 0 !important;
        padding: 18px 0 !important;

        opacity: 1 !important;
        visibility: visible !important;

        z-index: 999999999 !important; 

        transform: translateY(100%);
        animation: bottomSheetSlideUp 0.3s ease forwards;
    }


    .list-group-item.track-item.playlist-track .dropdown-toggle::after {
        display: none !important;
    }


    .list-group-item.track-item.playlist-track .dropdown-menu .dropdown-item {
        padding: 10px 18px !important;
        font-size: 0.8rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .list-group-item.track-item.playlist-track .dropdown-menu .dropdown-item:last-child {
        border-bottom: none !important;
    }



    @keyframes bottomSheetSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

*/



/* PWA Installation Styles */
.pwa-install-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(237, 125, 49, 0.4) !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.pwa-install-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(237, 125, 49, 0.6) !important;
}

.pwa-install-btn:active {
    transform: translateY(0) !important;
}

/* Installation modal */
.pwa-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 28, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.pwa-install-content {
    background: var(--darker);
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.pwa-install-content h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.pwa-install-content p {
    color: var(--light);
    margin-bottom: 20px;
}

.pwa-install-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pwa-install-btn-primary {
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    border: none !important;
    cursor: pointer !important;
}

.pwa-install-btn-secondary {
    background: transparent !important;
    color: var(--light) !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    border: 1px solid var(--primary) !important;
    cursor: pointer !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}




/* ================================
   GLOBAL MODAL LAYOUT OVERRIDE
   Works with existing modal markup
   ================================ */

/* Modal overlay safety */
.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1050 !important;
    overflow: hidden !important;
}

/* Modal content container */
.modal .modal-content {
    top: 5% !important;
    bottom: 10% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 850px !important;

    display: flex !important;
    flex-direction: column !important;

    border-radius: 10px !important;
}


/* Body scrolls */
.modal {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
}


/* Mobile optimization */
@media (max-width: 576px) {
    .modal .modal-content {
        width: 96% !important;
        border-radius: 8px !important;
    }
}



/* Base select */
select {
    background-color: transparent;
    color: #fff;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 8px 28px 8px 0;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    cursor: pointer;

    /* Remove default styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='rgba(255,255,255,0.7)' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px;
}

/* Focus (subtle Apple feel) */
select:focus {
    border-bottom: 1px solid #fff;
}

/* Hover (desktop only effect) */
select:hover {
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

/* Options (best effort — browser limited) */
select option {
    background-color: var(--darker);
    color: #fff;
}

/* Disabled */
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



/* ── Toggle Section Button (Show all / Show less) ─────────── */
.toggle-section-btn {
    background: transparent;
    border: none;
    color: #b3b3b3; /* Muted grey like Spotify */
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hover State */
.toggle-section-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Active/Expanded State (Show less) */
.toggle-section-btn.active {
    color: var(--primary, #ff0066); /* Use your brand primary color */
}

.toggle-section-btn.active:hover {
    color: #ffffff;
}

/* Optional: Subtle underline animation on hover */
.toggle-section-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.toggle-section-btn:hover::after {
    width: 80%;
}

/* ── Expanded Section State (Spotify "Show All" behavior) ── */
/* When expanded, the flex container wraps items instead of scrolling horizontally */
.horizontal-scroll.expanded {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: flex-start;
    max-height: none; /* Let it grow */
    padding-bottom: 20px;
    animation: fadeInExpand 0.4s ease-out;
}

@keyframes fadeInExpand {
    from {
        opacity: 0.8;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjust card width slightly in expanded mode for better grid alignment on large screens */
@media (min-width: 992px) {
    .horizontal-scroll.expanded .card-item,
    .horizontal-scroll.expanded .artist-item {
        flex: 0 0 calc(20% - 16px); /* Fit roughly 5 items per row */
        width: auto; /* Override fixed width */
        max-width: 180px;
    }
}

/* Tablet view: 3 items per row */
@media (min-width: 768px) and (max-width: 991px) {
    .horizontal-scroll.expanded .card-item,
    .horizontal-scroll.expanded .artist-item {
        flex: 0 0 calc(33.333% - 16px);
        width: auto;
    }
}

/* Mobile view: 2 items per row */
@media (max-width: 767px) {
    .horizontal-scroll.expanded .card-item,
    .horizontal-scroll.expanded .artist-item {
        flex: 0 0 calc(50% - 12px);
        width: auto;
    }
}
