* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF083E;
    --secondary-color: #ff4081;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --text-light: #ffffff;
    --text-gray: #999999;
    --border-color: #333333;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}
a,img {
    user-select: none; 
    -webkit-user-drag: none;
}
.media-figure {
    margin: 0;
}

.media-figure.inline {
    display: contents;
}

.media-picture {
    display: block;
}

.media-img {
    display: block;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Primary Color */
.bg-primary {
    background-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color);
}

/* Blur Album Effect */
.blur-album {
    filter: blur(0);
    transition: filter 0.3s ease;
}

.blur-album::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
}

/* Genre Tags */
.genre-tag {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    color: #d1d5db;
    border: 1px solid rgba(115, 115, 115, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

.genre-tag:hover {
    background-color: rgba(82, 82, 82, 0.8);
}

.genre-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.genre-tags-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.genre-tags-scroll::-webkit-scrollbar {
    display: none;
}

.genre-tags-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Genre Tags Wrapper with Fade */
.genre-tags-wrapper {
    position: relative;
}

.genre-tags-wrapper::before,
.genre-tags-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1rem;
    pointer-events: none;
    z-index: 10;
}

.genre-tags-wrapper::before {
    left: 0rem;
    background: linear-gradient(to right, rgb(23, 23, 23), transparent);
}

.genre-tags-wrapper::after {
    right: 0rem;
    background: linear-gradient(to left, rgb(23, 23, 23), transparent);
}

/* Letter Tags */
.letter-tag {
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    background-color: rgba(64, 64, 64, 0.8);
    color: #d1d5db;
    border: 1px solid rgba(115, 115, 115, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
    /* min-width: 2.5rem; */
    text-align: center;
}

.letter-tag:hover {
    background-color: rgba(82, 82, 82, 0.8);
}

.letter-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Letter Tags Wrapper with Fade */
.letter-tags-wrapper {
    position: relative;
}

.letter-tags-wrapper::before,
.letter-tags-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1rem;
    width: 1rem;
    pointer-events: none;
    z-index: 10;
}

.letter-tags-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgb(23, 23, 23), transparent);
}

.letter-tags-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgb(23, 23, 23), transparent);
}

/* Filter Buttons */
.filter-btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    color: #d1d5db;
    border: 1px solid rgba(115, 115, 115, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .filter-btn {
        padding: 0.75rem 0.5rem;
    }
}

