@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Cormorant+Garamond:wght@600;700&family=Orbitron:wght@600;700;800&family=Outfit:wght@400;500;600;700;800&family=Permanent+Marker&family=Playfair+Display:wght@700;800&family=Rubik+Mono+One&family=Sora:wght@600;700;800&family=Space+Grotesk:wght@500;700&family=Syne:wght@600;700;800&display=swap');

:root {
    --bg-0: #07111a;
    --bg-1: #0e1f2f;
    --bg-2: #153148;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --stroke: rgba(255, 255, 255, 0.18);
    --text-main: #eaf3fb;
    --text-muted: #9db2c4;
    --primary: #49e1c9;
    --accent: #44c1ff;
    --username-color: #f2f8fe;
    --username-gradient-start: #49e1c9;
    --username-gradient-end: #44c1ff;
    --username-font: 'Syne', sans-serif;
    --shadow-soft: 0 18px 36px rgba(3, 9, 16, 0.35);
    --nav-text: #9db2c4;
    --nav-bg: rgba(8, 18, 28, 0.76);
    --nav-border: rgba(255,255,255,0.12);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: linear-gradient(130deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
    color: var(--text-main);
    font-family: 'Permanent Marker', cursive;
    overflow-x: hidden;
}

/* Global scrollbar theme (matches dashboard sidebar) */
html, body, * {
    scrollbar-width: thin;
    scrollbar-color: #57ece3 transparent;
}
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #57ece3, #45c9ff);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6ef5ed, #56d6ff);
}

* { box-sizing: border-box; }

.app-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.48;
    filter: brightness(0.5) saturate(1.1);
    pointer-events: none;
}

.app-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.35);
}

main, header, nav {
    position: relative;
    z-index: 1;
}


header {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: rgba(7, 17, 26, 0.45);
}

.header-title-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    justify-items: center;
}

header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 17, 26, 0.25), rgba(6, 17, 26, 0.75));
}

header h1 {
    font-size: clamp(2.6rem, 12vw, 9rem);
    font-family: var(--username-font);
    font-weight: 800;
    letter-spacing: -2px;
    text-transform: uppercase;
    z-index: 2;
    margin: 0;
    color: var(--username-color);
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    max-width: min(92vw, 1200px);
    text-align: center;
    line-height: 0.95;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: balance;
    opacity: var(--username-opacity, 1);
}

body.layout-classic header h1 {
    white-space: nowrap;
}

body.username-effect-hollow header h1 {
    color: transparent;
    -webkit-text-stroke: 2px var(--username-color);
    text-shadow: none;
}

#header-artist-name.username-hollow-active {
    position: relative;
}

#header-artist-name.username-hollow-active .username-hollow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body.username-effect-hollow #header-artist-name.username-hollow-active {
    color: transparent !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

body.username-effect-hollow.username-gradient-enabled header h1 {
    background-image: none;
    -webkit-text-fill-color: transparent;
}

body.username-effect-neon header h1 {
    text-shadow:
        0 0 6px rgba(68, 193, 255, 0.6),
        0 0 18px rgba(73, 225, 201, 0.5),
        0 0 36px rgba(73, 225, 201, 0.35);
}

body.username-effect-glow header h1 {
    text-shadow:
        0 10px 28px rgba(255, 255, 255, 0.25),
        0 0 22px rgba(255, 255, 255, 0.4);
}

body.username-effect-shadow header h1 {
    text-shadow:
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.65);
}

