.ostt-page {
    min-height: 100vh;
}

.ostt-page .main-content {
    max-width: 1400px;
}

.ostt-header {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.ostt-header h1 {
    margin: 0.3rem 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 0.95;
}

.ostt-header h1 span {
    display: block;
    opacity: 0.55;
}

.header-copy {
    max-width: 700px;
    opacity: 0.72;
    line-height: 1.7;
}

.eyebrow {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.55;
}

.signal-card {
    min-width: 250px;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(16px);
}

.signal-icon {
    grid-row: span 2;
    font-size: 2rem;
}

.signal-card small {
    display: block;
    font-size: 0.65rem;
    opacity: 0.5;
}

.signal-card strong {
    font-size: 0.9rem;
}

.signal-wave {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 22px;
}

.signal-wave i {
    display: block;
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.65;
    animation: signal-pulse 1s ease-in-out infinite alternate;
}

.signal-wave i:nth-child(2) {
    animation-delay: 0.15s;
}

.signal-wave i:nth-child(3) {
    animation-delay: 0.3s;
}

.signal-wave i:nth-child(4) {
    animation-delay: 0.45s;
}

.signal-wave i:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes signal-pulse {
    from {
        height: 5px;
    }

    to {
        height: 20px;
    }
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    padding: 1.2rem 1.4rem;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.025);
}

.stat-card span {
    display: block;
    margin-bottom: 0.4rem;

    font-size: 0.65rem;
    letter-spacing: 0.12em;
    opacity: 0.5;
}

.stat-card strong {
    font-size: 1.8rem;
}


.control-panel,
.transmission-panel,
.catalogue-section {
    margin-top: 1rem;
    padding: 1.4rem;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(12px);
}


.search-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    padding: 0.9rem 1rem;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.18);
}

.search-box > span {
    font-size: 1.4rem;
    opacity: 0.55;
}

.search-box input {
    flex: 1;
    min-width: 0;

    border: 0;
    outline: 0;
    background: transparent;

    color: inherit;
    font: inherit;
}

.search-box kbd {
    padding: 0.2rem 0.45rem;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;

    font-size: 0.65rem;
    opacity: 0.45;
}


.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.filter-row select,
.filter-row button {
    padding: 0.65rem 0.8rem;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.04);
    color: inherit;

    font: inherit;
    cursor: pointer;
}

.filter-row select {
    flex: 1 1 180px;
}

.filter-row button:hover {
    background: rgba(255, 255, 255, 0.09);
}


.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-heading h2 {
    margin: 0.2rem 0 0;
}


.current-track {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1.2rem;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.015)
        );
}
.track-type {
    display: inline-block;
    margin-right: 0.35rem;

    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.65;
}
.current-track.empty {
    opacity: 0.6;
}

.current-icon {
    display: grid;
    place-items: center;

    width: 50px;
    height: 50px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.07);

    font-size: 1.5rem;
}

.current-info {
    flex: 1;
    min-width: 0;
}

.current-info small,
.current-info span {
    display: block;
    opacity: 0.55;
}

.current-info strong {
    display: block;
    margin: 0.15rem 0;
    font-size: 1.2rem;
}

.current-weight {
    text-align: right;
}

.current-weight small {
    display: block;
    font-size: 0.6rem;
    opacity: 0.5;
}

.current-weight strong {
    font-size: 1.3rem;
}


.catalogue-list {
    display: flex;
    flex-direction: column;
}

.track-row {
    width: 100%;

    display: grid;
    grid-template-columns: 35px minmax(220px, 2fr) minmax(180px, 1fr) 50px;
    gap: 1rem;
    align-items: center;

    padding: 0.85rem 0.7rem;

    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    background: transparent;
    color: inherit;

    text-align: left;
    font: inherit;

    cursor: pointer;

    transition:
        background 0.15s ease,
        padding-left 0.15s ease;
}

.track-row:hover {
    padding-left: 1rem;
    background: rgba(255, 255, 255, 0.045);
}

.track-number {
    opacity: 0.4;
}

.track-info {
    min-width: 0;
}

.track-info strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-info small {
    display: block;

    margin-top: 0.2rem;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    opacity: 0.5;
}

.track-composer {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 0.85rem;
    opacity: 0.6;
}

.track-weight {
    text-align: right;
    font-size: 0.75rem;
    opacity: 0.4;
}


.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0.4rem;

    padding: 4rem 1rem;

    text-align: center;
}

.no-results span {
    font-size: 2rem;
}

.no-results strong {
    font-size: 1.1rem;
}

.no-results small {
    opacity: 0.5;
}

.hidden {
    display: none !important;
}


.ostt-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;

    margin: 2rem 0;
    padding: 1rem 0;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 0.7rem;
    opacity: 0.45;
}


@media (max-width: 900px) {

    .ostt-header {
        flex-direction: column;
        align-items: stretch;
    }

    .signal-card {
        min-width: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .track-row {
        grid-template-columns: 30px minmax(0, 1fr) 45px;
    }

    .track-composer {
        display: none;
    }
}


@media (max-width: 600px) {

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

    .control-panel,
    .transmission-panel,
    .catalogue-section {
        padding: 1rem;
    }

    .track-row {
        grid-template-columns: 25px minmax(0, 1fr) 40px;
        gap: 0.6rem;
    }

    .current-track {
        align-items: flex-start;
    }

    .current-weight {
        display: none;
    }

    .ostt-footer {
        flex-direction: column;
    }
}

/* =========================================================
   OSTT standalone layout
   ========================================================= */

.ostt-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.ostt-sidebar {
    position: sticky;
    top: 0;

    height: 100vh;
    padding: 1.5rem;

    display: flex;
    flex-direction: column;

    border-right: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(10, 8, 18, 0.8);
    backdrop-filter: blur(18px);

    z-index: 10;
}

.ostt-sidebar .brand {
    margin-bottom: 2rem;
}

.ostt-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ostt-sidebar .sidebar-nav a {
    padding: 0.7rem 0.8rem;

    border-radius: 9px;

    color: inherit;
    text-decoration: none;

    opacity: 0.65;

    transition:
        background 0.15s ease,
        opacity 0.15s ease;
}

.ostt-sidebar .sidebar-nav a:hover,
.ostt-sidebar .sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.06);
    opacity: 1;
}

.ostt-sidebar .sidebar-status {
    margin-top: auto;

    font-size: 0.65rem;
    letter-spacing: 0.08em;
    opacity: 0.5;
}

.ostt-sidebar .status-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 0.4rem;

    border-radius: 50%;

    background: currentColor;
}

.ostt-main {
    min-width: 0;
    width: 100%;

    padding: 3rem clamp(1rem, 4vw, 4rem);
}

@media (max-width: 800px) {

    .ostt-shell {
        grid-template-columns: 1fr;
    }

    .ostt-sidebar {
        position: relative;

        width: 100%;
        height: auto;

        padding: 1rem;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ostt-sidebar .brand {
        margin-bottom: 0.8rem;
    }

    .ostt-sidebar .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ostt-sidebar .sidebar-status {
        display: none;
    }

    .ostt-main {
        padding: 1.5rem 1rem;
    }
}