/* Halja font - if not available on Google Fonts, uncomment and update paths below */
/*
@font-face {
    font-family: 'Halja';
    src: url('../fonts/Halja-Regular.woff2') format('woff2'),
         url('../fonts/Halja-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Halja';
    src: url('../fonts/Halja-Bold.woff2') format('woff2'),
         url('../fonts/Halja-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Halja';
    src: url('../fonts/Halja-Black.woff2') format('woff2'),
         url('../fonts/Halja-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
*/

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

html {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

body {
    font-family: 'Halja', 'Arial', 'Helvetica', sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    color: #111111;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    height: auto;
    min-height: 100vh;
}

body.splash-active {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    background: #000000;
}

body.site-active {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

/* Splash — flat black; logo uses transparent PNG (no mat) */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100dvh;
    background-color: #000000;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    pointer-events: auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.splash-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2001;
    pointer-events: none;
    width: min(90vw, 420px);
}

.splash-logo {
    max-width: min(72vw, 280px);
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto 2.5rem;
    animation: splashLogo 3.2s ease-in-out infinite;
    background: transparent;
    vertical-align: middle;
}

.splash-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    pointer-events: none;
}

.splash-cta-line {
    display: block;
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.55));
    animation: splashLine 2.4s ease-in-out infinite;
}

.scroll-hint {
    font-family: 'Halja', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    opacity: 1;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    animation: splashHint 2.8s ease-in-out infinite;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    margin: 0;
    padding: 0.65rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.scroll-hint:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.scroll-spacer {
    height: 120vh;
    width: 100%;
    flex-shrink: 0;
}

@keyframes splashLogo {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.94;
        transform: scale(1.02);
    }
}

@keyframes splashLine {
    0%, 100% {
        opacity: 0.45;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.08);
    }
}

@keyframes splashHint {
    0%, 100% {
        opacity: 0.65;
        border-color: rgba(255, 255, 255, 0.16);
    }
    50% {
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.32);
    }
}

.canvas-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.canvas-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

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

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    background: #ffffff;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Site Logo (small, top) */
.site-logo {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    animation: fadeInLogo 2s ease-in-out 0.5s forwards;
}

.site-logo-img {
    max-height: 40px;
    width: auto;
    height: auto;
    display: block;
}

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

/* Content Overlays */
.content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: #ffffff;
    border: 3px solid #000000;
    padding: 3rem;
    z-index: 100;
    display: none;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    animation: fadeIn 0.5s ease-out;
}

.content-overlay.active {
    display: block;
}

.close-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffffff;
    border: 2px solid #111111;
    color: #111111;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Halja', sans-serif;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 101;
}

.close-overlay:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
    transform: scale(1.1);
}

.overlay-content {
    font-family: 'Halja', sans-serif;
    color: #111111;
    text-align: center;
}

.overlay-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #000000;
}

.overlay-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 1;
    color: #222222;
    letter-spacing: 0.05em;
}

.artist-link-container,
.contact-link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Releases Section - 3x3 Grid */
.releases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.release-card {
    text-decoration: none;
    color: #111111;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease;
}

.release-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid #111111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.release-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.release-card:hover .release-cover-wrapper {
    transform: scale(1.15);
    border-color: #000000;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
    z-index: 10;
}

.release-card:hover .release-cover {
    transform: scale(1.1);
}

.release-title {
    font-family: 'Halja', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    letter-spacing: 0.1em;
    text-align: center;
    transition: color 0.3s ease;
}

.release-artist {
    font-family: 'Halja', sans-serif;
    font-size: 0.9rem;
    color: #444444;
    margin: 0;
    letter-spacing: 0.05em;
    text-align: center;
}

.release-card:hover .release-title {
    color: #000000;
    text-shadow: none;
}

.overlay-artist-link,
.overlay-contact-link {
    font-family: 'Halja', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.8rem 0.8rem;
    border: 2px solid #111111;
    display: inline-block;
}

