/* ==========================================================================
   REDESIGN — static homepage layer on top of style.css
   (big headlines, release cards).
   No scroll-driven animation. Gated behind html.fx-on (set on <html>).
   ========================================================================== */

:root {
    --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fx-radius: 22px;
}

/* ---------- Global polish ---------------------------------------------- */

html.fx-on .navbar.scrolled {
    background: rgba(8, 8, 8, 0.68);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
}

.fx-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Red buttons: slightly deeper red so white text is readable (4.9:1 vs 3.7:1) */
html.fx-on .btn-primary { background-color: #dc2020; }
html.fx-on .btn-primary:hover { background-color: #c41a1a; }

html.fx-on .section-title {
    font-size: clamp(2.6rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}
html.fx-on .section-title::after {
    width: 64px;
}

/* Artists marquee: rounded window */
html.fx-on .artists-grid-wrapper {
    clip-path: inset(0 5% round 32px);
}

/* ---------- FILM GRAIN ------------------------------------------------- */
/* Crisp, grayscale, tiled noise that flickers like film (~16 fps).
   Note: insanity-mode / op-theme set their own opacity (0.35 / 0.08).
   The old version stretched one 200px noise image across 4x the screen,
   which turned it into soft coloured blobs. Plain .grain-overlay selector
   on purpose: insanity-mode / op-theme opacity overrides still win. */
.grain-overlay {
    /* offsets are multiples of 4px so 125% / 150% screens land on whole pixels */
    top: -160px;
    left: -160px;
    width: calc(100% + 320px);
    height: calc(100% + 320px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3.5' intercept='-2.2'/%3E%3CfeFuncG type='linear' slope='3.5' intercept='-2.2'/%3E%3CfeFuncB type='linear' slope='3.5' intercept='-2.2'/%3E%3CfeFuncA type='table' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 240px 240px;
    background-repeat: repeat;
    /* Dark-biased noise (mostly black, sparse bright specks) so the
       #050505 background stays as dark as it was — measured mean ≈ 5. */
    opacity: 0.12;
    animation: fx-grain 0.5s steps(1) infinite;
}
/* Pixel-exact canvas tile generated in index.php (see the inline script) */
.grain-overlay.is-canvas {
    opacity: 0.2;
}
/* Whole-pixel jumps (multiples of 4px) so the grain is never resampled/blurred */
@keyframes fx-grain {
    0%     { transform: translate(0, 0); }
    12.5%  { transform: translate(-64px, 40px); }
    25%    { transform: translate(88px, -28px); }
    37.5%  { transform: translate(-32px, -96px); }
    50%    { transform: translate(52px, 72px); }
    62.5%  { transform: translate(-96px, 12px); }
    75%    { transform: translate(20px, 104px); }
    87.5%  { transform: translate(104px, -56px); }
}
@media (prefers-reduced-motion: reduce) {
    .grain-overlay { animation: none; }
}

/* ---------- HERO ------------------------------------------------------- */

.fx-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 2.2rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    pointer-events: none;
}
.fx-scroll-cue i {
    position: relative;
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}
.fx-scroll-cue i::after {
    content: '';
    position: absolute;
    left: 0;
    top: -50%;
    width: 100%;
    height: 50%;
    background: var(--accent-color);
    animation: fx-cue 2s var(--fx-ease) infinite;
}
@keyframes fx-cue {
    to { top: 110%; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-scroll-cue i::after { animation: none; top: 25%; }
}

/* ---------- ABOUT ------------------------------------------------------ */

html.fx-on .fx-about { position: relative; }
html.fx-on .fx-about .about-content p {
    font-size: clamp(1.7rem, 3.8vw, 3.6rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.025em;
    max-width: 1100px;
    color: var(--text-color);
}

/* ---------- COLLECTIVE ------------------------------------------------- */

html.fx-on .collective-card {
    border-radius: 18px;
}
html.fx-on .collective-card .card-image img {
    transition: transform 0.9s var(--fx-ease), filter 0.9s var(--fx-ease);
}

/* ---------- FEATURED RELEASE: newest release, big card + player ------- */

.featured-release {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 3rem;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}
.featured-release[hidden] { display: none; }
.featured-release-cover {
    display: block;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}
.featured-release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--fx-ease);
}
.featured-release-cover:hover img { transform: scale(1.04); }

.featured-release-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    min-width: 0;
    padding-right: clamp(0rem, 2vw, 1.5rem);
}
.featured-release-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-color);
}
.rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: rec-blink 1s infinite alternate;
}
.featured-release-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}
.featured-release-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.featured-release-meta a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}
.featured-release-meta a:hover { border-color: var(--text-color); }
.featured-release-player {
    width: 100%;
    border: 0;
    border-radius: 12px;
    margin-top: 0.4rem;
    background: #000;
}
.featured-release-link {
    gap: 0.6rem;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
}
.featured-release-link i { font-size: 1.15rem; }

