/* ==========================================================================
   FAN LINK — standalone cinematic page
   ========================================================================== */

html:has(body.jaaweed-fanlink),
body.jaaweed-fanlink {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: #050505;
}

body.jaaweed-fanlink {
    overflow-x: hidden;
    overflow-y: auto;
}
body.jaaweed-fanlink .site-header {
    display: none !important;
}

.fl {
    --fl-white: #f4f4f4;
    --fl-mute:  rgba(244, 244, 244, 0.42);
    --fl-line:  rgba(255, 255, 255, 0.16);
    --fl-glow:  rgba(200, 214, 230, 0.55);
    --fl-gutter: clamp(1.35rem, 5.5vw, 4.5rem);
    --fl-rail:   2.75rem;

    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top:    max(2.5rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
    padding-left:   calc(var(--fl-gutter) + var(--fl-rail) + env(safe-area-inset-left, 0px));
    padding-right:  calc(var(--fl-gutter) + var(--fl-rail) + env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    color: var(--fl-white);
    font-family: var(--font-sans);
    text-transform: uppercase;
}

/* ── Atmosphere ─────────────────────────────────────────── */
.fl__stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #050505;
}
.fl__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(0.35) contrast(1.12) brightness(0.55);
    transform: scale(1.04);
    animation: fl-drift 28s ease-in-out infinite alternate;
}
.fl__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 42%, rgba(8, 10, 14, 0.15) 0%, rgba(5, 5, 5, 0.55) 55%, rgba(0, 0, 0, 0.82) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.55) 100%);
}
.fl__grain {
    position: absolute;
    inset: -20%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.28;
    mix-blend-mode: overlay;
    animation: fl-grain 0.9s steps(2) infinite;
}
.fl__dust {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.45), transparent),
        radial-gradient(1.5px 1.5px at 78% 18%, rgba(255,255,255,0.28), transparent),
        radial-gradient(1px 1px at 62% 70%, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 28% 82%, rgba(255,255,255,0.22), transparent),
        radial-gradient(1.5px 1.5px at 88% 58%, rgba(255,255,255,0.2), transparent);
    opacity: 0.55;
    animation: fl-dust 16s linear infinite;
}
.fl__vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 140px 40px rgba(0, 0, 0, 0.72);
}

@keyframes fl-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.08) translate3d(0, -1.4%, 0); }
}
@keyframes fl-grain {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-1.5%, 1.5%); }
}
@keyframes fl-dust {
    from { transform: translateY(0); }
    to   { transform: translateY(-18px); }
}

/* ── Side rails ─────────────────────────────────────────── */
.fl__rail {
    position: absolute;
    z-index: 3;
    top: 50%;
    margin: 0;
    font-size: 0.58rem;
    letter-spacing: 0.42em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.32);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
.fl__rail--left {
    left: max(1.1rem, env(safe-area-inset-left));
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
}
.fl__rail--right {
    right: max(1.1rem, env(safe-area-inset-right));
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
}

/* ── Mute ───────────────────────────────────────────────── */
.fl__mute {
    position: absolute;
    z-index: 6;
    top: max(1.15rem, env(safe-area-inset-top));
    right: max(1.15rem, env(safe-area-inset-right));
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    color: var(--fl-white);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.fl__mute:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}
.fl__mute-icon { font-size: 1rem; line-height: 1; }
.fl__mute-icon--on { display: none; }
.fl__mute:not(.is-muted) .fl__mute-icon--off { display: none; }
.fl__mute:not(.is-muted) .fl__mute-icon--on  { display: block; }

/* ── Center column ──────────────────────────────────────── */
.fl__shell {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 4vh, 2.6rem);
    box-sizing: border-box;
}

.fl__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.55rem, 1.6vh, 0.85rem);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fl__badge {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
    padding: 0.38rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.58rem;
    letter-spacing: 0.38em;
    font-weight: 600;
    color: rgba(244, 244, 244, 0.82);
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fl-in 0.9s var(--ease-out-expo) both;
    box-sizing: border-box;
}
.fl__badge-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #7CFFB2;
    box-shadow: 0 0 10px rgba(124, 255, 178, 0.85);
    animation: fl-live 1.8s ease-in-out infinite;
}

