/* Stomachia — AdminLTE custom layer */

.hidden { display: none !important; }

.st-features__intro {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.st-features__stack {
    border: 1px solid var(--bs-border-color);
    border-top: 0;
    border-radius: 0 0 calc(var(--bs-border-radius) + 2px) calc(var(--bs-border-radius) + 2px);
    overflow: hidden;
    background: var(--bs-body-bg);
}

.st-features__block {
    padding: 1.5rem;
    border-top: 1px solid var(--bs-border-color);
}

.st-features__block:first-child {
    border-top: 0;
}

.st-features__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 220px;
    padding: 2rem 1.5rem;
    border-radius: calc(var(--bs-border-radius) + 4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 40px rgba(15, 23, 42, 0.12);
}

.st-features__visual-icon {
    font-size: 3.5rem;
    line-height: 1;
    opacity: 0.95;
}

.st-features__visual-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.92;
}

.st-features__label {
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.st-features__title {
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.st-features__desc {
    margin-bottom: 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.98rem;
    line-height: 1.8;
}

.st-features__actions .btn {
    min-width: 8.5rem;
}

@media (min-width: 992px) {
    .st-features__block {
        padding: 2rem 2.25rem;
    }

    .st-features__block--reverse .row > :first-child {
        order: 2;
    }

    .st-features__block--reverse .row > :last-child {
        order: 1;
    }

    .st-features__visual {
        min-height: 260px;
    }
}

.st-featured__media {
    position: relative;
    max-width: 360px;
    overflow: hidden;
    background: #000;
}

@media (min-width: 768px) {
    .st-featured__media { width: 42%; }
}

.st-scene-list {
    display: grid;
    gap: 0.75rem;
}

.st-video-list {
    display: grid;
    gap: 0.85rem;
}

.st-video-card {
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 2px);
    background: var(--bs-body-bg);
    overflow: hidden;
}

.st-video-card__inner {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
}

.st-video-card__thumb {
    position: relative;
    flex: 0 0 168px;
    width: 168px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
    background: #000;
    color: inherit;
    text-decoration: none;
}

.st-video-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.st-video-card__thumb:hover .st-video-card__play,
.st-video-card__thumb:focus-visible .st-video-card__play {
    opacity: 1;
}

.st-video-card__badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    min-width: 1.5rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.st-video-card__content {
    min-width: 0;
    flex: 1;
}

.st-video-card__title {
    margin: 0.35rem 0 0;
    font-size: 1rem;
    line-height: 1.35;
}

.st-video-card__title-link {
    color: inherit;
    text-decoration: none;
}

.st-video-card__title-link:hover {
    color: var(--bs-primary);
}

.st-video-card__meta {
    margin-bottom: 0.5rem;
}

.st-video-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.st-video-card__chip:hover {
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
}

.st-video-heatmap__bar {
    position: relative;
    height: 34px;
    border-radius: 999px;
    overflow: visible;
    background: rgba(148, 163, 184, 0.16);
    cursor: pointer;
}

.st-video-heatmap__gradient {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.st-video-heatmap__markers {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.st-video-heatmap__marker {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 10px rgba(239, 68, 68, 0.55);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.st-video-heatmap__marker.is-dense {
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: #dc2626;
}

.st-video-heatmap__marker:hover,
.st-video-heatmap__marker:focus-visible {
    transform: translateY(-50%) scale(1.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 14px rgba(239, 68, 68, 0.75);
    outline: none;
}

.st-video-heatmap__tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 3;
    max-width: min(280px, 90vw);
    padding: 0.3rem 0.55rem;
    border-radius: 0.4rem;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(-50%);
    pointer-events: none;
}

.st-video-heatmap__axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
    .st-video-card__inner {
        flex-direction: column;
    }

    .st-video-card__thumb {
        width: 100%;
        flex-basis: auto;
    }
}

.st-scene-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-scene-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    color: inherit;
}

.st-scene-card__inner {
    display: flex;
    gap: 0.875rem;
    padding: 0.75rem;
}

.st-scene-card__thumb {
    position: relative;
    flex: 0 0 140px;
    width: 140px;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--bs-border-radius) - 2px);
    overflow: hidden;
    background: #111;
}