.filter-btn:hover {
    background-color: rgba(82, 82, 82, 0.8);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Pagination */
.pagination-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(64, 64, 64, 0.8);
    color: #d1d5db;
    border: 1px solid rgba(115, 115, 115, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

.pagination-btn:hover {
    background-color: rgba(82, 82, 82, 0.8);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Backend-rendered pagination (anchor-based) */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .pagination-container a,
    .pagination-container .current {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        background-color: rgba(64, 64, 64, 0.8);
        color: #d1d5db;
        border: 1px solid rgba(115, 115, 115, 0.3);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 0.875rem;
        text-decoration: none;
    }

        .pagination-container a:hover {
            background-color: rgba(82, 82, 82, 0.8);
        }

    .pagination-container .current {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        font-weight: 600;
    }

    .pagination-container .next {
        width: auto;
        padding: 0 1rem;
    }
    .pagination-container .prev {
        width: auto;
        padding: 0 1rem;
    }

/* Album Card */
.list-unstyled,
.album-list {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    overflow-y: hidden;
}

.list-unstyled > li {
    list-style: none;
}

.album-list > li {
    flex: 0 0 auto;
    display: flex;
}

.album-card {
    position: relative;
    cursor: pointer;
    border-radius: 1rem;
    overflow: hidden;
    background-color: rgba(38, 38, 38, 0.8);
    --album-card-content-width: 100%;
}

.album-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.album-card .media-figure,
.album-card .media-figure figcaption,
.album-card .meta {
    width: var(--album-card-content-width);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.album-card .media-figure h3,
.album-card .media-figure p,
.album-card .meta h3,
.album-card .meta a,
.album-card .meta span,
.album-card .meta p {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-card-link {
    display: flex;
    color: inherit;
    text-decoration: none;
}

.discover-artists {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), rgba(7, 7, 7, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2.5rem;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.discover-artists-list {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: 0;
    margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    align-items: center;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.discover-artists-list > li {
    flex: 0 0 auto;
    justify-content: center;
}

.discover-artists-list.is-dragging {
    cursor: grabbing;
}

.artist-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    max-width: 10rem;
    margin: 0 auto;
}

.artist-pod {
    text-align: center;
}

.artist-pod__orbit {
    width: 10rem;
    height: 10rem;
    border-radius: 9999px;
    padding: 0.35rem;
    position: relative;
    margin: 0 auto 0.85rem;
}

.artist-pod__orbit::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.7;
    pointer-events: none;
}
.artist-pod__orbit .media-picture {
    display: block;
    overflow: hidden;
    border-radius: 50%;
}
.artist-pod__figure {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-pod__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.3s ease;
}

.artist-box:hover .artist-pod__figure img,
.artist-box:focus-visible .artist-pod__figure img {
    transform: scale(1.06);
}

.artist-pod__name,.artist-pod__name a {
    display: block;
    width: 100%;
    max-width: 10rem;
    margin: 0 auto;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discover-artists-cta {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.artist-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ff0a4d, #ff4d85);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.artist-cta-btn:hover {
    transform: translateY(-4px) scale(1.01);
}

.artist-cta-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .discover-artists {
        padding: 2rem 0.5rem 2.5rem;
    }

    .discover-artists-list {
        gap: 1rem;
    }
    .artist-cta-btn{
        padding: 0.6rem 1.2rem;
    }
}

.genre-more-card {
    flex: 0 0 10rem;
    min-height: 10rem;
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    background: rgba(15, 15, 15, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.genre-more-card:hover {
    border-color: var(--primary-color);
    background: rgba(255, 8, 62, 0.12);
    transform: translateY(-4px);
}

.genre-more-card__label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.genre-more-card__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.trending-more-card {
    width: clamp(8rem, 12vw, 12.5rem);
    height: clamp(8rem, 12vw, 12.5rem);
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    background: rgba(18, 18, 18, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.trending-more-card svg {
    width: 1.75rem;
    height: 1.75rem;
}

.trending-more-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    background: rgba(255, 8, 62, 0.18);
}

.album-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover img {
    transform: scale(1.05);
}

.album-menu-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.album-card:hover .album-menu-btn,
.album-card.show-menu .album-menu-btn {
    opacity: 1;
    pointer-events: auto;
}

.album-action-menu {
    position: absolute;
    top: 3.3rem;
    right: 0.5rem;
    background: rgba(10,10,10,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.85rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    box-shadow: 0 18px 30px rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 24;
}

.album-card.show-menu .album-action-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.album-action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    width: 100%;
}

.album-action-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    background-color: rgba(38,38,38,0.95);
    color: white;
}

.album-action-btn.share.active {
    background-color: #ef4444;
    border-color: #ef4444;
}

.album-action-btn.favorite {
    background-color: rgba(64, 64, 64, 0.9);
}

.album-action-btn.favorite.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.album-action-btn:hover {
    transform: scale(1.1);
}

.share-channel-list {
    display: none;
    gap: 0.4rem;
    justify-content: flex-end;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.album-card.show-share-channels .share-channel-list {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    max-height: 3rem;
    animation: shareChannelsIn 0.25s ease forwards;
}

@media (max-width: 768px) {
    .album-card.show-share-channels .share-channel-list {
        display: none !important;
    }
}

.share-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 55;
}

.share-overlay.visible {
    display: flex;
}

.share-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.92) 65%);
    backdrop-filter: blur(4px);
}

 .share-overlay__sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 1rem 1rem 0 0;
    background: #0d0d0d;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 -12px 24px rgba(0,0,0,0.65);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(100%);
}

.share-overlay.visible .share-overlay__sheet {
    animation: shareOverlayIn 0.3s ease forwards;
}

.share-overlay__handle {
    width: 3rem;
    height: 0.35rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.16);
    align-self: center;
}

.share-overlay__title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.85);
}

.share-overlay__channels {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-overlay__channel-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
}

.share-overlay__close {
    border: none;
    background: transparent;
    color: #999;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    padding: 0.35rem 0;
    align-self: center;
    cursor: pointer;
}

.share-channel-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.share-channel-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
}

.share-channel-btn img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

@keyframes shareChannelsIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shareOverlayIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Artist Card */
.artist-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(38, 38, 38, 0.6);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.artist-figure {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    margin: 0;
}

.artist-figure figcaption {
    flex: 1;
}

.artist-card:hover {
    background-color: rgba(48, 48, 48, 0.8);
}

.artist-card img {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    object-fit: cover;
}

.artist-info {
    flex: 1;
}

.artist-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.artist-count {
    font-size: 0.875rem;
    color: #9ca3af;
}

.artist-actions {
    display: flex;
    gap: 0.75rem;
}

.artist-action-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(64, 64, 64, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.artist-action-btn.share-btn.active {
    background-color: #ef4444;
    border: 1px solid transparent;
}

.artist-share-wrapper {
    position: relative;
    isolation: isolate;
}

.artist-share-wrapper .share-channel-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    background: rgba(10, 10, 10, 0.95);
    border-radius: 0.85rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 0.4rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.95);
    transform-origin: right top;
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: auto;
    min-width: max-content;
    white-space: nowrap;
    background-clip: padding-box;
    overflow: visible;
}

