.mrc-shortcode {
  padding: 12px;
  border: 1px solid #e4dbcf;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf6ef 100%);
  color: #24180f;
}

.mrc-shortcode-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mrc-shortcode-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mrc-kicker {
  margin: 0 0 2px;
  color: #6e6155;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mrc-shortcode h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.02;
}

.mrc-shortcode-list {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 5px;
}

.mrc-shortcode-song {
  padding: 6px 9px;
  border: 1px solid #eadfd3;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.mrc-set-divider {
  padding: 5px 9px;
  border: 1px solid #d7c6ab;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf1 0%, #f8f0e2 100%);
  color: #5f4b34;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mrc-song-number {
  display: inline-flex;
  min-width: 18px;
  font-weight: 800;
  color: #2d5b4c;
}

.mrc-print-button {
  border: 0;
  background: #2f5b4c;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
}

.mrc-song-line,
.mrc-song-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.mrc-song-line strong,
.mrc-song-row strong {
  font-size: 0.9rem;
  min-width: 0;
  flex: 0 1 auto;
  overflow-wrap: anywhere;
}

.mrc-song-line span,
.mrc-song-row span,
.mrc-song-note {
  color: #6e6155;
}

.mrc-song-row {
  gap: 3px 8px;
  line-height: 1.2;
  min-width: 0;
}

.mrc-song-row span,
.mrc-song-note {
  font-size: 12px;
}

.mrc-song-row a {
  color: #2d5b4c;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.mrc-song-note {
  margin-top: 4px;
}

.mrc-playlist-player {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dcd0c1;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8f3eb 100%);
  overflow: hidden;
}

.mrc-playlist-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mrc-playlist-head strong {
  font-size: 0.95rem;
}

.mrc-playlist-head span {
  color: #6e6155;
  font-size: 12px;
}

.mrc-playlist-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.mrc-playlist-button {
  border: 0;
  border-radius: 999px;
  background: #2f5b4c;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.mrc-playlist-audio {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 52px;
  max-width: 100%;
}

.mrc-playlist-queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}

.mrc-playlist-item {
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 1px solid #e5dacd;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  overflow: hidden;
}

.mrc-playlist-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #2d5b4c;
}

.mrc-playlist-item strong {
  font-size: 0.88rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mrc-playlist-item span {
  font-size: 12px;
  color: #6e6155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mrc-playlist-item.is-current {
  border-color: #2f5b4c;
  background: #eef6f2;
  box-shadow: inset 0 0 0 1px rgba(47, 91, 76, 0.12);
}

.mrc-playlist-item.is-empty {
  cursor: default;
  opacity: 0.7;
}

.mrc-form-card {
  padding: 24px;
  border: 1px solid #e4dbcf;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf6ef 100%);
  color: #24180f;
}

.mrc-form-head {
  margin-bottom: 18px;
}

.mrc-form-head h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.1;
}

.mrc-form-head p {
  margin: 0;
  color: #6e6155;
}

.mrc-song-form {
  display: grid;
  gap: 14px;
}

.mrc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mrc-form-grid label {
  display: grid;
  gap: 6px;
}

.mrc-form-grid span {
  font-weight: 700;
}

.mrc-song-form input,
.mrc-song-form button {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
}

.mrc-song-form input {
  border: 1px solid #d8cec0;
  background: #fff;
}

.mrc-song-form button {
  border: 0;
  background: #2f5b4c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.mrc-form-status {
  min-height: 20px;
  margin: 0;
  color: #6e6155;
}

.mrc-form-status.is-success {
  color: #1f6a44;
}

.mrc-form-status.is-error {
  color: #b42318;
}

.mrc-builder-card {
  padding: 24px;
  border: 1px solid #e4dbcf;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf6ef 100%);
  color: #24180f;
}

.mrc-builder-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mrc-builder-head h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.1;
}

.mrc-builder-head p {
  margin: 0;
  color: #6e6155;
}

.mrc-builder-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mrc-builder-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
}

.mrc-builder-panel {
  padding: 16px;
  border: 1px solid #e2d9cd;
  border-radius: 14px;
  background: #fffdf8;
}

.mrc-builder-panel-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.mrc-builder-panel-head h4 {
  margin: 0;
}

.mrc-builder-panel-head input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8cec0;
  background: #fff;
}

.mrc-builder-song-bank {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}

.mrc-builder-song-group {
  display: grid;
  gap: 8px;
}

.mrc-builder-song-group h5 {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e6155;
}

.mrc-builder-song-group-list {
  display: grid;
  gap: 8px;
}

.mrc-builder-song {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e7ded2;
  border-radius: 12px;
  background: #fff;
  cursor: grab;
}

.mrc-builder-song span {
  color: #6a5f52;
  font-size: 12px;
}

.mrc-builder-dropzone {
  display: grid;
  gap: 10px;
  min-height: 120px;
}