.st-scene-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-scene-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.st-scene-card:hover .st-scene-card__play { opacity: 1; }

.st-scene-card__play--lg { font-size: 2rem; }

.st-scene-card__time-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
}

.st-scene-card__content { min-width: 0; flex: 1; }

.st-scene-card__title {
    margin: 0.35rem 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.st-scene-card__sub,
.st-scene-card__score {
    margin: 0;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.st-scene-card--list {
    display: block;
}

.st-scene-card--list .st-scene-card__inner {
    align-items: flex-start;
}

.st-scene-card--list .st-scene-card__title {
    margin-top: 0;
}

.st-scene-card__thumb--placeholder {
    width: 168px;
    min-height: 94px;
    border-radius: calc(var(--bs-border-radius) - 1px);
}

.st-cross-search-section + .st-cross-search-section {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 1rem;
}

.st-scene-card__snippet {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--bs-body-color);
}

.st-scene-card--preview {
    display: block;
    color: inherit;
}

.st-scene-card--preview:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.st-scene-card__theater-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.st-scene-card__title-link {
    color: inherit;
    text-decoration: none;
}

.st-scene-card__title-link:hover {
    color: var(--bs-primary);
}

.st-scene-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.st-scene-preview__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.st-scene-preview__btn:hover,
.st-scene-card--preview.is-previewing .st-scene-preview__btn {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.st-scene-preview__icon {
    font-size: 0.85rem;
    line-height: 1;
}

.st-scene-preview__track {
    position: relative;
    flex: 1;
    min-width: 48px;
    height: 4px;
    border-radius: 999px;
    background: var(--bs-border-color);
    overflow: hidden;
}

.st-scene-preview__progress {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--bs-primary);
}

.st-scene-preview-host {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.st-scene-preview-audio {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.st-scene-context {
    border-top: 1px dashed var(--bs-border-color);
    padding-top: 0.65rem;
}

.st-scene-context__toggle {
    font-size: 0.78rem;
}

.st-scene-context__panel {
    margin-top: 0.65rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.28s ease, margin-top 0.28s ease;
}

.st-scene-context__panel.show {
    max-height: 420px;
    opacity: 1;
}

.st-scene-context__body {
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 2px);
    background: rgba(var(--bs-secondary-rgb), 0.06);
}

.st-scene-context-timeline {
    display: grid;
    gap: 0.55rem;
}

.st-scene-context-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: start;
    font-size: 0.82rem;
    line-height: 1.45;
}

.st-scene-context-line__time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.st-scene-context-line__text {
    color: var(--bs-body-color);
}

.st-scene-context-line.is-detection {
    padding: 0.45rem 0.55rem;
    border-radius: var(--bs-border-radius);
    background: rgba(var(--bs-warning-rgb), 0.16);
    border: 1px solid rgba(var(--bs-warning-rgb), 0.35);
}

.st-scene-context-line.is-detection .st-scene-context-line__time,
.st-scene-context-line.is-detection .st-scene-context-line__text {
    font-weight: 600;
    color: var(--bs-body-color);
}

.st-verify-player {
    min-height: 0;
}

.st-verify-player__mount,
.st-verify-player__mount iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--bs-border-radius);
    background: #000;
}

.st-verify-card.is-verified {
    opacity: 0.88;
}

.st-verify-form__status.is-success,
.st-verify-form__status.text-success {
    color: var(--bs-success);
}

.st-similar-list {
    display: grid;
    gap: 0.75rem;
}

