:root {
    --album-ink: var(--color-ink);
    --album-muted: var(--color-muted);
    --album-line: var(--color-line);
    --album-paper: var(--color-surface);
    --album-accent: var(--color-primary);
    --album-accent-soft: var(--color-primary-soft);
    --album-warm: var(--color-primary-tint);
    --album-shadow: var(--shadow-card);
}

.album-page {
    min-height: calc(100vh - var(--site-header-h, 64px));
    background: var(--color-page);
    color: var(--album-ink);
    padding-bottom: 64px;
    font-family: var(--font-sans);
}

.album-hero {
    padding: 56px 0 36px;
    text-align: center;
}

.album-hero-compact {
    padding: 40px 0 20px;
}

.album-brand {
    margin: 0 0 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--album-accent);
}

.album-hero-title {
    margin: 0 0 10px;
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
}

.album-hero-desc {
    margin: 0 auto 20px;
    max-width: 28em;
    color: var(--album-muted);
}

.album-meta-line {
    color: var(--album-muted);
    font-size: 14px;
}

.album-search {
    display: inline-flex;
    width: min(100%, 420px);
    background: #fff;
    border: 1px solid var(--album-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--album-shadow);
}

.album-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px 18px;
    background: transparent;
}

.album-search button {
    border: 0;
    background: var(--album-ink);
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
}

.album-hero-actions {
    margin: 18px 0 0;
}

.album-btn {
    display: inline-block;
    margin: 0 6px 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: var(--album-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: var(--fs-aux);
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: background-color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.album-btn:hover {
    background: var(--album-accent);
    transform: translateY(-1px);
}

.album-btn-accent {
    background: var(--album-accent);
}

.album-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.album-btn-ghost {
    background: transparent;
    color: var(--album-ink) !important;
    border: 1px solid var(--album-line);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--list-gap, 16px);
    justify-content: start;
}

.album-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px;
    min-width: 0;
    background: var(--album-paper);
    border: 1px solid var(--album-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: var(--album-shadow);
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}

.album-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(195, 122, 103, 0.28);
}

.album-card:hover .album-card-cover {
    transform: scale(1.03);
}

.album-card-cover {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    background: var(--album-accent-soft) center/cover no-repeat;
    overflow: hidden;
    transition: transform 0.35s var(--ease);
}

.album-card-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
}

.album-card-body h2 {
    margin: 0;
    font-size: var(--fs-title);
    line-height: var(--lh-title);
    font-weight: 650;
    color: var(--album-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-body h2 a {
    color: inherit;
    text-decoration: none !important;
}

.album-card-body p,
.album-card-count {
    margin: 0;
    color: var(--album-muted);
    font-size: var(--fs-tiny);
    line-height: var(--lh-tiny);
}

.album-card-author {
    display: block;
    margin: 0;
    font-size: var(--fs-tiny);
    line-height: var(--lh-tiny);
    color: var(--album-accent);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-actions {
    margin-top: 10px;
}

.album-card-member {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.album-card-member .album-card-cover {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
}

.album-card-member .album-card-body {
    padding: 14px 16px 16px;
}

.album-card-member:hover .album-card-cover {
    transform: none;
}

.album-date-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--album-line);
    border-radius: 12px;
}

.album-date-filter label {
    margin: 0;
    color: var(--album-muted);
    font-weight: normal;
}

.album-date-filter input[type="date"] {
    border: 1px solid var(--album-line);
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
}

.album-filter-keyword {
    border: 1px solid var(--album-line);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 160px;
}

.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.album-photo {
    margin: 0;
    background: #fff;
    border: 1px solid var(--album-line);
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--album-shadow);
    transition: transform 0.2s ease;
}

.album-photo:hover {
    transform: translateY(-2px);
}

.album-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.album-photo figcaption {
    padding: 8px 10px;
}

.album-photo figcaption strong {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-photo figcaption span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--album-muted);
}

.album-photo-manage {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.album-photo-manage img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.album-photo-manage-info {
    padding: 10px;
}

.album-photo-manage-info strong {
    display: block;
    font-size: 13px;
}

.album-photo-manage-info small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.album-photo-manage-actions {
    margin-top: 8px;
}

.album-upload-box {
    background: #f9fafb;
    border: 1px dashed #d6d3d1;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 8px;
}

.album-upload-box h4 {
    margin: 0 0 12px;
    font-size: 15px;
}

.album-empty {
    text-align: center;
    padding: 56px 16px;
    color: var(--album-muted);
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed var(--album-line);
    border-radius: var(--radius-lg);
}

.album-pager {
    margin-top: 24px;
    text-align: center;
}

.album-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(28, 25, 23, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.album-lightbox img {
    max-width: min(96vw, 1000px);
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.album-lightbox-meta {
    margin-top: 14px;
    color: #fff;
    text-align: center;
}

.album-lightbox-meta strong {
    display: block;
    font-size: 15px;
}

.album-lightbox-meta span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.8;
}

.album-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 767px) {
    .album-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .album-card {
        gap: 12px;
        padding: 10px;
    }

    .album-card-cover {
        flex-basis: 80px;
        width: 80px;
        height: 80px;
    }

    .album-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