.fl__title {
    margin: 0;
    max-width: 100%;
    font-size: clamp(2.15rem, 9vw, 4.6rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 0.95;
    color: #f7f8fa;
    overflow-wrap: anywhere;
    text-wrap: balance;
    text-shadow:
        0 0 18px rgba(220, 230, 240, 0.35),
        0 0 48px rgba(148, 163, 184, 0.28),
        0 0 90px rgba(148, 163, 184, 0.12);
    animation: fl-in 1s var(--ease-out-expo) 0.08s both;
}

.fl__subtitle {
    margin: 0;
    max-width: 100%;
    font-size: clamp(0.56rem, 1.6vw, 0.74rem);
    letter-spacing: 0.48em;
    font-weight: 500;
    color: rgba(244, 244, 244, 0.62);
    line-height: 1.6;
    text-wrap: balance;
    padding-inline: 0.25rem;
    box-sizing: border-box;
    animation: fl-in 1s var(--ease-out-expo) 0.16s both;
}

/* ── Link list ──────────────────────────────────────────── */
.fl__links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fl__row {
    position: relative;
    display: grid;
    grid-template-columns: 2.4rem 1.7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.35rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.15rem 0.15rem 0.15rem 0.05rem;
    color: var(--fl-white);
    border-top: 1px solid var(--fl-line);
    isolation: isolate;
    box-sizing: border-box;
    animation: fl-row-in 0.7s var(--ease-out-expo) calc(0.18s + var(--fl-i, 0) * 0.06s) both;
    transition: background 0.35s ease, letter-spacing 0.35s ease;
}
.fl__row:last-child {
    border-bottom: 1px solid var(--fl-line);
}
.fl__row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(160px 48px at var(--mx, 18%) 50%, rgba(255,255,255,0.1), transparent 72%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.fl__row:hover::before,
.fl__row:focus-visible::before {
    opacity: 1;
}
.fl__row:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.fl__num {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    font-weight: 500;
    color: var(--fl-mute);
}
.fl__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.12));
    transition: transform 0.35s var(--ease-out-expo), filter 0.35s ease;
}
.fl__label {
    min-width: 0;
    font-size: clamp(0.72rem, 2.4vw, 0.92rem);
    letter-spacing: 0.22em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: letter-spacing 0.35s ease, transform 0.35s ease;
}
.fl__go {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.72);
    transition: transform 0.35s var(--ease-out-expo), color 0.3s ease;
}
.fl__go svg { width: 100%; height: 100%; display: block; }

.fl__row:hover .fl__icon,
.fl__row:focus-visible .fl__icon {
    transform: scale(1.12);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}
.fl__row:hover .fl__label,
.fl__row:focus-visible .fl__label {
    letter-spacing: 0.34em;
}
.fl__row:hover .fl__go,
.fl__row:focus-visible .fl__go {
    color: #fff;
    transform: translate(3px, -3px);
}

.fl__empty {
    margin: 0;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--fl-mute);
    line-height: 1.7;
}
.fl__empty em { color: var(--fl-white); font-style: normal; }

@keyframes fl-in {
    from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: none; }
}
@keyframes fl-row-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fl-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.75); }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1100px) {
    .fl {
        --fl-rail: 2.4rem;
        --fl-gutter: clamp(1.25rem, 4vw, 2.5rem);
    }
    .fl__rail {
        font-size: 0.52rem;
        letter-spacing: 0.32em;
    }
}

@media (max-width: 900px) {
    .fl {
        --fl-rail: 0px;
        --fl-gutter: max(1.5rem, 5.5vw);
    }
    .fl__rail { display: none; }
    .fl__shell { width: min(520px, 100%); }
}

