.cg-ai-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    line-height: 1.3;
}

.cg-ai-overlay__image {
    display: block;
}

.cg-ai-overlay__image img {
    width: 100%;
    height: auto;
    display: block;
}

.cg-ai-overlay__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.6) 60%, transparent 100%);
    color: #FAF8F5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.cg-ai-overlay__category {
    display: inline-block;
    background: #D4AF37;
    color: #1a1a1a;
    padding: 0.2rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.15rem;
    margin-bottom: 0.25rem;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cg-ai-overlay__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #FAF8F5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cg-ai-overlay__artist {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    color: #D4AF37;
}

.cg-ai-overlay__subtitle {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    color: #D4AF37;
}

.cg-ai-overlay__year {
    display: inline-block;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(250, 248, 245, 0.7);
}

/* Affiliate disclosure */

.cg-affiliate-disclosure {
    background: #FAF8F5;
    border-left: 3px solid #D4AF37;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6b6b6b;
    border-radius: 0.25rem;
}

/* Affiliate CTA button */

.cg-affiliate-cta {
    margin: 1rem 0 1.5rem;
}

.cg-affiliate-cta a {
    display: inline-block;
    background: #D4AF37;
    color: #1a1a1a;
    padding: 0.6rem 1.25rem;
    border-radius: 0.35rem;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cg-affiliate-cta a:hover {
    background: #B8860B;
    color: #fff;
}

/* Compact overlay for grid / listing contexts */

.cg-ai-overlay--compact {
    width: 100%;
    height: 100%;
}

.cg-ai-overlay--compact .cg-ai-overlay__image {
    width: 100%;
    height: 100%;
}

.cg-ai-overlay--compact .cg-ai-overlay__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cg-ai-overlay--compact .cg-ai-overlay__content {
    padding: 0.75rem 1rem;
    gap: 0.2rem;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.4) 70%, transparent 100%);
}

.cg-ai-overlay--compact .cg-ai-overlay__category {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.15rem;
}

.cg-ai-overlay--compact .cg-ai-overlay__title {
    font-size: 1rem;
    line-height: 1.2;
}

.cg-ai-overlay--compact .cg-ai-overlay__artist {
    font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 768px) {
    .cg-ai-overlay__content {
        padding: 1.25rem;
    }

    .cg-ai-overlay__title {
        font-size: 1.25rem;
    }

    .cg-ai-overlay__artist {
        font-size: 0.95rem;
    }

    .cg-ai-overlay--compact .cg-ai-overlay__title {
        font-size: 0.85rem;
    }

    .cg-ai-overlay--compact .cg-ai-overlay__artist {
        font-size: 0.7rem;
    }
}
