/* =============================================================
   Album detail page — editorial magazine layout
   Pure colors only · no gradients
   ============================================================= */

.album-shell {
    --ink: #2a2f3a;
    --ink-soft: #5b6478;
    --paper: #fbfaf6;
    --rule: #d8d2c4;
    --accent: #c66a4d;
    --accent-soft: #f1d8c8;
    --tag: #ede5d3;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Noto Serif SC', serif;
}

/* ---------- 1. Editorial cover banner ---------- */
.album-cover {
    position: relative;
    width: 100%;
    margin-top: -4.5rem;
    padding: 6rem 1.5rem 3rem;
    background-color: #1a1d24;
    background-size: cover;
    background-position: center;
    color: #f7f4ec;
    overflow: hidden;
}

.album-cover::after {
    /* bottom ink-bleed transition (solid color, no gradient) */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: var(--paper);
    z-index: 1;
}

.album-cover-frame {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    border-left: 2px solid rgba(255, 255, 255, 0.55);
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.album-issue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    letter-spacing: 4px;
    color: #d8c9ad;
    text-transform: uppercase;
}
.album-issue::before {
    content: "";
    width: 28px; height: 1px;
    background: #d8c9ad;
}

.album-headline {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.album-sub {
    font-size: 1rem;
    color: rgba(247, 244, 236, 0.85);
    letter-spacing: 1px;
    max-width: 640px;
    line-height: 1.7;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.82rem;
}
.album-meta .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: #f7f4ec;
    background: rgba(0, 0, 0, 0.18);
    letter-spacing: 1px;
}
.album-meta .meta-chip i { color: #f1d8c8; }

/* ---------- 2. Editor's note + statistics strip ---------- */
.album-overview {
    max-width: 1080px;
    margin: -36px auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 18px;
}

.album-editorial,
.album-stats-card {
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 26px 30px;
    box-shadow: 0 6px 22px rgba(58, 53, 40, 0.08);
}

.album-editorial-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.album-editorial-label::before {
    content: "";
    width: 18px; height: 1px;
    background: var(--accent);
}

.album-editorial-text {
    font-size: 1rem;
    line-height: 1.95;
    color: var(--ink-soft);
    letter-spacing: 0.5px;
    white-space: pre-wrap;
    word-break: break-word;
}

.album-stats-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #1a1d24;
    color: #f7f4ec;
    border-color: #1a1d24;
}
.album-stats-card .stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    letter-spacing: 3px;
    color: #d8c9ad;
    text-transform: uppercase;
}
.album-stats-card .stats-head::after {
    content: "Index";
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    letter-spacing: 4px;
}
.album-stats-card .stats-figure {
    font-size: 3.6rem;
    line-height: 1;
    font-weight: 700;
    color: #f1d8c8;
    letter-spacing: 2px;
}
.album-stats-card .stats-caption {
    font-size: 0.82rem;
    color: rgba(247, 244, 236, 0.7);
    letter-spacing: 1px;
    line-height: 1.7;
}

.album-stats-card .stats-divider {
    border: none;
    border-top: 1px dashed rgba(247, 244, 236, 0.18);
    margin: 4px 0;
}
.album-stats-card .stats-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.album-stats-card .stats-author .a-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f7f4ec;
    letter-spacing: 1px;
}
.album-stats-card .stats-author .a-role {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(247, 244, 236, 0.55);
    text-transform: uppercase;
}

/* ---------- 3. Gallery masonry ---------- */
.album-section {
    max-width: 1080px;
    margin: 60px auto 0;
    padding: 0 1.5rem;
}
.album-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 14px;
    margin-bottom: 28px;
}
.album-section-head h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--ink);
    margin: 0;
}
.album-section-head .section-hint {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--ink-soft);
}

.album-grid {
    column-count: 4;
    column-gap: 18px;
}
.album-tile {
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--rule);
    box-shadow: 0 4px 14px rgba(58, 53, 40, 0.07);
    cursor: zoom-in;
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.album-tile img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.album-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(58, 53, 40, 0.16);
}
.album-tile:hover img { transform: scale(1.04); }

.album-tile .tile-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 8px 12px;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: #f7f4ec;
    background: rgba(26, 29, 36, 0.55);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}
.album-tile:hover .tile-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 4. Footer info card ---------- */
.album-footer {
    max-width: 1080px;
    margin: 60px auto 80px;
    padding: 0 1.5rem;
}
.album-colophon {
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: #ffffff;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    box-shadow: 0 6px 22px rgba(58, 53, 40, 0.06);
}
.album-colophon h4 {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
}
.album-colophon p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--ink-soft);
    letter-spacing: 0.5px;
}
.album-colophon .colophon-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.album-colophon .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--ink);
    color: var(--ink);
    border-radius: 999px;
    font-size: 0.84rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition:
        background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.album-colophon .back-link:hover {
    background: var(--ink);
    color: #fbfaf6;
}

/* ---------- 5. Empty state ---------- */
.album-empty {
    max-width: 720px;
    margin: 80px auto;
    padding: 60px 30px;
    text-align: center;
    border: 1px dashed var(--rule);
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* ---------- 6. Responsive ---------- */
@media (max-width: 992px) {
    .album-overview { grid-template-columns: 1fr; }
    .album-grid { column-count: 3; }
    .album-colophon { grid-template-columns: 1fr 1fr; }
    .album-colophon .colophon-actions { grid-column: span 2; align-items: stretch; }
}
@media (max-width: 720px) {
    .album-cover { padding: 5rem 1.2rem 2.5rem; }
    .album-cover-frame { padding-left: 18px; }
    .album-headline { letter-spacing: 2px; }
    .album-grid { column-count: 2; }
    .album-editorial, .album-stats-card { padding: 22px 22px; }
    .album-colophon { grid-template-columns: 1fr; padding: 22px; }
    .album-colophon .colophon-actions { grid-column: span 1; }
}
@media (max-width: 420px) {
    .album-grid { column-count: 1; }
}