@media (max-width: 720px) {
    .fl {
        --fl-gutter: max(1.4rem, 6vw);
        min-height: 100dvh;
        align-items: center;
        justify-content: flex-start;
        padding-top: max(3.4rem, calc(env(safe-area-inset-top, 0px) + 2.6rem));
    }
    .fl__shell {
        width: 100%;
        gap: 1.35rem;
    }
    .fl__title {
        font-size: clamp(2rem, 11vw, 2.85rem);
        letter-spacing: 0.05em;
    }
    .fl__subtitle {
        letter-spacing: 0.28em;
        font-size: 0.56rem;
    }
    .fl__badge {
        font-size: 0.52rem;
        letter-spacing: 0.26em;
        padding: 0.32rem 0.7rem;
    }
    .fl__row {
        grid-template-columns: 2rem 1.45rem minmax(0, 1fr) auto;
        gap: 0.5rem;
        min-height: 3.2rem;
    }
    .fl__label { letter-spacing: 0.14em; }
    .fl__row:hover .fl__label,
    .fl__row:focus-visible .fl__label { letter-spacing: 0.16em; }
    .fl__mute {
        width: 42px;
        height: 42px;
        top: max(0.85rem, env(safe-area-inset-top, 0px));
        right: max(0.85rem, env(safe-area-inset-right, 0px));
    }
}

@media (max-width: 480px) {
    .fl {
        --fl-gutter: max(1.25rem, 6.5vw);
        padding-top: max(3.1rem, calc(env(safe-area-inset-top, 0px) + 2.4rem));
        padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
    }
    .fl__header { gap: 0.5rem; }
    .fl__title {
        font-size: clamp(1.7rem, 10.5vw, 2.25rem);
        letter-spacing: 0.04em;
    }
    .fl__subtitle {
        letter-spacing: 0.18em;
        font-size: 0.52rem;
        padding-inline: 0;
    }
    .fl__row {
        min-height: 3.05rem;
        gap: 0.45rem;
    }
    .fl__num { font-size: 0.56rem; }
    .fl__icon { font-size: 1.05rem; }
}

@media (max-width: 380px) {
    .fl { --fl-gutter: 1.15rem; }
    .fl__title { font-size: 1.55rem; letter-spacing: 0.03em; }
    .fl__badge { letter-spacing: 0.16em; font-size: 0.48rem; }
    .fl__row {
        grid-template-columns: 1.7rem minmax(0, 1fr) auto;
        min-height: 2.95rem;
    }
    .fl__num { display: none; }
    .fl__label { letter-spacing: 0.1em; font-size: 0.7rem; }
}

@media (max-width: 320px) {
    .fl { --fl-gutter: 1rem; }
    .fl__title { font-size: 1.38rem; }
    .fl__row { min-height: 2.8rem; }
}

/* Short landscape phones / foldables */
@media (max-height: 700px) and (orientation: landscape) {
    .fl {
        --fl-rail: 0px;
        --fl-gutter: max(1.25rem, 4vw);
        min-height: 0;
        height: auto;
        align-items: flex-start;
        padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
    }
    .fl__rail { display: none; }
    .fl__header { gap: 0.35rem; }
    .fl__title { font-size: clamp(1.45rem, 7vh, 2.2rem); }
    .fl__subtitle { letter-spacing: 0.22em; font-size: 0.5rem; }
    .fl__badge { display: none; }
    .fl__row { min-height: 2.55rem; }
    .fl__mute {
        width: 36px;
        height: 36px;
        top: max(0.65rem, env(safe-area-inset-top, 0px));
        right: max(0.65rem, env(safe-area-inset-right, 0px));
    }
}

@media (hover: none) and (pointer: coarse) {
    .fl__row { min-height: 3.15rem; }
    .fl__row:hover .fl__label { letter-spacing: inherit; }
    .fl__row:hover .fl__go,
    .fl__row:hover .fl__icon { transform: none; }
    .fl__row:active { background: rgba(255, 255, 255, 0.05); }
    .fl__mute:hover { transform: none; }
    .fl__mute {
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fl__photo, .fl__grain, .fl__dust, .fl__badge, .fl__title, .fl__subtitle, .fl__row, .fl__badge-dot {
        animation: none !important;
    }
    .fl__row::before { transition: none; }
}