.st-similar-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 2px);
    background: var(--bs-body-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-similar-card:hover {
    border-color: rgba(var(--bs-info-rgb), 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.st-similar-card__thumb {
    position: relative;
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.st-similar-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.st-similar-card__badge {
    position: absolute;
    left: 0.35rem;
    bottom: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: rgba(var(--bs-info-rgb), 0.92);
}

.st-similar-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.st-similar-card__wave {
    width: 100%;
    max-width: 220px;
    height: 32px;
    margin-bottom: 0.35rem;
    border-radius: 6px;
}

.st-similar__panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.28s ease;
}

.st-similar__panel.show {
    max-height: 900px;
    opacity: 1;
}

.st-sequencer-library {
    display: grid;
    gap: 0.35rem;
    max-height: 160px;
    overflow: auto;
}

.st-sequencer-library__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.st-sequencer-library__item:hover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.06);
}

.st-sequencer-library__time {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-warning);
}

.st-sequencer-library__label {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-sequencer-library__add {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--bs-primary);
}

.st-sequencer-timeline {
    display: grid;
    gap: 0.5rem;
    max-height: 280px;
    overflow: auto;
}

.st-sequencer-slot {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.5rem 0.6rem;
    background: var(--bs-body-bg);
}

.st-sequencer-slot.is-active {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.25);
}

.st-sequencer-slot__head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.st-sequencer-slot__index {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bs-secondary-color);
}

.st-sequencer-slot__title {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-sequencer-slot__controls {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.5rem;
    align-items: end;
}

.st-sequencer-slot__controls label {
    display: block;
    margin: 0;
}

.st-sequencer-slot__duration-label {
    display: block;
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
}

.st-sequencer-slot__progress {
    height: 3px;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--bs-border-color);
    overflow: hidden;
}

.st-sequencer-slot__progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--bs-primary);
    transition: width 0.08s linear;
}

.st-timeclip-tabs .nav-link {
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
}

.st-timeclip-list {
    max-height: 320px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.st-timeclip-clip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 1px);
    background: var(--bs-body-bg);
}

.st-timeclip-clip__seek {
    min-width: 0;
    flex: 1;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.st-timeclip-clip__time {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bs-warning);
}

.st-timeclip-clip__title {
    display: block;
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-timeclip-clip__actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.st-timeclip-page .st-timeclip-player {
    min-height: 360px;
}

.st-timeclip-player__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 1.5rem;
    background: var(--bs-tertiary-bg);
    border-radius: calc(var(--bs-border-radius) + 2px);
}

.st-timeclip-clip.is-active {
    border-color: var(--bs-warning);
    background: rgba(var(--bs-warning-rgb), 0.08);
}

.st-timeclip-clip__badge {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.05rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--bs-warning);
    border: 1px solid rgba(var(--bs-warning-rgb), 0.45);
    border-radius: 999px;
}

.st-timeclip-add-form summary {
    cursor: pointer;
}

.st-timeclip-markers {
    position: relative;
    height: 10px;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    overflow: hidden;
}

.st-timeclip-markers__track {
    position: relative;
    height: 100%;
}

.st-timeclip-markers__marker {
    position: absolute;
    top: 1px;
    width: 4px;
    height: calc(100% - 2px);
    margin-left: -2px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--bs-warning);
    cursor: pointer;
}

.st-timeclip-markers__marker:hover {
    background: #fd7e14;
    transform: scaleX(1.4);
}

.st-timeclip-markers__playhead {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    background: var(--bs-danger);
    pointer-events: none;
}

.st-timeclip-video-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem;
    padding: 0.65rem;
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 1px);
    background: var(--bs-body-bg);
}

.st-timeclip-video-card__thumb {
    display: block;
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.st-timeclip-video-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.st-timeclip-video-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.st-timeclip-video-card__title {
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.78rem;
    font-family: var(--bs-font-monospace);
    color: var(--bs-body-color);
    text-align: left;
    cursor: pointer;
}

.st-timeclip-video-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.st-timeclip-share {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.st-timeclip-share.hidden {
    display: none;
}

.st-timeclip-share__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.st-timeclip-share__panel {
    position: relative;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    margin: 0;
}

.st-timeclip-site-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 360px;
    overflow: auto;
}

.st-timeclip-site-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.65rem;
    padding: 0.55rem;
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 1px);
    background: var(--bs-body-bg);
}

