/* Spotify Embed Pro - Frontend Styles */

.sep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
    width: 100%;
}

.sep-grid-item {
    border-radius: 14px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sep-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.sep-item-title {
    padding: 12px 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sep-iframe-wrapper {
    width: 100%;
    line-height: 0;
}

.sep-iframe-wrapper iframe {
    display: block;
    border-radius: 0 0 14px 14px;
}

/* Theme: dark (default Spotify look) */
.sep-theme-dark .sep-grid-item {
    background: #121212;
}

/* Theme: light */
.sep-theme-light .sep-grid-item {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.sep-theme-light .sep-item-title {
    color: #121212;
}

.sep-empty-notice {
    padding: 16px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

/* Tracks mode: compact per-track cards in a configurable column grid */
.sep-grid.sep-tracks-mode {
    grid-template-columns: repeat(var(--sep-columns, 2), 1fr);
}

.sep-tracks-mode .sep-grid-item {
    padding: 8px;
}

.sep-tracks-mode .sep-item-title {
    display: none;
}

.sep-tracks-mode .sep-item-subtitle {
    display: none;
}

.sep-tracks-mode .sep-iframe-wrapper iframe {
    border-radius: 8px;
}

.sep-tracks-mode .sep-type-fallback .sep-iframe-wrapper iframe {
    border-radius: 0 0 14px 14px;
}

@media (max-width: 600px) {
    .sep-grid.sep-tracks-mode {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .sep-grid:not(.sep-tracks-mode) {
        grid-template-columns: 1fr;
    }
}
