/* Mixtape K7 — editor (escopo do shortcode) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* Esconde o seletor flutuante do TranslatePress no editor. */
body.mixtape-k7-editor-body .trp-language-switcher,
body.mixtape-k7-editor-body .trp-floating-switcher,
.mixtape-k7 ~ .trp-language-switcher,
.trp-language-switcher.trp-floating-switcher {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@font-face {
  font-family: "RemingtonDeluxeTypewriter";
  src: url("../fonts/zai_RemingtonDeluxeTypewriter1938.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ImpactLabel";
  src: url("../fonts/ImpactLabel.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.mixtape-k7 {
  --mk7-bg: #d8d8d8;
  --mk7-ink: #1a1a1a;
  --mk7-muted: #5c5c5c;
  --mk7-line: #b0b0b0;
  --mk7-surface: #f2f2f2;
  --mk7-accent: #2a2a2a;
  --mk7-danger: #8b2e2e;
  --mk7-ok: #2d5a3d;
  --mk7-case-w: min(504px, 92vw);
  --mk7-case-ratio: 3080 / 2704;
  /* Janela exata da capa no PNG */
  --mk7-case-art-left: 28.93%;
  --mk7-case-art-top: 18.27%;
  --mk7-case-art-width: 40.10%;
  --mk7-case-art-height: 72.23%;
  --mk7-case-cover-center: 0.4898;
  --mk7-tape-display-w: calc(var(--mk7-case-w) * 2704 / 3080 * 0.7223 * 0.85);
  --mk7-tape-aspect: 800 / 510;
  --mk7-tape-count: 22;
  --mk7-radius: 4px;
  --mk7-font: "DM Sans", sans-serif;
  --mk7-mono: "IBM Plex Mono", monospace;

  font-family: var(--mk7-font);
  color: var(--mk7-ink);
  line-height: 1.4;
  box-sizing: border-box;
}

.mixtape-k7 *,
.mixtape-k7 *::before,
.mixtape-k7 *::after {
  box-sizing: border-box;
}

.mixtape-k7 .mk7-hidden {
  display: none !important;
}

.mixtape-k7 .mk7-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mixtape-k7 .mk7-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--mk7-radius);
  padding: 0.55rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mixtape-k7 .mk7-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mixtape-k7 .mk7-btn-primary {
  background: var(--mk7-accent);
  color: #fff;
}

.mixtape-k7 .mk7-btn-primary:hover:not(:disabled) {
  background: #000;
}

.mixtape-k7 .mk7-btn-secondary {
  background: var(--mk7-surface);
  border-color: var(--mk7-line);
  color: var(--mk7-ink);
  width: 100%;
  justify-content: center;
}

.mixtape-k7 .mk7-btn-ghost {
  background: transparent;
  border-color: var(--mk7-line);
  color: var(--mk7-ink);
}

.mixtape-k7 .mk7-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: var(--mk7-bg);
}

.mixtape-k7 .mk7-welcome {
  min-height: 70vh;
  display: grid;
  place-items: start center;
  padding: 2.5rem 1rem 3.5rem;
  background-color: #d8cfc0;
  background-image: url("../images/bg-pattern-15.jpg");
  background-size: 216px 384px;
  background-repeat: repeat;
}

.mixtape-k7 .mk7-welcome-layout {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mixtape-k7 .mk7-welcome-title {
  margin: 0.25rem 0 0.35rem;
  font-family: "ImpactLabel", sans-serif;
  font-size: 54px;
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  text-align: center;
  transform: rotate(-2.5deg);
  max-width: 100%;
}

.mixtape-k7 .mk7-welcome-title span {
  display: inline;
  background: #fff;
  padding: 0.02em 0.08em 0.03em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mixtape-k7 .mk7-welcome-story {
  width: 100%;
  margin: 0;
  padding: 1.25rem 1.35rem 1.4rem;
  background-color: #f3efe6;
  background-image: url("../images/bg-dedicatoria.jpg");
  background-repeat: repeat;
  background-size: auto;
  border: 1px solid #d4cfc2;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.06);
  transform: rotate(-0.4deg);
  font-family: "RemingtonDeluxeTypewriter", "IBM Plex Mono", monospace;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
}

.mixtape-k7 .mk7-welcome-story p {
  margin: 0 0 1em;
}

.mixtape-k7 .mk7-welcome-story p:last-child,
.mixtape-k7 .mk7-welcome-story-end {
  margin-bottom: 0;
}

.mixtape-k7 .mk7-welcome-card {
  width: min(340px, 100%);
  aspect-ratio: 658 / 990;
  background-color: transparent;
  background-image: url("../images/janela-de-para.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  padding: 14% 12% 16%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.mixtape-k7 .mk7-welcome-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.mixtape-k7 .mk7-welcome-form label {
  font-family: "Rock Salt", cursive;
  font-size: 0.78rem;
  font-weight: normal;
  color: #1f4e9a;
  line-height: 1.35;
}

.mixtape-k7 .mk7-welcome-form input[type="text"] {
  font-family: "Rock Salt", cursive;
  font-size: 1.05rem;
  font-weight: normal;
  color: #1f4e9a;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(31, 78, 154, 0.35);
  border-radius: 0;
  padding: 0.35rem 0.15rem 0.45rem;
  box-shadow: none;
}

.mixtape-k7 .mk7-welcome-form input[type="text"]::placeholder {
  color: rgba(31, 78, 154, 0.45);
  font-family: "Rock Salt", cursive;
}

.mixtape-k7 .mk7-welcome-form input[type="text"]:focus {
  outline: none;
  border-bottom-color: #1f4e9a;
}

.mixtape-k7 .mk7-welcome-form .mk7-btn {
  margin-top: 0.35rem;
  align-self: stretch;
}

.mixtape-k7 .mk7-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--mk7-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mk7-muted);
}

.mixtape-k7 .mk7-lead {
  margin: 0 0 1.5rem;
  color: var(--mk7-muted);
}

.mixtape-k7 .mk7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mixtape-k7 label,
.mixtape-k7 .mk7-color-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.mixtape-k7 input[type="text"],
.mixtape-k7 input[type="url"],
.mixtape-k7 textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--mk7-line);
  border-radius: var(--mk7-radius);
  background: #fff;
  color: var(--mk7-ink);
}

