* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
    padding: 10px;
}
.container-full {
    width: 100%;
    max-width: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

h1, h2, h3 {
    margin: 16px 0;
}
input, select, button, .btn {
    padding: 8px 12px;
    margin: 4px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
input[type="text"], input[type="url"] {
    width: 100%;
}
.song-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.song-table th,
.song-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Цвета секций */
.section-intro,
.section-coda { background-color: #e0e0e0; }
.section-verse { background-color: #d0e7ff; }
.section-pre_chorus { background-color: #fff9c4; }
.section-chorus { background-color: #ffcdd2; }
.section-bridge { background-color: #e1bee7; }
.section-solo { background-color: #f8bbd0; }

.btn {
    display: inline-block;
    text-decoration: none;
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}
.demo-link {
    background: #2196F3;
}
.song-list li {
    margin: 6px 0;
}

/* Редактор секций */
.section-row {
    background: #f5f5f5;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border-left: 4px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.section-row.section-verse { border-left-color: #d0e7ff; }
.section-row.section-chorus { border-left-color: #ffcdd2; }
.section-row.section-solo { border-left-color: #f8bbd0; }
.section-row.section-bridge { border-left-color: #e1bee7; }
.section-row.section-pre_chorus { border-left-color: #fff9c4; }
.section-row.section-intro,
.section-row.section-coda { border-left-color: #e0e0e0; }

/* Сетка аккордов */
.chord-grid-editor {
    margin: 8px 0;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
}
.chord-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    align-items: center;
    flex-wrap: wrap;
}
}
.chord-cell {
    width: calc(25% - 6px);
    min-width: 80px;
    padding: 4px 6px;
    font-family: monospace;
    font-size: 13px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.repeat-cell {
    width: 70px;
    min-width: 60px;
    padding: 4px 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    white-space: nowrap;
}
.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 4px;
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 768px) {
    .chord-cell {
        width: calc(50% - 6px);
        min-width: 60px;
        font-size: 12px;
    }
    .repeat-cell {
        width: 60px;
        font-size: 12px;
    }
    .btn-small {
        padding: 3px 6px;
        font-size: 11px;
    }
    .section-row {
        padding: 8px;
    }
}
.chord-grid-editor {
    margin: 8px 0;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    min-height: 60px; /* чтобы не схлопывался при пустых строках */
}
/* Поля в редакторе секции */
.section-name {
    width: 200px !important;
    flex-shrink: 0;
}
.section-comment {
    width: 100% !important;
    flex-grow: 1;
}
.action-notification {
    max-width: 400px;
    z-index: 1002;
}

.action-notification .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}