:root {
    --bpm-bg-primary: #171e26;
    --bpm-bg-secondary: #1A1A2E;
    --bpm-bg-card: #2A2A3E;
    --bpm-border: #3A3A4E;
    --bpm-text-primary: #E8E8EC;
    --bpm-border-radius: .5rem;
    --bpm-highlight: #FED42B;
}

/* Сообщения об успехе/ошибке */
.bpm-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--bpm-border-radius);
}

.bpm-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bpm-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Контейнер формы */
.bpm-edit-form {
    margin: 0 auto;
}

.bpm-field-core {
    padding: 1rem;
    border: 1px solid var(--bpm-border);
    border-radius: var(--bpm-border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.bpm-field-core-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

/* .bpm-field {
} */

.bpm-field-span2 {
    grid-column: span 2;
}

.bpm-field label {
    display: block;
    font-weight: bold;
    margin-bottom: .25rem;
    padding: 0 .5rem;
}

.bpm-field input:-webkit-autofill,
.bpm-field input:-webkit-autofill:hover,
.bpm-field input:-webkit-autofill:focus,
.bpm-field input:-internal-autofill-selected,
.bpm-field input,
.bpm-field textarea {
    width: 100%;
    padding: 1rem 1.5rem;
}

.bpm-field textarea {
    resize: none;
    height: 14rem;
}

.bpm-field input[type="file"],
.bpm-field input[type=file]::file-selector-button,
.bpm-field input[type=file]::-webkit-file-upload-button {
    cursor: pointer;
}

.bpm-required {
    color: red;
}

.bpm-field small {
    color: #666;
    font-size: 0.9em;
    display: block;
    margin-top: 4px;
}

/* Превью изображения */
.bpm-field-image {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.bpm-current-image {
    position: relative;
    margin-bottom: 0;
    width: 15rem;
    height: 15rem;
    overflow: hidden;
    border-radius: var(--bpm-border-radius);
}

.bpm-current-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bpm-remove-image-btn {
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
    border: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s;
}

.bpm-remove-image-btn:hover {
    background: rgba(167, 29, 42, 1);
}

/* Выпадающие блоки details */
.bpm-details {
    margin-bottom: 1rem;
    border: 1px solid var(--bpm-border);
    border-radius: var(--bpm-border-radius);
    padding: 1rem;
}

.bpm-details summary {
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    outline: none;
}

.bpm-details summary:hover {
    color: var(--bpm-highlight);
}

.bpm-details-content {
    display: flex;
    flex-direction: column;
    gap: 2rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bpm-border);
}

.bpm-details-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Чекбоксы */
.bpm-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bpm-checkbox input {
    width: auto;
}

.bpm-checkbox label {
    margin-bottom: 0;
}

/* Кнопка отправки */
.bpm-submit-btn {
    background-color: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--bpm-border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

.bpm-submit-btn:hover {
    background-color: #005177;
}

/* ─── Табы ─────────────────────────────────────── */
.bpm-tabs {
    margin: 0 auto 20px;
}

.bpm-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--bpm-border);
    padding-bottom: 1rem;
}

.bpm-tab-btn {
    text-transform: uppercase;
}

/* ─── Кнопка перехода на страницу артиста + статистика ────────── */
.bpm-view-page-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bpm-bg-card);
    border: 1px solid var(--bpm-border);
    border-radius: var(--bpm-border-radius);
}

.bpm-view-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.bpm-view-btn:hover {
    background: #005177;
    color: #fff;
}

/* Инлайн-статистика */
.bpm-stats-inline {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 14px;
    color: var(--bpm-text-primary);
}

.bpm-stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    cursor: help;
}

.bpm-stat-item span {
    font-weight: bold;
    color: var(--bpm-highlight);
}

/* ─── Блок удаления страницы ────────────────────── */
.bpm-delete-section {
    margin-top: 30px;
    border: 2px solid #dc3545;
    border-radius: 6px;
    background: #fff5f5;
}

.bpm-delete-section summary {
    cursor: pointer;
    font-weight: bold;
    padding: 12px 16px;
    color: #dc3545;
    outline: none;
    user-select: none;
}

.bpm-delete-section summary:hover {
    color: #a71d2a;
}

.bpm-delete-content {
    padding: 16px;
    border-top: 1px solid #dc3545;
}

.bpm-delete-content h2 {
    font-size: 16px;
    color: #721c24;
    margin: 0 0 16px 0;
    font-weight: 600;
    line-height: 1.5;
}

.bpm-delete-btn {
    padding: 10px 24px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: var(--bpm-border-radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.bpm-delete-btn:hover {
    background: #a71d2a;
}

/* ─── Утилитарный класс скрытия ────────────────── */
.bpm-hidden {
    display: none !important;
}

/* ─── Детализация статистики кликов ────────────── */
.bpm-stats-detail {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bpm-bg-card);
    border: 1px solid var(--bpm-border);
    border-radius: var(--bpm-border-radius);
}

.bpm-stats-detail h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--bpm-text-primary);
    font-weight: 600;
}

.bpm-stats-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.bpm-stats-detail-item {
    font-size: 0.95rem;
    color: var(--bpm-text-primary);
}

.bpm-stats-label {
    font-weight: 500;
}

.bpm-stats-count {
    font-weight: bold;
    color: var(--bpm-highlight);
}

.bpm-field-advanced-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bpm-release-item {
    display: grid;
    grid-template-columns: 6rem auto 3rem;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
}

.bpm-release-preview {
    overflow: hidden;
    border-radius: var(--bpm-border-radius);
}

.bpm-presave-preview {
    display: grid;
    grid-template-columns: 10rem auto;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 820px) {

    .bpm-field-advanced-links,
    .bpm-details-content-grid,
    .bpm-field-core-fields{
        grid-template-columns: 1fr;
    }
    .bpm-field-span2{
        grid-column: span 1;
    }
}