.mixtape-k7 textarea {
  resize: vertical;
  min-height: 96px;
}

.mixtape-k7 .mk7-note textarea,
.mixtape-k7 .mk7-track-card-body textarea {
  resize: none;
  overflow: hidden;
}

.mixtape-k7 .mk7-editor {
  padding-bottom: 3rem;
}

.mixtape-k7 .mk7-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  /* bg pattern 2.jpg (736px) em 40% = 294px, repetido */
  background-color: #e8e8e8;
  background-image: url("../images/bg-pattern-2.jpg");
  background-size: 294px 294px;
  background-repeat: repeat;
  border-bottom: 1px solid var(--mk7-line);
  flex-wrap: wrap;
}

.mixtape-k7 .mk7-canvas {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mixtape-k7 .mk7-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mixtape-k7 .mk7-mixtape-hero {
  width: 100%;
  max-width: 560px;
  text-align: center;
  font-family: "ImpactLabel", sans-serif;
  color: var(--mk7-ink);
  transform: rotate(-2.5deg);
  padding: 0.75rem 0.5rem 0.25rem;
}

.mixtape-k7 .mk7-hero-for,
.mixtape-k7 .mk7-hero-to,
.mixtape-k7 .mk7-hero-by {
  margin: 0 auto;
  line-height: 0.88;
  width: fit-content;
  max-width: 100%;
  background: #fff;
  padding: 0.02em 0.05em 0.03em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mixtape-k7 .mk7-hero-for {
  font-size: 32px;
}

.mixtape-k7 .mk7-hero-to {
  font-size: 42px;
  margin-top: 0.08em;
  word-break: break-word;
}

.mixtape-k7 .mk7-hero-by {
  font-size: 18px;
  margin-top: 0.85em;
  line-height: 1.2;
}

.mixtape-k7 .mk7-area:has(.mk7-case) {
  align-items: stretch;
}

.mixtape-k7 .mk7-case {
  position: relative;
  width: var(--mk7-case-w);
  aspect-ratio: var(--mk7-case-ratio);
  background: transparent;
  border: none;
  box-shadow: none;
  display: block;
  /* Centraliza a janela da capa com a fita abaixo */
  margin-left: calc(50% - var(--mk7-case-w) * var(--mk7-case-cover-center));
  margin-right: 0;
}

.mixtape-k7 .mk7-case-cover {
  position: absolute;
  left: var(--mk7-case-art-left);
  top: var(--mk7-case-art-top);
  width: var(--mk7-case-art-width);
  height: var(--mk7-case-art-height);
  z-index: 0;
  overflow: hidden;
  background: #d0d0d0;
  display: grid;
  place-items: center;
}

.mixtape-k7 .mk7-cover-ph {
  font-family: var(--mk7-mono);
  font-size: clamp(0.65rem, 2.2vw, 0.8rem);
  color: var(--mk7-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.mixtape-k7 .mk7-case-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.mixtape-k7 .mk7-case-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.mixtape-k7 .mk7-case-edit {
  position: absolute;
  /* À direita da janela da capa, sem sobrepor o plástico da case */
  left: calc(var(--mk7-case-art-left) + var(--mk7-case-art-width) + 16px);
  top: calc(var(--mk7-case-art-top) + var(--mk7-case-art-height) / 2);
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--mk7-line);
  border-radius: var(--mk7-radius);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.mixtape-k7 .mk7-tape-row {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  max-width: none;
  width: 100%;
}

.mixtape-k7 .mk7-tape-nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--mk7-ink);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
}

.mixtape-k7 .mk7-tape-nav::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  filter:
    drop-shadow(0.8px 0 0 #fff)
    drop-shadow(-0.8px 0 0 #fff)
    drop-shadow(0 0.8px 0 #fff)
    drop-shadow(0 -0.8px 0 #fff);
}

.mixtape-k7 .mk7-tape-nav-prev::before {
  border-width: 9px 15px 9px 0;
  border-color: transparent currentColor transparent transparent;
}

.mixtape-k7 .mk7-tape-nav-next::before {
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent currentColor;
}

.mixtape-k7 .mk7-tape-nav:hover {
  opacity: 0.65;
}

.mixtape-k7 .mk7-tape-viewport {
  width: var(--mk7-tape-display-w);
  max-width: calc(100% - 96px);
  aspect-ratio: var(--mk7-tape-aspect);
  overflow: hidden;
  touch-action: pan-y;
}

.mixtape-k7 .mk7-tape-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: calc(var(--mk7-tape-count) * 100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.mixtape-k7 .mk7-tape-track.dragging {
  transition: none;
}

.mixtape-k7 .mk7-tape-img {
  width: calc(100% / var(--mk7-tape-count));
  flex: 0 0 calc(100% / var(--mk7-tape-count));
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
}

.mixtape-k7 .mk7-jcard {
  position: relative;
  width: min(520px, 94vw);
  aspect-ratio: 500 / 318;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  border: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.mixtape-k7 .mk7-jcard-sheet {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.mixtape-k7 .mk7-jcard-write {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mixtape-k7 .mk7-jcard-list {
  position: absolute;
  top: 20%;
  bottom: 2.5%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Entrelinha entre faixas (ligeiramente maior que título↔artista) */
  gap: 0.5em;
  font-family: "Rock Salt", cursive;
  font-size: 12px;
  color: #1f4e9a;
  text-shadow: 0 0.3px 0 rgba(31, 78, 154, 0.25);
  overflow: hidden;
}

.mixtape-k7 .mk7-jcard-list-a {
  left: 3.2%;
  right: 52.5%;
}

.mixtape-k7 .mk7-jcard-list-b {
  left: 51.5%;
  right: 3.2%;
}

.mixtape-k7 .mk7-jcard-list li {
  margin: 0;
  padding: 0 0.1em 0.1em;
  font-size: 1em;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Espaço título ↔ artista (menor que o gap entre faixas) */
  gap: 0.22em;
  transform: rotate(-0.35deg);
  min-height: 0;
  border: none;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.mixtape-k7 .mk7-jcard-list li:nth-child(even) {
  transform: rotate(0.3deg);
}

.mixtape-k7 .mk7-jcard-list .track-title,
.mixtape-k7 .mk7-jcard-list .track-artist {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  /* Rock Salt: entrelinha + padding para não cortar descendentes */
  line-height: 1.55;
  padding-bottom: 0.18em;
}

.mixtape-k7 .mk7-jcard-list .track-title {
  font-weight: normal;
}

.mixtape-k7 .mk7-jcard-list .track-artist {
  font-size: calc(1em - 2pt);
  font-weight: 700;
  -webkit-text-stroke: 0.35px currentColor;
  paint-order: stroke fill;
  color: inherit;
}

/* Sem espaço vertical: artista em 1 linha */
.mixtape-k7 .mk7-jcard-list.jcard-artist-one .track-artist,
.mixtape-k7 .mk7-jcard-list.jcard-compact .track-title,
.mixtape-k7 .mk7-jcard-list.jcard-compact .track-artist {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}

.mixtape-k7 .mk7-jcard-list[data-count="4"],
.mixtape-k7 .mk7-jcard-list[data-count="5"],
.mixtape-k7 .mk7-jcard-list[data-count="6"] {
  justify-content: space-between;
  gap: 0.28em;
}

.mixtape-k7 .mk7-jcard-list[data-count="1"],
.mixtape-k7 .mk7-jcard-list[data-count="2"],
.mixtape-k7 .mk7-jcard-list[data-count="3"] {
  justify-content: flex-start;
}

.mixtape-k7 .mk7-note {
  width: 100%;
  max-width: 560px;
  background-color: #f3efe6;
  background-image: url("../images/bg-dedicatoria.jpg");
  background-repeat: repeat;
  background-size: auto;
  border: 1px solid #d4cfc2;
  padding: 1rem 1.1rem;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.06);
  transform: rotate(-0.6deg);
}

.mixtape-k7 .mk7-note-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-family: var(--mk7-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk7-muted);
}

.mixtape-k7 .mk7-note textarea {
  width: 100%;
  border-color: #e0dacd;
  background: transparent;
  font-family: "RemingtonDeluxeTypewriter", "IBM Plex Mono", monospace;
  font-size: 16px;
  line-height: 1.45;
  color: var(--mk7-ink);
  resize: none;
  overflow: hidden;
  min-height: 4.5em;
}

.mixtape-k7 .mk7-sides {
  gap: 2rem;
  align-items: stretch;
}

.mixtape-k7 .mk7-side {
  width: 100%;
}

.mixtape-k7 .mk7-side-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  border: none;
  padding: 0.45rem 0.75rem;
  background: #111;
  color: #fff;
}

.mixtape-k7 .mk7-side-header h2 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.mixtape-k7 .mk7-side-count {
  font-family: var(--mk7-mono);
  font-size: 0.8rem;
  color: #fff;
}

.mixtape-k7 .mk7-tracks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.mixtape-k7 .mk7-track-card {
  background: var(--mk7-surface);
  border: 1px solid var(--mk7-line);
}

.mixtape-k7 .mk7-track-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mixtape-k7 .mk7-track-card-header:hover {
  background: rgba(0, 0, 0, 0.03);
}

.mixtape-k7 .track-num {
  font-family: var(--mk7-mono);
  font-size: 0.8rem;
  color: var(--mk7-muted);
  min-width: 1.5rem;
}

.mixtape-k7 .track-meta {
  flex: 1;
  min-width: 0;
}

.mixtape-k7 .track-meta .name {
  font-family: "ImpactLabel", sans-serif;
  font-weight: normal;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.mixtape-k7 .track-meta .artist {
  font-family: "ImpactLabel", sans-serif;
  font-size: 0.85rem;
  color: var(--mk7-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.mixtape-k7 .track-chevron {
  color: var(--mk7-muted);
  transition: transform 0.2s ease;
}

.mixtape-k7 .mk7-track-card.open .track-chevron {
  transform: rotate(180deg);
}

.mixtape-k7 .mk7-track-card-body {
  display: none;
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--mk7-line);
}

.mixtape-k7 .mk7-track-card.open .mk7-track-card-body {
  display: block;
  padding-top: 0.85rem;
}

.mixtape-k7 .mk7-track-card-body label {
  display: block;
  margin-bottom: 0.35rem;
}

.mixtape-k7 .mk7-track-card-body textarea {
  width: 100%;
  margin-bottom: 0.75rem;
  font-family: "RemingtonDeluxeTypewriter", "IBM Plex Mono", monospace;
  font-size: 16px;
  line-height: 1.45;
  background: transparent;
  resize: none;
  overflow: hidden;
  min-height: 3.2em;
}

.mixtape-k7 .mk7-track-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.mixtape-k7 .mk7-spotify-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 8px;
  min-height: 80px;
  background: #121212;
  margin-top: 0.35rem;
}

.mixtape-k7 .mk7-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
  background: #111;
  padding: 0.55rem 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.mixtape-k7 .mk7-hint.ready {
  color: #fff;
  background: #1f4d33;
}

.mixtape-k7 .mk7-result {
  text-align: center;
  padding: 1rem;
  background: #e8f5ec;
  border: 1px solid #9ec9ad;
  width: 100%;
}

.mixtape-k7 .mk7-result a {
  color: var(--mk7-ok);
  font-weight: 700;
}

.mixtape-k7 .mk7-result.error {
  background: #f8e8e8;
  border-color: #d4a0a0;
  color: var(--mk7-danger);
}

.mixtape-k7 .mk7-turnstile-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.mixtape-k7 .mk7-modal {
  border: 1px solid var(--mk7-line);
  border-radius: var(--mk7-radius);
  padding: 0;
  max-width: 420px;
  width: calc(100% - 2rem);
  background: var(--mk7-surface);
  color: var(--mk7-ink);
}

.mixtape-k7 .mk7-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.mixtape-k7 .mk7-modal-inner {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mixtape-k7 .mk7-modal-inner h2 {
  margin: 0;
  font-size: 1.15rem;
}

.mixtape-k7 .mk7-modal-inner p {
  margin: 0;
  color: var(--mk7-muted);
  font-size: 0.9rem;
}

.mixtape-k7 .mk7-bg-pattern-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mixtape-k7 .mk7-bg-pattern-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mk7-ink);
}

.mixtape-k7 .mk7-bg-pattern-options {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.mixtape-k7 .mk7-bg-pattern-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--mk7-line);
  border-radius: var(--mk7-radius);
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.mixtape-k7 .mk7-bg-pattern-thumb:hover {
  border-color: #666;
}

.mixtape-k7 .mk7-bg-pattern-thumb.is-selected {
  border-color: var(--mk7-ink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mk7-ink);
}

.mixtape-k7 .mk7-modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mixtape-k7 .mk7-publish-success-modal {
  max-width: 440px;
}

.mixtape-k7 .mk7-publish-copy-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mk7-ok);
  font-weight: 600;
}

.mixtape-k7 .mk7-publish-link-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

.mixtape-k7 .mk7-publish-link-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--mk7-mono);
  font-size: 0.8rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--mk7-line);
  border-radius: var(--mk7-radius);
  background: #fff;
  color: var(--mk7-ink);
}

.mixtape-k7 .mk7-btn-icon {
  flex-shrink: 0;
  width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mk7-line);
  border-radius: var(--mk7-radius);
  background: #fff;
  color: var(--mk7-ink);
  cursor: pointer;
}

.mixtape-k7 .mk7-btn-icon:hover {
  background: #f7f7f7;
}

.mixtape-k7 .mk7-publish-share {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mixtape-k7 .mk7-publish-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--mk7-line);
  border-radius: var(--mk7-radius);
  background: #fff;
  color: var(--mk7-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.mixtape-k7 .mk7-publish-share-btn:hover {
  background: #f7f7f7;
}

.mixtape-k7 .mk7-field-hint {
  margin: -0.35rem 0 0;
  font-size: 0.8rem;
}

.mixtape-k7 .mk7-field-hint.loading {
  color: var(--mk7-muted);
}

.mixtape-k7 .mk7-field-hint.ok {
  color: var(--mk7-ok);
}

.mixtape-k7 .mk7-field-hint.err {
  color: var(--mk7-danger);
}

.mixtape-k7 input[type="color"] {
  width: 100%;
  height: 44px;
  padding: 0.25rem;
  border: 1px solid var(--mk7-line);
  border-radius: var(--mk7-radius);
  background: #fff;
  cursor: pointer;
}

.mixtape-k7 .mk7-spotify-host {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  bottom: 0;
  right: 0;
}

/* —— Mobile: capa + tracklist —— */
@media (max-width: 640px) {
  .mixtape-k7 .mk7-welcome-title {
    font-size: 36px;
  }

  .mixtape-k7 .mk7-welcome-story {
    font-size: 15px;
    padding: 1.1rem 1.15rem;
  }

  .mixtape-k7 .mk7-welcome-card {
    width: min(300px, 92vw);
  }

  .mixtape-k7 .mk7-case-edit {
    left: calc(var(--mk7-case-art-left) + var(--mk7-case-art-width) + 12px);
    width: 32px;
    height: 32px;
  }

  .mixtape-k7 .mk7-jcard-list-a {
    left: 3%;
    right: 53%;
  }

  .mixtape-k7 .mk7-jcard-list-b {
    left: 52%;
    right: 3%;
  }

  .mixtape-k7 .mk7-jcard-list {
    font-size: 9px;
    gap: 0.45em;
  }

  .mixtape-k7 .mk7-jcard-list[data-count="4"],
  .mixtape-k7 .mk7-jcard-list[data-count="5"],
  .mixtape-k7 .mk7-jcard-list[data-count="6"] {
    justify-content: space-between;
    gap: 0.24em;
  }
}