body.username-gradient-enabled header h1 {
    background-image: linear-gradient(120deg, var(--username-gradient-start), var(--username-gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.theme-preset-galaxy header h1 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.02em;
    background-image: linear-gradient(
        110deg,
        #e9eeff 0%,
        #9ba9ff 20%,
        #63d3ff 42%,
        #b58bff 62%,
        #dff1ff 82%,
        #8f9dff 100%
    );
    background-size: 260% 260%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: galaxyUsernameShift 9s linear infinite;
    text-shadow: 0 0 20px rgba(125, 123, 255, 0.45), 0 0 34px rgba(57, 182, 255, 0.26);
}

body.theme-preset-galaxy .header-role-tag {
    border-color: rgba(142, 152, 255, 0.52);
    background: rgba(17, 24, 52, 0.62);
    box-shadow: 0 0 18px rgba(95, 120, 255, 0.22);
}

body.theme-preset-galaxy .main-nav a {
    border-color: rgba(125, 123, 255, 0.18);
    background: rgba(125, 123, 255, 0.08);
}

body.theme-preset-galaxy .main-nav a:hover,
body.theme-preset-galaxy .main-nav a.active {
    color: #f4f8ff;
    background: linear-gradient(135deg, rgba(125, 123, 255, 0.82), rgba(57, 182, 255, 0.76));
    box-shadow: 0 10px 22px rgba(32, 51, 126, 0.38);
}

.header-role-tag {
    margin: 0;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(6, 18, 28, 0.55);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
}

.main-nav {
    background: var(--nav-bg, rgba(8, 18, 28, 0.76));
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--nav-border, rgba(255,255,255,0.06));
    border-bottom: 1px solid var(--nav-border, rgba(255,255,255,0.1));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 2%;
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--nav-text, var(--text-main));
}

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

.main-nav a {
    color: var(--nav-text, var(--text-muted));
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
    padding: 8px 13px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.03);
    box-shadow: 0 8px 16px rgba(3, 8, 14, 0.28);
}

.main-nav a:hover, .main-nav a.active {
    color: #041017;
    background: linear-gradient(140deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 24px rgba(3, 8, 14, 0.45);
}
.main-nav a.active {
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.95),
        1px -1px 0 rgba(255, 255, 255, 0.95),
        -1px 1px 0 rgba(255, 255, 255, 0.95),
        1px 1px 0 rgba(255, 255, 255, 0.95);
}

.featured-track-full {
    position: relative;
    width: 100%;
    padding: 60px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.featured-track-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(3,10,17,0.42) 0%, rgba(3,10,17,0.58) 50%, rgba(3,10,17,0.72) 100%);
    z-index: 0;
}

.featured-track-full::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    z-index: 0;
}

.track-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 1100px;
    background: rgba(6, 14, 22, 0.55);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.track-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

.track-visual {
    position: relative;
    flex-shrink: 0;
}

.track-visual img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.track-content:hover .track-visual img {
    transform: scale(1.03);
}

.track-details {
    flex: 1;
    min-width: 0;
}

.track-details h1 {
    font-size: 2rem;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-details p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0 0 18px 0;
    letter-spacing: 0.3px;
}

.player-controls {
    width: 100%;
    max-width: 500px;
}

audio {
    filter: invert(1) hue-rotate(180deg) brightness(1.4);
    width: 100%;
    height: 35px;
    border-radius: 8px;
}

