/* ============================================
   SPOTIFY DARK THEME - BOOMPLAY STYLE
   Carousel play button removed - cleaner UI
   Desktop preview buttons ALWAYS VISIBLE
   NO PLAYER CSS - Only positioning and layout
   Player visuals in /modules/wad-player/assets/wad-player.css
============================================ */

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

body {
    background: #121212;
    color: #fff;
}

.wad-shop-frontpage,
.wad-shop-frontpage * {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important;
}

.wad-shop-frontpage {
    background: #121212;
    color: #fff;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 40px;
    overflow-x: hidden;
}

/* AJAX SEARCH BAR */
.wad-search-ajax {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
    width: 100%;
}

.wad-search-spinner {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.15);
    border-top: 2px solid #1db954;
    opacity: 0;
    pointer-events: none;
    animation: wadSearchSpin .7s linear infinite;
    transition: .2s;
}

.wad-search-spinner.active {
    opacity: 1;
}

@keyframes wadSearchSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#wad-live-search {
    padding-right: 50px !important;
    width: 100%;
    padding: 14px 24px;
    border-radius: 999px;
    border: none;
    background: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

#wad-live-search:focus {
    background: #3a3a3a;
    box-shadow: 0 0 0 2px #1db954;
}

#wad-live-search::placeholder {
    color: #888;
}

#wad-search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #181818;
    border-radius: 12px;
    padding: 12px;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    max-height: 400px;
    overflow-y: auto;
}

#wad-search-results::-webkit-scrollbar {
    width: 4px;
}

#wad-search-results::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

#wad-search-results::-webkit-scrollbar-thumb {
    background: #1db954;
    border-radius: 4px;
}

.wad-search-section {
    margin-bottom: 12px;
}

.wad-search-section strong {
    display: block;
    color: #1db954;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wad-search-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 14px;
}

.wad-search-item:hover {
    background: #2a2a2a;
    transform: translateX(4px);
}

.wad-search-no-results {
    text-align: center;
    padding: 20px;
    color: #b3b3b3;
}

.wad-search-fallback {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* ARTIST BANNER CAROUSEL - NO PLAY BUTTON */
.wad-banner-carousel {
    position: relative;
    width: 90vw;
    margin-left: calc(-0vw + -5%);
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.wad-banner-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    aspect-ratio: 1366 / 420;
}

.wad-banner-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.wad-banner-full-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}

.wad-banner-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
    pointer-events: none;
}

.wad-banner-card-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 168px;
    pointer-events: auto;
}

.wad-banner-card {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

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

.wad-banner-thumb {
    width: 168px;
    height: 168px;
    border-radius: 16px;
    object-fit: contain;
    background: #111;
    display: block;
    box-shadow: 0 12px 28px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.15);
    transition: transform 0.3s ease;
}

.wad-banner-card:hover .wad-banner-thumb {
    transform: scale(1.05);
}

/* Navigation Controls */
.wad-banner-prev,
.wad-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.wad-banner-prev {
    left: 20px;
}

.wad-banner-next {
    right: 20px;
}

.wad-banner-prev:hover,
.wad-banner-next:hover {
    background: #1db954;
    transform: translateY(-50%) scale(1.05);
    color: #000;
}

/* Dots Indicators */
.wad-banner-dots {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 10px 0;
}

.wad-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wad-banner-dot.active {
    background: #1db954;
    width: 24px;
    border-radius: 4px;
}

