/* Records catalog */
#records-catalog {
    --records-accent: #e42b20;
    padding: 80px 10px 60px;
}

.records-catalog-heading {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    margin-bottom: 36px;
}

.records-catalog-heading h2,
.records-catalog-heading p {
    margin: 0;
}

.records-catalog-heading p {
    align-items: center;
    display: flex;
    font-size: 11px;
    font-weight: 600;
    gap: 8px;
    padding-bottom: 8px;
}

.records-catalog-heading p::before {
    background: var(--records-accent);
    content: "";
    height: 8px;
    width: 8px;
    border-radius: 50%;
}

.records-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.records-catalog-columns {
    display: none;
}

/* Immersive Artist Card Layout */
.records-artist-card {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 34px 10px 38px;
    transition: background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.records-artist-card:hover {
    background: #fafafa;
    box-shadow: inset 4px 0 0 0 var(--records-accent), 0 10px 30px rgba(0, 0, 0, 0.02);
}

.records-artist-profile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.records-catalog-number {
    color: #ccc;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    font-feature-settings: "tnum";
}

.records-catalog-artist {
    align-items: center;
    color: #111;
    display: grid;
    gap: 14px;
    grid-template-columns: 64px minmax(0, 1fr) 38px;
    flex-grow: 1;
}

.records-catalog-portrait {
    align-items: center;
    aspect-ratio: 1;
    background: #e9e9e9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.records-catalog-portrait img {
    filter: grayscale(100%);
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.records-catalog-artist:hover .records-catalog-portrait img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.records-catalog-artist:hover .records-catalog-portrait {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.records-catalog-artist-copy {
    min-width: 0;
}

.records-catalog-artist-copy h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
}

.records-catalog-artist:hover .records-catalog-artist-copy h3 {
    color: var(--records-accent);
}

.records-release-count {
    display: inline-block;
    color: #fff;
    background: #111;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 6px;
}

.records-catalog-arrow {
    align-items: center;
    border: 1.5px solid #111;
    border-radius: 50%;
    display: flex;
    height: 36px;
    justify-content: center;
    justify-self: end;
    transition: background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 36px;
    color: #111;
}

.records-catalog-arrow svg {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.records-catalog-artist:hover .records-catalog-arrow {
    background: #111;
    border-color: #111;
    color: #fff;
    transform: translateX(4px);
}

.records-catalog-artist:hover .records-catalog-arrow svg {
    transform: translateX(1px);
}

/* Horizontal Records Shelf */
.records-catalog-track {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 10px 10px 24px 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.records-catalog-track::-webkit-scrollbar,
.records-release-grid::-webkit-scrollbar {
    height: 3px;
}

.records-catalog-track::-webkit-scrollbar-thumb,
.records-release-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.records-catalog-track::-webkit-scrollbar-track,
.records-release-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.records-catalog-release {
    flex: 0 0 160px;
    min-width: 0;
    scroll-snap-align: start;
}

.records-catalog-release-link,
.records-catalog-release-static,
.records-release-link,
.records-release-static {
    color: #111;
    display: block;
}

.records-catalog-release-link:focus-visible,
.records-catalog-artist:focus-visible,
.records-release-link:focus-visible {
    outline: 2px solid #111;
    outline-offset: 4px;
}

/* Tactile Vinyl slide-out structure */
.records-cover-wrapper {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    overflow: visible;
}

.records-catalog-cover,
.records-release-cover {
    align-items: center;
    aspect-ratio: 1;
    background: #f4f4f2;
    border-radius: 4px;
    color: #777;
    display: flex;
    font-size: 11px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.records-catalog-cover img,
.records-release-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Pure CSS Grooved Vinyl Disk */
.records-vinyl-disk {
    position: absolute;
    top: 2.5%;
    left: 2.5%;
    width: 95%;
    height: 95%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle,
        #1d1d1d,
        #1d1d1d 2px,
        #111111 3px,
        #111111 5px
    );
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 0 8px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* Inner rotating container to allow simultaneous translation and infinite spin */
.records-vinyl-disk-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Vinyl Label Center Ring */
.records-vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32%;
    height: 32%;
    border-radius: 50%;
    background: var(--records-accent);
    border: 2px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vinyl Spindle Center Hole */
.records-vinyl-label::after {
    content: "";
    width: 25%;
    height: 25%;
    background: #fff;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
    z-index: 3;
}

/* Album Title Printed on Vinyl Label */
.records-vinyl-title {
    position: absolute;
    top: 8%;
    left: 2%;
    right: 2%;
    font-size: 8px;
    transform: scale(0.6);
    transform-origin: center top;
    line-height: 1.2;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    z-index: 2;
}

/* Brand Name Printed on Vinyl Label */
.records-vinyl-brand {
    position: absolute;
    bottom: 8%;
    left: 2%;
    right: 2%;
    font-size: 7px;
    transform: scale(0.55);
    transform-origin: center bottom;
    line-height: 1.2;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 0.08em;
    pointer-events: none;
    z-index: 2;
}

/* Interaction: Cover lifts up, Vinyl record spins out and rotates infinitely */
.records-catalog-release-link:hover .records-catalog-cover,
.records-release-link:hover .records-release-cover,
.records-catalog-release-static:hover .records-catalog-cover,
.records-release-static:hover .records-release-cover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.records-catalog-release-link:hover .records-vinyl-disk,
.records-release-link:hover .records-vinyl-disk,
.records-catalog-release-static:hover .records-vinyl-disk,
.records-release-static:hover .records-vinyl-disk {
    transform: translate(38%, -6px); /* translates out horizontally and matches translateY of cover */
}

.records-catalog-release-link:hover .records-vinyl-disk-inner,
.records-release-link:hover .records-vinyl-disk-inner,
.records-catalog-release-static:hover .records-vinyl-disk-inner,
.records-release-static:hover .records-vinyl-disk-inner {
    animation: spin-vinyl-inner 8s linear infinite; /* continuous slow spin while hovered */
}

/* Infinite rotation animation */
@keyframes spin-vinyl-inner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.records-catalog-release-copy,
.records-release-info {
    padding-top: 14px;
}

.records-catalog-release-copy h4,
.records-release-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111;
    transition: color 0.3s ease;
}

.records-catalog-release-link:hover .records-catalog-release-copy h4,
.records-release-link:hover .records-release-info h4 {
    color: var(--records-accent);
}

.records-catalog-release-copy time,
.records-release-info time {
    color: #888;
    display: block;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

.records-catalog-empty,
.records-release-empty {
    color: #666;
    font-size: 13px;
    margin: 0;
    padding: 24px 0;
}


/* Records detail */
.records-artist-detail {
    --records-accent: #e42b20;
}

.records-release-profile {
    background: #0a0a0a;
    color: #fff;
    padding: 0 30px;
}

.records-release-profile dl {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1440px;
}

.records-release-profile-item {
    display: grid;
    gap: 3px 12px;
    grid-template-columns: 34px minmax(0, 1fr);
    line-height: 1.35;
    min-width: 0;
    padding: 22px 0;
}

.records-release-profile-item + .records-release-profile-item {
    border-top: 1px solid #303030;
}

.records-release-profile-item::before {
    color: #5f5f5f;
    content: "01";
    font-size: 10px;
    font-weight: 600;
    grid-row: 1 / span 2;
    padding-top: 2px;
}

.records-release-profile-item:nth-child(2)::before {
    content: "02";
}

.records-release-profile dt {
    color: #858585;
    font-size: 10px;
    font-weight: 600;
    grid-column: 2;
    text-transform: uppercase;
}

.records-release-profile dd {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    grid-column: 2;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: anywhere;
}

.records-artist-detail .records-detail-section {
    --records-detail-gutter: 30px;
    padding: 0 30px 60px;
}

.records-artist-detail .records-detail-heading {
    font-size: 36px;
    letter-spacing: 0;
    padding: 50px 0 30px;
    font-weight: 600;
}

.records-release-grid {
    display: flex;
    gap: 40px;
    margin-right: calc(var(--records-detail-gutter) * -1);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 10px var(--records-detail-gutter) 24px 0;
    scroll-snap-type: x proximity;
    width: calc(100% + var(--records-detail-gutter));
}

.records-release-item {
    flex: 0 0 160px;
    min-width: 0;
    scroll-snap-align: start;
}

@media only screen and (min-width: 769px) {
    #records-catalog {
        padding: 110px 20px 100px;
    }

    .records-release-profile {
        padding: 0 60px;
    }

    .records-release-profile dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .records-release-profile-item + .records-release-profile-item {
        border-left: 1px solid #303030;
        border-top: 0;
        padding-left: 34px;
    }

    .records-release-profile-item {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 30px 0;
    }

    .records-release-profile dt {
        font-size: 11px;
    }

    .records-release-profile dd {
        font-size: 26px;
    }

    .records-catalog-heading {
        margin-bottom: 64px;
    }

    .records-catalog-heading p {
        font-size: 14px;
        padding-bottom: 18px;
    }

    /* Desktop Editorial Showcard Layout */
    .records-artist-card {
        flex-direction: row;
        align-items: center;
        gap: 48px;
        padding: 44px 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .records-artist-profile {
        width: 320px;
        flex-shrink: 0;
        align-items: center;
        gap: 20px;
    }

    .records-catalog-number {
        font-size: 24px;
    }

    .records-catalog-artist {
        gap: 18px;
        grid-template-columns: 80px minmax(0, 1fr) 42px;
    }

    .records-catalog-portrait {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .records-catalog-artist-copy h3 {
        font-size: 28px;
    }

    .records-release-count {
        font-size: 11px;
        padding: 4px 10px;
    }

    .records-catalog-arrow {
        height: 42px;
        width: 42px;
    }

    .records-catalog-track {
        flex-grow: 1;
        gap: 54px;
        margin-right: -20px;
        padding-right: 20px;
    }

    .records-catalog-release {
        flex-basis: 170px;
    }

    .records-catalog-release-copy h4,
    .records-release-info h4 {
        font-size: 14px;
    }

    .records-catalog-release-copy time,
    .records-release-info time {
        font-size: 12px;
    }

    /* Detail Page Upgrades */
    .records-artist-detail .records-detail-section {
        --records-detail-gutter: 60px;
        padding: 0 60px 100px;
    }

    .records-artist-detail .records-detail-heading {
        font-size: 72px;
        padding: 100px 0 60px;
    }

    .records-release-grid {
        gap: 54px;
    }

    .records-release-item {
        flex-basis: 180px;
    }
}

/* Overlay Layout for Single Records (Option B) */
.overlay-layout .fv {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.overlay-layout .fv::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.overlay-layout .fv-overlay-content {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    padding: 0 40px;
}

.overlay-layout .records-release-profile {
    background: transparent !important;
    color: #fff;
    margin-top: 20px;
    padding: 0 !important;
}

.overlay-layout .records-release-profile dl {
    margin: 0;
    display: flex;
    gap: 40px;
    max-width: none !important;
}

.overlay-layout .records-release-profile-item dt {
    opacity: 0.7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    grid-column: 2;
}

.overlay-layout .records-release-profile-item dd {
    font-size: 18px;
    font-weight: 700;
    grid-column: 2;
}

.overlay-layout .records-release-profile-item::before {
    color: rgba(255,255,255,0.4) !important;
    font-size: 10px;
    grid-row: 1 / span 2;
    padding-top: 2px;
}

.overlay-layout .records-release-profile-item {
    border-top: none !important;
    padding: 0 !important;
}

.overlay-layout #releases {
    width: 100%;
}

.overlay-layout .records-detail-heading {
    display: none; /* Hide the title since it's obvious */
}

.overlay-layout .records-release-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    gap: 80px;
    padding-bottom: 20px;
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.overlay-layout .records-release-grid::-webkit-scrollbar {
    display: none;
}

.overlay-layout .records-release-item {
    flex: 0 0 200px;
}

.overlay-layout .records-release-item h4,
.overlay-layout .records-release-item time {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#single-artist.overlay-layout div.fv h2.artist-name {
    position: absolute;
    top: 120px;
    left: auto;
    bottom: auto;
    right: 40px;
    text-align: right;
    margin: 0;
    font-size: 64px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 20;
    transform: none; /* override translateY */
}

@media (max-width: 900px) {
    .overlay-layout .fv-overlay-content {
        padding: 0 20px;
        bottom: 20px;
    }
    .overlay-layout .records-release-grid {
        gap: 60px;
    }
    .overlay-layout .records-release-item {
        flex: 0 0 150px;
    }
    #single-artist.overlay-layout div.fv h2.artist-name {
        top: 80px;
        left: auto;
        right: 20px;
        font-size: 32px;
        text-align: right;
        transform: none;
    }
}

/* Animations for Overlay Layout */
@keyframes overlayHeroZoom {
    0% { transform: translate(-50%, -50%) scale(1.08); filter: brightness(0.8); }
    100% { transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
}

@keyframes overlayFadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes overlayFadeInLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes overlayFadeInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

.overlay-layout .fv .post-thumbnail img {
    animation: overlayHeroZoom 2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#single-artist.overlay-layout div.fv h2.artist-name {
    animation: overlayFadeInRight 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.overlay-layout .records-release-profile {
    animation: overlayFadeInLeft 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.overlay-layout .records-release-item {
    animation: overlayFadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

/* Staggered delay for albums */
.overlay-layout .records-release-item:nth-child(1) { animation-delay: 0.5s; }
.overlay-layout .records-release-item:nth-child(2) { animation-delay: 0.6s; }
.overlay-layout .records-release-item:nth-child(3) { animation-delay: 0.7s; }
.overlay-layout .records-release-item:nth-child(4) { animation-delay: 0.8s; }
.overlay-layout .records-release-item:nth-child(5) { animation-delay: 0.9s; }
.overlay-layout .records-release-item:nth-child(n+6) { animation-delay: 1.0s; }

