:root {
    --bg: #000000;
    --text: #0a0a0a;
    --accent: #ffffff;
    --dim: #181818;
    --panel: #ff0900;
    --font: 'Roboto Mono', monospace;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--accent);
    font-family: var(--font);
    margin: 0;
    padding: 0;
    font-size: 14px;
    min-height: 100svh;
}

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

.scene {
    position: relative;
    height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    isolation: isolate;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.scene-slide {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.scene-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.28) 72%, rgba(0, 0, 0, 0.75) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 28%, transparent 65%, rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.scene-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.1) grayscale(1);
    transform: scale(1);
}

.dynamic-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 3;
    --panel-index: 0;
    width: min(65vw, 760px);
    height: clamp(96px, 13vw, 140px);
    padding: clamp(0.75rem, 1.8vw, 1.35rem);
    transform: translate(-50%, -50%);
    background: var(--panel);
    color: var(--text);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 18px 46px rgba(0, 0, 0, 0.36);
}

.panel-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transform: translateY(calc(var(--panel-index) * -100%));
    transition: transform 420ms cubic-bezier(0.76, 0, 0.24, 1);
}

.panel-screen {
    display: flex;
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    opacity: 0.2;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.panel-screen.is-active {
    opacity: 1;
    pointer-events: auto;
}

.intro-panel {
    align-items: center;
    justify-content: center;
}

.set-panel {
    align-items: center;
}

.telegram-panel {
    align-items: center;
    justify-content: center;
}

.telegram-button {
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.62);
    padding: 0.55rem 1rem;
    font-size: clamp(0.78rem, 1.2vw, 0.95rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.telegram-button:hover {
    color: var(--accent);
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(0, 0, 0, 0.18);
}

.panel-heading {
    text-transform: uppercase;
    text-align: center;
}

.panel-heading h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.1rem, 3.4vw, 2.5rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: 0.08em;
}

.panel-heading p {
    margin: 0.28rem 0 0;
    color: var(--text);
    font-size: clamp(0.62rem, 1.15vw, 0.86rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
}

/* Блок трека */
.audio-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 34px;
    padding: 0;
}

.play-btn {
    background: none;
    border: none;
    color: var(--dim);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    width: 38px;
    height: 24px;
    text-align: center;
    transition: color 0.2s;
    line-height: 1; 
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
}

.audio-row:hover .play-btn {
    color: var(--accent);
}

.row-title {
    font-weight: 500;
    color: var(--text);
    font-size: clamp(0.7rem, 1.1vw, 0.9rem);
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.tg-link {
    border: 1px solid rgba(0, 0, 0, 0.55);
    padding: 0; 
    transition: all 0.2s;
    font-size: 1rem;
    line-height: 1; 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    height: 24px; 
    width: 24px; 
    color: var(--dim);
    text-decoration: none;
    padding-bottom: 2px; 
    flex-shrink: 0;
}

.tg-link:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--accent);
    background: rgba(0, 0, 0, 0.2);
}

/* PROGRESS BAR (INTEGRATED) */
.progress-container {
    height: 8px;
    background: rgba(0, 0, 0, 0.24);
    width: 100%;
    cursor: pointer;
    position: relative;
    border-radius: 0;
    margin-top: 0;
    flex-grow: 1;
}

.progress-container:hover {
    background: rgba(0, 0, 0, 0.36);
}

.progress-fill {
    height: 100%;
    background: #090909;
    width: 0%;
    transition: width 0.1s linear;
}

/* --- ACTIVE STATE --- */
.audio-row.active-track .play-btn {
    color: var(--accent);
}

.audio-row.active-track .row-title {
    color: var(--accent);
}

@media (max-width: 760px) {
    .dynamic-panel {
        width: min(82vw, 560px);
        height: 112px;
        top: 52%;
    }

    .audio-row {
        gap: 0.45rem;
    }

    .row-title {
        max-width: 34vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .dynamic-panel {
        width: 88vw;
        padding: 0.75rem;
    }

    .play-btn {
        width: 34px;
    }

    .progress-container {
        height: 7px;
    }
}