.mrc-builder-drop-slot {
  height: 14px;
  border-radius: 999px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.mrc-builder-drop-slot.is-drop-target {
  background: rgba(34, 113, 177, 0.14);
  box-shadow: inset 0 0 0 2px #2271b1;
}

.mrc-builder-empty {
  padding: 18px;
  border: 1px dashed #ccbca8;
  border-radius: 12px;
  color: #6a5f52;
  background: #fff;
}

.mrc-builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e2d9cd;
  border-radius: 12px;
  background: #fff;
}

.mrc-builder-row-main {
  display: grid;
  gap: 10px;
}

.mrc-builder-row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  line-height: 1.15;
}

.mrc-builder-row-top span {
  color: #6e6155;
  white-space: nowrap;
}

.mrc-builder-note {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d8cec0;
  background: #fff;
}

.mrc-builder-row.is-dragging {
  opacity: 0.45;
}

.mrc-builder-row.is-drop-target {
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.12);
}

.mrc-song-list-card {
  padding: 24px;
  border: 1px solid #e4dbcf;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf6ef 100%);
  color: #24180f;
}

.mrc-song-list-head {
  margin-bottom: 18px;
}

.mrc-song-list-head h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.1;
}

.mrc-song-list-head p {
  margin: 0;
  color: #6e6155;
}

.mrc-song-search {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.mrc-song-search span {
  font-weight: 700;
}

.mrc-song-search input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8cec0;
  background: #fff;
}

.mrc-song-table-wrap {
  overflow-x: auto;
}

.mrc-song-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
  background: #fff;
  border: 1px solid #eadfd3;
  border-radius: 14px;
  overflow: hidden;
}

.mrc-song-table th,
.mrc-song-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #efe5da;
  text-align: left;
  vertical-align: top;
}

.mrc-song-table thead th {
  background: #f7f1e8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mrc-song-table tbody tr:last-child td {
  border-bottom: 0;
}

.mrc-song-table td:first-child {
  font-weight: 700;
}

.mrc-song-table a {
  color: #2d5b4c;
  font-weight: 700;
  text-decoration: none;
}

.mrc-audio-player {
  width: 300px;
  max-width: 100%;
  height: 32px;
}

.mrc-song-table th:nth-child(3),
.mrc-song-table td:nth-child(3),
.mrc-song-table th:nth-child(4),
.mrc-song-table td:nth-child(4),
.mrc-song-table th:nth-child(5),
.mrc-song-table td:nth-child(5) {
  white-space: nowrap;
  width: 88px;
}

.mrc-song-table th:nth-child(6),
.mrc-song-table td:nth-child(6) {
  min-width: 320px;
}

.mrc-song-row {
  gap: 8px 12px;
  line-height: 1.15;
  min-width: 0;
}

.mrc-song-row span {
  white-space: nowrap;
  flex: 0 0 auto;
}

.mrc-audio-player-inline {
  flex: 1 1 420px;
  width: auto;
  max-width: none;
  min-width: 260px;
  margin-left: auto;
}

.mrc-song-list-empty {
  margin: 0;
  color: #6e6155;
}

@media (max-width: 900px) {
  .mrc-builder-head,
  .mrc-builder-grid,
  .mrc-shortcode-head,
  .mrc-form-grid {
    grid-template-columns: 1fr;
  }

  .mrc-shortcode-head {
    display: grid;
  }

  .mrc-shortcode-actions {
    justify-content: flex-start;
  }

  .mrc-builder-head {
    display: grid;
  }

  .mrc-playlist-controls {
    flex-wrap: wrap;
  }

  .mrc-playlist-audio {
    flex-basis: 100%;
  }

  .mrc-playlist-queue {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 8mm 10mm;
  }

  body {
    background: #fff;
  }

  .mrc-print-button,
  .mrc-form-card,
  .mrc-playlist-player {
    display: none !important;
  }

  .mrc-shortcode {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000;
    max-width: none;
    box-shadow: none;
  }

  .mrc-shortcode-head {
    display: block;
    margin-bottom: 8px;
  }

  .mrc-kicker {
    display: none;
  }

  .mrc-shortcode h3 {
    font-size: 18px;
    line-height: 1.1;
    margin: 0 0 6px;
    text-transform: uppercase;
  }

  .mrc-shortcode-list {
    gap: 0;
    padding-left: 0;
    margin: 0;
  }

  .mrc-shortcode-song {
    padding: 0 0 2px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .mrc-set-divider {
    padding: 0;
    margin: 6px 0 2px;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .mrc-song-number {
    min-width: 24px;
    color: #000;
  }

  .mrc-song-line {
    display: block;
  }

  .mrc-song-line strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .mrc-song-line span,
  .mrc-song-row span,
  .mrc-song-row a,
  .mrc-song-note {
    display: none !important;
  }
}