/* SECTION HEADINGS */
.wad-shop-frontpage h1,
.wad-shop-frontpage h2 {
    text-align: left;
    margin: 30px 0 20px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

/* FEATURED ARTISTS SECTION */
.wad-featured-artists-section {
    margin: 20px 0 40px;
}

.wad-featured-artists-section h1 {
    text-align: left;
    margin: 0 0 20px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

/* ============================================
   FEATURED ARTISTS - SQUARE CARD STYLE
   Matches Quick Access aesthetic
============================================ */

.wad-row-wrap {
    position: relative;
    margin-bottom: 30px;
}

/* ===== CLEAN PREMIUM NAV ARROWS ===== */
.wad-scroll-btn {
    position: absolute;
    top: 38%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c62828;
    border: 2px solid rgba(255,255,255,.9);
    color: #fff;
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.45);
    opacity: .95;
    transition: background .18s ease, box-shadow .18s ease;
    padding: 0;
}

.wad-scroll-prev {
    left: -22px;
}

.wad-scroll-next {
    right: -22px;
}

.wad-scroll-btn::before {
    content: "➜";
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.wad-scroll-prev::before {
    transform: rotate(180deg);
}

/* subtle hover only - no bounce */
.wad-scroll-btn:hover {
    background: #d13232;
    box-shadow: 0 6px 16px rgba(0,0,0,.6);
}

/* no bounce, no scale */
.wad-scroll-btn:active {
    opacity: .8;
}

.wad-artists-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
    margin-bottom: 20px;
    scroll-behavior: smooth;
}

.wad-artists-row::-webkit-scrollbar {
    display: none;
}

.wad-artists-row .wad-artist-item {
    flex: 0 0 calc((100% - 100px)/6);
    min-width: 180px;
    max-width: 180px;
    text-decoration: none;
    color: #fff;
    transition: .25s ease;
}

.wad-artists-row .wad-artist-item:hover {
    transform: translateY(-5px);
}

.wad-artists-row .wad-artist-thumb {
    width: 100%;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    background: #161616;
    margin-bottom: 12px;
}

.wad-artists-row .wad-artist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.wad-artists-row .wad-artist-item:hover img {
    transform: scale(1.04);
}

.wad-artists-row .wad-artist-thumb .no-image {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #b3b3b3;
    font-size: 12px;
}

.wad-artists-row .wad-artist-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    white-space: normal;
    line-height: 1.4;
    letter-spacing: 0.5px;
    display: block;
    text-align: left;
}

/* HORIZONTAL SCROLL ROWS (PRODUCTS) */
.wad-row {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.wad-row::-webkit-scrollbar {
    height: 8px;
}

.wad-row::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 10px;
}

.wad-row::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.wad-row::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* MORE CARD - For load more functionality */
.wad-more-card {
    flex: 0 0 160px;
    height: 260px;
    background: #181818;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    transition: .25s;
    border: 2px dashed #1db954;
    color: #1db954;
    text-align: center;
    flex-direction: column;
    gap: 8px;
}

.wad-more-card:hover {
    background: #1db954;
    color: #000;
    transform: translateY(-5px);
    border: 2px solid #1db954;
}

/* FIXED: MORE CARD ARTIST - Exactly aligns with artist cards */
.wad-more-card-artist {
    flex: 0 0 180px;
    height: 240px;
    background: #181818;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: .22s ease;
    border: 2px dashed #1db954;
    color: #1db954;
    text-align: center;
    flex-direction: column;
    gap: 8px;
}

.wad-more-card-artist:hover {
    background: #1db954;
    color: #000;
    transform: translateY(-5px);
    border: 2px solid #1db954;
}

/* CLEAN CARDS - BOOMPLAY STYLE */
.wad-card {
    flex: 0 0 auto;
    width: 180px;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wad-card:hover {
    background: #181818;
    transform: none !important;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
}

.wad-card .thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* MINI PLAY OVERLAY BUTTON - ALWAYS VISIBLE */
.wad-play-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    transform: none !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: none !important;
}

