:root {
    /* Photographic Japandi Palette adjusted for clean white photo backgrounds */
    --bg-color: #F4F4F4;       /* Soft gallery-wall gray */
    --text-color: #121212;     /* Carbon black text & controls */
    --border-color: #E2E2E2;   /* Very soft border lines */
    --card-bg: #FFFFFF;        /* Pure crisp white */
    
    /* Accents from portraits */
    --earthy-green: #16A34A;   /* Timeline progress */
    --sandy-beige: #CBB9A3;    /* Card hover highlight */
    --muted-blue: #7C8D94;     /* "Now Playing" text & dynamic subtitles */
    --gray: #828280;           /* Secondary text & durations */
    
    /* Default wheel outline variable */
    --wheel-line: rgba(18, 18, 18, 0.18);
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    overscroll-behavior-y: contain;
}

body, button {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, button, header, main, div, svg, span, h1, p {
    transition: background-color 0.8s ease, color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease, opacity 0.8s ease;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-left: 0; 
    box-sizing: border-box;
    overscroll-behavior-y: contain;
}

header {
    padding: 55px 20px 35px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
    min-height: 150px;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

header p {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted-blue);
    letter-spacing: 0.5px;
    margin: 0;
    cursor: default;
}

/* =========================================================================
   INTERAKTIVES WELCOME TEXT STYLING
   ========================================================================= */
.welcome-text {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--text-color);
    margin-top: 15vh;
    text-transform: uppercase;
    opacity: 1;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.4s ease, letter-spacing 0.4s ease;
}

.welcome-text:hover {
    opacity: 0.7;
    letter-spacing: 8px;
}

/* =========================================================================
   ORIGINAL 3-SPALTEN DESKTOP-RASTER (MAX-WIDTH 1000PX)
   ========================================================================= */
.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 140px; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); 
    justify-content: center;
    align-content: start;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.track-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    height: fit-content;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}