.st-timeclip-site-item__thumb {
    display: block;
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.st-timeclip-site-item__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.st-timeclip-site-item__title {
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
    color: var(--bs-body-color);
    cursor: pointer;
}

.st-timeclip-site-item__title:hover {
    color: var(--bs-warning);
}

.st-timeclip-global-library {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 520px;
    overflow: auto;
}

.st-timeclip-global-library__group {
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 1px);
    padding: 0.65rem;
}

.st-timeclip-global-library__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.st-timeclip-global-library__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.st-timeclip-global-library__clip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: var(--bs-body-bg);
    cursor: pointer;
}

.st-timeclip-global-library__clip:hover {
    border-color: rgba(var(--bs-warning-rgb), 0.65);
}

.st-timeclip-global-library__time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bs-warning);
}

.st-timeclip-global-library__label {
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (hover: none) and (pointer: coarse) {
    .st-scene-card--preview .st-scene-card__theater-link::after {
        content: '🔈';
        position: absolute;
        left: 6px;
        top: 6px;
        padding: 2px 6px;
        border-radius: 999px;
        font-size: 11px;
        color: #fff;
        background: rgba(0, 0, 0, 0.65);
        pointer-events: none;
    }
}

.st-subtitle-search__status {
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
}

.st-subtitle-search__summary {
    margin: 0.75rem 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
}

.st-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.st-player__layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: none;
}

.st-player__layer.is-active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

.st-player iframe,
.st-player__layer > div {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.st-chat-popup-layer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem;
    pointer-events: none;
}

.st-chat-popup {
    max-width: min(92%, 520px);
    margin: 0 auto;
    padding: 0.65rem 0.85rem;
    border-radius: calc(var(--bs-border-radius) + 2px);
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.st-chat-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.st-chat-popup__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.78);
}

.st-chat-popup__meta strong {
    color: #fff;
}

.st-chat-popup__message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.st-chat-pin-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--bs-warning);
    background: rgba(var(--bs-warning-rgb), 0.12);
}

.st-chat-item.is-sync-highlight {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.55);
    background: rgba(var(--bs-primary-rgb), 0.08);
    transition: background-color 0.25s ease, outline-color 0.25s ease;
}

.st-heatmap__bar {
    position: relative;
    height: 36px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.25) 0%, rgba(234, 179, 8, 0.25) 45%, rgba(239, 68, 68, 0.25) 100%);
}

.st-waveform-bar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.st-waveform-mini {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 32px;
    z-index: 2;
    pointer-events: none;
}

.st-heatmap__reactions {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.st-heatmap__dot {
    position: absolute;
    bottom: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    transform: translateY(50%);
    opacity: 0.85;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.st-heatmap__dot.is-fresh {
    animation: st-heatmap-pulse 0.7s ease-out;
}

@keyframes st-heatmap-pulse {
    0% { transform: translateY(50%) scale(0.4); opacity: 0.2; }
    60% { transform: translateY(50%) scale(1.35); opacity: 1; }
    100% { transform: translateY(50%) scale(1); opacity: 0.85; }
}

.st-moment-reactions .moment-react-btn.is-sent {
    transform: scale(0.96);
}

.st-ambient-mixer .ambient-preset-btn.is-active {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.st-scene-vote__row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.st-scene-vote__scores .btn {
    min-width: 2rem;
}

.st-scene-vote__scores .btn.is-sent,
.st-scene-vote .scene-tag-vote-btn.is-sent {
    border-color: var(--bs-success);
    color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), 0.1);
}

.st-scene-vote.is-disabled {
    opacity: 0.72;
}

.st-scene-vote .scene-tag-vote-count {
    opacity: 0.75;
    font-size: 0.85em;
}

.st-theater-advanced {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.75rem 1rem;
}

.st-theater-advanced > summary {
    cursor: pointer;
    list-style: none;
}

.st-theater-advanced > summary::-webkit-details-marker {
    display: none;
}

.st-theater-advanced[open] > summary {
    margin-bottom: 0.75rem;
}

.st-texture-matrix__frame {
    position: relative;
    max-width: 320px;
    padding: 1.75rem 2rem 1.5rem 2rem;
}

.st-texture-matrix__map {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 2px);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(148, 163, 184, 0.06) 45%, rgba(59, 130, 246, 0.08) 100%);
    cursor: crosshair;
    overflow: hidden;
}

