:root {
    --site-shell-bg: #050c16;
    --site-shell-bg-soft: #091726;
    --site-shell-panel: rgba(7, 16, 30, 0.82);
    --site-shell-panel-strong: rgba(9, 20, 36, 0.94);
    --site-shell-panel-soft: rgba(11, 24, 43, 0.68);
    --site-shell-line: rgba(112, 231, 255, 0.18);
    --site-shell-line-strong: rgba(112, 231, 255, 0.34);
    --site-shell-text: #f4f8ff;
    --site-shell-text-soft: rgba(223, 232, 243, 0.74);
    --site-shell-accent: #70e7ff;
    --site-shell-accent-strong: #35bcff;
    --site-shell-accent-soft: rgba(112, 231, 255, 0.16);
    --site-shell-warm: #ffbe67;
    --site-shell-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    --site-shell-glow: 0 0 24px rgba(112, 231, 255, 0.16);
    --site-shell-radius-lg: 24px;
    --site-shell-radius-md: 18px;
    --site-shell-radius-sm: 12px;
}

body {
    font-family: 'Space Grotesk', 'Roboto', Arial, sans-serif;
    color: var(--site-shell-text);
    background:
        radial-gradient(circle at top left, rgba(112, 231, 255, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(53, 188, 255, 0.1), transparent 22%),
        linear-gradient(180deg, var(--site-shell-bg) 0%, var(--site-shell-bg-soft) 38%, #050a13 100%);
}

.background {
    opacity: 0.78;
}

.grid-container {
    opacity: 0.42;
}

body.home-mode .grid-container {
    opacity: 0.9;
}

#headerTitleH1 {
    color: var(--site-shell-text) !important;
    text-shadow:
        0 0 18px rgba(112, 231, 255, 0.16),
        0 12px 26px rgba(0, 0, 0, 0.36) !important;
}

#headerTitleH1 > span:first-child {
    color: #f7fbff !important;
    font-family: 'SephyrRegularOTF', 'Orbitron', 'Roboto Mono', Arial, sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
}

#headerTitleH1 > span:last-child {
    color: rgba(223, 235, 247, 0.8) !important;
    font-family: 'Space Grotesk', 'Roboto Mono', Arial, sans-serif !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
}