.track-card:hover {
    border-color: var(--sandy-beige);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.artwork-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 2rem;
    font-weight: 100;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.artwork-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================================
   KATAKURI CIRCULAR MEDIA (SCHÄRFE- & RASTERUNGS-OPTIMIERT)
   ========================================================================= */
.circular-media {
    border-radius: 50% !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.circular-media img {
    border-radius: 50% !important;
    object-fit: cover;
    transform: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.track-info {
    padding: 15px;
    background-color: var(--card-bg);
}

.track-title {
    font-size: 0.95rem;
    margin: 0 0 6px 0;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-duration {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.5px;
}

/* =========================================================================
   SCROLLBARE TRACKLISTEN
   ========================================================================= */
.project-tracklist, .single-project-list {
    max-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), margin-top 0.4s;
    margin-top: 0;
    border-top: 1px solid transparent;
    padding-top: 0;
    padding-right: 4px;
}

.single-project-list {
    max-height: 380px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-card.expanded .project-tracklist {
    max-height: 360px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.project-tracklist::-webkit-scrollbar, .single-project-list::-webkit-scrollbar {
    width: 3px;
}
.project-tracklist::-webkit-scrollbar-track, .single-project-list::-webkit-scrollbar-track {
    background: transparent;
}
.project-tracklist::-webkit-scrollbar-thumb, .single-project-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.track-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    font-size: 0.82rem;
    color: var(--gray);
    border-radius: 2px;
    cursor: pointer !important;
    user-select: none;
    transition: color 0.2s, background-color 0.2s;
}

.track-row:hover {
    color: var(--text-color);
    background-color: var(--bg-color);
}

.track-row.active-track {
    color: var(--earthy-green);
    font-weight: 700;
}

.track-row-title {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}

.track-row-title span {
    display: inline-block;
    will-change: transform;
    transform: translateX(0);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.track-row:hover .track-row-title {
    text-overflow: clip;
}

.track-row:hover .track-row-title span {
    transform: translateX(min(0px, calc(-100% + 180px)));
}

/* =========================================================================
   3D VINYL SLEEVE FLIP & FOLDED CORNER (DESKTOP)
   ========================================================================= */
.artwork-flip-container {
    perspective: 1200px;
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    user-select: none;
}

.artwork-flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.artwork-flip-container.flipped .artwork-flipper {
    transform: rotateY(180deg);
}

.artwork-front, .artwork-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 2px;
    overflow: hidden;
}

.artwork-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.artwork-back {
    transform: rotateY(180deg);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    cursor: pointer;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.02);
}

.artwork-back-header {
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.artwork-back-body {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.76rem;
    line-height: 1.6;
    color: var(--text-color);
    white-space: pre-wrap;
    flex: 1;
}

.sleeve-corner-triangle {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 28px 28px 0;
    border-color: transparent var(--earthy-green) transparent transparent;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    z-index: 10;
    filter: drop-shadow(-2px 2px 4px rgba(0,0,0,0.3));
}

.artwork-flip-container.has-liner-notes:hover .sleeve-corner-triangle {
    opacity: 0.85;
}

.sleeve-corner-triangle:hover {
    opacity: 1 !important;
    transform: scale(1.15);
}

/* =========================================================================
   DESKTOP SINGLE PROJECT / ALBUM VIEW
   ========================================================================= */
.single-project-layout {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
    align-content: start;
    box-sizing: border-box;
}

.single-project-artwork {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.single-project-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-project-info {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.single-project-meta {
    font-size: 0.82rem;
    color: var(--gray);
    margin: -5px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* =========================================================================
   DESKTOP STATEMENT LAYOUT
   ========================================================================= */
.text-editorial-layout {
    grid-column: 1 / -1;
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.editorial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 40px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
}

.editorial-header {
    font-size: 1rem;
    font-weight: 700;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.editorial-body {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-wrap;
}

/* =========================================================================
   DESKTOP 2-COLUMN SPLIT LAYOUT (ESSAYS, READING ROOM, PROJECTION)
   ========================================================================= */
.editorial-split-layout {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
    box-sizing: border-box;
}

.essay-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.essay-menu-item {
    font-family: monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease, padding-left 0.3s ease;
    padding: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid transparent;
}

.essay-menu-item:hover, .essay-menu-item.active {
    color: var(--text-color);
    font-weight: 700;
    padding-left: 5px;
}

.video-menu-item {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15) !important;
}

.video-tag-badge {
    font-family: monospace;
    font-size: 0.58rem;
    font-weight: 700;
    background-color: var(--border-color);
    color: var(--text-color);
    padding: 2px 5px;
    border-radius: 2px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.essay-collection-badge {
    font-family: monospace;
    font-size: 0.68rem;
    color: var(--muted-blue);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 15px 0 5px 0;
    text-transform: uppercase;
}

.essay-reader-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 40px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.essay-reader-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    color: var(--text-color);
}

.essay-reader-body {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-wrap;
}

.essay-menu::-webkit-scrollbar, .essay-reader-card::-webkit-scrollbar {
    width: 3px;
}
.essay-menu::-webkit-scrollbar-track, .essay-reader-card::-webkit-scrollbar-track {
    background: transparent;
}
.essay-menu::-webkit-scrollbar-thumb, .essay-reader-card::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* =========================================================================
   THE DISTORTION (AMBIENT GLITCH STREAM)
   ========================================================================= */
.distortion-container {
    grid-column: 1 / -1;
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
}

.distortion-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.distortion-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.distortion-overlay-crt {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 5;
}

.distortion-caption-label {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--gray);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}

/* =========================================================================
   DESKTOP GAME CANVAS
   ========================================================================= */
.game-room-layout {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#game-canvas {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    width: 100%;
    height: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

/* =========================================================================
   ORIGINAL DESKTOP ROTARY WHEELS
   ========================================================================= */
.wheel-trigger-zone {
    position: fixed;
    top: 0;
    width: 40px;
    height: 100vh;
    z-index: 85;
    cursor: pointer;
}
.wheel-trigger-zone.left { left: 0; }
.wheel-trigger-zone.right { right: 0; }

.wheel-outer-wrapper {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 180px; 
    height: 360px;
    z-index: 90;
    opacity: 0.65;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1), right 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    pointer-events: auto;
    overflow: visible !important;
}

.wheel-outer-wrapper.left { left: -110px; }
.wheel-outer-wrapper.right { right: -110px; }

.wheel-trigger-zone.left:hover + .wheel-outer-wrapper.left,
.wheel-outer-wrapper.left:hover,
.wheel-outer-wrapper.left.visible {
    left: -95px;
    opacity: 1;
}

.wheel-trigger-zone.right:hover + .wheel-outer-wrapper.right,
.wheel-outer-wrapper.right:hover,
.wheel-outer-wrapper.right.visible {
    right: -95px;
    opacity: 1;
}

.wheel-trigger-zone.left:hover + .wheel-outer-wrapper.left .wheel,
.wheel-outer-wrapper.left:hover .wheel,
.wheel-outer-wrapper.left.visible .wheel,
.wheel-trigger-zone.right:hover + .wheel-outer-wrapper.right .wheel,
.wheel-outer-wrapper.right:hover .wheel,
.wheel-outer-wrapper.right.visible .wheel {
    opacity: 1;
}

.wheel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible !important;
}

.wheel-inner-line {
    width: 160px;
    height: 160px;
    border: 1px solid var(--wheel-line);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wheel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    opacity: 0;
    overflow: visible !important;
}

.wheel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    cursor: pointer;
    height: 20px;
    line-height: 20px;
    box-sizing: border-box;
    transition: color 0.3s ease, font-weight 0.3s ease, opacity 0.4s ease; 
}

.wheel-item.active {
    font-weight: 400;
    color: var(--text-color);
}

.left-wheel-item {
    transform-origin: left center;
    transform: translate(0, -50%) rotate(calc(var(--angle, 0) * 1deg)) translateX(clamp(88px, 6.2vw, 110px));
}

.right-wheel-item {
    transform-origin: right center;
    transform: translate(-100%, -50%) rotate(calc(var(--angle, 0) * 1deg)) translateX(calc(-1 * clamp(88px, 6.2vw, 110px)));
}

/* =========================================================================
   NUR TABLETS IM QUERFORMAT (769px bis 1200px Landscape)
   ========================================================================= */
@media (min-width: 769px) and (max-width: 1200px) and (orientation: landscape) and (min-height: 551px) {
    .wheel-outer-wrapper.left { left: -118px; }
    .wheel-outer-wrapper.right { right: -118px; }
    .wheel-outer-wrapper.left:hover, .wheel-outer-wrapper.left.visible { left: -105px; }
    .wheel-outer-wrapper.right:hover, .wheel-outer-wrapper.right.visible { right: -105px; }
}

/* =========================================================================
   DESKTOP LYRICS & LINER NOTES PANEL (FESTE STABILE HÖHE - KEIN SPRINGEN)
   ========================================================================= */
.lyrics-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: -380px;
    width: 320px;
    height: 56vh;
    min-height: 400px;
    max-height: 560px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 24px;
    box-sizing: border-box;
    z-index: 95;
    opacity: 0;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, background-color 0.8s ease, border-color 0.8s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lyrics-panel.visible {
    right: 80px; 
    opacity: 1;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.lyrics-tab {
    font-family: monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.2s, font-weight 0.2s;
}

.lyrics-tab.active, .lyrics-tab:hover {
    color: var(--text-color);
    font-weight: 700;
}

.lyrics-content {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-color);
    overflow-y: auto;
    white-space: pre-wrap;
    flex: 1;
    padding-right: 5px;
}

.lyrics-content::-webkit-scrollbar {
    width: 3px;
}
.lyrics-content::-webkit-scrollbar-track {
    background: transparent;
}
.lyrics-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* =========================================================================
   PERSISTENT PLAYER & PROGRESS BAR (DESKTOP)
   ========================================================================= */
.persistent-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
    z-index: 100;
    box-sizing: border-box;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

.player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
}

.now-playing {
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

.now-playing-title {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 0.5px;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.marquee-inner {
    display: inline-block;
    will-change: transform;
    transform: translateX(0);
    transition: transform 0.1s ease;
}

@keyframes marquee {
    0%, 15% { transform: translateX(0); }
    85%, 100% { transform: translateX(var(--scroll-distance, 0)); }
}

.now-playing-status {
    font-size: 0.7rem;
    color: var(--muted-blue); 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
    font-weight: 600;
}

.status-project {
    display: inline;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    margin-left: 15px;
}

.volume-slider-wrapper {
    width: 0;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
    opacity: 0;
    display: flex;
    align-items: center;
}

.volume-container:hover .volume-slider-wrapper,
.volume-container:focus-within .volume-slider-wrapper {
    width: 70px;
    opacity: 1;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    outline: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-color);
    cursor: pointer;
    margin-top: -2.5px;
}

#volume-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: var(--text-color);
    cursor: pointer;
}

.btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.8;
}

.btn:hover {
    opacity: 1;
    color: var(--gray);
}

.play-pause-btn {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
}

.play-pause-btn:hover {
    background-color: var(--gray);
    color: var(--bg-color);
    opacity: 1;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 800px;
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.progress-bar-wrapper {
    flex: 1;
    height: 3px;
    background-color: var(--border-color);
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

.progress-bar-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: 0;
    right: 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--earthy-green); 
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 2px;
}

/* =========================================================================
   MOBILE SLIDE-RULE TEXT STRIPS
   ======================================================================== */
.mobile-nav-container {
    display: none;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-color);
    height: 40px;
    z-index: 150;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

.mobile-nav-container.top {
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-container.bottom {
    position: fixed;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: none !important;
    box-shadow: none;
}

.mobile-nav-strip {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.mobile-nav-strip::-webkit-scrollbar {
    display: none;
}

.mobile-nav-strip::before,
.mobile-nav-strip::after {
    content: '';
    flex: 0 0 50%;
}

.mobile-nav-item {
    scroll-snap-align: center;
    flex: 0 0 auto;
    padding: 0 16px;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease, font-weight 0.3s ease, opacity 0.3s ease;
    opacity: 0.35;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
}

.mobile-nav-item.active {
    color: var(--text-color);
    font-weight: 700;
    opacity: 1;
}

/* =========================================================================
   ZEN MODE (100% EINHEITLICHE QUADRAT-GALERIE & SPOTLIGHT-FOKUS)
   ========================================================================= */
body.zen-mode {
    background-color: #06080a !important;
    color: #ffffff !important;
    transition: background-color 1.2s ease, color 1.2s ease;
}

body.zen-mode header,
body.zen-mode .wheel-outer-wrapper,
body.zen-mode .wheel-trigger-zone,
body.zen-mode .lyrics-panel,
body.zen-mode .essay-menu,
body.zen-mode .sleeve-corner-triangle {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.8s ease;
}

body.zen-mode .controls,
body.zen-mode .volume-container,
body.zen-mode .progress-container,
body.zen-mode #lyrics-btn {
    display: none !important;
}

body.zen-mode .persistent-player {
    background-color: transparent !important;
    border-top-color: transparent !important;
    box-shadow: none !important;
    position: fixed !important;
    bottom: 35px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 100;
}

body.zen-mode .player-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

body.zen-mode .now-playing {
    padding: 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
    flex: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

body.zen-mode .now-playing-status {
    display: block !important;
    font-size: 0.72rem !important;
    color: var(--muted-blue) !important;
    opacity: 0.7 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

body.zen-mode .now-playing > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

body.zen-mode .now-playing-title {
    color: #ffffff !important;
    text-align: center !important;
    opacity: 0.9 !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* ZEN MODE: PERFEKTE HORIZONTALE EINHEIT DER ARTWORKS */
body.zen-mode .gallery-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: center !important;
    margin: 0 auto !important;
    padding: 6vh 20px 100px !important;
    gap: 30px !important;
    min-height: 60vh !important;
    max-width: 1100px !important;
}

body.zen-mode .single-project-layout {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
}

body.zen-mode .single-project-info,
body.zen-mode .track-info,
body.zen-mode .project-tracklist,
body.zen-mode .single-project-list {
    display: none !important;
}

/* EINHEITLICHE QUADRAT-GRÖSSE FÜR ALLE KARTEN IM ZEN MODE */
body.zen-mode .track-card {
    width: 240px !important;
    height: 240px !important;
    flex: 0 0 240px !important;
    margin: 0 !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    background-color: transparent !important;
    opacity: 0.45 !important;
    transform: scale(0.96) !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, box-shadow 0.6s ease !important;
}

/* AKTIV GESPIELTES ALBUM IM SPOTLIGHT */
body.zen-mode .track-card.expanded,
body.zen-mode .track-card:hover {
    opacity: 1 !important;
    transform: scale(1.04) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

body.zen-mode .single-project-artwork {
    width: 320px !important;
    height: 320px !important;
    max-width: 320px !important;
    aspect-ratio: 1 !important;
    margin: 0 auto !important;
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.9) !important;
    border-color: rgba(255,255,255,0.15) !important;
}

body.zen-mode .artwork-placeholder,
body.zen-mode .artwork-flip-container,
body.zen-mode .artwork-flipper,
body.zen-mode .artwork-front {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 !important;
    margin: 0 !important;
    border: none !important;
}

body.zen-mode .artwork-placeholder img,
body.zen-mode .artwork-front img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.zen-mode .video-screening-layout {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 850px !important;
    margin: 0 auto !important;
}

body.zen-mode .video-screening-menu {
    display: none !important;
}

body.zen-mode .video-screening-card {
    width: 100% !important;
    max-width: 850px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9) !important;
    border-color: rgba(255,255,255,0.15) !important;
    background-color: #000 !important;
}

/* =========================================================================
   SMARTES RESPONSIVE FRAMEWORK (SMARTPHONES + TABLETS)
   ========================================================================= */
@media (max-width: 768px), (max-height: 550px), (max-width: 1024px) and (orientation: portrait) {
    .wheel-outer-wrapper, .wheel-trigger-zone {
        display: none !important;
    }
    .mobile-nav-container {
        display: flex;
    }

    .sleeve-corner-triangle {
        display: none !important;
    }
    .artwork-flip-container {
        perspective: none !important;
    }
    .artwork-flipper {
        transform: none !important;
    }

    body {
        padding-left: 0 !important;
    }
    
    header {
        padding: 16px 16px 10px;
        height: 68px;
        min-height: 68px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        border-bottom: none;
    }
    header h1 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
        margin: 0 0 2px 0;
        line-height: 1.2;
        height: 22px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90vw;
    }
    header p {
        font-size: 0.7rem;
        margin: 0;
        line-height: 1.1;
        height: 14px;
    }

    .gallery-container {
        padding: 16px 14px calc(170px + env(safe-area-inset-bottom, 15px));
        min-height: auto !important;
        align-content: start !important;
        justify-content: center !important;
        gap: 20px;
        box-sizing: border-box;
    }

    .editorial-split-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .essay-menu {
        flex-direction: column;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 8px;
        max-height: none;
        overflow-x: hidden;
        overflow-y: visible;
        gap: 4px;
    }
    .essay-menu-item {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.72rem;
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 2px;
        white-space: normal;
        text-align: left;
        box-sizing: border-box;
    }
    .essay-menu-item:hover, .essay-menu-item.active {
        padding-left: 10px;
        background-color: var(--text-color);
        color: var(--bg-color);
        border-color: var(--text-color);
    }
    .essay-collection-badge {
        margin: 8px 0 2px 0;
        padding: 2px 0;
        font-size: 0.65rem;
        text-align: left;
        color: var(--muted-blue);
    }

    .essay-reader-card {
        padding: 20px 14px !important;
        max-height: none !important;
        height: auto !important;
        width: 100%;
        box-sizing: border-box;
    }
    .essay-reader-title {
        font-size: 0.88rem;
        padding-bottom: 8px;
    }
    .essay-reader-body {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .lyrics-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 65vh;
        max-height: 65vh;
        min-height: auto;
        border-radius: 14px 14px 0 0;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
        z-index: 300;
        padding: 20px 20px calc(25px + env(safe-area-inset-bottom, 0px));
        transform: translate3d(0, 100%, 0);
        -webkit-transform: translate3d(0, 100%, 0);
        will-change: transform;
    }
    .lyrics-panel.visible {
        right: 0;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    .persistent-player {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 8px;
        z-index: 160;
        box-sizing: border-box;
        background-color: var(--bg-color);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .player-row {
        gap: 8px;
        width: 100%;
        height: 32px;
        align-items: center;
    }
    .now-playing {
        padding-right: 4px;
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .now-playing-status {
        font-size: 0.62rem;
        letter-spacing: 1.5px;
        margin-bottom: 2px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .status-project {
        display: none !important;
    }
    .now-playing-title {
        font-size: 0.85rem;
        line-height: 1.1;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .now-playing > div {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }
    #lyrics-btn {
        font-size: 0.58rem;
        padding: 1px 5px;
        height: 16px;
        line-height: 1;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        vertical-align: middle;
        border-radius: 2px;
    }
    .controls {
        gap: 8px;
    }
    .play-pause-btn {
        width: 34px;
        height: 34px;
    }
    
    .volume-container {
        display: none !important;
    }

    .progress-container {
        font-size: 0.68rem;
        gap: 8px;
        height: 14px;
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
    }
}

/* =========================================================================
   SPEZIFISCHE ADAPTIERUNG FÜR SMARTPHONES (< 600px)
   ========================================================================= */
@media (max-width: 599px) {
    .single-project-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 400px;
        margin: 0 auto;
        align-content: start !important;
        align-items: start !important;
        height: fit-content !important;
    }
    .single-project-artwork {
        max-width: 250px;
        margin: 0 auto;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    }
    .single-project-info {
        width: 100%;
        padding: 0;
    }
    .single-project-title {
        font-size: 1rem;
        text-align: center;
    }
    .single-project-meta {
        text-align: center;
        margin-bottom: 8px;
    }
}

/* =========================================================================
   SPEZIFISCHE ADAPTIERUNG FÜR TABLETS & FOLDABLES (600px BIS 1024px)
   ========================================================================= */
@media (min-width: 600px) and (max-width: 1024px) {
    .single-project-layout {
        grid-template-columns: 320px 1fr !important;
        gap: 40px !important;
        max-width: 750px !important;
        margin: 0 auto !important;
        align-items: start !important;
        align-content: start !important;
        height: fit-content !important;
    }
    .single-project-artwork {
        max-width: 320px !important;
        margin: 0 !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    }
    .single-project-info {
        width: 100% !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .single-project-meta {
        text-align: left !important;
        margin: 0 !important;
    }
    .single-project-title {
        text-align: left !important;
    }
}