/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn--filled {
    background: var(--color-invert-bg);
    color: var(--color-invert-text);
}

.btn--filled:hover {
    background: var(--color-invert-bg-hover);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-text);
}

.btn--accent {
    background: var(--color-accent);
    color: #fff;
}

.btn--accent:hover {
    background: var(--color-accent-hover);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 12px;
}

/* Pill tag */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Top navigation - floating, blurred pill */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    width: 100%;
    max-width: 100%;
    background: var(--color-bg);
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    transition: top .3s ease, width .3s ease, max-width .3s ease,
        border-radius .3s ease, background-color .3s ease,
        border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

.navbar.is-scrolled {
    top: 16px;
    width: calc(100% - 32px);
    max-width: var(--container-max);
    background: rgba(11, 11, 13, 0.62);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--space-5);
}

@media (max-width: 640px) {
    .navbar.is-scrolled {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: var(--radius-md);
    }

    .navbar__inner {
        padding: 8px var(--space-4);
    }
}

.navbar__logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.04em;
    color: var(--color-text-on-dark);
}

.navbar__logo {
    display: flex;
    align-items: center;
}

.navbar__logo img {
    display: block;
    height: 26px;
    width: auto;
}

.navbar__logo--footer img {
    height: 32px;
}

@media (max-width: 640px) {
    .navbar__logo img {
        height: 22px;
    }
}

.navbar__links {
    display: flex;
    gap: var(--space-6);
}

.navbar__links a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-on-dark-muted);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.navbar__links a:hover,
.navbar__links a.is-active {
    color: var(--color-text-on-dark);
    border-color: var(--color-accent);
}

.navbar__social {
    display: flex;
    gap: var(--space-3);
}

.navbar__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-on-dark);
}

.navbar__social a:hover {
    background: var(--color-accent);
}

.theme-toggle-site {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-on-dark);
    border: none;
    cursor: pointer;
    margin-left: var(--space-2);
}

.theme-toggle-site:hover {
    background: var(--color-accent);
}

.navbar__right {
    display: flex;
    align-items: center;
}

.navbar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--color-text-on-dark);
    cursor: pointer;
}

@media (max-width: 860px) {
    .navbar__inner {
        display: grid;
        grid-template-columns: 36px 1fr 36px;
        align-items: center;
    }

    .navbar__logo {
        justify-self: center;
    }

    .navbar__nav-desktop,
    .navbar__right {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }
}

/* Mobile slide-out drawer */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.mobile-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5999;
    width: 280px;
    max-width: 82vw;
    background: var(--color-bg);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: calc(var(--space-6) + env(safe-area-inset-top, 0px)) var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.mobile-drawer__links a {
    display: block;
    padding: 10px 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-on-dark-muted);
}

.mobile-drawer__links a.is-active,
.mobile-drawer__links a:hover {
    color: var(--color-text-on-dark);
}

.mobile-drawer__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-5);
}

.mobile-drawer__social {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.mobile-drawer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-on-dark);
}

.mobile-drawer__social a:hover {
    background: var(--color-accent);
}

.mobile-drawer__theme {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 10px 4px;
    background: none;
    border: none;
    color: var(--color-text-on-dark-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-drawer__theme:hover {
    color: var(--color-text-on-dark);
}

@media (min-width: 861px) {
    .mobile-drawer,
    .mobile-drawer-backdrop {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    background: var(--color-bg) var(--hero-bg, none) right center / cover no-repeat;
    color: var(--color-text-on-dark);
    overflow: hidden;
}

/* keep the text readable when the crystals end up behind it on narrow screens */
@media (max-width: 900px) {
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(90deg, rgba(11, 11, 13, 0.85) 0%, rgba(11, 11, 13, 0.4) 100%);
    }
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: var(--space-6);
    padding-top: calc(var(--nav-clearance) + var(--space-4));
}

@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        padding-top: calc(var(--nav-clearance) + var(--space-2));
    }
}