@media (max-width: 768px) {
    .featured-release {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        margin-bottom: 2rem;
        padding: 0.9rem 0.9rem 1.4rem;
    }
    .featured-release-body { padding: 0 0.4rem; }
    .featured-release-eyebrow {
        flex-wrap: wrap;
        font-size: 0.68rem;
        letter-spacing: 0.18em;
    }
    .featured-release-eyebrow span { white-space: nowrap; }
    .featured-release-link { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .rec-dot { animation: none; }
}

/* ---------- RELEASES: box grid, same layout as The Collective ---------- */

html.fx-on .fx-releases .releases-showcase {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
html.fx-on .fx-releases .release-list-item {
    container-type: inline-size;   /* lets the play button sit on the cover */
    position: relative;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 0;
    gap: 0;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition) !important;
    opacity: 1 !important;
}
html.fx-on .fx-releases .release-list-item:not(:hover) {
    transform: none !important;
}
html.fx-on .fx-releases .release-list-item:hover {
    background: var(--card-bg);
    border-color: var(--border-color);
    transform: translateY(-5px) !important;
}
html.fx-on .fx-releases .release-cover-small {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
}
html.fx-on .fx-releases .release-cover-small img {
    transition: transform 0.6s ease;
}
html.fx-on .fx-releases .release-list-item:hover .release-cover-small img {
    transform: scale(1.05);
}
html.fx-on .fx-releases .release-info-small {
    min-width: 0;
    padding: 1.5rem;
}
html.fx-on .fx-releases .release-info-small h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
html.fx-on .fx-releases .release-info-small p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* REC badge sits inside the cover (the card clips anything outside it) */
html.fx-on .fx-releases .rec-badge {
    top: 12px;
    right: 12px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
html.fx-on .fx-releases .release-wave,
html.fx-on .fx-releases .release-spotify-link { display: none; }
html.fx-on .fx-releases .release-play-btn {
    position: absolute;
    right: 1rem;
    top: calc(100cqw - 4.2rem);
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    font-size: 1.5rem;
    opacity: 0;
    translate: 0 10px;
    transition: opacity 0.4s ease, translate 0.4s var(--fx-ease);
}
html.fx-on .fx-releases .release-list-item:hover .release-play-btn {
    opacity: 1;
    translate: 0 0;
    color: #000;
}

/* ---------- CONTACT / FOOTER ------------------------------------------ */

html.fx-on .contact-form input,
html.fx-on .contact-form textarea {
    border-radius: 14px;
}

/* Inline form feedback (replaces the old browser alert pop-ups) */
.form-status {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: -0.4rem 0 0;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
}
.form-status[hidden] { display: none; }
.form-status i {
    font-size: 1.1rem;
    line-height: 1.3;
}
.form-status.is-success { border-color: rgba(16, 185, 129, 0.45); }
.form-status.is-success i { color: #10b981; }
.form-status.is-error { border-color: rgba(255, 42, 42, 0.5); }
.form-status.is-error i { color: var(--accent-color); }


/* ---------- OUR ARTISTS section (kept from the polish pass) ------------ */
/* Scoped to #artists on purpose: the other sections keep their earlier look. */

html.fx-on #artists.section {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}
html.fx-on #artists .section-title {
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
html.fx-on #artists .fx-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    font-size: 0.74rem;
}
html.fx-on #artists .fx-eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
}
html.fx-on #artists .artist-card {
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition: transform 0.5s var(--fx-ease), border-color 0.4s ease;
}
html.fx-on #artists .artist-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.22);
}
html.fx-on #artists .card-image img {
    transition: transform 0.8s var(--fx-ease), filter 0.8s var(--fx-ease);
}
html.fx-on #artists .card-info {
    padding: 1.1rem 1.25rem 1.3rem;
}
html.fx-on #artists .card-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.3vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.fx-on #artists .card-info span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}