.tracks-toolbar {
    max-width: 1100px;
    margin: 22px auto 0;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tracks-toolbar-label {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.tracks-layout-switch {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.tracks-layout-btn {
    border: 0;
    background: transparent;
    color: #eaf3fb;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px 14px;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tracks-layout-btn.active {
    background: linear-gradient(130deg, var(--primary), var(--accent));
    color: #041119;
}

.tracks-container.is-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 4% 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.tracks-container.is-tiles .featured-track-full {
    padding: 0;
    border-top: 0;
    background: transparent !important;
    overflow: visible;
    border: 0;
    box-shadow: none;
}

.tracks-container.is-tiles .featured-track-full::before,
.tracks-container.is-tiles .featured-track-full::after {
    display: none;
}

.tracks-container.is-tiles .track-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: none;
    padding: 14px;
    border-radius: 16px;
    overflow: visible;
    background: rgba(6, 14, 22, 0.55);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

.tracks-container.is-tiles .track-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.tracks-container.is-tiles .track-details h1 {
    font-size: 1.1rem;
}

.tracks-container.is-tiles .track-details p {
    margin-bottom: 10px;
}

.tracks-container.is-tiles .player-controls {
    max-width: 100%;
}

.tracks-container.is-tiles .track-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.tracks-container.is-tiles .player-controls {
    order: 1;
    margin-bottom: 6px;
}

.tracks-container.is-tiles .song-audio-frame {
    max-width: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tracks-container.is-tiles .song-progress {
    flex: 1 1 100%;
    order: 3;
}

.tracks-container.is-tiles .song-time {
    order: 4;
}

.tracks-container.is-tiles .song-volume {
    flex: 1 1 100%;
    order: 5;
}

.tracks-container.is-tiles .song-like-btn {
    order: 6;
}

.tracks-container.is-tiles .track-details h1 {
    order: 2;
}

.tracks-container.is-tiles .track-details p {
    order: 3;
}

.tracks-container.is-tiles .track-details .report-btn {
    order: 4;
}

@media (max-width: 1280px) {
    .tracks-container.is-tiles {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 980px) {
    .tracks-container.is-tiles {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        padding: 18px 5% 36px;
    }
}

@media (max-width: 640px) {
    .tracks-container.is-tiles {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        padding: 16px 6% 32px;
    }
}

.tracks-container.is-wide .track-content {
    max-width: 1300px;
}

.tracks-container.is-wide .track-visual img {
    width: 240px;
    height: 240px;
}

.tracks-container.is-wide .featured-track-full {
    margin-top: 16px;
}

.portfolio-story-card {
    max-width: 1180px;
    margin: 18px auto;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(150deg, rgba(7,17,27,0.68), rgba(9,24,38,0.78));
    box-shadow: 0 16px 30px rgba(2, 8, 14, 0.35);
}

.photo-wall-section {
    max-width: min(1500px, 96vw);
}

.portfolio-story-top h3 {
    margin: 0;
    font-size: 1.5rem;
}

.portfolio-story-top p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.photo-mosaic {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    align-items: start;
}

.flip-tile {
    perspective: 1000px;
    cursor: pointer;
    width: 100%;
}

.flip-tile.shape-portrait { aspect-ratio: 3 / 4; }
.flip-tile.shape-landscape { aspect-ratio: 16 / 11; grid-column: span 2; }
.flip-tile.shape-square { aspect-ratio: 1 / 1; }

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    border-radius: 12px;
}

.flip-tile.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    backface-visibility: hidden;
}

.flip-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #08131d;
}

.flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, rgba(8, 18, 28, 0.92), rgba(11, 26, 39, 0.94));
    padding: 12px;
    display: grid;
    align-content: center;
    gap: 8px;
}

.flip-back h4 {
    margin: 0;
    font-size: 0.96rem;
}

.flip-back p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.media-mosaic {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 10px;
}

.media-hero, .media-side {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.24);
}

.media-hero { aspect-ratio: 16 / 10; }
.media-side { aspect-ratio: 1 / 1; }

.media-hero img, .media-hero video, .media-side img, .media-side video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-section {
    display: none;
    min-height: 100vh;
    background: transparent;
}

.profile-section.active {
    display: block;
}

.content-wrapper {
    max-width: 1000px;
    margin: 28px auto;
    padding: 56px 5%;
    background: rgba(8, 18, 28, 0.58);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.content-wrapper h2 {
    font-size: 2.7rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.about-bio-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #d2e2ef;
    max-width: 800px;
}

.event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    margin-bottom: 10px;
}

.ev-main {
    display: grid;
    gap: 5px;
}

.ev-name {
    font-size: 1.02rem;
    color: #e8f6ff;
}

.ev-date {
    font-weight: 700;
    font-size: 0.9rem;
    color: #9fd0eb;
}

.ev-venue {
    font-size: 0.93rem;
    color: #c9deed;
}

.ev-link {
    background: linear-gradient(140deg, var(--primary), var(--accent));
    color: #041017;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    transition: filter 0.2s;
}

.ev-link:hover { filter: brightness(1.06); }

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.store-item {
    background: linear-gradient(160deg, rgba(8, 20, 29, 0.78), rgba(12, 30, 43, 0.68));
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 12px 24px rgba(4, 12, 20, 0.28);
    display: flex;
    flex-direction: column;
}

.store-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 16px 30px rgba(4, 12, 20, 0.4);
}

.store-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.store-item h3 {
    padding: 14px 14px 4px;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
}

.store-item p {
    padding: 0 14px 14px;
    margin: 0;
    color: #7beed8;
    font-weight: 800;
    margin-top: auto;
}

