/**
 * FLIPPIC - 3D Digital Album Stylesheet
 * High-performance, luxury 3D realistic book presentation with physics-based page turns,
 * ambient lighting, dynamic spine depth, responsive glassmorphism control dock,
 * thumbnail filmstrip, and interactive modal dialogs.
 */

:root {
    --album-bg-dark: #080b12;
    --album-bg-card: rgba(18, 24, 38, 0.88);
    --album-gold: #e5b95f;
    --album-gold-light: #f7d58b;
    --album-gold-glow: rgba(229, 185, 95, 0.35);
    --album-accent: #38bdf8;
    --album-text: #f8fafc;
    --album-text-muted: #94a3b8;
    --album-border: rgba(255, 255, 255, 0.1);
    --album-border-gold: rgba(229, 185, 95, 0.3);
    --album-dock-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--album-bg-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--album-text);
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y pinch-zoom;
}

/* ==========================================================================
   THEATRE STAGE & AMBIENT ENVIRONMENT
   ========================================================================== */
.album-theatre {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: radial-gradient(circle at 50% 38%, #172136 0%, #0c1220 50%, #060910 100%);
    overflow: hidden;
}

/* Ambient floor lighting reflection */
.theatre-floor-reflection {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 25vh;
    background: radial-gradient(ellipse at center, rgba(229, 185, 95, 0.08) 0%, rgba(56, 189, 248, 0.04) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   TOP HEADER NAVIGATION BAR
   ========================================================================== */
.album-top-bar {
    position: relative;
    z-index: 100;
    width: 100%;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.85) 0%, rgba(8, 11, 18, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--album-border);
    border-radius: 999px;
    color: var(--album-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-bar-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

.top-bar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 60%;
}

.album-title-heading {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.album-date-badge {
    font-size: 12px;
    color: var(--album-text-muted);
    margin-top: 2px;
}

.album-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(229, 185, 95, 0.12);
    border: 1px solid var(--album-border-gold);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--album-gold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.album-rating-pill:hover {
    background: rgba(229, 185, 95, 0.22);
    transform: scale(1.03);
}

/* ==========================================================================
   3D BOOK VIEWPORT & STAGE WRAPPER
   ========================================================================== */
.album-viewport-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2500px;
    padding: 10px 40px calc(var(--album-dock-height) + 20px) 40px;
    z-index: 10;
}

.album-3d-stage {
    position: relative;
    width: 1100px;
    height: 367px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2-Page Spread Viewports (Desktop, Tablet, Landscape Mobile): Centering Shift */
.album-3d-stage.stage--front {
    transform: translateX(-25%);
}
.album-3d-stage.stage--open {
    transform: translateX(0);
}
.album-3d-stage.stage--back {
    transform: translateX(25%);
}

/* Single-Page Portrait on Mobile Phones: Always Zero Offset */
@media (max-width: 768px) and (orientation: portrait) {
    .album-3d-stage,
    .album-3d-stage.stage--front,
    .album-3d-stage.stage--open,
    .album-3d-stage.stage--back {
        transform: translateX(0) !important;
        margin: 0 auto !important;
    }
}

.flipbook-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    cursor: grab;
}

.flipbook-container:active {
    cursor: grabbing;
}

/* Base Page Block — High-DPI Crisp Rendering */
.book-page,
.book-page-fill,
.spread-half-pane,
.book-cover,
.stf__item,
.stf__block {
    image-rendering: auto;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.book-page {
    position: relative;
    background-color: #0b0f19;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    touch-action: manipulation;
}

.book-page-fill {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
}

.single-page-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Panoramic Spreads (Continuous double-page photo sliced across left & right) */
.spread-panoramic-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0c101c;
}

.spread-half-pane {
    position: absolute;
    top: 0;
    height: 100%;
    width: 200%; /* Exactly double page width */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.spread-half--left {
    left: 0; /* Left 50% */
}

.spread-half--right {
    left: -100%; /* Right 50% shifted into frame */
}

/* Luxury Spine Shading / Book Crease Gutter */
.spine-shading {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38px;
    pointer-events: none;
    z-index: 6;
}

.spine-shading--right {
    right: 0;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.16) 70%, rgba(0, 0, 0, 0.28) 100%);
}

.spine-shading--left {
    left: 0;
    background: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.16) 70%, rgba(0, 0, 0, 0.28) 100%);
}

/* Luxury White / Ivory Backside & Endpaper */
.cover-inside.--white-backside {
    background: #fbf9f4;
    color: #292524;
}

.inside-page-body {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: radial-gradient(circle at center, #ffffff 0%, #f7f3ea 100%);
}

.inside-paper-texture {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 8px 8px;
    pointer-events: none;
}

.inside-page-crest {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 80%;
}

.atelier-monogram {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7d58b 0%, #d4a03b 100%);
    color: #1a150b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(212, 160, 59, 0.35);
    margin-bottom: 16px;
}

.atelier-monogram.small {
    width: 36px;
    height: 36px;
    font-size: 15px;
    margin-bottom: 12px;
}

.inside-album-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #1c1917;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.inside-gold-divider {
    color: #d4a03b;
    font-size: 14px;
    margin: 8px 0;
}