.header-greeting-message {
    padding: 0.12em 0.55em;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(6, 16, 31, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-link {
    border-color: var(--site-shell-line);
    background: rgba(4, 12, 24, 0.72);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-link:hover,
.lang-link:focus-visible {
    border-color: var(--site-shell-warm);
    background: rgba(6, 16, 31, 0.94);
    box-shadow:
        0 0 16px rgba(255, 190, 103, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.28);
}

.lang-link.active {
    border-color: var(--site-shell-accent);
    background: rgba(8, 25, 43, 0.72);
    box-shadow:
        0 0 0 1px rgba(112, 231, 255, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.24),
        0 0 18px rgba(112, 231, 255, 0.18);
}

.lang-online-count {
    background: rgba(4, 12, 24, 0.88);
    color: rgba(234, 245, 255, 0.92);
}

@media (min-width: 769px) {
    .sticky-header-nav {
        background: transparent !important;
        box-shadow: none !important;
    }

    .sticky-header-nav .header-center {
        border: 1px solid var(--site-shell-line);
        border-radius: 0;
        background: linear-gradient(180deg, rgba(6, 14, 27, 0.94), rgba(9, 20, 36, 0.9)) !important;
        box-shadow: var(--site-shell-shadow), var(--site-shell-glow);
        overflow: hidden;
    }

    .sticky-header-nav .header-center::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(112, 231, 255, 0.1) 32%, rgba(0, 0, 0, 0) 66%),
            radial-gradient(circle at top center, rgba(112, 231, 255, 0.16), transparent 42%);
        pointer-events: none;
    }

    .sticky-header-nav .nav-bar {
        border: 1px solid var(--site-shell-line);
        border-top: 0;
        background: linear-gradient(180deg, rgba(7, 15, 28, 0.96), rgba(8, 18, 31, 0.94)) !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    }

    .nav-bar button {
        border-color: rgba(255, 255, 255, 0.04);
        background: transparent;
        color: var(--site-shell-text-soft);
        font-family: 'Space Grotesk', 'Roboto', Arial, sans-serif;
        font-size: clamp(14px, 1.15vw, 17px);
        font-weight: 700;
        letter-spacing: 0.08em;
        text-shadow: none;
        text-transform: uppercase;
    }

    .nav-bar button:hover,
    .nav-bar button:focus-visible {
        color: var(--site-shell-text);
        border-color: var(--site-shell-line-strong);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18));
        box-shadow:
            inset 0 0 16px rgba(112, 231, 255, 0.16),
            0 0 18px rgba(112, 231, 255, 0.18);
    }

    .nav-bar button.is-active {
        color: #fff4c0;
        border-color: rgba(255, 190, 103, 0.65);
        background: linear-gradient(180deg, rgba(112, 231, 255, 0.14), rgba(0, 0, 0, 0.22));
        box-shadow:
            inset 0 0 20px rgba(112, 231, 255, 0.14),
            0 0 18px rgba(255, 190, 103, 0.16);
    }

    .left-body-sidebar,
    .right-body-sidebar {
        background: linear-gradient(180deg, rgba(6, 14, 25, 0.9), rgba(9, 21, 37, 0.84));
        border: 1px solid var(--site-shell-line);
        border-radius: 28px;
        box-shadow: var(--site-shell-shadow);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        animation: none;
    }

    .sidebar-item {
        width: min(154px, calc(100% - 24px));
        margin-bottom: 14px;
        padding: 14px 14px 16px;
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-sizing: border-box;
    }

    .sidebar-item img {
        max-width: 120px;
        border-radius: 12px;
        box-shadow:
            0 0 0 1px rgba(112, 231, 255, 0.14),
            0 12px 24px rgba(0, 0, 0, 0.22);
    }

    .sidebar-heading {
        margin: 14px 0 10px;
        color: var(--site-shell-accent);
        font-family: 'Orbitron', 'Roboto Mono', Arial, sans-serif;
        font-size: 0.78rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .sidebar-text {
        margin: 0;
        padding: 0;
        background: transparent;
        color: var(--site-shell-text-soft);
        line-height: 1.72;
        text-shadow: none;
    }

    body:not(.music-mode) .content {
        border: 1px solid var(--site-shell-line);
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(8, 18, 32, 0.58), rgba(6, 12, 22, 0.72));
        box-shadow: var(--site-shell-shadow);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-sizing: border-box;
    }

    body:not(.music-mode) .main-content {
        margin: 0;
        padding: 18px;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(12, 22, 38, 0.76), rgba(8, 14, 24, 0.9));
        border: 1px solid rgba(255, 255, 255, 0.04);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        color: var(--site-shell-text);
        box-sizing: border-box;
    }
}

body:not(.music-mode) .main-content :is(h1, h2, h3) {
    color: var(--site-shell-accent);
    font-family: 'Orbitron', 'Roboto Mono', Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: none;
}

body:not(.music-mode) .main-content :is(p, li, span) {
    color: inherit;
}

body:not(.music-mode) .main-content a:not(.lang-link) {
    color: #c7f5ff;
}

body:not(.music-mode) .main-content a:not(.lang-link):hover,
body:not(.music-mode) .main-content a:not(.lang-link):focus-visible {
    color: var(--site-shell-warm);
}

.home-view {
    gap: 18px;
}

.home-card-list {
    gap: 18px;
}