/* ==========================================================================
   ARTIST PAGES (pages/artist.php) — same look as the homepage.
   The accent colour is each artist's theme colour (set by main.js);
   --accent-text is a readable version of it for small text.
   ========================================================================== */

.artist-page-body .fx-eyebrow,
.artist-page-body .artist-header .genre,
.artist-page-body .featured-release-eyebrow {
    color: var(--accent-text, var(--accent-color));
}

/* Hero */
.artist-page-body .artist-hero {
    height: 82vh;
    min-height: 520px;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}
/* the hero is a flex box: without this the container shrinks and drifts to
   the centre instead of lining up with the section headings below */
.artist-page-body .artist-hero > .container { width: 100%; }
.artist-page-body .artist-hero::after {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.25) 0%, rgba(5, 5, 5, 0.4) 45%, var(--bg-color) 100%);
}
.artist-page-body .artist-header .genre {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    margin-bottom: 0.9rem;
}
.artist-page-body .artist-header h1 {
    font-size: clamp(3.5rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 1.25rem;
    overflow-wrap: anywhere;
}

/* Bio */
.artist-page-body .artist-bio-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
}
.artist-page-body .artist-bio-short {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-color);
    padding-left: 1.25rem;
    border-left: 2px solid var(--accent-color);
}
.artist-page-body .artist-bio-long {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #bdbdbd;
}
.artist-page-body .artist-bio-long p { white-space: pre-line; } /* keep the bio's paragraphs */
.artist-page-body .artist-socials { gap: 0.8rem; }
.artist-page-body .artist-socials a {
    width: 46px;
    height: 46px;
    border-color: rgba(255, 255, 255, 0.12);
}

/* Featured video */
.artist-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #000;
}
.artist-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Release + video cards: same boxes as the homepage releases */
.artist-page-body .alltime-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}
.artist-page-body .alltime-card {
    padding: 0;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
    transition: transform 0.5s var(--fx-ease), border-color 0.4s ease;
}
.artist-page-body .alltime-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
}
.artist-page-body .alltime-cover {
    border-radius: 0;
    margin: 0;
}
.artist-page-body .alltime-cover img { transition: transform 0.8s var(--fx-ease); }
.artist-page-body .alltime-title {
    order: 1;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.3vw, 1.3rem);
    letter-spacing: -0.01em;
    padding: 1.1rem 1.25rem 0;
    margin-bottom: 0.35rem;
}
.artist-page-body .alltime-subtitle {
    order: 2;
    padding: 0 1.25rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.artist-page-body .alltime-status-row {
    order: 3;
    padding: 0 1.25rem 1.3rem;
    margin: 0;
}
.artist-page-body .alltime-date { font-size: 0.75rem; color: #7c7c7c; }
.artist-page-body .alltime-badge,
.artist-page-body .alltime-btn { display: none; }

/* Gallery */
.artist-page-body .gallery-grid { gap: 1rem; }
.artist-page-body .gallery-item { border-radius: 14px; }

@media (max-width: 992px) {
    .artist-page-body .artist-bio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .artist-page-body .artist-hero { height: 70vh; min-height: 420px; }
    .artist-page-body .alltime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .artist-page-body .alltime-title { font-size: 0.95rem; padding: 0.8rem 0.8rem 0; }
    .artist-page-body .alltime-subtitle { padding: 0 0.8rem; font-size: 0.62rem; }
    .artist-page-body .alltime-status-row { padding: 0 0.8rem 0.9rem; }
    .artist-page-body .alltime-date { font-size: 0.68rem; }
    .artist-page-body .gallery-grid { gap: 0.5rem; }
    .artist-page-body .gallery-item { border-radius: 10px; }
}


/* ---------- Small screens --------------------------------------------- */

@media (max-width: 768px) {
    /* 3 per row, matching the collective grid on phones */
    html.fx-on .fx-releases .releases-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    html.fx-on .fx-releases .release-play-btn,
    html.fx-on .fx-releases .rec-badge { display: none; }
    html.fx-on .fx-releases .release-info-small { padding: 10px; flex-grow: 0; }
    html.fx-on .fx-releases .release-info-small h3 { font-size: 0.9rem; margin-bottom: 0.2rem; }
    html.fx-on .fx-releases .release-info-small p { font-size: 0.65rem; }
    html.fx-on .fx-about .about-content p {
        font-size: clamp(1.25rem, 5.6vw, 1.9rem);
        line-height: 1.25;
    }
    html.fx-on .artists-grid-wrapper { clip-path: inset(0 3% round 20px); }
}