.inside-album-meta {
    font-size: 12px;
    color: #78716c;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 500;
}

.inside-date {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    color: #a8a29e;
    letter-spacing: 0.5px;
}

.inside-end-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: #1c1917;
}

.inside-tagline {
    font-size: 11px;
    color: #78716c;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* Rigid Hardcover board treatment for front and back covers */
.book-page.cover-front,
.book-page.cover-back {
    background-color: #14100c;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Stiff photographic cardstock board treatment for all inner pages */
.book-page:not(.cover-front):not(.cover-back) {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Hide flimsy paper corner peel hints on rigid hard board pages */
.book-page[data-density="hard"] .page-corner-hint,
.album-theatre.theme-real-album .page-corner-hint {
    display: none !important;
}

.cover-lux-emboss {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(229, 185, 95, 0.4);
    box-shadow: inset 0 0 8px rgba(229, 185, 95, 0.2);
    pointer-events: none;
    border-radius: 4px;
}

.book-page.cover-front {
    border-radius: 0 10px 10px 0;
}

.book-page.cover-back {
    border-radius: 10px 0 0 10px;
}

/* Realistic inner page edge shadows */
.book-page.--left {
    box-shadow: inset -6px 0 14px rgba(0, 0, 0, 0.04);
}

.book-page.--right {
    box-shadow: inset 6px 0 14px rgba(0, 0, 0, 0.04);
}

/* Page Corner Turn Indicator Accent */
.page-corner-hint {
    position: absolute;
    bottom: 8px;
    width: 28px;
    height: 28px;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.25s ease;
}

.book-page.--right .page-corner-hint {
    right: 8px;
    background: linear-gradient(135deg, transparent 50%, rgba(229, 185, 95, 0.5) 50%);
    border-bottom-right-radius: 6px;
}

.book-page.--left .page-corner-hint {
    left: 8px;
    background: linear-gradient(225deg, transparent 50%, rgba(229, 185, 95, 0.5) 50%);
    border-bottom-left-radius: 6px;
}

.book-page:hover .page-corner-hint {
    opacity: 0.8;
}

/* Page Number Stamp */
.page-num-stamp {
    position: absolute;
    bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.45);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 5;
}

.book-page.--right .page-num-stamp {
    right: 14px;
}

.book-page.--left .page-num-stamp {
    left: 14px;
}

/* ==========================================================================
   EDGE FLIP BUTTONS (Left & Right Chevron Overlays)
   ========================================================================== */
.album-nav-edge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid var(--album-border);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.album-nav-edge:hover:not(:disabled) {
    background: var(--album-gold);
    color: #0b0f19;
    border-color: var(--album-gold);
    box-shadow: 0 0 20px var(--album-gold-glow);
    transform: translateY(-50%) scale(1.1);
}

.album-nav-edge:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.album-nav-edge.nav-prev {
    left: 16px;
}

.album-nav-edge.nav-next {
    right: 16px;
}

/* ==========================================================================
   BOTTOM FLOATING LUXURY DOCK
   ========================================================================== */
.album-dock {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    height: var(--album-dock-height);
    background: var(--album-bg-card);
    border: 1px solid var(--album-border-gold);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(229, 185, 95, 0.15);
    border-radius: 999px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

/* Dock Action Tool Buttons */
.dock-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--album-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.dock-btn.active {
    background: var(--album-gold);
    color: #0b0f19;
    border-color: var(--album-gold);
    box-shadow: 0 0 14px var(--album-gold-glow);
}

/* Tooltip on Dock Buttons */
.dock-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0b0f19;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 120;
}

.dock-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Dock Divider */
.dock-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

/* Scrubber / Progress Slider */
.dock-scrubber-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
}

.album-scrubber-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.album-scrubber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--album-gold);
    box-shadow: 0 0 8px var(--album-gold-glow);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.album-scrubber-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.dock-page-counter {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--album-text-muted);
    min-width: 75px;
    text-align: center;
}

.dock-page-counter span {
    color: var(--album-gold);
}

/* Audio Visualizer Waves & Idle Music Icon */
.music-idle-icon {
    font-size: 15px;
    color: currentColor;
    display: inline-block;
    transition: transform 0.2s ease;
}

.dock-btn:hover .music-idle-icon {
    transform: scale(1.15);
}

.dock-btn.playing .music-idle-icon {
    display: none !important;
}

.sound-waves {
    display: none;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
}

.dock-btn.playing .sound-waves {
    display: inline-flex;
}

.sound-bar {
    width: 2.5px;
    background: currentColor;
    border-radius: 1px;
    transition: height 0.2s ease;
}

.dock-btn.playing .sound-bar:nth-child(1) { animation: waveAnim 0.7s infinite alternate ease-in-out; }
.dock-btn.playing .sound-bar:nth-child(2) { animation: waveAnim 0.9s infinite alternate ease-in-out 0.2s; }
.dock-btn.playing .sound-bar:nth-child(3) { animation: waveAnim 0.6s infinite alternate ease-in-out 0.4s; }