.st-texture-matrix__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 20% 20%;
    pointer-events: none;
}

.st-texture-matrix__pin {
    position: absolute;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.2);
    pointer-events: none;
    z-index: 2;
}

.st-texture-matrix__axis {
    position: absolute;
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
    line-height: 1.2;
    pointer-events: none;
}

.st-texture-matrix__axis--y-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.st-texture-matrix__axis--y-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.st-texture-matrix__axis--x-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.st-texture-matrix__axis--x-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.st-profile-card {
    width: 100%;
}

.st-profile-radar {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(244, 114, 182, 0.06), rgba(56, 189, 248, 0.04));
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 2px);
}

.st-profile-bar__track {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.st-profile-bar__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.st-heatmap__pin {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 18px;
    margin-left: -2px;
    background: #fff;
    border: 1px solid #111;
    border-radius: 2px;
    z-index: 2;
}

.st-led {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
}

.st-led.is-warning { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.st-led.is-alert { background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: st-pulse 1s infinite; }

#warningText.is-warning { color: #f59e0b; font-weight: 700; }
#warningText.is-alert { color: #ef4444; font-weight: 700; animation: st-pulse 1s infinite; }

.st-player.is-altar-window {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 0 32px rgba(245, 158, 11, 0.18);
}

.st-player.is-altar-peak,
.st-player.is-altar-blessed {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45), 0 0 42px rgba(250, 204, 21, 0.28);
}

.st-altar-layer {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}

.st-altar-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.st-altar-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.42) 0%, rgba(250, 204, 21, 0.22) 18%, rgba(239, 68, 68, 0.08) 42%, transparent 72%);
    opacity: 0.95;
    animation: st-altar-glow 0.52s ease-out;
}

.st-altar-glow.is-peak {
    background:
        radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.62) 0%, rgba(252, 211, 77, 0.34) 20%, rgba(239, 68, 68, 0.18) 45%, transparent 78%);
}

@keyframes st-altar-glow {
    0% { opacity: 0; transform: scale(0.96); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.03); }
}

.st-altar-button {
    position: absolute;
    left: 50%;
    bottom: 14%;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: min(88%, 320px);
    padding: 1rem 1.25rem 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.94) 0%, rgba(180, 35, 24, 0.94) 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(250, 204, 21, 0.35);
    transform: translate(-50%, 120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.28s ease, box-shadow 0.2s ease;
}

.st-altar-button.is-active {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
    animation: st-altar-button-pulse 1.1s ease-in-out infinite;
}

.st-altar-button.is-peak {
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.96) 0%, rgba(239, 68, 68, 0.96) 100%);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38), 0 0 36px rgba(252, 211, 77, 0.55);
}

.st-altar-button.is-pressed {
    transform: translate(-50%, 0) scale(0.96);
}

.st-altar-button__halo {
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.7;
    animation: st-altar-halo 1.8s ease-out infinite;
}

.st-altar-button__emoji {
    font-size: 1.6rem;
    line-height: 1;
}

.st-altar-button__label {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.st-altar-button__hint {
    font-size: 0.72rem;
    opacity: 0.9;
}

@keyframes st-altar-button-pulse {
    0%, 100% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(250, 204, 21, 0.28); }
    50% { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), 0 0 36px rgba(252, 211, 77, 0.48); }
}

@keyframes st-altar-halo {
    0% { transform: scale(0.98); opacity: 0.45; }
    70% { transform: scale(1.08); opacity: 0; }
    100% { transform: scale(1.08); opacity: 0; }
}