.home-block {
    border: 1px solid var(--site-shell-line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.home-block img {
    max-width: 220px;
    padding: 18px 18px 0;
    box-sizing: border-box;
    border-bottom: 0;
}

.home-text {
    margin: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(5, 13, 25, 0.72), rgba(8, 18, 31, 0.86));
    color: var(--site-shell-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-text h2 {
    margin-bottom: 10px;
    color: var(--site-shell-accent);
    font-family: 'Orbitron', 'Roboto Mono', Arial, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: none;
}

.home-text p {
    color: var(--site-shell-text-soft);
    font-size: 0.92rem;
    line-height: 1.72;
    text-shadow: none;
}

.home-partner-column {
    border-radius: 20px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.footer {
    background: linear-gradient(180deg, rgba(7, 15, 28, 0.96), rgba(5, 10, 18, 0.98));
    border-top: 1px solid var(--site-shell-line);
    box-shadow:
        0 -10px 28px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(112, 231, 255, 0.08);
    color: var(--site-shell-text-soft);
    font-family: 'Space Grotesk', 'Roboto', Arial, sans-serif;
    letter-spacing: 0.04em;
    text-shadow: none;
}

.footer-player-controls {
    gap: 10px;
}

.footer-player-controls button {
    border-color: var(--site-shell-line-strong);
    border-radius: 999px;
    background: rgba(10, 22, 38, 0.84);
    color: var(--site-shell-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-player-controls input[type='range'] {
    accent-color: var(--site-shell-accent);
}

.footer-bar {
    background: linear-gradient(90deg, rgba(6, 15, 28, 0.94), rgba(18, 50, 80, 0.94), rgba(6, 15, 28, 0.94));
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.24);
}

@media (max-width: 768px) {
    .sticky-header-nav {
        background: transparent !important;
        box-shadow: none !important;
    }

    .sticky-header-nav .header-center {
        background: linear-gradient(180deg, rgba(7, 16, 30, 0.96), rgba(9, 21, 38, 0.9)) !important;
        border-bottom: 1px solid var(--site-shell-line);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    }

    .mobile-menu {
        padding: 6px 10px 2px;
        box-sizing: border-box;
    }

    .mobile-language-switcher {
        width: min(100%, 420px);
        padding: 8px 10px;
        border: 1px solid var(--site-shell-line);
        border-radius: 999px;
        background: rgba(8, 19, 34, 0.88);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    }

    .mobile-menu button {
        border: 1px solid var(--site-shell-line);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(10, 22, 38, 0.96), rgba(7, 15, 28, 0.96));
        color: var(--site-shell-text);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .nav-bar.active {
        gap: 8px;
        margin-top: -10px !important;
        padding-top: 8px;
    }

    .nav-bar.active button {
        width: min(84%, 340px);
        border: 1px solid var(--site-shell-line-strong);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(10, 22, 38, 0.96), rgba(7, 15, 28, 0.96));
        color: var(--site-shell-text-soft);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
        text-shadow: none;
    }

    .nav-bar.active button:hover,
    .nav-bar.active button:focus {
        color: var(--site-shell-text);
        background: linear-gradient(180deg, rgba(14, 30, 52, 0.98), rgba(9, 20, 36, 0.98));
    }

    .nav-bar.active button.is-active {
        border-color: rgba(255, 190, 103, 0.7);
        color: #fff4c0;
        box-shadow:
            0 10px 24px rgba(0, 0, 0, 0.26),
            0 0 18px rgba(112, 231, 255, 0.16);
    }

    #headerTitleH1 {
        text-shadow: 0 0 14px rgba(112, 231, 255, 0.14), 0 8px 18px rgba(0, 0, 0, 0.28) !important;
    }

    #headerTitleH1 > span:first-child {
        letter-spacing: 0.06em !important;
    }

    #headerTitleH1 > span:last-child {
        letter-spacing: 0.04em !important;
    }

    body:not(.music-mode) .content {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0 10px 20px;
        box-sizing: border-box;
    }

    body:not(.music-mode) .main-content {
        width: min(100%, 420px);
        margin: 0 auto 16px;
        padding: 16px;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(12, 22, 38, 0.8), rgba(8, 14, 24, 0.92));
        border: 1px solid rgba(112, 231, 255, 0.12);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
        color: var(--site-shell-text);
        box-sizing: border-box;
    }

    .home-block {
        border-radius: 22px;
    }

    .home-block img {
        max-width: 190px;
        padding-top: 14px;
    }

    .home-text {
        padding: 14px;
    }

    .footer {
        padding: 8px 12px;
    }
}