:root {
    --bg: #090b10;
    --card: #151922;
    --line: rgba(244, 241, 234, 0.12);
    --text: #f6f3ec;
    --muted: #b7c0ce;
    --magenta: #ff2d78;
    --gold: #f6c945;
    --lime: #b6f25c;
    --ink: #14160c;
    --header: 4.5rem;
    --font: "Rubik", "Segoe UI", sans-serif;
    --display: "Silkscreen", "Rubik", sans-serif;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(720px 360px at 0% -10%, rgba(255, 45, 120, 0.2), transparent 55%),
        radial-gradient(640px 320px at 100% 0%, rgba(182, 242, 92, 0.1), transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
    line-height: 1.55;
    overflow-x: clip;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

.wrap {
    width: min(1120px, calc(100% - 1.5rem));
    margin-inline: auto;
}

.skip {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: -4rem;
    z-index: 40;
    background: var(--gold);
    color: var(--ink);
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-weight: 700;
}

.skip:focus {
    top: 0.75rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(9, 11, 16, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-height: var(--header);
    padding-block: 0.4rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    text-decoration: none;
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.lang-switch,
.nav-toggle {
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    gap: 0.35rem;
    margin-inline-start: auto;
}

.lang-switch a,
.nav-toggle,
.site-nav a,
.btn {
    min-height: 44px;
}

.lang-switch a {
    min-width: 44px;
    display: grid;
    place-items: center;
    padding: 0 0.35rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
}

.lang-switch a[aria-current="true"] {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

.nav-toggle {
    width: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    display: grid;
    place-items: center;
    padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.site-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 0.6rem;
}

.site-nav.is-open {
    display: flex;
}

.site-nav a {
    display: flex;
    align-items: center;
    padding-inline: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    background: var(--card);
    font-weight: 700;
}

.rail-line {
    position: relative;
    height: 22px;
    overflow: hidden;
    background:
        linear-gradient(#8d95a6, #8d95a6) left 16px / 100% 3px no-repeat,
        repeating-linear-gradient(90deg, #3a4150 0 12px, transparent 12px 26px) left bottom / 100% 8px no-repeat;
}

.train {
    position: absolute;
    inset-inline-start: 0.5rem;
    bottom: 0;
    width: 78px;
    height: 28px;
}

.hero {
    padding: 1.6rem 0 0.4rem;
}

.hero-grid,
.split,
.pillars,
.clips,
.footer-grid {
    display: grid;
    gap: 0.9rem;
}

.kicker,
.soon,
.stations-label {
    margin: 0 0 0.45rem;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.4rem, 12vw, 5.2rem);
    color: var(--gold);
    text-shadow: 4px 4px 0 #c4005a;
}

[dir="rtl"] h1 {
    text-shadow: -4px 4px 0 #c4005a;
}

.lede {
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    border-radius: 14px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(246, 201, 69, 0.7);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.studio-card,
.pillar,
.empty,
.clip {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.studio-card {
    padding: 1rem;
}

.studio-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.studio-stats li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    font-weight: 700;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex: 0 0 auto;
}

.dot-lime { background: var(--lime); }
.dot-gold { background: var(--gold); }
.dot-magenta { background: var(--magenta); }

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1rem 0;
}

.badges span,
.stations li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 700;
    font-size: 0.92rem;
}

.section {
    padding: 2.2rem 0;
}

.pillars {
    margin-top: 0.4rem;
}

.pillar {
    display: block;
    padding: 1.1rem;
    text-decoration: none;
    min-height: 100%;
}

.pillar h2,
.section-head h2,
.split h2,
.clip h3 {
    margin: 0.25rem 0;
}

.pillar p,
.section-head p,
.fine,
.site-footer p {
    color: var(--muted);
}

.pillar-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #12140a;
    color: var(--gold);
}

.pillar-icon svg {
    width: 22px;
    height: 22px;
}

.section-head h2,
.split h2 {
    font-size: clamp(1.7rem, 5vw, 2.5rem);
    margin-top: 0;
}

.section-head p {
    margin-top: 0.35rem;
}

.frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #05060a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.frame iframe,
.frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.playlist {
    margin: 1rem 0 1.1rem;
}

.clip-play {
    display: block;
    padding: 0;
    cursor: pointer;
    color: inherit;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--magenta);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.play-badge::before {
    content: "";
    position: absolute;
    inset-inline-start: 21px;
    top: 16px;
    border-style: solid;
    border-width: 11px 0 11px 16px;
    border-color: transparent transparent transparent #fff;
}

[dir="rtl"] .play-badge::before {
    border-width: 11px 16px 11px 0;
    border-color: transparent #fff transparent transparent;
    inset-inline-start: 17px;
}

.clip {
    padding: 0.7rem;
}

.clip h3 {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.7rem 0.3rem 0.35rem;
}

.empty {
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.section-action {
    margin: 0.2rem 0 0;
}

.split .btn,
.section-action .btn,
.empty .btn {
    width: 100%;
    margin-top: 0.4rem;
}

.band {
    background: linear-gradient(180deg, rgba(255, 45, 120, 0.08), transparent 70%);
}

.blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.block {
    aspect-ratio: 1;
    border-radius: 10px;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.25);
}

.b-magenta { background: var(--magenta); }
.b-gold { background: var(--gold); }
.b-lime { background: var(--lime); }
.b-stone { background: #8d95a6; }

.stations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0 0 0.8rem;
    padding: 0;
}

.station svg {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.site-footer {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--line);
}

.brand-foot {
    font-family: var(--display);
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.footer-yt {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 800;
    color: var(--gold);
}

.fine {
    margin: 0;
    font-size: 0.92rem;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .wrap {
        width: min(1120px, calc(100% - 3rem));
    }

    .nav-toggle {
        display: none;
    }

    .brand { order: 1; }
    .site-nav {
        order: 2;
        display: flex;
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        padding: 0;
        margin-inline-start: 0.6rem;
    }
    .lang-switch {
        order: 3;
        margin-inline-start: 0;
    }
    .site-nav a {
        background: transparent;
    }

    .train {
        animation: ride 18s linear infinite;
    }

    [dir="rtl"] .train {
        animation-name: ride-rtl;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-grid,
    .split {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: 1.5rem;
    }

    .actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .actions .btn,
    .section-action .btn,
    .split .btn {
        width: auto;
    }

    .pillars,
    .clips {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 3.5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1.4fr auto;
        align-items: start;
    }

    .fine {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .pillars,
    .clips {
        grid-template-columns: repeat(3, 1fr);
    }
}

@keyframes ride {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(100vw - 6rem), 0, 0); }
}

@keyframes ride-rtl {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-100vw + 6rem), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .train { animation: none; }
}