.st-altar-hud {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-size: 0.72rem;
    pointer-events: none;
    opacity: 0.72;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.st-altar-hud.is-live {
    opacity: 1;
    background: rgba(127, 29, 29, 0.72);
}

.st-altar-hud__total strong {
    color: #fde68a;
}

.bubble {
    position: absolute;
    animation: st-bubble-rise 2.8s ease-out forwards;
}

.danmaku-pop {
    animation: st-danmaku-fade 3.2s ease-out forwards;
}

@keyframes st-bubble-rise {
    0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
    12% { opacity: 0.85; }
    100% { transform: translate(var(--x, 0), -180px) scale(1.1); opacity: 0; }
}

@keyframes st-danmaku-fade {
    0% { opacity: 0; transform: translateY(8px); }
    15% { opacity: 0.85; }
    100% { opacity: 0; transform: translateY(-18px); }
}

@keyframes st-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.st-queue .scene-card {
    display: block;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    background: var(--bs-body-bg);
}

.st-queue .scene-card.is-active {
    border-color: var(--bs-primary);
    box-shadow: inset 0 0 0 1px var(--bs-primary);
}

.st-queue .scene-card__row {
    display: flex;
    gap: 0.625rem;
    align-items: center;
}

.st-queue .scene-card__thumb {
    position: relative;
    width: 72px;
    flex: 0 0 72px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
}

.st-queue .scene-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.st-queue .scene-card__channel,
.st-queue .scene-card__title,
.st-queue .scene-card__time {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.3;
}

.st-queue .scene-card__title { font-weight: 600; }

.playing-badge {
    position: absolute;
    left: 4px;
    top: 4px;
    padding: 1px 4px;
    font-size: 9px;
    color: #fff;
    background: var(--bs-primary);
    border-radius: 3px;
}

.st-chat p { margin-bottom: 0.5rem; font-size: 0.8rem; }

.st-log p { margin: 0 0 0.35rem; font-size: 0.8rem; }

.st-bass-range { max-width: 280px; }

#stToast { z-index: 1080; min-width: 220px; }

.st-form-status.is-success { color: var(--bs-success); }
.st-form-status.is-error { color: var(--bs-danger); }

.st-wiki-rank-list {
    gap: 0.75rem;
}

.st-wiki-rank-item {
    border: 1px solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) + 2px);
    padding: 0.9rem 1rem;
}

.st-wiki-rank-scene-link {
    white-space: nowrap;
}

.wiki-scene {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
}

.wiki-scene.is-active {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.wiki-scene__time {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-primary);
}

.wiki-scene__title {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.wiki-scene__desc {
    margin: 0;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.st-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.55);
}

.st-modal {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 1.25rem;
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-body-bg);
    box-shadow: var(--bs-box-shadow-lg);
}

.st-stat-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--bs-secondary-bg);
    overflow: hidden;
}

.st-stat-bar__fill {
    height: 100%;
    background: var(--bs-primary);
}

/* Live emergency banner (site-wide) */
.st-live-emergency {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2100;
    background: linear-gradient(90deg, #b30000 0%, #ff1744 45%, #ff6d00 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transform: translateY(-110%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.st-live-emergency.is-visible {
    transform: translateY(0);
}

.st-live-emergency__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.st-live-emergency__text {
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    animation: st-live-emergency-pulse 1.8s ease-in-out infinite;
}

.st-live-emergency__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

body.has-live-emergency .app-wrapper {
    padding-top: 3.25rem;
}

@keyframes st-live-emergency-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.88; }
}

.st-bingo-grid {
    display: grid;
    gap: 0.65rem;
}

.st-bingo-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-bingo-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.st-bingo-cell {
    position: relative;
    min-height: 132px;
    padding: 0;
    border: 2px solid rgba(239, 68, 68, 0.35);
    border-radius: calc(var(--bs-border-radius) + 2px);
    background: #111827;
    color: #fff;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.st-bingo-grid--5 .st-bingo-cell {
    min-height: 96px;
}

.st-bingo-cell__thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(0.35) brightness(0.55);
    transition: filter 0.2s ease, transform 0.25s ease;
}

.st-bingo-cell__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.st-bingo-cell__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.25rem;
    min-height: 100%;
    padding: 0.55rem;
}

.st-bingo-cell__time {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fecaca;
}

.st-bingo-cell__title {
    font-size: 0.78rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.st-bingo-cell__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.st-bingo-cell__badges .badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.35rem;
}