@keyframes waveAnim {
    0% { height: 3px; }
    100% { height: 14px; }
}

/* ==========================================================================
   INTERACTIVE THUMBNAILS DRAWER (FILMSTRIP)
   ========================================================================== */
.album-filmstrip-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.96);
    border-top: 1px solid var(--album-border-gold);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 150;
    padding: 18px 24px 24px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-filmstrip-drawer.open {
    transform: translateY(0);
}

.filmstrip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.filmstrip-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--album-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.filmstrip-close-btn {
    background: transparent;
    border: none;
    color: var(--album-text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filmstrip-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.filmstrip-scroll-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.filmstrip-scroll-row::-webkit-scrollbar {
    height: 6px;
}

.filmstrip-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(229, 185, 95, 0.3);
    border-radius: 999px;
}

.filmstrip-item {
    position: relative;
    flex: 0 0 auto;
    width: 90px;
    aspect-ratio: 1.45;
    background: #11141d;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.filmstrip-item:hover {
    border-color: var(--album-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.filmstrip-item.active {
    border-color: var(--album-gold);
    box-shadow: 0 0 16px var(--album-gold-glow);
    transform: scale(1.05);
}

.filmstrip-item-tag {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 3px;
}

/* ==========================================================================
   HIGH-RESOLUTION FULL VIEW INSPECTOR MODAL
   ========================================================================== */
.album-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

.album-zoom-overlay.active {
    display: flex;
    animation: fadeInZoom 0.25s ease-out;
}

@keyframes fadeInZoom {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Top bar with counter & close button */
.zoom-top-bar {
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 320;
    pointer-events: none;
}

.zoom-counter {
    pointer-events: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--album-gold);
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid var(--album-border);
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.zoom-close-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid var(--album-border);
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.zoom-close-btn:hover {
    background: var(--album-gold);
    color: #0b0f19;
    border-color: var(--album-gold);
    transform: scale(1.08);
}

/* Side navigation buttons */
.zoom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid var(--album-border);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 310;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.zoom-nav-btn:hover:not(:disabled) {
    background: var(--album-gold);
    color: #0b0f19;
    border-color: var(--album-gold);
    box-shadow: 0 0 20px var(--album-gold-glow);
    transform: translateY(-50%) scale(1.1);
}

.zoom-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.zoom-prev-btn {
    left: 24px;
}

.zoom-next-btn {
    right: 24px;
}

/* Image container and responsive picture */
.zoom-image-container {
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 305;
}

.zoom-viewport-image {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255,255,255,0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
    .zoom-image-container {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 140px);
    }
    .zoom-prev-btn { left: 10px; width: 42px; height: 42px; font-size: 16px; }
    .zoom-next-btn { right: 10px; width: 42px; height: 42px; font-size: 16px; }
}

/* ==========================================================================
   MODAL DIALOGS (Share, Review, QR)
   ========================================================================== */
.album-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.album-modal-backdrop.active {
    display: flex;
    animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.album-modal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #111726;
    border: 1px solid var(--album-border-gold);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 185, 95, 0.12);
    padding: 28px;
    color: #ffffff;
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-icon {
    background: transparent;
    border: none;
    color: var(--album-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
}

.modal-close-icon:hover {
    color: #ffffff;
}

/* QR Code Container */
.qr-code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    margin: 16px auto;
    width: 200px;
    height: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.share-link-input-group {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.share-link-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
}

.share-link-input:focus {
    border-color: var(--album-gold);
}

.share-copy-btn {
    background: var(--album-gold);
    color: #0b0f19;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-copy-btn:hover {
    background: var(--album-gold-light);
    transform: translateY(-1px);
}

/* Review Stars Form */
.review-stars-picker {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 28px;
    color: #475569;
    margin: 14px 0 20px;
    cursor: pointer;
}

.review-stars-picker .star {
    transition: color 0.15s ease, transform 0.15s ease;
}

.review-stars-picker .star:hover,
.review-stars-picker .star.selected {
    color: #f59e0b;
    transform: scale(1.15);
}

.review-form-input, .review-form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    font-family: inherit;
}

.review-form-textarea {
    min-height: 90px;
    resize: vertical;
}

.review-form-input:focus, .review-form-textarea:focus {
    border-color: var(--album-gold);
}

.review-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--album-gold) 0%, #ca9637 100%);
    border: none;
    border-radius: 10px;
    color: #0b0f19;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--album-gold-glow);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & ROTATE PROMPT
   ========================================================================== */
.album-rotate-hint {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 110;
    background: rgba(18, 24, 38, 0.92);
    border: 1px solid var(--album-border-gold);
    color: var(--album-gold-light);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: bounceSlow 3s infinite;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

.album-rotate-hint.audio-playing {
    border-color: #38bdf8 !important;
    color: #e0f2fe !important;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.5), 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.album-rotate-hint.audio-playing .rotate-hint-sound-badge i {
    animation: pulseAudioSpeaker 1.2s infinite ease-in-out;
    color: #38bdf8;
}

@keyframes pulseAudioSpeaker {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.35); opacity: 1; }
}

@media (max-width: 768px) {
    .album-top-bar {
        padding: 8px 14px;
    }

    .album-title-heading {
        font-size: 14px;
        max-width: 160px;
    }

    .album-date-badge {
        display: none;
    }

    .album-dock {
        width: calc(100% - 24px);
        justify-content: space-between;
        padding: 4px 10px;
        gap: 6px;
    }

    .dock-scrubber-wrap {
        display: none;
    }

    .album-nav-edge {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .album-nav-edge.nav-prev { left: 8px; }
    .album-nav-edge.nav-next { right: 8px; }

    @media (orientation: portrait) {
        .album-rotate-hint {
            display: inline-flex;
        }
    }
}

/* ==========================================================================
   ADVANCED FLIPIX-INSPIRED LUXURY SUITE & MINIMAL UI ENHANCEMENTS
   ========================================================================== */

/* 1. HTML5 Canvas Particle Engine */
#particleCanvas.album-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
}

/* 2. Zen Focus Mode */
.zen-mode .album-top-bar,
.zen-mode .album-action-rail,
.zen-mode .album-dock-container {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.4s ease !important;
}

.zen-exit-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--album-gold);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--album-gold-light);
    z-index: 300;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--album-gold-glow);
    transition: all 0.25s ease;
}