.nav-right a {
    font-size: 10px !important;
    white-space: nowrap;
}

.make-your-own {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

body.username-font-syne { --username-font: 'Syne', sans-serif; }
body.username-font-bebas { --username-font: 'Bebas Neue', sans-serif; }
body.username-font-space { --username-font: 'Space Grotesk', sans-serif; }
body.username-font-marker { --username-font: 'Permanent Marker', cursive; }
body.username-font-cormorant { --username-font: 'Cormorant Garamond', serif; }
body.username-font-orbitron { --username-font: 'Orbitron', sans-serif; }
body.username-font-sora { --username-font: 'Sora', sans-serif; }
body.username-font-playfair { --username-font: 'Playfair Display', serif; }
body.username-font-anton { --username-font: 'Anton', sans-serif; }
body.username-font-rubikmono { --username-font: 'Rubik Mono One', monospace; }

body.layout-classic #artist-header {
    height: 400px;
}

body.layout-classic main {
    margin-top: 16px;
}

body.layout-sidebar .main-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 230px;
    z-index: 120;
    padding: 18px 14px;
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-bottom: 0;
    background:
        radial-gradient(500px 340px at 18% 0%, rgba(255,255,255,0.09), transparent 58%),
        linear-gradient(180deg, rgba(7, 16, 25, 0.96), rgba(5, 13, 21, 0.94));
    box-shadow: 12px 0 28px rgba(2, 8, 14, 0.42);
}

body.layout-sidebar .nav-left {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

body.layout-sidebar .nav-right {
    margin-top: auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}

body.layout-sidebar .main-nav a {
    width: 100%;
    font-size: 12px !important;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(6, 14, 22, 0.45);
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

body.layout-sidebar .main-nav a:hover,
body.layout-sidebar .main-nav a.active {
    transform: translateX(2px);
    border-color: rgba(255,255,255,0.32);
    box-shadow: 0 12px 24px rgba(2, 8, 14, 0.45);
}

body.layout-sidebar .main-nav a.active {
    background:
        linear-gradient(130deg, color-mix(in srgb, var(--primary) 70%, transparent), color-mix(in srgb, var(--accent) 60%, transparent)),
        rgba(6, 14, 22, 0.55);
    color: #f7fbff;
}

body.layout-sidebar header,
body.layout-sidebar main {
    margin-left: 230px;
    width: calc(100% - 230px);
}

body.layout-sidebar #artist-header {
    height: 360px;
    background-position: center center;
}

body.layout-sidebar .header-title-wrap {
    padding-left: 2%;
}

body.layout-sidebar header h1 {
    white-space: nowrap;
}

body.layout-sidebar .track-content {
    gap: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(150deg, rgba(10, 20, 29, 0.78), rgba(8, 16, 24, 0.68));
}

body.layout-sidebar .track-visual img {
    width: 180px;
    height: 180px;
}

body.layout-magazine #artist-header {
    height: 340px;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px 5%;
}

body.layout-magazine #artist-header::after {
    background: linear-gradient(145deg, rgba(5, 8, 13, 0.1), rgba(5, 8, 13, 0.78));
}

body.layout-magazine #artist-header h1 {
    font-size: clamp(2.4rem, 10vw, 6rem);
    letter-spacing: -1px;
}

body.layout-magazine .main-nav {
    position: relative;
    top: -24px;
    margin: 0 auto;
    width: min(1080px, calc(100% - 40px));
    border-radius: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.24);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    background:
        radial-gradient(700px 220px at 10% -20%, rgba(255,255,255,0.13), transparent 52%),
        rgba(8, 18, 28, 0.84);
}

body.layout-magazine main {
    max-width: 1120px;
    margin: 0 auto 30px;
    padding: 0 20px 20px;
}

body.layout-magazine .featured-track-full {
    padding: 12px 0 16px;
    background: transparent !important;
    border-top: 0;
}

body.layout-magazine .track-content {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(145deg, rgba(8, 18, 28, 0.86), rgba(11, 25, 38, 0.9));
    box-shadow: 0 20px 40px rgba(2, 8, 14, 0.4);
}

body.layout-magazine .track-visual img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
}

