:root[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-block: #1e293b;
    --bg-input: #0f172a;
    --text-main: #e2e8f0;
    --text-title: #f8fafc;
    --border-color: #334155;
    --border-dashed: #475569;
}
:root[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-block: #ffffff;
    --bg-input: #f1f5f9;
    --text-main: #334155;
    --text-title: #0f172a;
    --border-color: #cbd5e1;
    --border-dashed: #94a3b8;
}
.app-container,
.song-title-row,
.controls-row,
#workspace,
footer {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.app-container {
    padding: 0 10px;
}
.song-title-row {
    padding: 0 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}
.controls-row {
    padding: 0 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}
#workspace {
    padding: 0 10px;
}
footer {
    padding: 15px 10px 0 10px;
    margin-top: 40px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    padding: 15px;
    transition:
        background 0.3s,
        color 0.3s;
    -webkit-text-size-adjust: 100%;
}
.app-container {
    max-width: 1200px;
    margin: 0 auto;
}
header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
h1 {
    color: var(--text-title);
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}
.title-and-theme {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-theme-toggle {
    background: #334155;
    color: #cbd5e1;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #475569;
}
.btn-fullscreen-toggle {
    background: #475569;
    color: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-fullscreen-toggle:hover {
    background: #64748b;
    color: white;
}
.audio-bar {
    background: linear-gradient(180deg, #1e293b 0%, #111827 100%) !important;
    padding: 16px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow:
        inset 0 1px 0px rgba(255, 255, 255, 0.15),
        0 10px 15px -3px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(245, 158, 11, 0.05) !important;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: all 0.3s ease;
}
.audio-bar:focus-within,
.audio-bar:hover {
    box-shadow:
        inset 0 1px 0px rgba(255, 255, 255, 0.2),
        0 12px 20px -3px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(245, 158, 11, 0.15) !important;
    border-color: #475569;
}
.audio-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}
.audio-bar label {
    font-size: 12px;
    font-weight: bold;
    color: #f8fafc !important;
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #475569;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}
.audio-bar label:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}
.audio-bar input[type="file"] {
    display: none !important;
}
.studio-player-wrapper {
    flex: 1;
    min-width: 240px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
}

audio {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    z-index: 5;
    filter: invert(0.9) hue-rotate(180deg) brightness(1.2) contrast(1.2);
    mix-blend-mode: screen;
    background: transparent !important;
}
.custom-player-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #f59e0b;
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(245, 158, 11, 0.2) !important;
}
canvas {
    width: 100%;
    height: 35px;
    background: var(--bg-input);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.metronome-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.btn-tap-bpm {
    background: #a855f7;
    color: white;
    padding: 6px 10px;
}
#bpm-display {
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    color: #a855f7;
}
.playlist-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.playlist-container {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
}
.playlist-title {
    font-size: 11px;
    font-weight: bold;
    color: #64748b;
    text-transform: uppercase;
}
.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    background: var(--bg-block);
    font-family: monospace;
    font-size: 11px;
}
.track-item.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid #38bdf8;
}
.btn-remove-track {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
}
.safety-warning-banner {
    display: none;
    background: rgba(56, 189, 248, 0.05);
    border: 1px dashed #38bdf8;
    color: #38bdf8;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.controls-row {
    margin-top: 15px;
}
.block-triggers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}
.export-triggers {
    display: flex;
    gap: 6px;
}
button {
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}
.btn-intro {
    background: #64748b;
    color: white;
}
.btn-verse {
    background: #3b82f6;
    color: white;
}
.btn-prechorus {
    background: #f59e0b;
    color: white;
}
.btn-chorus {
    background: #ec4899;
    color: white;
}
.btn-outro {
    background: #10b981;
    color: white;
}
.btn-export-txt {
    background: #0284c7;
    color: white;
}
.btn-export-pdf {
    background: #7c3aed;
    color: white;
}
.btn-ui-toggle {
    background: var(--border-color);
    color: var(--text-main);
    font-size: 10px;
    padding: 2px 6px;
}
.song-title-row {
    margin-bottom: 20px;
    width: 100%;
}
.song-title-input {
    background: transparent;
    border: none;
    border-bottom: 2px dashed var(--border-dashed);
    color: var(--text-title);
    font-size: 22px;
    font-weight: bold;
    padding: 6px 0;
    width: 100%;
    outline: none;
}
.song-block {
    background: var(--bg-block);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 6px solid #3b82f6;
    border: 1px solid var(--border-color);
    border-left-width: 6px;
}
.song-block.type-intro {
    border-left-color: #64748b;
}
.song-block.type-verse {
    border-left-color: #3b82f6;
}
.song-block.type-prechorus {
    border-left-color: #f59e0b;
}
.song-block.type-chorus {
    border-left-color: #ec4899;
}
.song-block.type-outro {
    border-left-color: #10b981;
}
.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 5px;
    flex-wrap: wrap;
}
.block-title {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-title);
}
.header-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.btn-move-arrow {
    background: #475569;
    color: #f8fafc;
    font-size: 12px;
    padding: 4px 8px;
    font-family: monospace;
}
.btn-toggle-analysis {
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.btn-duplicate-block {
    background: #10b981;
    color: white;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
}
.btn-delete-block {
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
}
textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    padding: 10px;
    font-size: 16px;
    font-family: monospace;
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}
.lines-analysis-container {
    margin-top: 12px;
    background: var(--bg-input);
    border-radius: 6px;
    padding: 10px;
    border: 1px solid var(--border-color);
}
.analysis-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
    position: relative;
    min-height: 32px;
}
.analysis-row:last-child {
    border-bottom: none;
}
.screen-hidden {
    display: none !important;
}
.rhyme-indicator {
    width: 5px;
    position: absolute;
    left: 2px;
    top: 4px;
    bottom: 4px;
    border-radius: 4px;
    background: transparent;
    transition: background 0.3s;
}
.row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 2;
    padding-left: 12px;
}
.row-number {
    color: #64748b;
    font-weight: bold;
    font-size: 11px;
    min-width: 38px;
}
.row-text-accents {
    font-size: 14px;
    color: var(--text-main);
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-word;
}
.row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}
.row-visual-dots {
    color: #38bdf8;
    font-size: 14px;
    letter-spacing: 1px;
    font-family: monospace;
}
.row-style-tag {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 500;
    cursor: help;
    border-bottom: 1px dashed #f59e0b;
    position: relative;
}
.row-style-tag .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--bg-block);
    color: var(--text-main);
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 5;
    bottom: 125%;
    right: 0;
    opacity: 0;
    border: 1px solid var(--border-color);
    font-family: sans-serif;
    font-size: 11px;
}
.row-style-tag:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
footer {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.footer-section {
    flex: 1;
    min-width: 250px;
    background: var(--bg-block);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
}
.footer-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-title);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.theory-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.theory-mini-card {
    background: var(--bg-input);
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    flex: 1;
    min-width: 140px;
    border: 1px solid var(--border-color);
}
.tm-name {
    font-weight: bold;
    color: #38bdf8;
}
.tm-pattern {
    font-family: monospace;
    color: #f59e0b;
}
.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-logo-container-help {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 20px;
}
.print-title-pdf {
    display: none;
}
.footer-author-box {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}
.author-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.copyright-line {
    font-size: 16px;
    color: var(--text-title);
    letter-spacing: 0.5px;
}
.copyright-line strong {
    color: #f59e0b;
}
.author-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.contact-link {
    font-size: 16px;
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease;
    width: fit-content;
}
.contact-link:hover {
    color: #ec4899;
}
.btn-clear-danger {
    background: #ef4444;
    width: 100%;
    padding: 10px;
    font-weight: bold;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    transition: background 0.2s;
    margin-top: 20px !important;
}
.btn-clear-danger:hover {
    background: #dc2626;
}
@media print {
    .footer-author-box {
        display: none !important;
    }
}
@media (max-width: 600px) {
    body {
        padding: 8px;
    }
    .title-and-theme {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    .btn-theme-toggle,
    .btn-fullscreen-toggle {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
    }
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .export-triggers {
        width: 100%;
        justify-content: space-between;
        display: flex;
        gap: 8px;
    }
    .export-triggers button {
        flex: 1;
        text-align: center;
    }
    .block-triggers button {
        flex: 1;
        min-width: 80px;
        text-align: center;
        padding: 10px 4px;
    }
    .audio-controls-row {
        display: flex;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
    }
    .studio-player-wrapper {
        width: 100% !important;
        flex: none !important;
        height: 44px !important;
    }
    audio {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }
    .metronome-box {
        width: 100%;
        justify-content: space-between;
        padding: 8px;
    }
    .btn-tap-bpm {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }
    .analysis-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }
    .row-right {
        width: 100% !important;
        justify-content: space-between !important;
        padding-left: 12px !important;
    }
    .header-actions {
        width: 100% !important;
        justify-content: space-between !important;
        margin-top: 6px !important;
    }
    .header-actions button {
        flex: 1;
        text-align: center;
        font-size: 11px;
        padding: 8px 4px;
    }
}
@media print {
    body {
        background: white !important;
        color: black !important;
        padding: 0 !important;
    }
    header,
    footer,
    .audio-bar,
    .controls-row,
    .header-actions,
    textarea,
    .row-right,
    .row-number,
    .rhyme-indicator {
        display: none !important;
    }
    .screen-hidden {
        display: block !important;
    }
    .lines-analysis-container {
        display: block !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    @media print {
        .btn-fullscreen-toggle {
            display: none !important;
        }
    }
    .song-block {
        background: transparent !important;
        border-left: none !important;
        margin-bottom: 35px !important;
        padding: 0 !important;
        page-break-inside: avoid;
    }
    .block-header {
        border-bottom: 2px solid #000 !important;
        padding-bottom: 5px !important;
        margin-bottom: 15px !important;
    }
    .block-title {
        color: black !important;
        font-size: 20px !important;
        font-weight: bold;
        text-transform: uppercase;
    }
    .analysis-row {
        border: none !important;
        padding: 4px 0 !important;
        display: flex !important;
        flex-direction: row !important;
    }
    .row-left {
        display: block !important;
        padding-left: 0 !important;
    }
    .row-text-accents {
        color: black !important;
        font-size: 18px !important;
        font-family: "Times New Roman", serif !important;
    }
    .print-title-pdf {
        display: block !important;
        text-align: center !important;
        font-size: 28px !important;
        font-weight: bold;
        color: black !important;
        margin-bottom: 30px !important;
        text-transform: uppercase !important;
        border-bottom: 3px double #000 !important;
        padding-bottom: 10px !important;
    }
    textarea::-webkit-resizer {
        display: block !important;
        background-image: linear-gradient(
            135deg,
            transparent 40%,
            var(--border-dashed) 40%,
            var(--border-dashed) 50%,
            transparent 50%,
            transparent 60%,
            var(--border-dashed) 60%,
            var(--border-dashed) 70%,
            transparent 70%,
            transparent 80%,
            var(--border-dashed) 80%,
            var(--border-dashed) 90%,
            transparent 90%
        );
        background-size: 14px 14px;
        background-repeat: no-repeat;
        background-position: bottom right;
        width: 24px !important;
        height: 24px !important;
        cursor: se-resize;
    }
    textarea {
        padding-bottom: 20px !important;
    }
}
.btn-help-toggle {
    background: #1e293b;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-help-toggle:hover {
    background: var(--border-color);
    color: var(--text-title);
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: var(--bg-block);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-block);
    z-index: 2;
}
.modal-header h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-title);
}
.btn-close-modal {
    background: none;
    border: none;
    color: #64748b;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-close-modal:hover {
    color: #ef4444;
}
.modal-body {
    padding: 20px;
}
.modal-intro {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}
.neon-text {
    display: inline-block;
    font-weight: bold;
    animation: float 1.5s ease-in-out infinite alternate;
    font-family:
        "Arial Black",
        sans serif;
    font-size: 13px;
    color: #fff;
    background-color: #000000;
    padding-left: 5px;
    padding-right: 5px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-shadow:
        0 0 20px #aa00f8,
        0 0 5px #ff007f;
    margin-bottom: 0px;
}
@keyframes float {
    from {
        transform: transliteX(0px);
    }
    to {
        transform: translateX(-1px);
    }
}
.help-section {
    margin-bottom: 25px;
}
.help-section h3 {
    font-size: 13px;
    font-weight: bold;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.help-section ul {
    padding-left: 20px;
    margin-top: 5px;
}
.help-section li {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
}
.help-grid {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.help-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    flex: 1;
    min-width: 240px;
}
.help-card p {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 6px;
    color: var(--text-main);
}
.hc-badge {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
.card-accent {
    border-left: 4px solid #f59e0b;
}
.card-accent .hc-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.card-ban {
    border-left: 4px solid #ef4444;
}
.card-ban .hc-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
@media (max-width: 600px) {
    .btn-help-toggle {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
    }
    .modal-overlay {
        padding: 0;
    }
    .modal-content {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
        border: none;
    }
    @media print {
        .btn-help-toggle,
        .modal-overlay {
            display: none !important;
        }
    }
}
.btn-theory-toggle {
    background: #1e293b;
    color: #a855f7;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-theory-toggle:hover {
    background: var(--border-color);
    color: #f8fafc;
}
.theory-example {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    color: #94a3b8;
    border-left: 2px solid var(--border-dashed);
}
.theory-example strong {
    color: #38bdf8;
    text-shadow: 0 0 4px rgba(56, 189, 248, 0.4);
}
@media (max-width: 600px) {
    .btn-theory-toggle {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
    }
    @media print {
        #theory-modal,
        .btn-theory-toggle {
            display: none !important;
        }
    }
}
.btn-project-save {
    background: #0ea5e9;
    color: white;
    border: 1px solid #0284c7;
}
.btn-project-save:hover {
    background: #0284c7;
}
.btn-project-load-label {
    background: #10b981;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-project-load-label:hover {
    background: #059669;
}
@media (max-width: 600px) {
    .btn-project-save,
    .btn-project-load-label {
        flex: 1;
        text-align: center;
        padding: 10px 4px;
    }
}
@media print {
    .btn-project-save,
    .btn-project-load-label {
        display: none !important;
    }
}
.prompter-container {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.prompter-text-screen {
    max-height: 600px;
    overflow-y: auto;
    background: #090d16 !important;
    border-radius: 4px;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #1e293b;
    font-size: 24px;
    line-height: 1.6;
    color: #e2e8f0 !important;
    white-space: pre-wrap;
}
.prompter-block-header {
    display: block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 14px;
    margin-bottom: 4px;
    color: #64748b;
}
.prompter-block-header:first-child {
    margin-top: 0;
}
.p-block-intro {
    color: #94a3b8;
}
.p-block-verse {
    color: #38bdf8;
}
.p-block-prechorus {
    color: #f59e0b;
}
.p-block-chorus {
    color: #ec4899;
}
.p-block-outro {
    color: #10b981;
}
@media (max-width: 600px) {
    .prompter-text-screen {
        max-height: 400px;
        font-size: 14px;
    }
}
@media print {
    .prompter-container {
        display: none !important;
    }
}
.sequencer-container {
    background: var(--bg-block);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.seq-grid-content {
    margin-top: 10px;
}
.seq-global-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}
.btn-seq-play {
    background: #10b981;
    color: white;
    border: 1px solid #059669;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
}
.btn-seq-play.playing {
    background: #ef4444;
    border-color: #dc2626;
}
.seq-hint {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}
.seq-tracks-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.seq-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.seq-label {
    font-size: 11px;
    font-weight: bold;
    color: #94a3b8;
    min-width: 70px;
    font-family: monospace;
}
.seq-steps {
    display: flex;
    gap: 4px;
    flex: 1;
}
.seq-step {
    flex: 1;
    height: 26px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
}
.seq-step[data-step-idx="0"],
.seq-step[data-step-idx="4"],
.seq-step[data-step-idx="8"],
.seq-step[data-step-idx="12"] {
    border-color: #475569;
    background: #1e293b;
}
.seq-step.active {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}
.seq-step.playing-now::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(56, 189, 248, 0.4);
    border-radius: 3px;
    border: 1px solid #38bdf8;
}
@media (max-width: 600px) {
    .seq-step {
        height: 22px;
    }
    .seq-label {
        min-width: 60px;
        font-size: 10px;
    }
    .seq-global-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .seq-hint {
        text-align: center;
    }
}
.studio-advertising-zone {
    max-width: 1000px !important;
    margin: 25px auto !important;
    width: 100% !important;
    background: var(--bg-block);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-sizing: border-box !important;
}
#yandex-rtb-advert {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
    letter-spacing: 0.5px;
}
@media print {
    .studio-advertising-zone {
        display: none !important;
    }
}
.seq-row[data-instrument="bass"] .seq-step.active {
    background: #a855f7 !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}
