/* Lazy Load Embed Styling */
.lazy-embed {
    width: 100%;
    height: 150px;
    background: repeating-linear-gradient(
        45deg,
        #1a1a1a,
        #1a1a1a 10px,
        #222 10px,
        #222 20px
    );
    cursor: pointer;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-family: "Sono", sans-serif;
    border: 2px solid #333;
    margin: 4px;
    border-radius: 4px;
    box-sizing: border-box;
    user-select: none;
    position: relative;
}

.lazy-embed::before {
    content: "▶";
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

.lazy-embed::after {
    content: attr(data-title);
    font-size: 12px;
    color: #ccc;
    max-width: 90%;
    text-align: center;
    word-break: break-word;
    padding: 0 10px;
}

.lazy-embed:hover {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 120, 255, 0.5);
}

/* When loaded, hide the placeholder styling */
.lazy-embed.loaded {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    cursor: default;
}

.lazy-embed.loaded::before,
.lazy-embed.loaded::after {
    display: none !important;
}

/* Apple embed stays full height */
.lazy-embed[data-src*="embed.music.apple"] {
    height: 450px;
}
