/* Landing Page Specific Styles */
:root {
    --landing-bg: #010818;
    --card-bg: rgba(1, 33, 105, 0.12);
    --primary-glow: rgba(255, 210, 63, 0.35);
    --hero-height: 70vh;
    --header-offset: 92px;
    --brit-navy:  #012169;
    --brit-red:   #c8102e;
    --brit-gold:  #ffd23f;
}

/* Premium Hero Section for Tracks */
.hero-section {
    position: relative;
    min-height: var(--hero-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at top left, rgba(1, 33, 105, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(200, 16, 46, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #010818 0%, #011240 50%, #010c30 100%);
    margin-top: var(--header-offset);
    overflow: hidden;
    z-index: 1;
}

/* Animated Background Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(1, 33, 105, 0.22) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(200, 16, 46, 0.14) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255, 210, 63, 0.06) 0%, transparent 40%);
    animation: heroFloat 20s ease-in-out infinite;
    z-index: 0;
}

/* Particle Effect */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 210, 63, 0.35), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(200, 16, 46, 0.3), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(255, 210, 63, 0.4), transparent);
    background-size: 200px 200px, 150px 150px, 100px 100px, 250px 250px;
    background-position: 0% 0%, 30% 30%, 60% 60%, 90% 90%;
    animation: particles 25s linear infinite;
    z-index: 1;
}

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 1.5rem;
    animation: heroFadeInUp 1.2s ease-out;
}

/* Premium Typography */
.hero-section h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--brit-gold) 30%, #fff 55%, var(--brit-red) 80%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(255, 210, 63, 0.28);
    letter-spacing: -1px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

