/* ================================================================
   Resting Place — Album Landing Page
   Warm cinematic vinyl-sleeve aesthetic
   ================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(160deg, #2d1c0c 0%, #1e1208 40%, #140c05 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Film Grain Overlay ── */
.grain-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
}

/* ── Top Nav ── */
.album-nav {
    padding: 24px 0 0;
}

.nav-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-home:hover {
    color: #d4a574;
}

.nav-home i {
    font-size: 11px;
}

/* ── Page Container ── */
.album-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px 80px;
    position: relative;
}

/* ── Entrance Animations ── */
.entrance {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: calc(var(--i, 0) * 0.15s + 0.2s);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-reveal elements */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: calc(var(--i, 0) * 0.1s);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   HERO
   ================================================================ */
.album-hero {
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
}

/* Pulsing radial glow */
.hero-glow {
    position: absolute;
    top: -20%;
    left: -40%;
    width: 180%;
    height: 140%;
    background: radial-gradient(
        ellipse at 50% 40%,
        rgba(212, 165, 116, 0.1) 0%,
        rgba(180, 120, 60, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ── Album Art ── */
.hero-art {
    margin-bottom: 32px;
}

.hero-art img {
    width: 320px;
    height: 320px;
    border-radius: 12px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.15);
    transition: transform 0.25s ease;
}

.hero-art img:hover {
    transform: scale(1.03);
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 16px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.hero-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(212, 165, 116, 0.55);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 72px;
    color: #d4a574;
    line-height: 1.05;
    margin-bottom: 10px;
    text-shadow:
        0 0 40px rgba(212, 165, 116, 0.3),
        0 2px 12px rgba(139, 69, 19, 0.5);
}

.hero-artist {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 520px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.hero-genres {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.genre-pill {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(212, 165, 116, 0.7);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(212, 165, 116, 0.15);
    background: rgba(212, 165, 116, 0.05);
}

/* ── Countdown Timer ── */
.hero-countdown {
    margin-bottom: 28px;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 14px;
}

.countdown-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-num {
    font-family: 'Inter', monospace;
    font-size: 36px;
    font-weight: 700;
    color: #e8c9a8;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-txt {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 6px;
}

.countdown-sep {
    font-size: 28px;
    font-weight: 300;
    color: rgba(212, 165, 116, 0.3);
    margin-top: -16px;
}

.out-now {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #d4a574;
    text-shadow: 0 0 30px rgba(212, 165, 116, 0.4);
}

/* ── Release Date Shimmer ── */
.hero-release {
    margin-bottom: 30px;
}

.release-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(
        90deg,
        #d4a574 0%,
        #f0d8b8 25%,
        #e8c9a8 50%,
        #f0d8b8 75%,
        #d4a574 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ── Stats Pill ── */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    padding: 12px 28px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 165, 116, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-stats .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.4);
    display: inline-block;
    flex-shrink: 0;
}

/* ================================================================
   STORY
   ================================================================ */
.story-section {
    margin-bottom: 64px;
}

.story-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 18px;
    padding: 36px 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.story-card p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.story-card p:last-child {
    margin-bottom: 0;
}

.story-card em {
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
}

.story-card strong {
    color: #d4a574;
    font-weight: 600;
}

.story-closing {
    color: #d4a574 !important;
    font-weight: 600;
    font-size: 16px !important;
    margin-top: 24px !important;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 165, 116, 0.12);
}

/* ================================================================
   STREAMING BUTTONS
   ================================================================ */
.stream-section {
    text-align: center;
    margin-bottom: 64px;
}

.section-heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 28px;
    font-weight: 500;
}

.stream-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
}

.stream-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.3s ease;
}

/* Shine wipe pseudo-element */
.stream-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%
    );
    transition: left 0.5s ease;
}

.stream-btn:hover::before {
    left: 100%;
}

.stream-btn:hover {
    transform: translateY(-3px);
}

.stream-btn i {
    font-size: 22px;
    position: relative;
    z-index: 1;
}

.stream-btn span {
    position: relative;
    z-index: 1;
}