body.layout-magazine .tracks-container.is-tiles .featured-track-full {
    padding: 0;
    border-top: 0;
}

body.layout-magazine .tracks-container.is-tiles .track-content {
    display: flex;
    grid-template-columns: none;
    align-items: stretch;
}

body.layout-magazine .tracks-container.is-tiles .track-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

body.layout-magazine .content-wrapper {
    margin: 16px 0;
    border-radius: 16px;
    border-color: rgba(255,255,255,0.22);
}

body.layout-onepage .main-nav {
    display: none;
}

body.layout-onepage #artist-header {
    height: 70vh;
    min-height: 440px;
}

body.layout-onepage main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px 60px;
    display: grid;
    gap: 22px;
}

body.layout-onepage .header-title-wrap {
    justify-items: flex-start;
    padding: 0 5%;
}

body.layout-onepage .profile-section {
    display: block;
    min-height: 0;
}

body.layout-onepage .content-wrapper {
    margin: 0;
}

body.layout-onepage #home {
    order: 1;
}

body.layout-onepage #about {
    order: 2;
}

body.layout-onepage #events {
    order: 3;
}

body.layout-onepage #store {
    order: 4;
}

body.layout-onepage .featured-track-full {
    padding: 28px 0;
    border-top: 0;
    background-size: cover;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(2, 8, 14, 0.36);
}

body.layout-onepage .track-content {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: rgba(3, 8, 14, 0.52);
}

body.layout-cards #artist-header {
    height: 320px;
}

body.layout-cards .main-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    width: min(1100px, calc(100% - 28px));
    margin: -18px auto 0;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
}

body.layout-cards main {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

body.layout-cards .content-wrapper {
    border-radius: 22px;
    border-color: rgba(255,255,255,0.2);
    background: linear-gradient(155deg, rgba(9, 18, 28, 0.88), rgba(10, 21, 33, 0.72));
    box-shadow: 0 14px 30px rgba(3, 8, 14, 0.35);
}

body.layout-cards .featured-track-full {
    border-top: 0;
    background: transparent !important;
    padding: 16px 0;
}

body.layout-cards .track-content {
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(145deg, rgba(8, 18, 28, 0.92), rgba(11, 24, 37, 0.84));
    box-shadow: 0 18px 34px rgba(2, 8, 14, 0.42);
}

body.layout-cards .portfolio-story-card,
body.layout-cards .event-row,
body.layout-cards .store-item {
    border-radius: 18px;
}

body.layout-immersive #artist-header {
    height: 85vh;
    min-height: 520px;
    align-items: flex-end;
    padding-bottom: 60px;
}

body.layout-immersive .main-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100% - 30px));
    z-index: 140;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background:
        radial-gradient(500px 120px at 20% -80%, rgba(255,255,255,0.16), transparent 50%),
        rgba(8, 16, 25, 0.78);
}

body.layout-immersive .main-nav a {
    border-radius: 999px;
}

body.layout-immersive main {
    max-width: 1120px;
    margin: -55px auto 30px;
    padding: 0 16px 24px;
    position: relative;
    z-index: 20;
}

body.layout-immersive .content-wrapper {
    background: linear-gradient(160deg, rgba(8, 17, 27, 0.88), rgba(6, 13, 22, 0.7));
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(2, 8, 14, 0.45);
}

body.layout-immersive .featured-track-full {
    border-top: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 40px rgba(2, 8, 14, 0.45);
}

body.layout-immersive .track-content {
    background: linear-gradient(145deg, rgba(5, 12, 20, 0.78), rgba(7, 15, 24, 0.65));
    border: 1px solid rgba(255,255,255,0.16);
}

body.layout-splitgrid #artist-header {
    height: 300px;
}

body.layout-splitgrid .main-nav {
    top: 10px;
    width: min(1100px, calc(100% - 28px));
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
}