.st-bingo-cell__mark {
    position: absolute;
    top: 0.4rem;
    right: 0.45rem;
    z-index: 2;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.92);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.st-bingo-cell:hover,
.st-bingo-cell:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.85);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.18);
    outline: none;
}

.st-bingo-cell:hover .st-bingo-cell__thumb,
.st-bingo-cell:focus-visible .st-bingo-cell__thumb {
    filter: grayscale(0) brightness(0.72);
    transform: scale(1.04);
}

.st-bingo-cell.is-opening {
    animation: st-bingo-flip 0.45s ease;
}

.st-bingo-cell.is-opened {
    border-color: rgba(34, 197, 94, 0.75);
}

.st-bingo-cell.is-opened .st-bingo-cell__thumb {
    filter: grayscale(0) brightness(0.82);
}

.st-bingo-cell.is-opened .st-bingo-cell__mark {
    opacity: 1;
    transform: scale(1);
}

.st-bingo-cell--preview {
    cursor: default;
    pointer-events: none;
}

.st-bingo-grid--preview .st-bingo-cell__thumb {
    filter: grayscale(0.15) brightness(0.68);
}

@keyframes st-bingo-flip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg) scale(0.96); }
    100% { transform: rotateY(0deg); }
}

@media (max-width: 767.98px) {
    .st-bingo-grid--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .st-bingo-grid--5 .st-bingo-cell {
        min-height: 110px;
    }
}

.st-radio-body .app-sidebar {
    display: none;
}

.st-radio-body .app-main,
.st-radio-body .app-footer {
    margin-left: 0 !important;
}

.st-radio-body .app-content {
    padding: 0;
    background: #020617;
}

.st-radio-body .app-content-header {
    display: none;
}

.st-radio {
    position: relative;
    min-height: calc(100vh - 56px);
    color: #f8fafc;
    background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 42%), #020617;
}

.st-radio__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
}

.st-radio__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72vh, calc(100vh - 220px));
    padding: 0 1rem 1rem;
}

.st-radio__player {
    width: min(100%, 1180px);
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--bs-border-radius) + 4px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.st-radio__now {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 5;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.82) 100%);
    pointer-events: none;
}

.st-radio__now-channel {
    color: #fde68a;
    font-size: 0.8rem;
    font-weight: 700;
}

.st-radio__now-title {
    color: #fff;
}

.st-radio__now-meta {
    color: rgba(255, 255, 255, 0.72);
}

.st-radio__start {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 0;
    background: rgba(2, 6, 23, 0.62);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.st-radio__start-icon {
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.92);
    font-size: 1.5rem;
    box-shadow: 0 0 32px rgba(239, 68, 68, 0.45);
}

.st-radio__queue-panel,
.st-radio__chat-panel {
    position: fixed;
    z-index: 12;
    width: min(300px, calc(100vw - 1.5rem));
    max-height: min(42vh, 360px);
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.st-radio__queue-panel {
    top: 4.5rem;
    right: 0.75rem;
}

.st-radio__chat-panel {
    left: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.st-radio__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.st-radio__queue-list {
    max-height: calc(min(42vh, 360px) - 3rem);
    overflow: auto;
}

.st-radio__queue-item {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.st-radio__queue-item.is-current {
    color: #fde68a;
}

.st-radio__queue-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

.st-radio__chat-timeline {
    flex: 1;
    min-height: 120px;
    max-height: 180px;
    overflow: auto;
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: rgba(2, 6, 23, 0.45);
}

.st-radio__chat-item {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.st-radio__chat-form textarea {
    background: rgba(2, 6, 23, 0.55);
    color: #fff;
    border-color: rgba(148, 163, 184, 0.25);
}

@media (max-width: 991.98px) {
    .st-radio__queue-panel {
        position: static;
        width: auto;
        max-height: none;
        margin: 0 1rem 1rem;
    }

    .st-radio__chat-panel {
        position: static;
        width: auto;
        max-height: none;
        margin: 0 1rem 1rem;
    }

    .st-radio__stage {
        min-height: auto;
    }
}