.zen-exit-pill:hover {
    transform: translateX(-50%) translateY(-2px);
    background: rgba(229, 185, 95, 0.2);
    color: #ffffff;
}

.zen-mode .zen-exit-pill {
    display: inline-flex;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 3. Minimal Top Studio Branding Bar */
.studio-branding-chip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--album-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 12px var(--album-gold-glow);
    flex-shrink: 0;
}

.studio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.studio-initials {
    font-size: 13px;
    font-weight: 700;
    color: var(--album-gold);
    letter-spacing: 0.5px;
}

.studio-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.studio-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.verified-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verified-badge-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.top-bar-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
}

.top-bar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    color: #ffffff;
}

.top-bar-btn.exit-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.top-bar-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.top-bar-brand-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(229, 185, 95, 0.5);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(229, 185, 95, 0.25);
}

.top-bar-brand-img {
    height: 24px;
    width: auto;
    max-width: 95px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    transition: filter 0.25s ease, transform 0.25s ease;
}

.top-bar-brand-img.brand-img-desktop {
    display: block;
}

.top-bar-brand-img.brand-img-mobile {
    display: none;
}

.top-bar-brand-link:hover .top-bar-brand-img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* 4. Floating Right Action Rail */
.album-action-rail {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(11, 15, 25, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 10px 7px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.rail-menu-toggle-btn {
    display: none !important;
}

.rail-items-cluster {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rail-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.rail-btn:hover {
    background: rgba(229, 185, 95, 0.2);
    color: var(--album-gold);
    transform: scale(1.08);
}

.rail-btn.active {
    background: var(--album-gold);
    color: #0b0f19;
    box-shadow: 0 0 14px var(--album-gold-glow);
}

.rail-btn.playing {
    background: rgba(229, 185, 95, 0.25);
    color: var(--album-gold);
    animation: pulseSlow 2s infinite;
}

.rail-btn-whatsapp {
    color: #25D366;
}

.rail-btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    color: #25D366;
}

.rail-tooltip {
    position: absolute;
    right: 52px;
    background: rgba(11, 15, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.rail-btn:hover .rail-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* 5. Floating Bottom Dual-Pill Dock */
.album-dock-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.dock-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 15px rgba(0, 0, 0, 0.2);
}

.dock-item-btn {
    position: relative;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dock-item-btn:hover {
    color: var(--album-gold);
    background: rgba(255, 255, 255, 0.08);
}

.dock-item-btn.active {
    color: var(--album-gold);
}

.dock-item-btn.like-pill-btn.liked {
    color: #ef4444;
}

.dock-item-btn.like-pill-btn.liked #likeHeartIcon {
    color: #ef4444 !important;
}

/* Tooltips for Dock Action & Jump Buttons */
.dock-item-btn[data-tooltip]::after,
.jump-badge[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(11, 15, 25, 0.95);
    border: 1px solid var(--album-border-gold);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dock-item-btn[data-tooltip]:hover::after,
.jump-badge[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Strictly Single-Line Rating Pill */
.dock-item-btn.rating-pill-btn {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.dock-item-btn.rating-pill-btn span {
    white-space: nowrap !important;
    display: inline-block !important;
}

.dock-item-btn.rating-pill-btn .rating-number {
    font-weight: 700;
    color: #ffffff;
}

.dock-item-btn.rating-pill-btn .rating-count {
    font-size: 11px;
    color: #94a3b8;
}

.dock-item-stat {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    white-space: nowrap;
}

.dock-pill-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 2px;
}

.jump-badge {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--album-gold-light);
}

.jump-badge:hover {
    background: rgba(229, 185, 95, 0.2);
    border-color: var(--album-gold);
    color: #ffffff;
}

.dock-scrubber-slot {
    width: 110px;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.dock-slider {
    width: 100%;
    height: 4px;
    accent-color: var(--album-gold);
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.dock-slider:hover {
    opacity: 1;
}

.dock-counter-slot {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    min-width: 75px;
    text-align: center;
    white-space: nowrap;
}

.star-gold {
    color: #f59e0b;
}

/* Interactive Like Pulsing Effect */
@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.heart-popped {
    animation: heartPop 0.4s ease;
    color: #ef4444 !important;
}

/* 6. Slide-Over Customization Drawer */
.customizer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.customizer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.customizer-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 92vw;
    height: 100vh;
    background: #0b0f19;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 210;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.7);
}

.customizer-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.drawer-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.drawer-content {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}

.drawer-section {
    margin-bottom: 26px;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--album-gold);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Themes Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.theme-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-card.active {
    border-color: var(--album-gold);
    background: rgba(229, 185, 95, 0.12);
    color: var(--album-gold-light);
    box-shadow: 0 0 12px var(--album-gold-glow);
}

.theme-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.swatch-standard { background: linear-gradient(135deg, #172136, #060910); }
.swatch-real-album { background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 45%, #334155 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.swatch-classic { background: linear-gradient(135deg, #2a2010, #090704); }
.swatch-premium { background: linear-gradient(135deg, #1f1f23, #040405); }
.swatch-sapphire { background: linear-gradient(135deg, #0f2347, #030712); }
.swatch-emerald { background: linear-gradient(135deg, #0c2a1e, #020a07); }
.swatch-ruby { background: linear-gradient(135deg, #2e0e18, #0a0305); }

/* FX Grid */
.fx-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.fx-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fx-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fx-card.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Photographic Filters Grid */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.filter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.filter-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-card.active {
    border-color: var(--album-gold);
    background: rgba(229, 185, 95, 0.14);
    color: var(--album-gold-light);
    box-shadow: 0 0 10px var(--album-gold-glow);
}

.filter-preview {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
}

.filter-prev-orig { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.filter-prev-bw { background: linear-gradient(135deg, #ffffff, #000000); }
.filter-prev-sepia { background: linear-gradient(135deg, #d97706, #78350f); }
.filter-prev-cine { background: linear-gradient(135deg, #0284c7, #f97316); }
.filter-prev-vivid { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.filter-prev-noir { background: linear-gradient(135deg, #64748b, #0f172a); }

/* Photographic Filter Transformations Applied to Album Pages */
.filter-original .book-page-fill, .filter-original .spread-half-pane { filter: none !important; }
.filter-bw .book-page-fill, .filter-bw .spread-half-pane { filter: grayscale(100%) contrast(115%) !important; }
.filter-sepia .book-page-fill, .filter-sepia .spread-half-pane { filter: sepia(65%) contrast(105%) brightness(96%) !important; }
.filter-cinematic .book-page-fill, .filter-cinematic .spread-half-pane { filter: contrast(112%) saturate(120%) hue-rotate(-8deg) !important; }
.filter-vivid .book-page-fill, .filter-vivid .spread-half-pane { filter: saturate(135%) contrast(106%) brightness(102%) !important; }
.filter-noir .book-page-fill, .filter-noir .spread-half-pane { filter: contrast(130%) grayscale(45%) brightness(88%) !important; }

/* 7 Luxury Themes Transformations */
.album-theatre.theme-standard {
    background: radial-gradient(circle at 50% 38%, #172136 0%, #0c1220 50%, #060910 100%) !important;
}

/* REAL ALBUM: Realistic Physical 3D Book View & Studio Atelier Surface */
.album-theatre.theme-real-album {
    background: radial-gradient(ellipse at 50% 38%, #283244 0%, #161d2a 50%, #0a0d14 100%) !important;
}

.album-theatre.theme-real-album .ambient-floor-glow {
    background: radial-gradient(ellipse at 50% 46%, rgba(255, 255, 255, 0.1) 0%, rgba(148, 163, 184, 0.04) 40%, transparent 75%) !important;
}

/* Real Album Book Presentation Stage */
.album-theatre.theme-real-album .album-3d-stage {
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.20));
}

/* Flush Stacked Page Leaves (Flanking book edges: 0px gap, 100% exact page height) */
.book-page-stack-left {
    display: none;
    position: absolute;
    right: 100%; /* Touches flipbook left edge with 0px gap */
    top: 0;      /* Exactly aligned with page top */
    bottom: 0;   /* Exactly aligned with page bottom */
    height: 100%;/* EXACT SAME HEIGHT AS THE PAGE */
    width: 0px;
    pointer-events: none;
    z-index: 6;
    background: repeating-linear-gradient(
        to left,
        #ffffff 0px,
        #f8fafc 1px,
        #e2e8f0 2px,
        #cbd5e1 3px
    );
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        inset 1px 0 1px rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1px 0 0 1px;
    transition: width 0.3s ease;
}

.book-page-stack-right {
    display: none;
    position: absolute;
    left: 100%;  /* Touches flipbook right edge with 0px gap */
    top: 0;      /* Exactly aligned with page top */
    bottom: 0;   /* Exactly aligned with page bottom */
    height: 100%;/* EXACT SAME HEIGHT AS THE PAGE */
    width: 0px;
    pointer-events: none;
    z-index: 6;
    background: repeating-linear-gradient(
        to right,
        #ffffff 0px,
        #f8fafc 1px,
        #e2e8f0 2px,
        #cbd5e1 3px
    );
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        inset -1px 0 1px rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0 1px 1px 0;
    transition: width 0.3s ease;
}

@media (max-width: 768px) and (orientation: portrait) {
    .book-page-stack-left {
        display: none !important;
    }
    .book-page-stack-right {
        max-width: 4px !important;
    }
}

/* Page-Flip Dynamic Turning Shadow Opacity Softening */
.stf__outerShadow,
.stf__innerShadow,
.stf__hardShadow,
.stf__hardInnerShadow {
    opacity: 0.22 !important;
}

/* Subtle, Transparent Center Valley Shading & Page Arch Highlights */
.spine-shading--right {
    right: 0;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.04) 60%, rgba(0, 0, 0, 0.12) 100%) !important;
}

.spine-shading--left {
    left: 0;
    background: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.04) 60%, rgba(0, 0, 0, 0.12) 100%) !important;
}

.album-theatre.theme-real-album .book-page.--left .spine-shading--right {
    width: 38px !important;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.02) 40%,
        rgba(0, 0, 0, 0.06) 75%,
        rgba(0, 0, 0, 0.15) 100%
    ) !important;
}

.album-theatre.theme-real-album .book-page.--right .spine-shading--left {
    width: 38px !important;
    background: linear-gradient(
        to left,
        transparent 0%,
        rgba(0, 0, 0, 0.02) 40%,
        rgba(0, 0, 0, 0.06) 75%,
        rgba(0, 0, 0, 0.15) 100%
    ) !important;
}

.album-theatre.theme-real-album .book-page.--left::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.03) 0%,
        transparent 14px,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 55%,
        transparent 100%
    );
}

.album-theatre.theme-real-album .book-page.--right::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.03) 0%,
        transparent 14px,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 55%,
        transparent 100%
    );
}

.album-theatre.theme-real-album .book-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    box-shadow: 
        inset 0 2px 4px -2px rgba(0, 0, 0, 0.05),
        inset 0 -2px 4px -2px rgba(0, 0, 0, 0.08) !important;
}

.album-theatre.theme-real-album .book-page.--left {
    border-radius: 4px 0 0 4px;
}
.album-theatre.theme-real-album .book-page.--right {
    border-radius: 0 4px 4px 0;
}
.album-theatre.theme-real-album .cover-front {
    border-radius: 0 8px 8px 0 !important;
}
.album-theatre.theme-real-album .cover-back {
    border-radius: 8px 0 0 8px !important;
}

.album-theatre.theme-classic {
    background: radial-gradient(circle at 50% 38%, #2a2010 0%, #171208 50%, #090704 100%) !important;
}

.album-theatre.theme-premium {
    background: radial-gradient(circle at 50% 38%, #141416 0%, #0a0a0c 50%, #030304 100%) !important;
}

.album-theatre.theme-sapphire {
    background: radial-gradient(circle at 50% 38%, #0f2347 0%, #081226 50%, #030712 100%) !important;
}

.album-theatre.theme-emerald {
    background: radial-gradient(circle at 50% 38%, #0c2a1e 0%, #071711 50%, #020a07 100%) !important;
}

.album-theatre.theme-ruby {
    background: radial-gradient(circle at 50% 38%, #2e0e18 0%, #1a080d 50%, #0a0305 100%) !important;
}

/* Atelier Studio Profile Card */
.atelier-profile-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(229, 185, 95, 0.25);
    border-radius: 12px;
    padding: 16px;
}

.atelier-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.atelier-avatar-lg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--album-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    overflow: hidden;
    color: var(--album-gold);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.atelier-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atelier-card-meta h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}

.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.atelier-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

.btn-atelier-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px;
    background: #25D366;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-atelier-whatsapp:hover {
    background: #1ebd59;
    color: #ffffff;
    transform: translateY(-1px);
}

/* 7. Floating Mini Music Player Card */
.music-player-card {
    position: fixed;
    bottom: 95px;
    right: 22px;
    width: 290px;
    background: rgba(15, 20, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--album-border-gold);
    border-radius: 16px;
    padding: 16px;
    z-index: 120;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px var(--album-gold-glow);
    display: none;
}

.music-player-card.active {
    display: block;
    animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.music-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.music-disc-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.music-vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #000;
    box-shadow: 0 0 0 2px var(--album-gold);
}

@keyframes spinVinyl {
    100% { transform: rotate(360deg); }
}

.music-vinyl-disc.spinning {
    animation: spinVinyl 6s linear infinite;
}

.music-track-info {
    flex: 1;
    overflow: hidden;
}

.music-track-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--album-gold);
}

.music-track-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.music-time-display {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.music-card-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px;
}

.music-card-close:hover {
    color: #ffffff;
}

.music-scrubber-row {
    margin-bottom: 12px;
}

.music-progress-slider {
    width: 100%;
    height: 4px;
    accent-color: var(--album-gold);
    cursor: pointer;
}

.music-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.music-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--album-gold);
    border: none;
    color: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.music-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px var(--album-gold-glow);
}

.music-volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.music-volume-slider {
    width: 70px;
    height: 4px;
    accent-color: var(--album-gold);
    cursor: pointer;
}

/* 8. Trust & Verification Modal */
.trust-modal-card {
    max-width: 440px;
}

.trust-badge-large {
    text-align: center;
    padding: 16px;
    background: rgba(229, 185, 95, 0.08);
    border: 1px solid var(--album-border-gold);
    border-radius: 12px;
    margin-bottom: 20px;
}

.trust-gem-icon {
    font-size: 28px;
    color: var(--album-gold);
    margin-bottom: 8px;
}

.trust-badge-large h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.trust-badge-large p {
    font-size: 12px;
    color: var(--album-gold-light);
}

.trust-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trust-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-feature-item i {
    font-size: 18px;
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

.trust-feature-item strong {
    display: block;
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 2px;
}

.trust-feature-item span {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .album-top-bar {
        padding: 8px 12px;
        gap: 8px;
    }

    .studio-branding-chip {
        gap: 8px;
    }

    .studio-avatar {
        width: 34px;
        height: 34px;
    }

    .studio-name {
        font-size: 11px;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .verified-badge-btn {
        font-size: 9px;
        padding: 1px 6px;
    }

    .top-bar-center {
        display: none;
    }

    .top-bar-cta span {
        display: none;
    }

    .top-bar-cta {
        width: 34px;
        height: 34px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .top-bar-btn.exit-btn {
        width: 34px;
        height: 34px;
    }

    .top-bar-brand-link {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.22);
    }
    .top-bar-brand-img.brand-img-desktop {
        display: none !important;
    }
    .top-bar-brand-img.brand-img-mobile {
        display: block !important;
        width: 26px;
        height: 26px;
        max-width: 26px;
        object-fit: contain;
    }

    .album-rotate-hint {
        top: 68px;
        font-size: 11px;
        padding: 5px 14px;
    }

    .album-dock-container {
        flex-direction: column;
        gap: 8px;
        bottom: 12px;
        width: calc(100% - 24px);
    }

    .dock-pill {
        width: 100%;
        justify-content: space-between;
        padding: 5px 12px;
    }

    .dock-scrubber-slot {
        width: 60px;
    }

    .album-action-rail {
        position: fixed !important;
        right: 14px !important;
        top: 68px !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        z-index: 120 !important;
    }

    .rail-menu-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: rgba(11, 15, 25, 0.92) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1.5px solid var(--album-gold) !important;
        color: #ffffff !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
        cursor: pointer;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
    }

    .rail-menu-toggle-btn:hover,
    .album-action-rail.expanded .rail-menu-toggle-btn {
        transform: scale(1.08);
        background: var(--album-gold) !important;
        color: #0b0f19 !important;
    }

    .rail-items-cluster {
        display: none !important;
        flex-direction: column;
        gap: 8px;
        position: absolute;
        top: 48px;
        right: 0;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(229, 185, 95, 0.4);
        border-radius: 20px;
        padding: 10px 8px;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
        z-index: 1000;
    }

    .album-action-rail.expanded .rail-items-cluster {
        display: flex !important;
        animation: railFadeSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes railFadeSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .rail-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .music-player-card {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 110px;
    }
}

/* Tablet Rail Collapse Support (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .album-action-rail {
        position: fixed !important;
        right: 16px !important;
        top: 74px !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        z-index: 120 !important;
    }

    .rail-menu-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background: rgba(11, 15, 25, 0.92) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1.5px solid var(--album-gold) !important;
        color: #ffffff !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
        cursor: pointer;
    }

    .rail-items-cluster {
        display: none !important;
        flex-direction: column;
        gap: 8px;
        position: absolute;
        top: 52px;
        right: 0;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(229, 185, 95, 0.4);
        border-radius: 20px;
        padding: 10px 8px;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
        z-index: 1000;
    }

    .album-action-rail.expanded .rail-items-cluster {
        display: flex !important;
    }
}

/* Desktop Action Rail Enforcement (Never show mobile hamburger toggle) */
@media (min-width: 1025px) {
    .rail-menu-toggle-btn {
        display: none !important;
    }
    .album-action-rail {
        display: flex !important;
        flex-direction: column !important;
    }
    .rail-items-cluster {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Landscape Mobile & Compact Viewports Architecture (Max-Height: 550px) */
@media (orientation: landscape) and (max-height: 550px), (max-height: 520px) and (min-width: 480px) {
    .album-theatre {
        justify-content: space-between !important;
        overflow: hidden !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    /* Ultra-compact top bar in landscape */
    .album-top-bar {
        padding: 4px 16px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        position: relative !important;
        z-index: 100 !important;
        background: linear-gradient(180deg, rgba(8, 11, 18, 0.95) 0%, rgba(8, 11, 18, 0.4) 100%) !important;
    }
    .studio-branding-chip {
        gap: 6px !important;
    }
    .studio-avatar {
        width: 26px !important;
        height: 26px !important;
    }
    .studio-name {
        font-size: 11px !important;
        max-width: 130px !important;
    }
    .verified-badge-btn {
        font-size: 8px !important;
        padding: 1px 5px !important;
    }
    .top-bar-center {
        display: none !important;
    }
    .top-bar-cta {
        height: 28px !important;
        padding: 2px 10px !important;
        font-size: 10.5px !important;
    }
    .top-bar-cta span {
        display: inline !important;
    }
    .top-bar-btn.exit-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 10.5px !important;
    }
    .top-bar-brand-link {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
    }
    .top-bar-brand-img.brand-img-desktop {
        display: none !important;
    }
    .top-bar-brand-img.brand-img-mobile {
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        object-fit: contain !important;
    }
    .album-rotate-hint {
        display: none !important;
    }

    /* Stage wrapper fills entire middle region between top bar and dock */
    .album-viewport-wrapper {
        position: relative !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-height: 0 !important;
        height: calc(100vh - 80px) !important;
        height: calc(100dvh - 80px) !important;
        padding: 0 20px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Edge arrows stay compact and pinned */
    .album-nav-edge {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    .album-nav-edge.nav-prev { left: 6px !important; }
    .album-nav-edge.nav-next { right: 6px !important; }

    /* Bottom Control Dock: Single horizontal row, never stacked */
    .album-dock-container {
        position: fixed !important;
        bottom: 6px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: row !important;
        gap: 6px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        z-index: 95 !important;
    }
    .dock-pill {
        height: 32px !important;
        padding: 2px 8px !important;
        width: auto !important;
        gap: 6px !important;
    }
    .dock-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
    .dock-page-counter {
        font-size: 10px !important;
        padding: 0 4px !important;
    }
    .dock-scrubber-slot {
        width: 50px !important;
    }
    .album-rating-pill {
        padding: 1px 6px !important;
        font-size: 10px !important;
    }
    .dock-social-stat {
        font-size: 10px !important;
    }

    /* Mobile Landscape Floating Action Rail */
    .album-action-rail {
        position: fixed !important;
        top: 46px !important;
        right: 10px !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        z-index: 120 !important;
    }
    .rail-menu-toggle-btn {
        display: flex !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
    }
    .rail-items-cluster {
        top: 38px !important;
        right: 0 !important;
        padding: 8px 6px !important;
        gap: 6px !important;
    }
    .rail-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
    }
}

@media (orientation: landscape) and (max-height: 550px) and (max-width: 680px) {
    /* On narrow landscape mobile screens (< 680px), hide social stats pill so navigation controls fit perfectly */
    .dock-pill-stats {
        display: none !important;
    }
}

/* Pseudo-Fullscreen Viewport Lock for iOS and Mobile */
body.pseudo-fullscreen-active,
.album-theatre.pseudo-fullscreen-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 2147483640 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 9. Guestbook & Reviews Modal Luxury Architecture */
.guestbook-modal-card {
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
}

.guestbook-summary-banner {
    background: rgba(229, 185, 95, 0.08);
    border: 1px solid var(--album-border-gold);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    margin-bottom: 16px;
}

.guestbook-big-score {
    font-size: 28px;
    font-weight: 700;
    color: var(--album-gold);
    display: block;
    line-height: 1.1;
    font-family: 'Cinzel', serif;
}

.guestbook-stars-display {
    color: #f59e0b;
    font-size: 16px;
    margin: 4px 0;
    letter-spacing: 2px;
}

.guestbook-total-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--album-gold-light);
}

.guestbook-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 8px;
}

.already-reviewed-notice {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d1fae5;
    font-size: 13px;
    margin-bottom: 14px;
}

.already-reviewed-notice i {
    font-size: 24px;
    color: #10b981;
    flex-shrink: 0;
}

.already-reviewed-notice strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 2px;
}

.already-reviewed-notice p {
    margin: 0;
    font-size: 12px;
    color: #a7f3d0;
    line-height: 1.4;
}

.guestbook-feed-section {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
}

.guestbook-feed-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--album-gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guestbook-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.guestbook-feed-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
}

.feed-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.feed-author {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: 1px;
}

.feed-message {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 4px;
}

.feed-time {
    font-size: 10px;
    color: #64748b;
    display: block;
}