/* Trigger button icon styles - CSS controlled */
.wad-trigger-icon {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Proper icon state control - NO inline style conflicts */
.wad-trigger-play {
    display: block;
}

.wad-trigger-pause {
    display: none;
}

.wad-play-trigger.is-playing .wad-trigger-play {
    display: none !important;
}

.wad-play-trigger.is-playing .wad-trigger-pause {
    display: block !important;
}

/* Title - BOLD CAPS */
.wad-product-title {
    font-family: Arial Black, 'Montserrat', Arial, sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin: 10px 8px 4px;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price under title */
.wad-product-price {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0 8px 8px;
}

/* ============================================
   SHOP BUY BUTTON — COMPACT STREAMING PILL
   No giant green slab, centers like Spotify
============================================ */

.wad-product-actions {
    margin: 8px 10px 12px;
    text-align: center;
}

.wad-shop-buy-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 118px;
    max-width: 140px;
    height: 36px;
    padding: 0 16px;
    background: #51b84f;
    border-radius: 999px;
    text-decoration: none !important;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    box-sizing: border-box;
    cursor: pointer;
    transition: background .18s ease;
}

.wad-shop-buy-btn:hover {
    background: #22c55e;
}

.wad-shop-buy-btn .button-content {
    display: inline-flex !important;
    width: auto !important;
}

.wad-shop-buy-btn .button-text {
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    color: #fff !important;
}

/* Loading state */
.wad-shop-buy-btn .loading-state {
    display: none;
    align-items: center;
    gap: 8px;
    color: #fff !important;
}

.wad-shop-buy-btn.loading .button-text {
    display: none;
}

.wad-shop-buy-btn.loading .loading-state {
    display: flex;
}

.wad-shop-buy-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: btn-spin 1s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.wad-card .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* DESKTOP RESPONSIVE BREAKPOINTS */
@media (max-width: 1400px) {
    .wad-artists-row .wad-artist-item {
        flex: 0 0 calc((100% - 80px)/5);
        min-width: 160px;
    }
    .wad-artists-row .wad-artist-thumb {
        height: 210px;
    }
    .wad-more-card {
        flex: 0 0 140px;
        height: 230px;
        font-size: 16px;
    }
    .wad-more-card-artist {
        flex: 0 0 160px;
        height: 210px;
        font-size: 16px;
    }
    .wad-scroll-btn {
        width: 36px;
        height: 36px;
    }
    .wad-scroll-prev {
        left: -18px;
    }
    .wad-scroll-next {
        right: -18px;
    }
    .wad-scroll-btn::before {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .wad-card {
        width: 160px;
    }
    .wad-shop-frontpage {
        padding: 20px 30px;
    }
    .wad-artists-row .wad-artist-item {
        flex: 0 0 calc((100% - 60px)/4);
        min-width: 150px;
    }
    .wad-artists-row .wad-artist-thumb {
        height: 200px;
    }
    .wad-artists-row .wad-artist-name {
        font-size: 13px;
    }
    .wad-more-card {
        flex: 0 0 130px;
        height: 210px;
        font-size: 15px;
    }
    .wad-more-card-artist {
        flex: 0 0 150px;
        height: 200px;
        font-size: 15px;
    }
    .wad-scroll-btn {
        width: 34px;
        height: 34px;
    }
    .wad-scroll-prev {
        left: -17px;
    }
    .wad-scroll-next {
        right: -17px;
    }
    .wad-scroll-btn::before {
        font-size: 17px;
    }
}

@media (max-width: 992px) {
    .wad-card {
        width: 160px;
    }
    .wad-artists-row .wad-artist-item {
        flex: 0 0 calc((100% - 40px)/3);
        min-width: 140px;
    }
    .wad-artists-row .wad-artist-thumb {
        height: 185px;
    }
    .wad-artists-row .wad-artist-name {
        font-size: 12px;
    }
    .wad-more-card {
        flex: 0 0 120px;
        height: 190px;
        font-size: 14px;
    }
    .wad-more-card-artist {
        flex: 0 0 140px;
        height: 185px;
        font-size: 14px;
    }
    .wad-scroll-btn {
        width: 32px;
        height: 32px;
    }
    .wad-scroll-prev {
        left: -16px;
    }
    .wad-scroll-next {
        right: -16px;
    }
    .wad-scroll-btn::before {
        font-size: 16px;
    }
}

/* MOBILE RESPONSIVE - HIDE ARROWS ON MOBILE */
@media (max-width: 768px) {
    .wad-shop-frontpage {
        padding: 15px 20px;
    }
    .wad-card {
        width: 150px;
    }
    .wad-banner-track {
        aspect-ratio: 16 / 9 !important;
    }
    .wad-banner-prev,
    .wad-banner-next {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }
    .wad-banner-prev {
        left: 10px;
    }
    .wad-banner-next {
        right: 10px;
    }
    .wad-banner-dots {
        bottom: -22px;
    }
    .wad-banner-thumb {
        width: 110px;
        height: 110px;
    }
    .wad-banner-card-wrapper {
        width: 110px;
    }
    .wad-banner-play {
        max-width: 110px;
        height: 36px;
        font-size: 11px;
    }
    .wad-banner-overlay {
        padding: 20px;
    }
    /* Hide scroll arrows on mobile */
    .wad-scroll-btn {
        display: none;
    }
    /* Mobile artist row - square cards */
    .wad-artists-row .wad-artist-item {
        flex: 0 0 145px;
        min-width: 145px;
    }
    .wad-artists-row .wad-artist-thumb {
        height: 180px;
    }
    .wad-artists-row .wad-artist-name {
        font-size: 12px;
    }
    .wad-more-card {
        flex: 0 0 110px;
        height: 170px;
        font-size: 12px;
    }
    .wad-more-card-artist {
        flex: 0 0 130px;
        height: 180px;
        font-size: 12px;
    }
    .wad-play-overlay {
        width: 36px;
        height: 36px;
        bottom: 8px;
        right: 8px;
    }
    .wad-trigger-icon {
        width: 20px;
        height: 20px;
    }
    .wad-product-title {
        font-size: 11px;
        margin: 8px 6px 2px;
    }
    .wad-product-price {
        font-size: 10px;
        margin: 0 6px 6px;
    }
    /* Mobile button - compact pill */
    .wad-shop-buy-btn {
        min-width: 100px;
        max-width: 120px;
        height: 34px;
        padding: 0 12px;
    }
    .wad-shop-buy-btn .button-text {
        font-size: 10px !important;
    }
    .wad-banner-carousel {
        margin-left: -20px;
        width: calc(100% + 40px);
    }
}

@media (max-width: 576px) {
    .wad-card {
        width: 130px;
    }
    .wad-artists-row .wad-artist-item {
        flex: 0 0 130px;
        min-width: 130px;
    }
    .wad-artists-row .wad-artist-thumb {
        height: 160px;
    }
    .wad-artists-row .wad-artist-name {
        font-size: 11px;
    }
    .wad-more-card {
        flex: 0 0 100px;
        height: 150px;
        font-size: 11px;
    }
    .wad-more-card-artist {
        flex: 0 0 110px;
        height: 160px;
        font-size: 11px;
    }
    .wad-play-overlay {
        width: 32px;
        height: 32px;
    }
    .wad-trigger-icon {
        width: 18px;
        height: 18px;
    }
    .wad-product-title {
        font-size: 10px;
    }
    /* Small mobile button */
    .wad-shop-buy-btn {
        min-width: 90px;
        max-width: 110px;
        height: 32px;
        padding: 0 10px;
    }
    .wad-shop-buy-btn .button-text {
        font-size: 9px !important;
    }
    .wad-banner-thumb {
        width: 90px;
        height: 90px;
    }
    .wad-banner-card-wrapper {
        width: 90px;
    }
    .wad-banner-play {
        max-width: 90px;
        height: 32px;
        font-size: 10px;
    }
    .wad-banner-prev,
    .wad-banner-next {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
}

/* Empty state styling */
.wad-shop-frontpage p {
    text-align: center;
    padding: 40px;
    color: #b3b3b3;
    background: #181818;
    border-radius: 8px;
    margin: 20px 0;
}

.wad-card .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #b3b3b3;
}

/* MORE arrow styling */
.wad-more-arrow {
    font-size: 24px;
    display: inline-block;
}

/* Responsive adjustment for MORE arrow */
@media (max-width: 768px) {
    .wad-more-arrow {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .wad-more-arrow {
        font-size: 18px;
    }
}
/* ============================================
   INSTANT CHECKOUT MODAL OVERLAY FIXED
============================================ */
#instant-checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* Smooth backing tint */
    backdrop-filter: blur(8px);       /* Spotify/Boomplay frosted look */
    z-index: 99999;                  /* Sit clean on top of everything */
    display: none;                   /* HIDDEN BY DEFAULT */
    align-items: center;
    justify-content: center;
}

/* When the modal has the active class, display it as a flex container */
#instant-checkout-modal.active {
    display: flex !important;
}

/* Inner modal card constraints */
.wad-modal-content {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Close button positioning */
.wad-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}
.wad-modal-close:hover {
    color: #fff;
}