:root {
    color-scheme: dark;
    --background: #050508;
    --foreground: #eef2f8;
    --muted: #8a96a8;
    --accent: #2a6db5;
    --accent-bright: #4a9fd4;
    --accent-glow: rgba(42, 109, 181, 0.4);
    --border: rgba(255, 255, 255, 0.12);
    --surface: rgba(0, 0, 0, 0.48);
    --nav-height: 72px;
    --font-display: "Oxanium", Arial, sans-serif;
    --font-body: "Rajdhani", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    background-color: #060818;
    background-image:
        radial-gradient(ellipse 140% 90% at 50% -15%, rgba(30, 90, 180, 0.32), transparent 55%),
        radial-gradient(ellipse 90% 70% at 15% 45%, rgba(42, 109, 181, 0.18), transparent 50%),
        radial-gradient(ellipse 90% 70% at 85% 55%, rgba(30, 80, 160, 0.16), transparent 50%),
        radial-gradient(ellipse 120% 80% at 50% 105%, rgba(42, 109, 181, 0.2), transparent 55%),
        linear-gradient(160deg, #0a1020 0%, #050508 45%, #080c18 75%, #0a1224 100%);
    background-attachment: fixed;
    color: var(--foreground);
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.13;
    z-index: 9998;
    background-image: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 3px,
        rgba(255, 255, 255, 0.04) 4px
    );
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Navigation ── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: var(--nav-height);
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

.nav-desktop {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.nav-desktop .nav-group:first-child {
    justify-self: start;
}

.nav-desktop .nav-logo {
    justify-self: center;
}

.nav-desktop .nav-group:last-child {
    justify-self: end;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
}

.nav-link {
    font-family: var(--font-display);
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--foreground);
}

.nav-link.is-active {
    text-shadow: 0 0 12px var(--accent-glow);
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: clamp(36px, 6vw, 48px);
    height: auto;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: filter 0.2s;
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 18px rgba(74, 159, 212, 0.65));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--foreground);
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Layout ── */

main {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
}

.section {
    padding: clamp(64px, 12vw, 120px) clamp(20px, 5vw, 48px);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-bright);
}

.section-title {
    margin: 0 0 32px;
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: clamp(2px, 0.8vw, 6px);
    line-height: 1.05;
    text-transform: uppercase;
    text-shadow: 0 0 25px var(--accent-glow);
}

.divider {
    width: 72px;
    height: 1px;
    margin: 0 auto 32px;
    border: 0;
    background: var(--accent);
}

.section--center .divider,
.section--center .section-label,
.section--center .section-title {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ── Hero / Home ── */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100dvh - var(--nav-height));
    text-align: center;
    padding-bottom: clamp(48px, 8vw, 80px);
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.hero-logo {
    display: block;
    width: min(920px, 96vw);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.hero-tagline {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Bio ── */

.bio-text {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 400;
    line-height: 1.75;
    text-align: center;
}

/* ── Members ── */

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 40px);
    max-width: 820px;
    margin: clamp(48px, 8vw, 72px) auto 0;
}

.member-card {
    text-align: center;
}

.member-card--last {
    grid-column: 1 / -1;
    width: calc(50% - clamp(12px, 2vw, 20px));
    max-width: 390px;
    margin-inline: auto;
}

.member-photo {
    position: relative;
    z-index: 9999;
    isolation: isolate;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    background: #070b12;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s;
}

.member-card:hover .member-photo img {
    transform: scale(1.05);
}

.member-name {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.member-role {
    margin: 0;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 500;
    color: var(--muted);
}

/* ── Merch ── */

.merch-text {
    max-width: 560px;
    margin: 0 auto 32px;
    color: var(--muted);
    font-size: clamp(17px, 2.2vw, 19px);
    font-weight: 400;
    text-align: center;
}

.carousel.carousel--merch {
    max-width: min(420px, 88vw);
    margin: 0 auto 44px;
    padding: 0 clamp(36px, 7vw, 44px);
}

.carousel--merch .carousel-viewport {
    aspect-ratio: 1 / 1;
    z-index: 2;
}

.carousel-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    transition: box-shadow 0.2s;
}

.carousel-slide-link:hover {
    box-shadow: 0 0 24px var(--accent-glow);
}

.carousel-slide-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.carousel--merch .carousel-btn--prev {
    left: -4px;
}

.carousel--merch .carousel-btn--next {
    right: -4px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--foreground);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: rgba(42, 109, 181, 0.25);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn.btn--merch {
    display: block;
    width: fit-content;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* ── Live ── */

.live-block {
    max-width: 640px;
    margin: 0 auto;
}

.live-block--past {
    margin-top: clamp(48px, 8vw, 72px);
}

.live-heading {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: center;
    color: var(--foreground);
}

.live-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 640px;
}

