.channel-navigation {
    position: relative;
    z-index: 18;
    color: #8b9589;
    font: 700 0.62rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.channel-navigation__list { display: grid; gap: 0.45rem; }

.channel-navigation__link {
    display: grid;
    grid-template-columns: 1.8rem minmax(0, 1fr) 0.5rem;
    gap: 0.65rem;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgb(255 255 255 / 9%);
    background: rgb(3 6 4 / 68%);
    color: #7e887d;
    text-decoration: none;
    transition: border-color 260ms ease, background 260ms ease, color 260ms ease, transform 360ms var(--ease-out);
}

.channel-navigation__link:hover { border-color: rgb(200 255 46 / 34%); color: var(--paper); }
.channel-navigation__link:focus-visible { outline-color: var(--signal); }

.channel-navigation__number { color: #667064; }
.channel-navigation__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.channel-navigation__signal {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #323a31;
    transition: background 260ms ease, box-shadow 260ms ease;
}

.channel-navigation__link.is-active,
.channel-navigation__link[aria-current="location"] {
    border-color: rgb(200 255 46 / 42%);
    background: linear-gradient(90deg, rgb(200 255 46 / 11%), rgb(3 6 4 / 82%));
    color: var(--paper);
    transform: translateX(0.35rem);
}

.channel-navigation__link.is-active .channel-navigation__number,
.channel-navigation__link[aria-current="location"] .channel-navigation__number { color: var(--signal); }

.channel-navigation__link.is-active .channel-navigation__signal,
.channel-navigation__link[aria-current="location"] .channel-navigation__signal {
    background: var(--signal);
    box-shadow: 0 0 0.8rem var(--signal);
}

.channel-navigation__tools {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.channel-navigation__hint { color: #596258; font-size: 0.52rem; }

.channel-navigation__replay {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgb(255 255 255 / 12%);
    background: rgb(3 6 4 / 72%);
    color: #a6aea4;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.channel-navigation__replay:hover { border-color: var(--signal); color: var(--signal); }
.channel-navigation__replay span:first-child { color: var(--signal); font-size: 1rem; }

@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
    .control-room[data-enhanced="true"] .channel-navigation {
        position: absolute;
        top: 48%;
        left: var(--page-pad);
        width: clamp(10.5rem, 14vw, 14rem);
        transform: translateY(-8%);
    }
}

@media (max-width: 63.999rem), (prefers-reduced-motion: reduce) {
    .channel-navigation {
        position: sticky;
        top: calc(100svh - 7.4rem);
        z-index: 24;
        display: grid;
        gap: 0.55rem;
        margin: 1rem var(--page-pad) 0;
        padding: 0.55rem;
        border: 1px solid rgb(255 255 255 / 12%);
        background: rgb(5 9 6 / 88%);
        box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 42%);
        backdrop-filter: blur(16px);
    }

    .channel-navigation__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
    .control-room[data-channel-count="4"] .channel-navigation__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .control-room[data-channel-count="5"] .channel-navigation__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .control-room[data-channel-count="6"] .channel-navigation__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .control-room[data-channel-count="7"] .channel-navigation__list { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .control-room[data-channel-count="8"] .channel-navigation__list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .channel-navigation__link {
        grid-template-columns: auto 0.42rem;
        gap: 0.45rem;
        min-height: 2.75rem;
        justify-content: center;
        padding: 0.45rem;
        text-align: center;
    }
    .channel-navigation__name { display: none; }
    .channel-navigation__link.is-active,
    .channel-navigation__link[aria-current="location"] { transform: translateY(-0.18rem); }
    .channel-navigation__tools { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0; }
    .channel-navigation__replay { min-height: 2.75rem; justify-content: center; }
}

@media (max-width: 24rem) {
    .channel-navigation { top: calc(100svh - 7.1rem); }
    .channel-navigation__hint { max-width: 9rem; }
    .channel-navigation__replay span:last-child { max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .control-room[data-channel-count="6"] .channel-navigation__list { gap: 0.2rem; }
    .control-room[data-channel-count="6"] .channel-navigation__link { grid-template-columns: 1fr; gap: 0; padding-inline: 0.15rem; }
    .control-room[data-channel-count="6"] .channel-navigation__signal { display: none; }
    .control-room[data-channel-count="7"] .channel-navigation__list { gap: 0.16rem; }
    .control-room[data-channel-count="7"] .channel-navigation__link { grid-template-columns: 1fr; gap: 0; padding-inline: 0.1rem; }
    .control-room[data-channel-count="7"] .channel-navigation__signal { display: none; }
    .control-room[data-channel-count="8"] .channel-navigation__list { gap: 0.14rem; }
    .control-room[data-channel-count="8"] .channel-navigation__link { grid-template-columns: 1fr; gap: 0; padding-inline: 0.08rem; }
    .control-room[data-channel-count="8"] .channel-navigation__signal { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .channel-navigation__link,
    .channel-navigation__signal { transition: none; }
}
