/* ─────────────────────────────────────────────────────────────────────
   my-albums.css — styles for the MyAlbums component rendered on the
   /account "Albums" tab. Mirrors the structure of my-photos.css next
   door so the two sections feel visually consistent inside MyAccount.
   Reuses .admin-* tokens for cards and modals (the admin/AlbumManager
   admin page sets the visual baseline for album affordances).
   ───────────────────────────────────────────────────────────────────── */

.my-albums-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Header row above the album grid for create + heading divisions */
.my-albums-h {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 1rem 0 0.5rem 0;
    font-weight: 700;
}

/* Inline create-album panel */
.my-albums-create {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.my-albums-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.my-albums-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.my-albums-form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.my-albums-form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Album-card grid + cards. Same broad layout as the admin's
 * .adm-album-grid, but lighter visual chrome — this is the player's
 * surface, not the admin one. */
.my-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.my-albums-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.my-albums-card:hover {
    border-color: #00bcd4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Community albums get a subtle marker so the player can tell at a
 * glance which side of the split they're on without re-reading the
 * heading. Doesn't deny actions per se — the markup just omits them. */
.my-albums-card-community {
    background: #fafbfc;
    border-style: dashed;
}

.my-albums-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.my-albums-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-albums-cover-empty {
    font-size: 2.5rem;
    opacity: 0.35;
}

.my-albums-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(17,24,39,0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.my-albums-info {
    padding: 0.75rem 0.9rem 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.my-albums-title {
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-albums-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.my-albums-desc {
    font-size: 0.8125rem;
    color: #4b5563;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.my-albums-actions {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem 0.9rem;
    flex-wrap: wrap;
}