.overlay-artist-link:hover,
.overlay-contact-link:hover {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.artist-url,
.contact-handle,
.contact-url {
    font-family: 'Halja', sans-serif;
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 0.1em;
    margin: 0.5rem 0;
}

.contact-handle {
    font-weight: 700;
    font-size: 1.2rem;
}

.sticky-logo {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    animation: fadeInDown 0.8s ease-out;
    background: transparent;
    padding: 0;
}

.sticky-logo .logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.click-disclaimer {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 2px solid #000000;
    padding: 0.5rem 1rem;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards;
}

.click-disclaimer p {
    font-family: 'Halja', sans-serif;
    font-size: 0.8rem;
    color: #111111;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 1;
}

.controls-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    align-items: center;
    background: #f0f0f0;
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 0;
    border: 2px solid #000000;
    z-index: 10;
    touch-action: none;
    pointer-events: auto;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.control-item label {
    font-family: 'Halja', sans-serif;
    font-size: 0.9rem;
    color: #111111;
    opacity: 1;
    font-weight: 400;
}


input[type="range"] {
    width: 200px;
    height: 6px;
    border-radius: 0;
    background: #cccccc;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111111;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 0 1px #111111;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111111;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #111111;
}

button {
    font-family: 'Halja', sans-serif;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 2px solid #111111;
    border-radius: 0;
    color: #111111;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

button:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #111111;
}

button:active {
    transform: translateY(0);
}


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

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

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

/* Mobile and Tablet Styles */
@media (max-width: 1024px) {
    .sticky-logo {
        top: 10px;
        padding: 0;
    }
    
    .sticky-logo .logo {
        max-height: 70px;
    }
    
    .site-logo {
        top: 12px;
    }
    
    .site-logo-img {
        max-height: 35px;
    }
    
    .click-disclaimer {
        bottom: 190px;
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        max-width: 85%;
    }
    
    .content-overlay {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 80vh;
    }
    
    .overlay-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .controls-overlay {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 90%;
        align-items: stretch;
    }
    
    .control-item {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
        width: 100%;
    }
    
    .control-item label {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    input[type="range"] {
        width: 100%;
        max-width: 180px;
        height: 8px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }
    
    button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* iPhone and Small Mobile */
@media (max-width: 480px) {
    .sticky-logo {
        top: 5px;
        padding: 0;
    }
    
    .sticky-logo .logo {
        max-height: 50px;
    }
    
    .site-logo {
        top: 10px;
    }
    
    .site-logo-img {
        max-height: 30px;
    }
    
    .click-disclaimer {
        bottom: 180px;
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        max-width: 85%;
        line-height: 1.3;
    }
    
    .content-overlay {
        width: 96%;
        padding: 1.5rem 1.2rem;
        max-height: 75vh;
    }
    
    .overlay-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .overlay-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .overlay-artist-link,
    .overlay-contact-link {
        font-size: 1.3rem;
        padding: 0.6rem 1.2rem;
    }
    
    .releases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .release-title {
        font-size: 0.85rem;
    }
    
    .release-artist {
        font-size: 0.7rem;
    }
    
    .album-cover-container {
        width: 250px;
        height: 250px;
    }
    
    .album-title {
        font-size: 1.6rem;
    }
    
    .album-artist {
        font-size: 1.1rem;
    }
    
    .streaming-link {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .streaming-links {
        gap: 0.8rem;
    }
    
    .close-overlay {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
        top: 0.4rem;
        right: 0.4rem;
    }
    
    .click-disclaimer p {
        font-size: 0.6rem;
        margin: 0;
    }
    
    .controls-overlay {
        padding: 0.6rem 0.8rem;
        bottom: 12px;
        gap: 0.7rem;
        max-width: 90%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-item {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    
    .control-item label {
        font-size: 0.65rem;
        white-space: nowrap;
        text-align: center;
    }
    
    input[type="range"] {
        width: 100%;
        max-width: 160px;
        height: 6px;
    }
    
    button {
        width: 100%;
        max-width: 160px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }
    
    button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .sticky-logo .logo {
        max-height: 60px;
    }
    
    .click-disclaimer {
        bottom: 170px;
        font-size: 0.65rem;
        max-width: 85%;
    }
    
    .controls-overlay {
        bottom: 8px;
        padding: 0.5rem 0.7rem;
        flex-direction: column;
        gap: 0.6rem;
        max-width: 90%;
        align-items: stretch;
    }
    
    .control-item {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
        width: 100%;
    }
    
    .control-item label {
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    input[type="range"] {
        width: 100%;
        max-width: 140px;
        height: 6px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        border-radius: 50%;
    }
    
    input[type="range"]::-moz-range-thumb {
        border-radius: 50%;
    }
    
    button {
        width: 100%;
        max-width: 140px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .sticky-logo {
        top: max(20px, env(safe-area-inset-top));
    }
    
    .controls-overlay {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}