/* Subtitle */
.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* Premium Button */
.hero-button {
    display: inline-block;
    position: relative;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, var(--brit-navy) 0%, var(--brit-red) 60%, #8b0a1e 100%);
    border: 1px solid rgba(255, 210, 63, 0.4);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(200, 16, 46, 0.35),
        0 0 60px rgba(255, 210, 63, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* Button Shine Effect */
.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--brit-gold);
    box-shadow: 
        0 12px 40px rgba(200, 16, 46, 0.5),
        0 0 60px rgba(255, 210, 63, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Background Media Support */
.hero-background-image,
.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Edit Button - Bottom Middle */
.hero-edit-bottom {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    animation: fadeInUp 1.4s ease-out;
}

.hero-edit-bottom .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-edit-bottom .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

/* Premium Animations */
@keyframes heroFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    33% { transform: rotate(1deg) scale(1.05); }
    66% { transform: rotate(-1deg) scale(1.02); }
}

@keyframes particles {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    0% { filter: brightness(1) drop-shadow(0 0 40px rgba(255, 210, 63, 0.3)); }
    100% { filter: brightness(1.2) drop-shadow(0 0 60px rgba(255, 210, 63, 0.55)); }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root { --header-offset: 78px; --hero-height: 60vh; }
    .hero-content { padding: 1rem; }
    .hero-section h1 { margin-bottom: 0.8rem; }
    .hero-content p { margin-bottom: 1.5rem; font-size: 1rem; }
    .btn-hero { padding: 0.9rem 2rem; font-size: 0.95rem; }
    
    /* Fix hero background image for mobile */
    .hero-background-image {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .hero-background-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .hero-edit-bottom {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    :root { --header-offset: 70px; --hero-height: 55vh; }
    .hero-content { padding: 0.8rem; }
    .btn-hero { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
    
    /* Enhanced mobile background image fix */
    .hero-background-image {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        width: 100vw !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .hero-background-video {
        width: 100vw !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .hero-edit-bottom {
        bottom: 0.8rem;
    }
}

/* DJ Link Styles */
.dj-link {
    color: var(--brit-gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.dj-link:hover {
    color: #ffe880;
    border-bottom-color: var(--brit-gold);
    text-shadow: 0 0 8px rgba(255, 210, 63, 0.5);
}

.landing-wrapper {
    background-color: transparent;
    color: white;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.landing-wrapper h1, 
.landing-wrapper h2, 
.landing-wrapper h3, 
.landing-wrapper h4 {
    font-family: 'Orbitron', sans-serif;
}

.hero-v3 {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 30% 20%, rgba(255, 210, 63, 0.07), transparent 55%),
        linear-gradient(180deg, rgba(1, 15, 48, 0.35), rgba(0, 0, 0, 0.62));
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

/* GFX elements positioned absolutely for full width */
.hero-v3 .floating-particles,
.hero-v3 .bg-gfx-elements,
.hero-v3 .bg-gfx-grid,
.hero-v3 .gfx-stars,
.hero-v3 .gfx-scanner,
.hero-v3 .gfx-vignette,
.hero-v3 .gfx-tech-circle,
.hero-v3 .gfx-cursor-glow,
.hero-v3 .gfx-blob {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.lightning-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
    background: transparent;
}

.lightning-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lightning-bolt {
    position: absolute;
    pointer-events: none;
}

.lightning-path {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Bolt 1 - Royal Navy */
.bolt-1 .lightning-path.main {
    stroke-width: 4;
    stroke: #c8d8ff;
    filter: drop-shadow(0 0 10px #c8d8ff) drop-shadow(0 0 20px #012169) drop-shadow(0 0 40px #3b6aff);
}

.bolt-1 .lightning-path.branch {
    stroke-width: 2;
    stroke: #3b6aff;
    filter: drop-shadow(0 0 5px #3b6aff);
}

/* Bolt 2 - Union Jack Red */
.bolt-2 .lightning-path.main {
    stroke-width: 4;
    stroke: #ffd8d8;
    filter: drop-shadow(0 0 10px #ffd8d8) drop-shadow(0 0 20px #c8102e) drop-shadow(0 0 40px #c8102e);
}

.bolt-2 .lightning-path.branch {
    stroke-width: 2;
    stroke: #c8102e;
    filter: drop-shadow(0 0 5px #c8102e);
}

/* Bolt 3 - Royal Gold */
.bolt-3 .lightning-path.main {
    stroke-width: 4;
    stroke: #fff8c0;
    filter: drop-shadow(0 0 10px #fff8c0) drop-shadow(0 0 20px #ffd23f) drop-shadow(0 0 40px #ffd23f);
}

.bolt-3 .lightning-path.branch {
    stroke-width: 2;
    stroke: #ffd23f;
    filter: drop-shadow(0 0 5px #ffd23f);
}

/* Bolt 4 - Crimson */
.bolt-4 .lightning-path.main {
    stroke-width: 4;
    stroke: #ffe0e0;
    filter: drop-shadow(0 0 10px #ffe0e0) drop-shadow(0 0 20px #8b0a1e) drop-shadow(0 0 40px #8b0a1e);
}

.bolt-4 .lightning-path.branch {
    stroke-width: 2;
    stroke: #8b0a1e;
    filter: drop-shadow(0 0 5px #8b0a1e);
}

/* Bolt 5 - White */
.bolt-5 .lightning-path.main {
    stroke-width: 4;
    stroke: #fff;
    filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px rgba(255,255,255,0.8)) drop-shadow(0 0 40px rgba(255,255,255,0.4));
}

.bolt-5 .lightning-path.branch {
    stroke-width: 2;
    stroke: rgba(255,255,255,0.7);
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

/* Test lightning animation */
@keyframes testFlash {
    0%, 90%, 100% { opacity: 0.3; }
    95% { opacity: 1; }
}

/* Lightning strike animations - More frequent */
@keyframes realStrike1 {
    0%, 70%, 74%, 100% { opacity: 0; }
    71% { opacity: 1; }
    71.5% { opacity: 0.3; }
    72% { opacity: 1; }
    73% { opacity: 0; }
}

@keyframes realStrike2 {
    0%, 50%, 54%, 100% { opacity: 0; }
    51% { opacity: 1; }
    51.2% { opacity: 0.4; }
    51.4% { opacity: 1; }
    51.6% { opacity: 0.3; }
    52% { opacity: 1; }
    53% { opacity: 0; }
}

@keyframes realStrike3 {
    0%, 60%, 64%, 100% { opacity: 0; }
    61% { opacity: 1; }
    61.3% { opacity: 0.2; }
    62% { opacity: 1; }
    63% { opacity: 0; }
}

@keyframes realStrike4 {
    0%, 40%, 44%, 100% { opacity: 0; }
    41% { opacity: 1; }
    41.2% { opacity: 0.5; }
    41.5% { opacity: 1; }
    41.8% { opacity: 0.3; }
    42% { opacity: 1; }
    43% { opacity: 0; }
}

@keyframes realStrike5 {
    0%, 80%, 84%, 100% { opacity: 0; }
    81% { opacity: 1; }
    81.4% { opacity: 0.3; }
    82% { opacity: 1; }
    83% { opacity: 0; }
}

/* Apply animations to each bolt - More frequent cycles */
.bolt-1 {
    animation: realStrike1 3s infinite;
}

.bolt-2 {
    animation: realStrike2 2.5s infinite;
}

.bolt-3 {
    animation: realStrike3 3.5s infinite;
}

.bolt-4 {
    animation: realStrike4 2s infinite;
}

.bolt-5 {
    animation: realStrike5 4s infinite;
}

.hero-v3::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 1.5rem;
    width: 100%;
}

.hero-v3 h1 {
    font-size: clamp(3rem, 12vw, 6.5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 0.9;
    letter-spacing: -2px;
    position: relative;
    color: #fff;
}

.hero-v3 h1 span {
    display: block;
    font-size: 0.4em;
    letter-spacing: 15px;
    margin-top: 0.5rem;
    color: var(--brit-gold);
    text-shadow: 0 0 30px rgba(255, 210, 63, 0.45);
}

/* Glitch/Loose Connection Animation */
.glitch-text {
    position: relative;
    animation: glitchSkew 4s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    animation: glitchTop 1.5s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    color: var(--brit-gold);
    left: 2px;
}

.glitch-text::after {
    animation: glitchBottom 2.1s infinite linear alternate-reverse;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    color: var(--brit-red);
    left: -2px;
}

@keyframes glitchTop {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-3px, 1px); opacity: 0.5; }
}

@keyframes glitchBottom {
    0%, 100% { transform: translate(0); }
    15% { transform: translate(3px, 2px); }
    25% { transform: translate(-3px, -2px); }
    35% { transform: translate(3px, -2px); }
    45% { transform: translate(-3px, 2px); }
    55% { transform: translate(4px, -1px); opacity: 0.3; }
}

@keyframes glitchSkew {
    0%, 100% { transform: skew(0deg); }
    20% { transform: skew(-1deg); }
    25% { transform: skew(3deg); }
    30% { transform: skew(-2deg); }
    35% { transform: skew(1deg); }
}

.hero-v3 p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    opacity: 0.9;
    margin: 2rem auto;
    max-width: 600px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn-hero {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-hero:hover::after {
    left: 100%;
}

.btn-primary-hero {
    background: linear-gradient(135deg, var(--brit-navy), var(--brit-red));
    color: #fff !important;
    border: 1px solid rgba(255, 210, 63, 0.4);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-primary-hero:hover {
    background: linear-gradient(135deg, #1a3a8f, var(--brit-red));
    color: #fff !important;
    border-color: var(--brit-gold);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(200, 16, 46, 0.45);
}

.btn-outline-hero {
    background: rgba(1, 33, 105, 0.2);
    color: #fff !important;
    border: 2px solid rgba(255, 210, 63, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline-hero:hover {
    background: var(--brit-red);
    color: #fff !important;
    border-color: var(--brit-gold);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(200, 16, 46, 0.4);
}

@media (max-width: 768px) {
    .hero-v3 {
        height: auto;
        padding: 120px 0 80px;
    }
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }
    .btn-hero {
        width: 100%;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 800;
}

.section-header h2 span {
    color: var(--brit-gold);
}

.header-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--brit-navy), var(--brit-red), var(--brit-gold));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Grid Layouts */
.catalog-grid, .latest-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Ensure cards don't stretch too much if there's only one */
.track-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* British Card Theme Overrides */
.catalog-grid .track-card,
.latest-list .track-card,
.catalog-grid .track-card.glass-card,
.latest-list .track-card.glass-card {
    background: linear-gradient(145deg, rgba(1, 10, 32, 0.9) 0%, rgba(1, 22, 68, 0.84) 100%) !important;
    border: 1px solid rgba(255, 210, 63, 0.18) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(1, 33, 105, 0.14) inset;
}

.catalog-grid .track-card:hover,
.latest-list .track-card:hover,
.catalog-grid .track-card.glass-card:hover,
.latest-list .track-card.glass-card:hover {
    border-color: rgba(255, 210, 63, 0.5) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 26px rgba(200, 16, 46, 0.2) !important;
}

.catalog-grid .track-card::before,
.latest-list .track-card::before {
    background: linear-gradient(90deg, rgba(255, 210, 63, 0.6), rgba(200, 16, 46, 0.9), rgba(1, 33, 105, 0.5)) !important;
}

.catalog-grid .track-card .card-info,
.latest-list .track-card .card-info,
.catalog-grid .track-card .track-list-row,
.latest-list .track-card .track-list-row {
    background: linear-gradient(180deg, rgba(1, 10, 32, 0.4), rgba(1, 15, 48, 0.2));
}

.catalog-grid .track-card .track-title,
.latest-list .track-card .track-title,
.catalog-grid .track-card .track-list-title,
.latest-list .track-card .track-list-title {
    color: #e8f0ff !important;
    text-shadow: 0 0 10px rgba(1, 33, 105, 0.3);
}

.catalog-grid .track-card .track-price,
.latest-list .track-card .track-price,
.catalog-grid .track-card .track-list-price,
.latest-list .track-card .track-list-price {
    color: #ffd23f !important;
    text-shadow: 0 0 14px rgba(255, 210, 63, 0.28);
}

.catalog-grid .track-card .btn.btn-add-cart,
.latest-list .track-card .btn.btn-add-cart,
.catalog-grid .track-card .track-icon-btn.btn-add-cart,
.latest-list .track-card .track-icon-btn.btn-add-cart {
    background: linear-gradient(135deg, rgba(1, 33, 105, 0.3), rgba(200, 16, 46, 0.2)) !important;
    border: 1px solid rgba(255, 210, 63, 0.35) !important;
    color: #e8f0ff !important;
    box-shadow: 0 0 14px rgba(200, 16, 46, 0.15);
}

.catalog-grid .track-card .btn.btn-add-cart:hover,
.latest-list .track-card .btn.btn-add-cart:hover,
.catalog-grid .track-card .track-icon-btn.btn-add-cart:hover,
.latest-list .track-card .track-icon-btn.btn-add-cart:hover {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.3), rgba(1, 33, 105, 0.4)) !important;
    border-color: rgba(255, 210, 63, 0.75) !important;
    box-shadow: 0 0 22px rgba(200, 16, 46, 0.3);
}

 .catalog-grid.catalog-list {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 1rem;
 }

 .catalog-grid.catalog-list .track-card {
     max-width: 100%;
 }

 .track-list-item {
     padding: 0.9rem;
 }

 .track-list-row {
     position: relative;
     display: grid;
     grid-template-columns: 83px 1fr auto;
     gap: 0.0rem;
     align-items: center;
     padding: 0.5rem;
 }

 /* Playback progress background — absolutely positioned so it doesn't occupy a grid cell */
 .track-list-row .track-progress-fill {
     position: absolute;
     top: 0; left: 0; bottom: 0;
     width: 0;
     pointer-events: none;
     border-radius: inherit;
     background: linear-gradient(90deg, rgba(30, 96, 232, 0.18), rgba(200, 16, 46, 0.12));
     transition: width 0.2s linear;
     z-index: 0;
 }

 .track-list-row > .track-list-art,
 .track-list-row > .track-list-meta,
 .track-list-row > .track-list-actions {
     position: relative;
     z-index: 1;
 }

 .track-list-art {
     display: block;
     width: 83px;
     height: 83px;
     border-radius: 12px;
     overflow: hidden;
     border: 1px solid rgba(255, 255, 255, 0.12);
     background: rgba(0, 0, 0, 0.25);
 }

 .track-list-art img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }

 .track-list-meta {
     min-width: 0;
     padding-left: 1rem;
 }

 .track-list-title {
     font-weight: 800;
     font-size: 1.05rem;
     line-height: 1.2;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .track-list-artist {
     opacity: 0.75;
     font-size: 0.95rem;
     margin-top: 0.2rem;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .track-list-price {
     font-weight: 900;
     color: var(--brit-gold);
     white-space: nowrap;
 }

 .track-list-actions {
     display: inline-flex;
     align-items: center;
     justify-content: flex-end;
     gap: 0.6rem;
 }

 .track-icon-btn {
     width: 44px;
     height: 44px;
     border-radius: 999px;
     border: 1px solid rgba(255, 255, 255, 0.14);
     background: rgba(255, 255, 255, 0.06);
     color: white;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.2s ease;
 }

 .track-icon-btn:hover {
     background: rgba(255, 255, 255, 0.10);
     border-color: rgba(255, 255, 255, 0.24);
 }

 .track-icon-btn.btn-add-cart {
     background: rgba(16, 185, 129, 0.18);
     border-color: rgba(16, 185, 129, 0.35);
 }

 .track-icon-btn.btn-add-cart:hover {
     background: rgba(16, 185, 129, 0.28);
     border-color: rgba(16, 185, 129, 0.5);
 }

 .track-list-tags {
     margin-top: 0.4rem;
     display: flex;
     flex-wrap: wrap;
     gap: 0.4rem;
 }

 .track-list-tags .genre-tag {
     font-size: 0.45rem;
     padding: 0.15rem 0.5rem;
     margin-right: 0.5rem;
 }

 /* Layout toggle */
 .layout-switcher {
     display: inline-flex;
     align-items: center;
     gap: 0.4rem;
     padding: 0.25rem;
     border-radius: 999px;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.1);
 }

 .layout-btn {
     width: 42px;
     height: 42px;
     border-radius: 999px;
     border: 1px solid rgba(255, 255, 255, 0.12);
     background: rgba(0, 0, 0, 0.2);
     color: white;
     cursor: pointer;
     display: inline-flex;
     align-items: center;
     justify-content: center;
 }

 .layout-btn:hover {
     background: rgba(255, 255, 255, 0.08);
 }

 .layout-btn.active {
     background: linear-gradient(135deg, var(--brit-navy), var(--brit-red));
     border-color: var(--brit-gold);
     color: white;
 }

 @media (max-width: 1024px) {
     .catalog-grid.catalog-list {
         grid-template-columns: 1fr;
     }
 }

 @media (max-width: 768px) {
     .track-list-price {
         display: none;
     }

     .track-list-art {
         width: 64px;
         height: 64px;
     }

     .track-list-meta {
         padding-left: 0.5rem;
     }

     .track-list-tags .preview-tag {
         display: none;
     }
}

.featured-card {
    transition: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-card:hover {
    border-color: var(--brit-gold);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.2);
}

.card-art {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

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

.art-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: none;
}

.featured-card:hover .art-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brit-navy), var(--brit-red));
    border: 2px solid var(--brit-gold);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: none;
}


.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-body .artist {
    opacity: 0.6;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    color: var(--brit-gold);
    font-size: 1.2rem;
}

.btn-add {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-add:hover {
    background: linear-gradient(135deg, var(--brit-navy), var(--brit-red));
    border-color: var(--brit-gold);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.features-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    color: var(--brit-gold);
}

.image-stack {
    position: relative;
    padding: 40px;
}

.stack-item {
    position: absolute;
    border-radius: 20px;
}

.item-1 {
    width: 80%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.item-2 {
    width: 80%;
    height: 80%;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.item-main {
    position: relative;
    z-index: 2;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.item-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations */
.animate-up {
    opacity: 1;
    animation: none;
}

.no-animate {
    opacity: 1;
    animation: none;
}

@keyframes fadeInUp {
    0% {
        opacity: 1;
        transform: translateY(30px);
    }
    25% {
        opacity: 1;
        transform: translateY(-5px);
    }
    50% {
        opacity: 1;
        transform: translateY(-8px) rotate(1deg);
    }
    75% {
        opacity: 1;
        transform: translateY(-3px) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

@keyframes logoPulse {
    0% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.5; 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    25% { 
        transform: scale(1.05) rotate(90deg); 
        opacity: 0.3; 
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.4);
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
        opacity: 0.2; 
        box-shadow: 0 0 30px 10px rgba(59, 130, 246, 0.2);
    }
    75% { 
        transform: scale(1.05) rotate(270deg); 
        opacity: 0.3; 
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.4);
    }
    100% { 
        transform: scale(1) rotate(360deg); 
        opacity: 0.5; 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
}

/* DJ Link Styles - Force Load */
.track-artist .dj-link,
.card-info .dj-link, 
.track-list-artist .dj-link,
a.dj-link,
.artist-link,
.dj-profile-link {
    color: #9cc4ff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid transparent !important;
    display: inline !important;
}

.track-artist .dj-link:hover,
.card-info .dj-link:hover,
.track-list-artist .dj-link:hover,
a.dj-link:hover,
.artist-link:hover,
.dj-profile-link:hover {
    color: #c8b7ff !important;
    border-bottom-color: #7b5cff !important;
    text-shadow: 0 0 8px rgba(123, 92, 255, 0.45) !important;
    text-decoration: underline !important;
}

/* Make ALL artist links cyan - Final Override */
.track-artist a,
.artist-name,
.dj-name {
    color: #9cc4ff !important;
    font-weight: 500 !important;
}

/* Page Title Styling with Glass Text Effect and Glitch */
.page-title,
h1.page-title {
    background: linear-gradient(135deg, #c9fbff, #00eaff 58%, #7af5ff) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 1px rgba(0, 8, 12, 0.9) !important;
    text-stroke: 1px rgba(0, 8, 12, 0.9) !important;
    font-weight: 900 !important;
    font-family: 'Orbitron', sans-serif !important;
    letter-spacing: 2px !important;
    animation: glitch-main 12s infinite !important;
}

@keyframes glitch-main {
    0%, 75%, 100% {
        transform: translate(0) skew(0deg) scaleX(1) scaleY(1);
        text-shadow: 0 0 10px rgba(0, 234, 255, 0.25), 0 0 2px rgba(201, 251, 255, 0.85);
        letter-spacing: 2px;
        clip-path: none;
    }
    76% {
        transform: translate(-5px, 3px) skew(4deg) scaleX(0.95) scaleY(1.05);
        text-shadow: 
            4px 0 rgba(0, 234, 255, 0.95),
            -4px 0 rgba(103, 244, 255, 0.95),
            0 0 14px rgba(0, 234, 255, 0.85);
        letter-spacing: 8px;
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    }
    77% {
        transform: translate(6px, -2px) skew(-3deg) scaleX(1.02) scaleY(0.98);
        text-shadow: 
            -3px 0 rgba(0, 234, 255, 0.95),
            3px 0 rgba(201, 251, 255, 0.95),
            0 0 12px rgba(0, 234, 255, 0.8);
        letter-spacing: 5px;
        clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    }
    78% {
        transform: translate(5px, -3px) skew(-5deg) scaleX(1.05) scaleY(0.95);
        text-shadow: 
            -5px 0 rgba(0, 234, 255, 0.9),
            5px 0 rgba(103, 244, 255, 0.95),
            0 0 16px rgba(0, 234, 255, 0.95);
        letter-spacing: -1px;
        clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%);
    }
    79% {
        transform: translate(-4px, 4px) skew(2deg) scaleX(0.97) scaleY(1.03);
        text-shadow: 
            4px 0 rgba(0, 234, 255, 0.9),
            -4px 0 rgba(201, 251, 255, 0.9),
            0 0 13px rgba(0, 234, 255, 0.82);
        letter-spacing: 4px;
        clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
    }
    80% {
        transform: translate(-4px, -4px) skew(3deg) scaleX(0.98) scaleY(1.08);
        text-shadow: 
            6px 0 rgba(0, 234, 255, 0.95),
            -6px 0 rgba(103, 244, 255, 0.95),
            0 0 18px rgba(0, 234, 255, 1);
        letter-spacing: 10px;
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%);
    }
    82% {
        transform: translate(4px, 4px) skew(-4deg) scaleX(1.08) scaleY(0.92);
        text-shadow: 
            -4px 0 rgba(0, 234, 255, 0.95),
            4px 0 rgba(201, 251, 255, 0.95),
            0 0 12px rgba(0, 234, 255, 0.88);
        letter-spacing: 1px;
        clip-path: polygon(0 40%, 100% 40%, 100% 100%, 0 100%);
    }
    84% {
        transform: translate(-3px, 2px) skew(2deg) scaleX(0.92) scaleY(1.1);
        text-shadow: 
            5px 0 rgba(0, 234, 255, 0.9),
            -5px 0 rgba(103, 244, 255, 0.95),
            0 0 15px rgba(0, 234, 255, 0.95);
        letter-spacing: 6px;
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    }
    86% {
        transform: translate(3px, -2px) skew(-3deg) scaleX(1.1) scaleY(0.9);
        text-shadow: 
            -6px 0 rgba(0, 234, 255, 0.95),
            6px 0 rgba(201, 251, 255, 0.95),
            0 0 18px rgba(0, 234, 255, 1);
        letter-spacing: -2px;
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    }
    88% {
        transform: translate(-2px, 3px) skew(5deg) scaleX(0.96) scaleY(1.06);
        text-shadow: 
            4px 0 rgba(0, 234, 255, 0.92),
            -4px 0 rgba(103, 244, 255, 0.95),
            0 0 14px rgba(0, 234, 255, 0.9);
        letter-spacing: 9px;
        clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    }
    90% {
        transform: translate(2px, -3px) skew(-2deg) scaleX(1.04) scaleY(0.96);
        text-shadow: 
            -5px 0 rgba(0, 234, 255, 0.95),
            5px 0 rgba(201, 251, 255, 0.95),
            0 0 16px rgba(0, 234, 255, 1);
        letter-spacing: 0px;
        clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    }
    92% {
        transform: translate(-4px, 1px) skew(3deg) scaleX(0.94) scaleY(1.08);
        text-shadow: 
            5px 0 rgba(0, 234, 255, 0.95),
            -5px 0 rgba(103, 244, 255, 0.95),
            0 0 15px rgba(0, 234, 255, 0.9);
        letter-spacing: 7px;
        clip-path: polygon(0 0, 100% 0, 100% 55%, 0 55%);
    }
    94% {
        transform: translate(3px, -1px) skew(-4deg) scaleX(1.06) scaleY(0.94);
        text-shadow: 
            -4px 0 rgba(0, 234, 255, 0.95),
            4px 0 rgba(201, 251, 255, 0.95),
            0 0 12px rgba(0, 234, 255, 0.9);
        letter-spacing: 3px;
        clip-path: polygon(0 45%, 100% 45%, 100% 100%, 0 100%);
    }
    96% {
        transform: translate(0) skew(0deg) scaleX(1) scaleY(1);
        text-shadow: 0 0 10px rgba(0, 234, 255, 0.25), 0 0 2px rgba(201, 251, 255, 0.85);
        letter-spacing: 2px;
        clip-path: none;
    }
}

.hero-v3 h1 {
    position: relative;
    display: inline-block;
}

.hero-v3 h1::before {
    display: none;
}

/* Tame page header glitch + spacing on mobile to avoid overflow */
@media (max-width: 768px) {
    .page-title,
    h1.page-title {
        letter-spacing: 1px !important;
        animation: none !important;
        -webkit-text-stroke: 0.5px rgba(0, 8, 12, 0.85) !important;
        text-shadow: 0 0 12px rgba(0, 234, 255, 0.35), 0 0 2px rgba(201, 251, 255, 0.85);
        overflow-wrap: anywhere;
    }

    .page-header-section {
        overflow: hidden;
    }
}

/* Responsive grid columns */
@media (max-width: 768px) {
    .catalog-grid, .latest-list {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .latest-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Center the catalog grid on mobile */
    .catalog-grid {
        justify-content: center !important;
        padding: 0 1rem;
    }
    
    /* Center track cards */
    .track-card {
        margin: 0 auto !important;
    }
    
    /* Center latest list */
    .latest-list {
        padding: 0 1rem;
        justify-content: center !important;
    }
    
    /* Center latest releases track cards specifically */
    .section-latest .track-card {
        margin: 0 auto !important;
    }
    
    /* Center featured section */
    .section-featured {
        text-align: center;
    }
    
    .section-featured .catalog-grid {
        justify-content: center !important;
    }
}

/* Tablet - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .catalog-grid, .latest-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Small Desktop - 3 columns */
@media (min-width: 1025px) and (max-width: 1400px) {
    .catalog-grid, .latest-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

/* Large Desktop - 4 columns */
@media (min-width: 1401px) {
    .catalog-grid, .latest-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .row-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Glitch effect for default images (tracks.php) - copied from index.php */
@keyframes glitchGradient {
    0%, 100% { filter: none; }
    10% { filter: hue-rotate(90deg) saturate(1.5); }
    20% { filter: none; }
    30% { filter: hue-rotate(180deg) saturate(1.3); }
    40% { filter: none; }
    50% { filter: hue-rotate(270deg) saturate(1.6); }
    60% { filter: none; }
    70% { filter: hue-rotate(45deg) saturate(1.4); }
    80% { filter: none; }
    90% { filter: hue-rotate(135deg) saturate(1.5); }
}

.glitch-effect {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glitch-effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
    animation: glitchGradient 3s infinite;
}



/* =====================================================================
   Moved from the template view inline <style> (separation of concerns).
   Loaded only on tracks.php / back-catalog.php.
   ===================================================================== */

    .filters-container-v2 {
        padding: 2rem;
        max-width: 1300px;
        margin: 0 auto;
    }
    
    .dj-link {
        color: #00d4ff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-family: inherit !important;
        font-size: inherit !important;
        line-height: inherit !important;
        letter-spacing: inherit !important;
        text-transform: inherit !important;
        transition: all 0.3s ease !important;
        border-bottom: 1px solid transparent !important;
    }
    .dj-link:hover {
        color: #00a8cc !important;
        border-bottom-color: #00d4ff !important;
        text-shadow: 0 0 8px rgba(0, 212, 255, 0.5) !important;
        text-decoration: underline !important;
    }
    
    /* Debug: Make all artist links visible */
    .track-artist a {
        color: #00d4ff !important;
        font-weight: 500 !important;
    }
    
    .btn-add-cart.in-cart,
    .pack-btn.in-cart {
        background: linear-gradient(135deg, #10b981, #059669) !important;
        color: white !important;
        cursor: not-allowed !important;
        box-shadow: none !important;
        transform: none !important;
        pointer-events: none;
    }
    
    .btn-add-cart.in-cart *,
    .pack-btn.in-cart *,
    .btn.btn-add-cart.pack-btn.in-cart *,
    .btn.btn-add-cart.pack-btn.in-cart .btn-text {
        color: white !important;
    }
    
    .btn-add-cart.in-cart:hover,
    .pack-btn.in-cart:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .page-header-section {
        text-align: center;
        padding: clamp(6.5rem, 12vw, 9rem) 1rem clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .page-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
        font-weight: 700;
        margin: 0;
        line-height: 1.1;
        max-width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .page-title i {
        margin-right: 0.25rem;
        font-size: 0.8em;
    }

    .page-subtitle {
        font-size: clamp(0.95rem, 2.5vw, 1.2rem);
        opacity: 0.8;
        margin: 0;
        max-width: 36ch;
        line-height: 1.5;
    }

    /* Decorative accent divider under the header */
    .page-header-section::after {
        content: "";
        display: block;
        width: clamp(60px, 18vw, 120px);
        height: 3px;
        margin-top: 0.5rem;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
        opacity: 0.7;
    }

    .track-badge {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: #3b82f6;
        color: white;
        font-size: 0.7rem;
        font-weight: 900;
        padding: 4px 10px;
        border-radius: 4px;
        letter-spacing: 1px;
        z-index: 10;
    }

    .btn-preview {
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-color), 0.05) 100%);
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        border-radius: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
        box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
        min-width: auto;
    }
    
    .btn-preview:hover {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(var(--accent-color), 0.4);
    }
    
    .preview-section {
        margin-bottom: 2rem;
    }
    
    .preview-audio {
        width: 100%;
        height: 60px;
        border-radius: 8px;
        background: rgba(0,0,0,0.2);
    }
    
    .external-preview {
        border-radius: 8px;
        overflow: hidden;
    }
    
    .youtube-preview iframe,
    .soundcloud-preview iframe {
        border-radius: 8px;
    }
    
    .preview-link {
        text-align: center;
        padding: 2rem;
        background: rgba(0,0,0,0.2);
        border-radius: 8px;
    }

    /* Enhanced Hero Section */
    .hero-section.has-background-media {
        position: relative;
        overflow: hidden;
    }

    .hero-background-image,
    .hero-background-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .hero-background-image {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-background-video,
    video.hero-background-video,
    .hero-section video {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .hero-background-image {
        opacity: 0.3;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
        border-radius: inherit;
        z-index: 1;
    }

    .hero-section.has-background-media .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-section.has-background-media .hero-actions {
        position: relative;
        z-index: 2;
    }

    .hero-section.has-background-media h1,
    .hero-section.has-background-media p {
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-button {
        margin-top: 2rem;
    }

    .btn-hero {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 700;
        border-radius: 50px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
    }

    .btn-hero:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
    }

    .admin-edit-btn {
        margin-left: 1rem;
        position: relative;
        z-index: 10;
    }

    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        position: relative;
        z-index: 10;
    }

.filters-bar-v2 {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-main-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-wrapper-v2 {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-v2 {
    position: absolute;
    left: 1.25rem;
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 1.1rem;
}

.filter-input-v2 {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.8rem 3rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-input-v2:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    outline: none;
}

.clear-search-btn {
    position: absolute;
    right: 1.25rem;
    background: none;
    border: none;
    color: white;
    opacity: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: none;
}

.clear-search-btn.visible {
    opacity: 0.5;
    pointer-events: auto;
}

.clear-search-btn:hover {
    opacity: 1;
    color: var(--primary-color);
}

.filter-actions-v2 {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.select-wrapper-v2 {
    position: relative;
    display: flex;
    align-items: center;
}

.sort-icon-v2 {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.filter-select-v2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    color: white;
    cursor: pointer;
    appearance: none;
    min-width: 180px;
}

.btn-reset-v2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-reset-v2:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-secondary-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.category-pills-container {
    position: relative;
    overflow: hidden;
}

.category-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

/* Mobile swipe indicator */
@media (max-width: 768px) {
    .category-pills-container {
        padding-bottom: 3rem;
    }

    .swipe-indicator {
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.3rem;
        z-index: 2;
        padding: 0.0rem 0.0rem;
    }

    .swipe-indicator::before,
    .swipe-indicator::after {
        content: '›';
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.2rem;
        font-weight: bold;
        animation: swipeArrows 1.5s ease-in-out infinite;
    }

    .swipe-indicator::after {
        animation-delay: 0.3s;
    }

    .swipe-indicator span {
        display: block;
        content: '›';
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.2rem;
        font-weight: bold;
        animation: swipeArrows 1.5s ease-in-out infinite;
        animation-delay: 0.6s;
    }

    .swipe-indicator span::before {
        content: '›';
    }

    @keyframes swipeArrows {
        0%, 100% { 
            transform: translateX(0);
            opacity: 0.5;
        }
        50% { 
            transform: translateX(4px);
            opacity: 1;
        }
    }
}

.pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pill-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    height: 1.4em;
    padding: 0 0.4em;
    margin-left: 0.35em;
    font-size: 0.72em;
    font-weight: 700;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    line-height: 1;
}
.pill-btn.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
}

.pill-note {
    font-size: 0.6em;
    opacity: 0.5;
    font-weight: 400;
    margin-left: 0.3em;
    font-style: italic;
}

.pill-btn:active,
.pill-btn:focus {
    transform: scale(0.95);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Filter button press feedback */
.filter-select-v2:active,
.btn-reset-v2:active,
.clear-search-btn:active {
    transform: scale(0.96);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.active-filters-row {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0 0.5rem;
}

.active-filters-row.visible {
    display: flex;
}

.active-label {
    font-size: 0.9rem;
    opacity: 0.6;
    font-weight: 600;
}

.chips-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chip-remove {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.chip-remove:hover {
    opacity: 1;
}

/* Shimmer loading effect */
.loading-shimmer {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.loading-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-section {
        padding: 3rem 1.5rem !important;
        margin: 1.5rem 1rem !important;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .filters-container-v2 {
        padding: 0.75rem 0;
        max-width: 100%;
        width: 100%;
    }

    .filters-bar-v2 {
        padding: 1rem;
        gap: 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        width: 100%;
    }

    .filter-main-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .search-wrapper-v2 {
        min-width: 100%;
    }

    .filter-input-v2 {
        padding: 0.9rem 1.25rem 0.9rem 3.25rem !important;
        font-size: 1rem;
    }

    .filter-actions-v2 {
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .select-wrapper-v2 {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }

    .filter-select-v2 {
        width: 100%;
        padding: 0.9rem 1rem 0.9rem 2.5rem;
        font-size: 0.95rem;
    }

    .btn-reset-v2 {
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .category-pills-container {
        padding-bottom: 0.5rem;
    }

    .category-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.5rem;
    }

    .category-pills::-webkit-scrollbar {
        display: none;
    }

    .pill-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .active-filters-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-section {
        padding: 2.5rem 1rem !important;
        margin: 1.5rem 0.75rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem !important;
    }

    .btn-hero {
        padding: 0.9rem 1.75rem;
        font-size: 1rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .track-card,
    .pack-card {
        padding: 1rem;
    }

    .track-card h3,
    .pack-card h3 {
        font-size: 1rem;
    }

    .track-card .track-artist,
    .pack-card .pack-meta {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0.75rem !important;
        margin: 1rem 0.5rem !important;
        border-radius: 16px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        padding: 0 0.25rem;
        margin-bottom: 1rem !important;
    }

    .btn-hero {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .filters-bar-v2 {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .filter-input-v2 {
        padding: 0.85rem 1rem 0.85rem 3rem !important;
        font-size: 0.95rem;
    }

    .search-icon-v2 {
        left: 1rem;
        font-size: 1rem;
    }

    .clear-search-btn {
        right: 1rem;
    }
    
    .filter-actions-v2 {
        flex-direction: column;
        gap: 0.5rem;
    }

    .select-wrapper-v2 {
        flex: 1 1 100%;
        width: 100%;
    }

    .filter-select-v2 {
        padding: 0.85rem 1rem 0.85rem 2.5rem;
    }
    
    .btn-reset-v2 {
        padding: 0.85rem 1rem;
    }

    .btn-reset-v2 span {
        display: inline;
    }

    .hero-actions {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .admin-edit-btn {
        margin-left: 0;
        width: 100%;
    }

    .category-pills {
        gap: 0.4rem;
        padding-bottom: 0.75rem;
    }

    .pill-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .track-card,
    .pack-card {
        padding: 0.875rem;
    }

    .track-card h3,
    .pack-card h3 {
        font-size: 0.95rem;
    }

    .track-card .track-artist,
    .pack-card .pack-meta {
        font-size: 0.8rem;
    }

    .track-actions,
    .pack-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .track-actions .btn,
    .pack-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .track-price,
    .pack-price {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    /* Ensure cart count is visible on mobile */
    .cart-link .badge,
    .nav-item .badge,
    #cart-count {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 18px !important;
        height: 18px !important;
        font-size: 0.7rem !important;
        padding: 0 4px !important;
        background: var(--primary-color) !important;
        color: black !important;
        border-radius: 20px !important;
        font-weight: bold !important;
        position: relative !important;
        top: -8px !important;
        left: 2px !important;
    }

    .cart-link {
        position: relative !important;
    }

    /* Better touch targets */
    .pill-btn,
    .btn,
    .filter-select-v2,
    .filter-input-v2 {
        min-height: 44px;
    }

    /* Improve list view on mobile */
    .catalog-list .track-card,
    .catalog-list .pack-card {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-list .track-cover,
    .catalog-list .pack-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 0.75rem;
    }

    .catalog-list .track-info,
    .catalog-list .pack-info {
        width: 100%;
        padding: 0;
    }

    .catalog-list .track-actions,
    .catalog-list .pack-actions {
        width: 100%;
        margin-top: 0.75rem;
    }

    /* Floating particles - reduce on mobile for performance */
    .floating-particle {
        display: none;
    }

    /* Empty state */
    .empty-state {
        padding: 2rem 1rem;
        font-size: 0.9rem;
    }

    .empty-state i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    /* Filter chips */
    .filter-chip {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .active-label {
        font-size: 0.85rem;
    }
}

/* Glitch Text Animation */
.glitch-text {
    position: relative;
    font-weight: 900 !important;
    animation: glitch-skew 3s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #4f8aff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #9d6fff, 2px 2px #4f8aff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); transform: skew(0.3deg); }
    5% { clip: rect(70px, 9999px, 71px, 0); transform: skew(0.8deg); }
    10% { clip: rect(84px, 9999px, 40px, 0); transform: skew(0.1deg); }
    15% { clip: rect(17px, 9999px, 99px, 0); transform: skew(0.5deg); }
    20% { clip: rect(26px, 9999px, 2px, 0); transform: skew(0.9deg); }
    25% { clip: rect(90px, 9999px, 88px, 0); transform: skew(0.2deg); }
    30% { clip: rect(59px, 9999px, 34px, 0); transform: skew(0.7deg); }
    35% { clip: rect(43px, 9999px, 61px, 0); transform: skew(0.4deg); }
    40% { clip: rect(12px, 9999px, 76px, 0); transform: skew(0.6deg); }
    45% { clip: rect(77px, 9999px, 23px, 0); transform: skew(0.3deg); }
    50% { clip: rect(55px, 9999px, 48px, 0); transform: skew(0.8deg); }
    55% { clip: rect(8px, 9999px, 92px, 0); transform: skew(0.1deg); }
    60% { clip: rect(66px, 9999px, 15px, 0); transform: skew(0.5deg); }
    65% { clip: rect(38px, 9999px, 81px, 0); transform: skew(0.9deg); }
    70% { clip: rect(21px, 9999px, 57px, 0); transform: skew(0.2deg); }
    75% { clip: rect(95px, 9999px, 6px, 0); transform: skew(0.7deg); }
    80% { clip: rect(49px, 9999px, 69px, 0); transform: skew(0.4deg); }
    85% { clip: rect(4px, 9999px, 85px, 0); transform: skew(0.6deg); }
    90% { clip: rect(72px, 9999px, 29px, 0); transform: skew(0.3deg); }
    95% { clip: rect(14px, 9999px, 97px, 0); transform: skew(0.8deg); }
    100% { clip: rect(62px, 9999px, 42px, 0); transform: skew(0.1deg); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); transform: skew(0.5deg); }
    5% { clip: rect(22px, 9999px, 33px, 0); transform: skew(0.2deg); }
    10% { clip: rect(89px, 9999px, 11px, 0); transform: skew(0.9deg); }
    15% { clip: rect(45px, 9999px, 78px, 0); transform: skew(0.4deg); }
    20% { clip: rect(7px, 9999px, 56px, 0); transform: skew(0.7deg); }
    25% { clip: rect(73px, 9999px, 24px, 0); transform: skew(0.3deg); }
    30% { clip: rect(36px, 9999px, 91px, 0); transform: skew(0.8deg); }
    35% { clip: rect(98px, 9999px, 19px, 0); transform: skew(0.1deg); }
    40% { clip: rect(51px, 9999px, 67px, 0); transform: skew(0.6deg); }
    45% { clip: rect(13px, 9999px, 44px, 0); transform: skew(0.5deg); }
    50% { clip: rect(80px, 9999px, 5px, 0); transform: skew(0.2deg); }
    55% { clip: rect(27px, 9999px, 82px, 0); transform: skew(0.9deg); }
    60% { clip: rect(94px, 9999px, 38px, 0); transform: skew(0.4deg); }
    65% { clip: rect(60px, 9999px, 16px, 0); transform: skew(0.7deg); }
    70% { clip: rect(3px, 9999px, 75px, 0); transform: skew(0.3deg); }
    75% { clip: rect(68px, 9999px, 52px, 0); transform: skew(0.8deg); }
    80% { clip: rect(30px, 9999px, 9px, 0); transform: skew(0.1deg); }
    85% { clip: rect(86px, 9999px, 63px, 0); transform: skew(0.6deg); }
    90% { clip: rect(41px, 9999px, 28px, 0); transform: skew(0.5deg); }
    95% { clip: rect(19px, 9999px, 96px, 0); transform: skew(0.2deg); }
    100% { clip: rect(77px, 9999px, 47px, 0); transform: skew(0.9deg); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-1deg); }
    20% { transform: skew(1deg); }
    30% { transform: skew(0deg); }
    40% { transform: skew(0.5deg); }
    50% { transform: skew(-0.5deg); }
    60% { transform: skew(0deg); }
    70% { transform: skew(-0.8deg); }
    80% { transform: skew(0.8deg); }
    90% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

/* ===== LATEST TRACKS WIDGET ===== */
.widget-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8002;
    background: linear-gradient(135deg, #4f8aff, #9d6fff);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 8px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    box-shadow: -4px 0 20px rgba(79, 138, 255, 0.4);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-tab i { font-size: 1rem; display: block; }

.widget-tab span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    display: block;
    margin-top: 2px;
}

.widget-tab:hover {
    background: linear-gradient(135deg, #6ba0ff, #b480ff);
    box-shadow: -6px 0 28px rgba(79, 138, 255, 0.6);
}

.widget-tab.open { right: 300px; }

.widget-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    z-index: 8001;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.widget-panel.open {
    transform: translateX(0);
    visibility: visible;
}

.widget-content {
    position: relative;
    height: 100%;
    background: rgba(8, 12, 35, 0.98);
    border-left: 1px solid rgba(79, 138, 255, 0.25);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.widget-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.widget-close:hover {
    background: rgba(248,113,113,0.2);
    border-color: rgba(248,113,113,0.3);
    color: #f87171;
}

.widget-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(79, 138, 255, 0.08);
}

.widget-header h3 {
    margin: 0;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.widget-header h3 i {
    color: #ff6b35;
    font-size: 1.1rem;
}

.widget-tracks {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(79,138,255,0.3) transparent;
}

.widget-tracks::-webkit-scrollbar { width: 4px; }
.widget-tracks::-webkit-scrollbar-thumb { background: rgba(79,138,255,0.3); border-radius: 2px; }

.widget-track-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.5rem;
    margin-bottom: 2px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.widget-track-item:hover { background: rgba(79, 138, 255, 0.1); }

.widget-track-cover {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}

.widget-track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget-track-item:hover .widget-play-overlay { opacity: 1; }
.widget-play-overlay i { color: white; font-size: 0.9rem; }

.widget-track-info { flex: 1; min-width: 0; }

.widget-track-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-track-artist {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 7999;
}

.widget-overlay.open { display: block; }

@media (max-width: 480px) {
    .widget-panel { width: 100%; }
    .widget-tab.open { right: 100vw; }
}

/* =====================================================================
   Tracks filter refactor (separation of concerns):
   utility classes that replaced former inline style="" attributes,
   plus the smooth AJAX result-swap polish used by tracks.js.
   ===================================================================== */

/* List-view action buttons are icon-only */
.track-icon-btn .btn-text { display: none; }

/* Back Catalogue note under a track card */
.back-catalogue-note {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
    font-weight: 600;
}

/* Pack "COLLECTION" badge spacing */
.all-songs-badge { margin-left: 5px; vertical-align: middle; }

/* Pack card price/action layout */
.pack-price-col { display: flex; flex-direction: column; }
.pack-price-row { display: flex; align-items: center; gap: 0.5rem; }
.pack-actions-row { display: flex; gap: 0.5rem; }
.pack-original-price {
    font-size: 0.75rem;
    text-decoration: line-through;
    opacity: 0.4;
    font-weight: 600;
}

/* Latest-tracks widget empty state */
.widget-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}
.widget-empty-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

/* ---- Smooth AJAX result swap (replaces the hard innerHTML flash) ---- */
.catalog-grid.is-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.16s ease;
}
.catalog-grid.is-swapping {
    opacity: 0;
    transition: opacity 0.16s ease;
}
.catalog-grid.cards-animate > .track-card,
.catalog-grid.cards-animate > .empty-state {
    animation: trackCardIn 0.42s ease both;
}
.catalog-grid.cards-animate > .track-card:nth-child(1) { animation-delay: 0s; }
.catalog-grid.cards-animate > .track-card:nth-child(2) { animation-delay: 0.04s; }
.catalog-grid.cards-animate > .track-card:nth-child(3) { animation-delay: 0.08s; }
.catalog-grid.cards-animate > .track-card:nth-child(4) { animation-delay: 0.12s; }
.catalog-grid.cards-animate > .track-card:nth-child(5) { animation-delay: 0.16s; }
.catalog-grid.cards-animate > .track-card:nth-child(6) { animation-delay: 0.2s; }
.catalog-grid.cards-animate > .track-card:nth-child(7) { animation-delay: 0.24s; }
.catalog-grid.cards-animate > .track-card:nth-child(8) { animation-delay: 0.28s; }
.catalog-grid.cards-animate > .track-card:nth-child(n+9) { animation-delay: 0.32s; }

@keyframes trackCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-grid.is-swapping { opacity: 1; }
    .catalog-grid.cards-animate > .track-card,
    .catalog-grid.cards-animate > .empty-state { animation: none; }
}

/* ================================================================
   ANIMATED BRITISH BACKGROUND — Dark Blue / Red
   Union Jack inspired flowing gradients + subtle cross pattern
   ================================================================ */

/* Container sits behind everything, full viewport */
.uk-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Layer 1: Deep blue base with slow-drifting red glow */
.uk-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 36, 120, 0.55) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 80% 70%, rgba(180, 30, 30, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, rgba(0, 20, 80, 0.4) 0%, transparent 80%),
        linear-gradient(160deg, #020818 0%, #0a1628 40%, #0c0c1d 100%);
    animation: ukDrift 18s ease-in-out infinite alternate;
}

/* Layer 2: Diagonal cross strokes (Union Jack diagonals) */
.uk-bg::after {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        linear-gradient( 60deg, transparent 42%, rgba(180, 30, 30, 0.07) 44%, rgba(180, 30, 30, 0.07) 46%, transparent 48%),
        linear-gradient(-60deg, transparent 42%, rgba(180, 30, 30, 0.07) 44%, rgba(180, 30, 30, 0.07) 46%, transparent 48%),
        linear-gradient(  0deg, transparent 47%, rgba(255, 255, 255, 0.03) 49%, rgba(255, 255, 255, 0.03) 51%, transparent 53%),
        linear-gradient( 90deg, transparent 47%, rgba(255, 255, 255, 0.03) 49%, rgba(255, 255, 255, 0.03) 51%, transparent 53%);
    animation: ukPulse 12s ease-in-out infinite alternate;
}

/* Layer 3: Floating red & blue orbs */
.uk-bg .uk-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: ukFloat 20s ease-in-out infinite alternate;
}
.uk-bg .uk-orb.orb-blue  { width: 500px; height: 500px; background: #1a3a8a; top: -10%; left: -5%; animation-delay: 0s; }
.uk-bg .uk-orb.orb-red   { width: 400px; height: 400px; background: #8b1a1a; bottom: -10%; right: -5%; animation-delay: -6s; }
.uk-bg .uk-orb.orb-blue2 { width: 350px; height: 350px; background: #0d2b6b; top: 50%; left: 60%; animation-delay: -12s; }
.uk-bg .uk-orb.orb-red2  { width: 300px; height: 300px; background: #6b1515; top: 20%; right: 30%; animation-delay: -8s; }

/* Layer 4: Subtle horizontal scan line */
.uk-bg .uk-scan {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(180, 30, 30, 0.15), transparent);
    animation: ukScan 8s linear infinite;
}

/* Keyframes */
@keyframes ukDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, -2%) scale(1.08); }
}

@keyframes ukPulse {
    0%   { opacity: 0.6; }
    50%  { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes ukFloat {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -40px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(10px, -10px) scale(1.05); }
}

@keyframes ukScan {
    0%   { top: -2px; }
    100% { top: 100%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .uk-bg::before,
    .uk-bg::after,
    .uk-bg .uk-orb,
    .uk-bg .uk-scan {
        animation: none !important;
    }
}

/* ── Day-of-release group headers ─────────────────────────────────── */
.release-day-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 0.25rem;
    width: 100%;
}
.release-day-header:first-child { margin-top: 0; }
.release-day-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(43, 108, 255, 0), rgba(43, 108, 255, 0.45), rgba(200, 16, 46, 0.45), rgba(200, 16, 46, 0));
}
.release-day-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 36, 125, 0.55), rgba(200, 16, 46, 0.45));
    border: 1px solid rgba(255, 210, 63, 0.55);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 210, 63, 0.12) inset;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.release-day-text i { color: #ffd23f; font-size: 0.78rem; }

@media (max-width: 768px) {
    .release-day-text { font-size: 0.74rem; padding: 0.35rem 0.85rem; }
}