body.layout-splitgrid main {
    max-width: 1160px;
    margin: 16px auto 28px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

body.layout-splitgrid .profile-section {
    display: block !important;
    min-height: 0;
}

body.layout-splitgrid #home { grid-column: 1 / span 2; order: 1; }
body.layout-splitgrid #about { order: 2; }
body.layout-splitgrid #events { order: 3; }
body.layout-splitgrid #store { grid-column: 1 / span 2; order: 4; }

body.layout-rail .main-nav {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    z-index: 140;
    border-left: 1px solid rgba(255,255,255,0.12);
    border-top: 0;
    border-bottom: 0;
    padding: 16px 12px;
    flex-direction: column;
    align-items: stretch;
}

body.layout-rail .nav-left,
body.layout-rail .nav-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}

body.layout-rail .nav-right { margin-top: auto; }

body.layout-rail .main-nav a {
    width: 100%;
    text-align: left;
}

body.layout-rail header,
body.layout-rail main {
    margin-right: 220px;
}

body.layout-rail #artist-header {
    height: 360px;
}

body.layout-framed {
    padding: 14px;
}

body.layout-framed .app-bg-overlay {
    background:
        linear-gradient(130deg, rgba(6, 14, 22, 0.95), rgba(12, 25, 38, 0.9));
}

body.layout-framed #artist-header,
body.layout-framed .main-nav,
body.layout-framed main {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
}

body.layout-framed #artist-header {
    height: 320px;
    overflow: hidden;
}

body.layout-framed .main-nav {
    top: 12px;
    width: min(1100px, calc(100% - 24px));
    margin: 10px auto;
}

body.layout-framed main {
    max-width: 1120px;
    margin: 0 auto 16px;
    padding: 0 12px 12px;
}

body.layout-mosaic #artist-header {
    height: 280px;
}

body.layout-mosaic .main-nav {
    border-bottom: 0;
}

body.layout-mosaic main {
    max-width: 1240px;
    margin: 0 auto 28px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

body.layout-mosaic .profile-section {
    display: block !important;
    min-height: 0;
}

body.layout-mosaic #home { grid-column: span 8; order: 1; }
body.layout-mosaic #about { grid-column: span 4; order: 2; }
body.layout-mosaic #events { grid-column: span 5; order: 3; }
body.layout-mosaic #store { grid-column: span 7; order: 4; }

body.layout-timeline #artist-header {
    height: 300px;
}

body.layout-timeline .main-nav {
    top: 0;
}

body.layout-timeline main {
    max-width: 980px;
    margin: 0 auto 30px;
    padding: 10px 16px 24px;
    display: grid;
    gap: 16px;
}

body.layout-timeline .profile-section {
    display: block !important;
    min-height: 0;
}

body.layout-timeline #events { order: 1; }
body.layout-timeline #home { order: 2; }
body.layout-timeline #about { order: 3; }
body.layout-timeline #store { order: 4; }

body.layout-timeline .content-wrapper,
body.layout-timeline .featured-track-full {
    border-left: 4px solid var(--primary);
}

body.layout-storefront #artist-header {
    height: 300px;
}

body.layout-storefront .profile-section {
    display: block !important;
    min-height: 0;
}

body.layout-storefront main {
    max-width: 1180px;
    margin: 0 auto 26px;
    padding: 12px 16px 20px;
    display: grid;
    gap: 16px;
}

body.layout-storefront #store { order: 1; }
body.layout-storefront #home { order: 2; }
body.layout-storefront #about { order: 3; }
body.layout-storefront #events { order: 4; }

body.layout-storefront .store-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

body.layout-showcase .main-nav {
    display: none;
}

body.layout-showcase #artist-header {
    height: 78vh;
    min-height: 480px;
}

body.layout-showcase main {
    max-width: 1140px;
    margin: -44px auto 30px;
    padding: 0 18px 20px;
    display: grid;
    gap: 18px;
}

body.layout-showcase .profile-section {
    display: block !important;
    min-height: 0;
}

body.layout-showcase #home { order: 1; }
body.layout-showcase #about { order: 2; }
body.layout-showcase #store { order: 3; }
body.layout-showcase #events { order: 4; }

body.layout-spotlight #artist-header {
    height: 82vh;
    min-height: 510px;
}

body.layout-spotlight .header-title-wrap {
    justify-items: center;
}

body.layout-spotlight .main-nav {
    width: min(760px, calc(100% - 30px));
    margin: -20px auto 0;
    border-radius: 999px;
}