.artist-card.show-share-channels .artist-share-wrapper .share-channel-list {
    opacity: 1;
    pointer-events: auto;
    max-height: none;
    transform: translateY(0) scale(1);
}

.artist-share-channel-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
    .artist-share-wrapper .share-channel-list {
        display: none !important;
    }
}

.artist-action-btn:hover {
    background-color: rgba(82, 82, 82, 0.9);
    transform: scale(1.1);
}

.artist-action-btn.liked {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .album-menu-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 1920px) {
    :root {
        font-size: 18px;
    }
}

/* Touch Scroll Improvements */
@media (hover: none) and (pointer: coarse) {
    .scrollbar-hide {
        -webkit-overflow-scrolling: touch;
    }
}

/* Prevent image drag/selection in trending carousel */
.trending-img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    transition: transform 0.25s ease; 
    transform-origin: center center;
    cursor: pointer;
}

.trending-img:hover{
    transform: scale(1.05);
}

/* Header + Search Controls */
.site-header .header-main-row {
    width: 100%;
}

.site-header .header-actions {
    display: flex;
    justify-content: flex-end;
}

.icon-button {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: color 0.2s ease;
}

.icon-button:hover {
    color: #f472b6;
}

.search-bar-container {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.25rem 0.25rem 0.4rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    background: transparent;
    flex-shrink: 0;
}

.search-bar-container.expanded {
    background: rgba(255, 255, 255, 0.08);
    padding-right: 0.6rem;
    max-width: 35rem;
    flex: 1 1 35rem;
}

.search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
    min-width: 0;
}

.search-bar-container.expanded .search-input {
    width: 100%;
    opacity: 1;
    padding: 0.35rem 0.5rem;
}

.search-close {
    margin-left: 0.25rem;
}

.search-bar-container:not(.expanded) .search-close {
    display: none;
}

@media (max-width: 768px) {
    .site-header .header-shell {
        gap: 0.5rem;
    }

    .site-header .header-main-row {
        position: relative;
    }

    .site-header .header-logo-link {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .site-header .header-actions {
        flex-shrink: 0;
    }

    .site-header.mobile-search-active #mobileMenuToggle,
    .site-header.mobile-search-active .header-logo-link {
        display: none;
    }

    .site-header.mobile-search-active .header-actions {
        flex: 1;
    }

    .site-header.mobile-search-active .search-bar-container {
        width: 100%;
        background: rgba(255, 255, 255, 0.15);
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .site-header.mobile-search-active .search-bar-container .search-input {
        width: 100%;
    }
}

/* Blur Album Effect - Updated */
.blur-album-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.blur-album-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    opacity: 0.4;
    z-index: 0;
}

.blur-album-content {
    position: relative;
    z-index: 1;
}

/* Gradient Fade - Only show when scrollable */
.genre-tags-wrapper.has-overflow::before,
.genre-tags-wrapper.has-overflow::after,
.letter-tags-wrapper.has-overflow::before,
.letter-tags-wrapper.has-overflow::after {
    opacity: 1;
}

.genre-tags-wrapper::before,
.genre-tags-wrapper::after,
.letter-tags-wrapper::before,
.letter-tags-wrapper::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Explore by Genre panel */
.genre-panel {
    background: rgba(20,20,20,0.6);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.genre-panel .genre-tags-wrapper {
    padding-left: 0.5rem;
}

.genre-panel .genre-tag {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

/* genre carousel arrows */
.genre-arrow {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: background 0.2s ease;
}

.genre-arrow:hover {
    background: rgba(255,255,255,0.06);
}

.genre-arrow svg {
    pointer-events: none;
}

/* Explore-by-genre album cards */
.genre-panel .album-card {
    padding: 0.5rem;
    flex-shrink: 0;
    position: relative;
    border-radius: 1rem;
    overflow: visible;
    --album-card-content-width: 8rem;
}

.genre-panel .cover-background {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    overflow: hidden;
    z-index: 0;
}

.genre-panel .cover-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: inherit;
    filter: blur(25px) brightness(1);
    transform: scale(1.08);
    z-index: 0;
}

.genre-panel .cover-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.15) 60%,
        rgba(0, 0, 0, 0.45) 80%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.genre-panel .album-card .card-front {
    position: relative;
    z-index: 10;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2));
}

.genre-panel .album-card img.cover {
    display: block;
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    margin: 0 auto;
}

.genre-panel .album-card .meta {
    padding: 0.75rem 0.75rem 1rem;
    background: transparent;
}

.genre-panel .album-card .meta h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.genre-panel .album-card .meta p {
    margin: 0;
    color: #c7c7c7;
    font-size: 0.85rem;
}
