.beatport-releases-widget {
    margin: 20px 0;
}

/* Section Header */
.beatport-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.beatport-section-title {
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
    font-size: 32px;
    color: #333;
}

.beatport-section-description {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Grid Layout */
.beatport-releases-grid {
    display: grid;
    gap: 20px;
}

/* Masonry Layout */
.beatport-layout-masonry .beatport-releases-grid {
    display: block;
    column-count: 3;
    column-gap: 20px;
}

.beatport-layout-masonry .beatport-release-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
}

@media (max-width: 900px) {
    .beatport-layout-masonry .beatport-releases-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .beatport-layout-masonry .beatport-releases-grid {
        column-count: 1;
    }
}

.beatport-release-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beatport-release-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Image Styles */
.beatport-release-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

/* Skeleton loading state */
.beatport-release-image.beatport-skeleton {
    background: #e8e8e8;
}

.beatport-release-image.beatport-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: beatport-skeleton-shimmer 1.5s ease-in-out infinite;
    pointer-events: none;
}

.beatport-release-image.beatport-skeleton img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beatport-release-image:not(.beatport-skeleton) img {
    opacity: 1;
}

@keyframes beatport-skeleton-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.beatport-release-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.beatport-release-item:hover .beatport-release-image img {
    transform: scale(1.05);
}

/* Aspect Ratios */
.beatport-ratio-square {
    aspect-ratio: 1 / 1;
}

.beatport-ratio-portrait {
    aspect-ratio: 3 / 4;
}

.beatport-ratio-landscape {
    aspect-ratio: 4 / 3;
}

.beatport-ratio-square img,
.beatport-ratio-portrait img,
.beatport-ratio-landscape img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Sizes Control Wrapper - Responsive Full Width by default */
.beatport-release-image {
    width: 100%;
}

.beatport-image-small {
    width: 100%;
    max-width: 100%;
}

.beatport-image-medium {
    width: 100%;
    max-width: 100%;
}

.beatport-image-large {
    width: 100%;
    max-width: 100%;
}

.beatport-image-xlarge {
    width: 100%;
    max-width: 100%;
}

.beatport-release-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* If a ratio is applied, it overrides fixed heights */
[class*="beatport-ratio-"] img {
    height: 100% !important;
}

/* Release Info */
.beatport-release-info {
    padding: 15px;
}

.beatport-release-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.beatport-release-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beatport-release-title a:hover {
    color: #0073aa;
}

.beatport-release-artists {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.beatport-release-label {
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.beatport-release-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}

.beatport-release-price {
    color: #0073aa;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Button Styles */
.beatport-release-button-wrapper {
    margin-top: 15px;
}

.beatport-release-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.beatport-release-button:hover {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Content Alignment */
.beatport-alignment-left .beatport-release-info {
    text-align: left;
}

.beatport-alignment-center .beatport-release-info {
    text-align: center;
}

.beatport-alignment-right .beatport-release-info {
    text-align: right;
}

.beatport-alignment-center .beatport-release-button-wrapper {
    text-align: center;
}

.beatport-alignment-right .beatport-release-button-wrapper {
    text-align: right;
}

/* List Layout */
.beatport-layout-list .beatport-release-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
}

.beatport-layout-list .beatport-release-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 15px;
}

.beatport-layout-list .beatport-release-info {
    flex: 1;
    padding: 0;
}

.beatport-layout-list.beatport-alignment-center .beatport-release-item {
    flex-direction: column;
    text-align: center;
}

.beatport-layout-list.beatport-alignment-center .beatport-release-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
}

.beatport-layout-list.beatport-alignment-right .beatport-release-item {
    flex-direction: row-reverse;
}

.beatport-layout-list.beatport-alignment-right .beatport-release-image {
    margin-right: 0;
    margin-left: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .beatport-releases-grid {
        grid-template-columns: 1fr !important;
    }

    .beatport-layout-list .beatport-release-item {
        flex-direction: column;
        text-align: center;
    }

    .beatport-layout-list .beatport-release-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .beatport-section-header {
        margin-bottom: 30px;
    }

    .beatport-section-title {
        font-size: 24px;
    }
}

/* Audio Play Button Overlay */
.beatport-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(1, 255, 149, 0.9);
    /* Beatport Green */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.beatport-release-image:hover .beatport-play-button {
    opacity: 1;
}

.beatport-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(1, 255, 149, 1);
}

.beatport-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #000;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.beatport-play-button.playing .beatport-play-icon {
    width: 20px;
    height: 24px;
    border-width: 0;
    border-color: transparent;
    background: transparent;
    position: relative;
    border-left: 7px solid #000;
    border-right: 7px solid #000;
    margin-left: 0;
}

/* Bottom Audio Player */
.beatport-audio-player-bottom {
    margin-top: 10px;
}

.beatport-audio-player-bottom audio {
    width: 100%;
    height: 35px;
}

.beatport-no-releases {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Inline Play Button (Next to Buy Button) */
.beatport-play-button-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #01ff95;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.beatport-play-button-inline:hover {
    background-color: #00e686;
    transform: translateY(-2px);
}

.beatport-play-icon-small {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #000;
    margin-left: 3px;
}

.beatport-play-button-inline.playing .beatport-play-icon-small {
    width: 14px;
    height: 16px;
    border-width: 0;
    background: transparent;
    position: relative;
    border-left: 5px solid #000;
    border-right: 5px solid #000;
    margin-left: 0;
}

.beatport-play-button-inline.loading {
    opacity: 0.6;
    cursor: wait;
}