body.layout-spotlight main {
    max-width: 860px;
    margin: 14px auto 28px;
    padding: 0 14px;
}

body.layout-compact #artist-header {
    height: 250px;
}

body.layout-compact header h1 {
    font-size: clamp(2.2rem, 10vw, 5rem);
}

body.layout-compact .main-nav {
    padding: 8px 10px;
}

body.layout-compact .main-nav a {
    padding: 6px 9px;
    font-size: 10px;
}

body.layout-compact .featured-track-full {
    padding: 26px 3%;
}

body.layout-compact .track-content {
    gap: 16px;
    padding: 14px;
}

body.layout-compact .track-visual img {
    width: 210px;
    height: 210px;
}

body.layout-compact .content-wrapper {
    padding: 28px 4%;
}

body.layout-wide #artist-header {
    height: 360px;
}

body.layout-wide main {
    max-width: 1480px;
    padding: 0 20px 24px;
}

body.layout-wide .featured-track-full {
    padding: 60px 2%;
}

body.layout-wide .track-content {
    max-width: 1440px;
    grid-template-columns: 400px minmax(0, 1fr);
    display: grid;
}

body.layout-wide .track-visual img {
    width: 400px;
    height: 400px;
}

body.layout-gallery #artist-header {
    height: 300px;
}

body.layout-gallery .profile-section {
    display: block !important;
    min-height: 0;
}

body.layout-gallery main {
    max-width: 1240px;
    margin: 0 auto 30px;
    padding: 10px 18px 24px;
    display: grid;
    gap: 14px;
}

body.layout-gallery #home { order: 1; }
body.layout-gallery #store { order: 2; }
body.layout-gallery #events { order: 3; }
body.layout-gallery #about { order: 4; }

body.layout-gallery .track-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

body.layout-gallery .track-visual img {
    width: 100%;
    height: 100%;
    min-height: 260px;
}

body.layout-editorial #artist-header {
    height: 340px;
    justify-content: flex-start;
    padding-left: 7%;
}

body.layout-editorial header h1 {
    letter-spacing: 1px;
}

body.layout-editorial .content-wrapper h2,
body.layout-editorial .track-details h1 {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0;
}

body.layout-editorial main {
    max-width: 1060px;
    margin: 0 auto 30px;
    padding: 0 16px 20px;
}

body.layout-hero-left #artist-header {
    height: 74vh;
    min-height: 460px;
    justify-content: flex-start;
    padding-left: 7%;
}

body.layout-hero-left .header-title-wrap {
    justify-items: start;
}

body.layout-hero-left .main-nav {
    width: min(980px, calc(100% - 28px));
    margin: -20px auto 0;
    border-radius: 14px;
}

body.layout-hero-right #artist-header {
    height: 74vh;
    min-height: 460px;
    justify-content: flex-end;
    padding-right: 7%;
}

body.layout-hero-right .header-title-wrap {
    justify-items: end;
}

body.layout-hero-right .main-nav {
    width: min(980px, calc(100% - 28px));
    margin: -20px auto 0;
    border-radius: 14px;
}