.hero__inner {
    padding: var(--space-6) 0 var(--space-9);
    max-width: 620px;
}

.hero__portrait {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.hero__portrait img {
    position: relative;
    max-height: 640px;
    width: auto;
    object-fit: contain;
    /* sits slightly lower than the box, so the hero's overflow:hidden trims the bottom edge */
    margin-bottom: -56px;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}

@media (max-width: 900px) {
    .hero__portrait img {
        max-height: 420px;
        margin-bottom: -32px;
    }
}

.hero__eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-on-dark-muted);
    margin-bottom: var(--space-4);
}

.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: var(--space-5);
}

.hero__title span {
    display: block;
}

.hero__subtitle {
    color: var(--color-text-on-dark-muted);
    font-size: 17px;
    max-width: 480px;
    margin-bottom: var(--space-6);
}

.hero__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.hero__actions .btn--outline {
    color: var(--color-text-on-dark);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero__actions .btn--outline:hover {
    border-color: #fff;
}

/* Featured next-gig block (no carousel) - "invert" card: always contrasts
   against the surrounding page, whichever theme is active */
.next-gig-block {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-invert-bg);
    color: var(--color-invert-text);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
}

.next-gig-block::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 91, 240, 0.35) 0%, rgba(109, 91, 240, 0) 70%);
    pointer-events: none;
}

.next-gig-block__top {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-invert-overlay-mid);
}

.next-gig-block .date-box {
    background: var(--color-invert-overlay-weak);
    border-color: var(--color-invert-overlay-strong);
    width: 84px;
    height: 84px;
}

.next-gig-block .date-box__day {
    color: var(--color-invert-text);
}

.next-gig-block .date-box__month {
    color: var(--color-invert-text-muted);
}

.next-gig-block__title {
    font-size: clamp(22px, 3vw, 30px);
    margin: 0 0 6px;
}

.next-gig-block__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-invert-text-muted);
    font-size: 15px;
    flex-wrap: wrap;
}

.next-gig-block__meta .pill {
    color: var(--color-invert-text);
    border-color: var(--color-invert-border);
}

.invert-outline {
    color: var(--color-invert-text);
    border-color: var(--color-invert-border);
}

.invert-outline:hover {
    border-color: var(--color-invert-text);
}

.upcoming-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.upcoming-list__row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-2) 0;
}

.upcoming-list__row .date-box {
    width: 52px;
    height: 52px;
    background: var(--color-invert-overlay-weak);
    border-color: var(--color-invert-overlay-mid);
    flex-shrink: 0;
}

.upcoming-list__row .date-box__day {
    color: var(--color-invert-text);
    font-size: 16px;
}

.upcoming-list__row .date-box__month {
    color: var(--color-invert-text-muted);
    font-size: 9px;
}

.upcoming-list__body {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    flex-wrap: wrap;
    font-size: 14px;
}

.upcoming-list__body strong {
    color: var(--color-invert-text);
}

.upcoming-list__body span {
    color: var(--color-invert-text-muted);
}

@media (max-width: 600px) {
    .next-gig-block {
        padding: var(--space-4);
    }

    .next-gig-block__top {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .next-gig-block .date-box {
        width: 60px;
        height: 60px;
    }

    .next-gig-block .date-box__day {
        font-size: 20px;
    }

    .next-gig-block__title {
        font-size: 19px;
    }

    .next-gig-block__meta {
        font-size: 13px;
    }

    .next-gig-block__actions {
        width: 100%;
    }

    .next-gig-block__actions .btn {
        flex: 1;
        justify-content: center;
    }

    .upcoming-list__row {
        align-items: flex-start;
        gap: var(--space-3);
    }

    .upcoming-list__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* Date box */
.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
}

.date-box__day {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.date-box__month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

/* Gig list rows */
.gig-list {
    border-top: 1px solid var(--color-border);
}

.gig-row {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--color-border);
}

.gig-row__body {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.gig-row__title {
    font-weight: 700;
    font-size: 16px;
}

.gig-row__location {
    color: var(--color-text-muted);
    font-size: 14px;
}

.gig-row__expand {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Release tile grid (Discography / Promo / Nowości) */
.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-6);
}

.release-tile {
    display: flex;
    flex-direction: column;
}

.release-tile__cover {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface-alt);
    margin-bottom: var(--space-4);
    box-shadow: 0 0 0 1px var(--color-border);
}

.corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-accent);
    opacity: 0;
    transition: opacity .2s ease, width .2s ease, height .2s ease;
    pointer-events: none;
}

.corner--tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.corner--tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.corner--bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.corner--br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.release-tile:hover .corner {
    opacity: 1;
    width: 28px;
    height: 28px;
}

.release-tile__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.release-tile:hover .release-tile__cover img {
    transform: scale(1.04);
}

.release-tile__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 11, 13, 0);
    transition: background-color .2s ease;
}

.release-tile:hover .release-tile__play {
    background: rgba(11, 11, 13, 0.35);
}

.release-tile__play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity .2s ease, transform .2s ease;
}

.release-tile:hover .release-tile__play-btn {
    opacity: 1;
    transform: scale(1);
}

.release-tile__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 3px;
}

.release-tile__artists {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.release-tile__artists::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.release-tile__more {
    align-self: flex-start;
}

/* Cards / about / banner */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: center;
}

.split--narrow {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
}

@media (max-width: 860px) {
    .split,
    .split--narrow {
        grid-template-columns: 1fr;
    }
}

.split img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-invert-bg);
    color: var(--color-invert-text);
    padding: var(--space-7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}

.invert-logo {
    filter: invert(1);
}

:root[data-theme="dark"] .invert-logo {
    filter: none;
}

/* Instagram embeds */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.instagram-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
}

.instagram-embed iframe {
    width: 100%;
    height: 580px;
    border: 0;
    display: block;
}

/* Footer */
.footer-cta {
    background: var(--color-bg);
    color: var(--color-text-on-dark);
    padding: var(--space-6) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.footer-cta__label {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-cta__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-cta__title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin: 0;
}

.footer-cta__meta {
    display: flex;
    gap: var(--space-6);
    color: var(--color-text-on-dark-muted);
    font-size: 14px;
}

.site-footer {
    background: var(--color-bg);
    color: var(--color-text-on-dark-muted);
    padding: var(--space-7) 0 var(--space-5);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

@media (max-width: 700px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

.site-footer h4 {
    color: var(--color-text-on-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-3);
}

.site-footer ul li {
    margin-bottom: var(--space-2);
}

.site-footer ul a:hover {
    color: var(--color-text-on-dark);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* "Na żywo" badge (shown by JS when the Xoni On Air channel is streaming) */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: #e5322d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

.live-badge[hidden] {
    display: none;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: live-pulse 1.4s ease-in-out infinite;
}

.live-badge--block {
    display: inline-flex;
    margin: 0 0 var(--space-3);
    padding: 4px 12px;
    font-size: 11px;
}

.live-badge--block[hidden] {
    display: none;
}

@keyframes live-pulse {
    50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .live-badge::before { animation: none; }
}

/* "+ Kalendarz" dropdown inside the dark/light spotlight card (expands inline, so the card's overflow never clips it) */
.cal-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.cal-dropdown summary::-webkit-details-marker {
    display: none;
}

.cal-dropdown__menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: var(--space-2);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--color-invert-overlay-weak);
    border: 1px solid var(--color-invert-overlay-mid);
}

.cal-dropdown__menu a {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-invert-text);
}

.cal-dropdown__menu a:hover {
    background: var(--color-invert-overlay-mid);
}

.next-gig-block--solo .next-gig-block__top {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