.live-list--center {
    margin: 0 auto;
    text-align: center;
}

.live-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.live-block .live-list .live-item:first-child {
    border-top: 1px solid var(--border);
}

.live-item--hidden {
    display: none;
}

.live-date {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-bright);
    text-transform: uppercase;
}

.live-venue {
    font-family: var(--font-body);
    font-size: clamp(16px, 2.5vw, 19px);
    font-weight: 600;
}

.live-location {
    font-size: 15px;
    color: var(--muted);
}

.live-empty {
    padding: 24px 0 8px;
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 18px);
    font-weight: 400;
    text-align: center;
}

.btn--live {
    display: block;
    margin: 28px auto 0;
}

/* ── Photos carousel ── */

.carousel {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 clamp(44px, 8vw, 56px);
}

.carousel-viewport {
    position: relative;
    z-index: 9999;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
    background: #070b12;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 6vw, 44px);
    height: clamp(36px, 6vw, 44px);
    padding: 0;
    border: 1px solid var(--border);
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(6px);
    color: var(--foreground);
    font-size: clamp(18px, 3vw, 22px);
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.carousel-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
    color: var(--accent-bright);
}

.carousel-btn--prev {
    left: 0;
}

.carousel-btn--next {
    right: 0;
}

/* ── Videos ── */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 40px);
    max-width: 920px;
    margin: 0 auto;
}

.video-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-frame {
    position: relative;
    z-index: 9999;
    isolation: isolate;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #070b12;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.video-frame-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(255, 255, 255, 0.55);
    border-style: solid;
    pointer-events: none;
}

.video-frame-corner--tl {
    top: 4px;
    left: 4px;
    border-width: 2px 0 0 2px;
}

.video-frame-corner--tr {
    top: 4px;
    right: 4px;
    border-width: 2px 2px 0 0;
}

.video-frame-corner--bl {
    bottom: 4px;
    left: 4px;
    border-width: 0 0 2px 2px;
}

.video-frame-corner--br {
    bottom: 4px;
    right: 4px;
    border-width: 0 2px 2px 0;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: videoKenBurns 14s ease-in-out infinite alternate;
    transition: opacity 0.4s ease;
}

.video-embed.is-playing .video-thumb {
    opacity: 0;
    visibility: hidden;
}

.video-embed.is-fallback .video-player {
    display: none;
}

.video-player {
    position: absolute;
    inset: 0;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

@keyframes videoKenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: clamp(52px, 10vw, 68px);
    height: clamp(36px, 7vw, 48px);
    border-radius: 12px;
    background: rgba(220, 30, 30, 0.92);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
    transition: transform 0.2s, background 0.2s;
}

.video-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
    transform: translate(-50%, -50%);
}

.video-card:hover .video-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(240, 40, 40, 1);
}

.video-title {
    margin: 16px 0 0;
    font-family: var(--font-display);
    font-size: clamp(12px, 1.8vw, 14px);
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
    color: var(--foreground);
}

.video-empty {
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 18px);
    text-align: center;
}

/* ── Lightbox ── */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: min(1100px, 100%);
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid var(--border);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--foreground);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ── Contacts ── */

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    max-width: 720px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 16px 28px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.social-link:hover {
    color: var(--foreground);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.contacts-note {
    margin: 32px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
}

/* ── Footer ── */

.site-footer {
    padding: 32px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid var(--border);
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-menu.is-open {
        max-height: 420px;
        padding: 8px 0 24px;
    }

    .nav-group {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 16px 24px;
        text-align: center;
        letter-spacing: 4px;
    }

    .nav-logo {
        order: -1;
        padding: 8px 0 16px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 8px;
        width: 100%;
    }

    .nav-inner {
        flex-wrap: wrap;
    }

    .nav-desktop {
        display: none;
    }

    .nav-mobile-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        width: 100%;
    }

    .nav-mobile-wrap .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-toggle {
        position: relative;
        z-index: 1;
        margin-left: auto;
    }

    .members-grid {
        gap: clamp(16px, 3vw, 24px);
        max-width: 100%;
    }

    .member-card--last {
        width: calc(50% - clamp(8px, 2vw, 12px));
    }

    .live-item {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .live-list--center .live-item {
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .nav-mobile-wrap {
        display: none;
    }

    .nav-menu-mobile {
        display: none;
    }
}

@media (max-width: 520px) {
    :root {
        --nav-height: 64px;
    }

    .social-link {
        min-width: 100%;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}