#loader {
    position: fixed;
    inset: 0;
    background: rgba(6, 17, 26, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

@media (max-width: 900px) {
    .tracks-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .tracks-layout-switch {
        width: 100%;
        justify-content: space-between;
    }

    .tracks-layout-btn {
        flex: 1;
        text-align: center;
    }

    body.layout-sidebar .main-nav {
        position: sticky;
        width: 100%;
        height: auto;
        top: 0;
        left: auto;
        bottom: auto;
        border-right: 0;
        flex-direction: column;
    }

    body.layout-sidebar header,
    body.layout-sidebar main {
        margin-left: 0;
    }

    .featured-track-full {
        padding: 24px 4%;
    }

    .track-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        padding: 16px;
    }

    .track-visual img {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
    }

    .track-details h1 {
        font-size: 1.5rem;
    }

    .player-controls {
        max-width: 100%;
    }

    .photo-mosaic {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 10px;
    }

    .flip-tile.shape-landscape { grid-column: span 1; }

    .media-mosaic { grid-template-columns: 1fr; }

    .main-nav {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    body.layout-magazine .main-nav {
        top: 0;
        width: 100%;
        border-radius: 0;
        margin: 0;
    }

    body.layout-magazine .track-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        padding: 16px;
        grid-template-columns: none;
    }

    body.layout-magazine .track-visual img {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
    }

    body.layout-magazine main,
    body.layout-onepage main,
    body.layout-cards main,
    body.layout-immersive main,
    body.layout-splitgrid main,
    body.layout-mosaic main,
    body.layout-timeline main,
    body.layout-storefront main,
    body.layout-showcase main,
    body.layout-spotlight main,
    body.layout-compact main,
    body.layout-wide main,
    body.layout-gallery main,
    body.layout-editorial main,
    body.layout-hero-left main,
    body.layout-hero-right main {
        padding: 0 12px 24px;
    }

    body.layout-immersive .main-nav {
        position: sticky;
        top: 0;
        left: auto;
        transform: none;
        width: 100%;
        border-radius: 0;
    }

    body.layout-immersive #artist-header {
        min-height: 430px;
        height: 72vh;
    }

    body.layout-rail .main-nav {
        position: sticky;
        width: 100%;
        right: auto;
        bottom: auto;
        border-left: 0;
        flex-direction: column;
    }

    body.layout-rail header,
    body.layout-rail main {
        margin-right: 0;
    }

    body.layout-splitgrid main,
    body.layout-mosaic main {
        grid-template-columns: 1fr;
    }

    body.layout-splitgrid #home,
    body.layout-splitgrid #store,
    body.layout-mosaic #home,
    body.layout-mosaic #about,
    body.layout-mosaic #events,
    body.layout-mosaic #store {
        grid-column: auto;
    }

    body.layout-wide .track-content,
    body.layout-gallery .track-content {
        display: flex;
    }

    body.layout-wide .track-visual img,
    body.layout-compact .track-visual img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .event-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    body[class*="layout-"] header,
    body[class*="layout-"] main {
        margin-left: 0;
        margin-right: 0;
    }

    body[class*="layout-"] main {
        display: block;
        max-width: 100%;
        padding: 0 12px 24px;
    }

    body[class*="layout-"] .main-nav {
        position: sticky;
        top: 0;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    body[class*="layout-"] .nav-left,
    body[class*="layout-"] .nav-right {
        width: auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    body[class*="layout-"] .main-nav a {
        width: auto;
    }

    body.layout-onepage .main-nav {
        display: flex;
    }

    body[class*="layout-"] .profile-section {
        display: none;
        min-height: 0;
    }

    body[class*="layout-"] .profile-section.active {
        display: block;
    }

    body[class*="layout-"] .header-title-wrap {
        justify-items: center;
        text-align: center;
    }

    body[class*="layout-"] #artist-header {
        height: auto;
        min-height: 360px;
        align-items: center;
        justify-content: center;
        padding: 24px 6%;
    }
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
    .app-bg-video { display: none; }
}

@keyframes galaxyUsernameShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.username-effect-hollow header h1 {
    color: transparent !important;
    -webkit-text-stroke: 2px var(--username-color) !important;
    text-shadow: none !important;
    background-image: none !important;
    -webkit-text-fill-color: transparent !important;
}

.username-hollow-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
    font-size: inherit;
    transform: translateY(-0.1em);
}

.username-hollow-svg text {
    font-family: var(--username-font);
    font-weight: 800;
    letter-spacing: -2px;
    font-size: 1em;
    fill: transparent;
    stroke: url(#usernameStrokeGradient);
    stroke-width: 6px;
    paint-order: stroke;
    vector-effect: non-scaling-stroke;
}

body.username-effect-neon header h1 {
    text-shadow:
        0 0 6px rgba(68, 193, 255, 0.6),
        0 0 18px rgba(73, 225, 201, 0.5),
        0 0 36px rgba(73, 225, 201, 0.35) !important;
}

body.username-effect-glow header h1 {
    text-shadow:
        0 10px 28px rgba(255, 255, 255, 0.25),
        0 0 22px rgba(255, 255, 255, 0.4) !important;
}

body.username-effect-shadow header h1 {
    text-shadow:
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.65) !important;
}