/* Brand colors + 3-layer glow on hover */
.stream-btn.spotify {
    background: linear-gradient(135deg, #1DB954, #1aa34a);
}
.stream-btn.spotify:hover {
    box-shadow:
        0 8px 30px rgba(29, 185, 84, 0.35),
        0 2px 60px rgba(29, 185, 84, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stream-btn.apple {
    background: linear-gradient(135deg, #fc3c44, #d63039);
}
.stream-btn.apple:hover {
    box-shadow:
        0 8px 30px rgba(252, 60, 68, 0.35),
        0 2px 60px rgba(252, 60, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stream-btn.youtube {
    background: linear-gradient(135deg, #FF0000, #cc0000);
}
.stream-btn.youtube:hover {
    box-shadow:
        0 8px 30px rgba(255, 0, 0, 0.35),
        0 2px 60px rgba(255, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stream-btn.soundcloud {
    background: linear-gradient(135deg, #ff5500, #cc4400);
}
.stream-btn.soundcloud:hover {
    box-shadow:
        0 8px 30px rgba(255, 85, 0, 0.35),
        0 2px 60px rgba(255, 85, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stream-btn.bandcamp {
    background: linear-gradient(135deg, #629aa9, #4a7a87);
    grid-column: 1 / -1;
}
.stream-btn.bandcamp:hover {
    box-shadow:
        0 8px 30px rgba(98, 154, 169, 0.35),
        0 2px 60px rgba(98, 154, 169, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ================================================================
   WATCH
   ================================================================ */
.watch-section {
    text-align: center;
    margin-bottom: 64px;
}

.watch-card {
    max-width: 520px;
    margin: 0 auto;
}

.watch-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.15);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.watch-link:hover {
    background: rgba(255, 0, 0, 0.12);
    transform: translateY(-2px);
}

.watch-link > .fab {
    font-size: 28px;
    color: #ff4444;
    flex-shrink: 0;
}

.watch-text {
    flex: 1;
    text-align: left;
}

.watch-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.watch-sub {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.watch-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

/* ================================================================
   TRACKLIST
   ================================================================ */
.tracklist-section {
    margin-bottom: 60px;
}

.tracklist {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.track-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 24px;
    position: relative;
    transition: background 0.2s ease,
                transform 0.2s ease;
    border-left: 3px solid transparent;

    /* Stagger entrance */
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease,
                background 0.2s ease, border-color 0.2s ease;
    transition-delay: calc(var(--row-index) * 0.04s);
}

/* Alternating row backgrounds */
.track-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

/* Visible state (triggered by IntersectionObserver) — reset delay so hover is instant */
.tracklist-visible .track-row {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Separator */
.track-row + .track-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Hover: warm left accent bar + subtle shift */
.track-row:hover {
    background: rgba(212, 165, 116, 0.06);
    border-left-color: #d4a574;
    transform: translateX(4px);
}

.track-num {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    min-width: 26px;
    text-align: right;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.track-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.track-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(232, 201, 168, 0.15));
    color: #e8c9a8;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.track-key {
    display: block;
    font-size: 12px;
    color: #d4a574;
    margin-top: 4px;
    font-weight: 500;
}

.track-time-sigs {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 3px;
    line-height: 1.5;
}

/* ================================================================
   RECORDING STATS
   ================================================================ */
.numbers-section {
    margin-bottom: 64px;
}

/* Top stats row */
.num-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.num-stat {
    text-align: center;
    padding: 20px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.num-stat.finalized {
    border-color: rgba(212, 165, 116, 0.25);
}

.num-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #e8c9a8;
    line-height: 1;
    margin-bottom: 6px;
}

.num-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.num-detail {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* Session timeline */
.session-timeline {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.08);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.timeline-edge {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.timeline-badge {
    font-size: 11px;
    color: #d4a574;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(212, 165, 116, 0.15);
}

.timeline-track {
    position: relative;
    height: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-bottom: 10px;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #d4a574;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.timeline-dot:hover {
    transform: translate(-50%, -50%) scale(1.6);
    background: #e8c9a8;
}

.timeline-dates {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    font-variant-numeric: tabular-nums;
}

/* Setlist card */
.setlist-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.card-heading {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    padding: 20px 24px 12px;
    font-weight: 600;
}

.setlist-header {
    display: grid;
    grid-template-columns: 32px 1fr 44px 52px 48px 56px;
    gap: 8px;
    padding: 8px 24px 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sl-row {
    display: grid;
    grid-template-columns: 32px 1fr 44px 52px 48px 56px;
    gap: 8px;
    padding: 10px 24px;
    font-size: 13px;
    align-items: center;
    transition: background 0.15s ease;
}

.sl-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.sl-row:hover {
    background: rgba(212, 165, 116, 0.05);
}

.sl-row .sl-num {
    color: rgba(255, 255, 255, 0.25);
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-size: 12px;
}

.sl-row .sl-name {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sl-row .sl-plays {
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.sl-row .sl-best {
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.sl-row .sl-avg {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 600;
}

.sl-avg.high { color: #7dcea0; }
.sl-avg.mid { color: #d4a574; }
.sl-avg.low { color: #e07070; }

.sl-dur {
    color: rgba(255, 255, 255, 0.35);
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
}

.sl-plays,
.sl-best,
.sl-avg {
    text-align: right;
}

.sl-total {
    display: grid;
    grid-template-columns: 32px 1fr 44px 52px 48px 56px;
    padding: 10px 24px 8px;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.sl-total .sl-dur {
    color: #d4a574;
    font-weight: 600;
}

/* ================================================================
   BY THE NUMBERS
   ================================================================ */
.facts-section {
    margin-bottom: 64px;
}

.facts-group {
    margin-bottom: 36px;
}

.facts-group-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4a574;
    margin-bottom: 16px;
    font-weight: 600;
}

.facts-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
    font-style: italic;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.fact {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.fact.wide {
    grid-column: 1 / -1;
}

.fact.highlight {
    border-color: rgba(212, 165, 116, 0.2);
}

.fact.glow-up {
    border-color: rgba(125, 206, 160, 0.2);
}

.fact-val {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #e8c9a8;
    line-height: 1.1;
    margin-bottom: 4px;
}

.fact.glow-up .fact-val {
    color: #7dcea0;
}

.fact-lbl {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin-bottom: 2px;
}

.fact-sub {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.3;
}

/* Time signature split bar */
.ts-bar {
    display: flex;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ts-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.ts-four { background: rgba(212, 165, 116, 0.25); }
.ts-other { background: rgba(125, 160, 206, 0.2); }

.ts-caption {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-bottom: 20px;
}

/* Time signature ranking bars */
.ts-ranking {
    margin-top: 20px;
}

.ts-ranking-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

.ts-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ts-sig {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    min-width: 44px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ts-bar-wrap {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
}

.ts-fill {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.ts-fill.t1 { background: rgba(212, 165, 116, 0.3); }
.ts-fill.t2 { background: rgba(212, 165, 116, 0.2); }
.ts-fill.t3 { background: rgba(212, 165, 116, 0.14); }
.ts-fill.t4 { background: rgba(212, 165, 116, 0.08); }

.ts-pct {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ts-footnote {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    font-style: italic;
}

/* ================================================================
   FOOTER
   ================================================================ */
.album-footer {
    text-align: center;
    padding: 40px 0 20px;
}

.back-link {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.back-link:hover {
    color: #d4a574;
}

.back-link i {
    margin-right: 8px;
}

.copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 16px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .hero-art img {
        width: 260px;
        height: 260px;
    }

    .hero-title {
        font-size: 54px;
    }

    .num-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .num-value {
        font-size: 24px;
    }

    .setlist-header,
    .sl-row {
        grid-template-columns: 28px 1fr 40px 44px 40px 48px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 12px;
    }

    .sl-total {
        grid-template-columns: 28px 1fr 40px 44px 40px 48px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .countdown-num {
        font-size: 28px;
    }

    .countdown-unit {
        min-width: 48px;
    }

    .countdown-sep {
        font-size: 22px;
    }

    .album-hero {
        padding: 80px 16px 48px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-artist {
        font-size: 17px;
    }

    .hero-tagline {
        font-size: 13px;
    }

    .hero-art img {
        width: 220px;
        height: 220px;
    }

    .hero-art {
        margin-bottom: 24px;
    }

    .hero-label {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .num-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .num-stat {
        padding: 14px 10px;
    }

    .num-value {
        font-size: 22px;
    }

    .setlist-header,
    .sl-row {
        grid-template-columns: 24px 1fr 36px 36px 34px 40px;
        gap: 6px;
        padding: 8px 12px;
        font-size: 11px;
    }

    .sl-total {
        grid-template-columns: 24px 1fr 36px 36px 34px 40px;
        gap: 6px;
        padding: 8px 12px;
    }

    .card-heading {
        padding: 16px 12px 10px;
    }

    .facts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fact-val {
        font-size: 18px;
    }

    .session-timeline {
        padding: 16px;
    }

    .timeline-dot {
        width: 6px;
        height: 6px;
    }

    .countdown-num {
        font-size: 24px;
    }

    .countdown-unit {
        min-width: 42px;
    }

    .countdown-sep {
        font-size: 18px;
        margin-top: -12px;
    }

    .countdown-txt {
        font-size: 9px;
    }

    .story-card {
        padding: 28px 22px;
    }

    .story-card p {
        font-size: 14px;
    }

    .story-closing {
        font-size: 15px !important;
    }

    .stream-buttons {
        grid-template-columns: 1fr;
    }

    .stream-btn {
        padding: 16px 20px;
    }

    .track-row {
        padding: 12px 16px;
    }

    .track-name {
        font-size: 14px;
    }

    .track-time-sigs {
        font-size: 10px;
    }

    .hero-stats {
        font-size: 12px;
        padding: 10px 20px;
        gap: 10px;
    }

    .album-page {
        padding: 0 16px 60px;
    }
}

/* ================================================================
   INTERACTIVE TIMELINE TOOLTIPS
   ================================================================ */
.timeline-dot {
    cursor: pointer;
}

.timeline-dot::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 12, 5, 0.95);
    border: 1px solid rgba(212, 165, 116, 0.3);
    color: #e8c9a8;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
    font-family: 'Inter', sans-serif;
}

.timeline-dot:hover::after {
    opacity: 1;
}


/* ================================================================
   MASTERY PROGRESSION CHART
   ================================================================ */
.progression-section {
    margin-bottom: 48px;
}

.chart-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 18px;
    padding: 24px 20px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Song number grid */
.mastery-song-select {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.mastery-song-btn {
    font-size: 12px;
    padding: 6px 0;
    border-radius: 6px;
    border: 1px solid rgba(212, 165, 116, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: center;
}

.mastery-song-btn:hover {
    border-color: rgba(212, 165, 116, 0.3);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(212, 165, 116, 0.06);
}

.mastery-song-btn.active {
    background: rgba(212, 165, 116, 0.15);
    border-color: rgba(212, 165, 116, 0.4);
    color: #e8c9a8;
}

/* Arrangement tabs */
.mastery-arr-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mastery-arr-btn {
    font-size: 12px;
    padding: 5px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.mastery-arr-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
}

.mastery-arr-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.rhythm-disclaimer {
    display: none;
    font-size: 11px;
    color: rgba(212, 165, 116, 0.7);
    background: rgba(212, 165, 116, 0.06);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 6px;
    padding: 6px 12px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.chart-wrap svg {
    width: 100%;
    display: block;
}

.chart-legend {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 6px;
    padding: 0 4px;
}

.chart-summary {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.chart-summary strong {
    color: #7dcea0;
    font-weight: 700;
}

/* ================================================================
   DIFFICULTY SCATTER PLOT
   ================================================================ */
.scatter-section {
    margin-bottom: 48px;
}

.scatter-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 18px;
    padding: 24px 20px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
}

.scatter-container svg {
    width: 100%;
    display: block;
}

.scatter-tooltip {
    position: absolute;
    background: rgba(20, 12, 5, 0.95);
    border: 1px solid rgba(212, 165, 116, 0.3);
    color: #e8c9a8;
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.15s ease;
    line-height: 1.6;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.scatter-tooltip.visible {
    opacity: 1;
}

.scatter-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.scatter-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
}

.scatter-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 600px) {
    .chart-container,
    .scatter-container {
        padding: 20px 14px 14px;
    }

    .mastery-song-select {
        grid-template-columns: repeat(10, 1fr);
        gap: 3px;
    }

    .mastery-song-btn {
        font-size: 11px;
        padding: 5px 0;
    }

    .mastery-arr-tabs {
        gap: 6px;
    }

    .mastery-arr-btn {
        font-size: 11px;
        padding: 4px 12px;
    }
}
