/* Panel de artistas: reutiliza /style.css (colores y botones del formulario). */
.panel-shell { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--answer); }

.auth { max-width: 420px; margin: 0 auto; }
.auth h1 { color: var(--question); font-size: 24px; font-weight: 600; text-align: center; margin: 0 0 8px; }
.auth .sub { text-align: center; color: var(--answer); font-size: 15px; margin: 0 0 32px; }
.auth label { display: block; color: var(--question); font-weight: 500; font-size: 15px; margin: 0 0 6px; }
.auth .row { margin-bottom: 20px; }
.auth input[type=password], .auth input.code { width: 100%; background: var(--input); color: var(--answer); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 12px; font: inherit; }
.auth input.code { letter-spacing: 8px; font-size: 22px; text-align: center; }
.auth button.btn { width: 100%; justify-content: center; margin-top: 8px; }
.auth .links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 14px; }
.auth .links a { cursor: pointer; }
.msg { border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin-bottom: 20px; }
.msg.err { background: rgba(255, 107, 107, .12); color: var(--error); }
.msg.ok { background: rgba(23, 191, 99, .12); color: var(--accent); }
#ts-widget { margin: 8px 0 12px; min-height: 65px; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.topbar h1 { color: var(--question); font-size: 22px; font-weight: 600; margin: 0; }
.topbar .who { color: var(--answer); font-size: 14px; }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar .btn { font-size: 14px !important; padding: 9px 14px !important; text-decoration: none; }
a.btn { font: 600 14px Montserrat, sans-serif; border-radius: var(--radius); padding: 9px 14px; display: inline-flex; align-items: center; }

.section-title { color: var(--answer); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 32px 0 12px; }

.card { background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; display: grid; grid-template-columns: 96px 1fr; gap: 18px; }
.card .art { width: 96px; height: 96px; border-radius: 6px; background: #22303c center/cover no-repeat; display: grid; place-items: center; color: var(--answer); font-size: 32px; }
.card h3 { color: var(--question); font-size: 18px; font-weight: 600; margin: 0 0 2px; overflow-wrap: anywhere; }
.card .meta { color: var(--answer); font-size: 14px; margin-bottom: 10px; }
.card .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--question); }
.badge.green { background: rgba(23, 191, 99, .18); color: var(--accent); }
.badge.blue { background: rgba(29, 161, 242, .18); color: #4db5f5; }
.badge.amber { background: rgba(255, 193, 7, .16); color: #ffcf4d; }

.steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.steps li { font-size: 12px; color: var(--answer); text-align: center; }
.steps li::before { content: ''; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); margin-bottom: 6px; }
.steps li.is-done { color: var(--question); }
.steps li.is-done::before { background: var(--accent); }
.steps li.is-current { color: #ffcf4d; font-weight: 600; }
.steps li.is-current::before { background: #ffcf4d; }

.details { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--answer); }
.details b { color: var(--question); font-weight: 500; }
.details a { font-weight: 600; }

.empty { background: var(--input); border: 1px dashed var(--line); border-radius: 10px; padding: 28px; text-align: center; }
.empty p { margin: 0 0 12px; }

@media (max-width: 560px) {
  .card { grid-template-columns: 1fr; }
  .card .art { width: 100%; height: auto; aspect-ratio: 1; max-width: 220px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: flex; align-items: center; gap: 8px; text-align: left; }
  .steps li::before { width: 18px; height: 6px; margin: 0; flex: none; }
}

.details { align-items: center; }
a.btn-sm { font-size: 13px; padding: 6px 12px; text-decoration: none; }
button.btn-sm { font-size: 13px; padding: 6px 12px; gap: 6px; }

/* Assets: ocupa todo el ancho de la tarjeta, debajo del contenido */
.assets { grid-column: 1 / -1; order: 3; border-top: 1px solid var(--line); padding-top: 16px; }
.assets[hidden] { display: none; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.asset { background: rgba(0, 0, 0, .18); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.asset-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; border: 0; border-radius: 6px; background: #22303c center/cover no-repeat; overflow: hidden; cursor: pointer; padding: 0; text-decoration: none; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.asset-thumb:hover img { transform: scale(1.04); }
.asset-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.asset-icon { font-size: 34px; }
.play { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; font-size: 18px; padding-left: 3px; }
/* Audio: cuadrado con la portada, play/pausa, tiempo y barra de progreso */
.audio-wrap { position: relative; }
.audio-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .65)); transition: background .2s; }
.audio-thumb:hover::after, .audio-thumb.playing::after { background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .7)); }
.audio-thumb .play { z-index: 1; padding-left: 0; }
.audio-thumb.playing .play { background: var(--accent); }
.audio-time { position: absolute; z-index: 1; left: 8px; bottom: 10px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.audio-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255, 255, 255, .18); border-radius: 0 0 6px 6px; cursor: pointer; z-index: 2; overflow: hidden; }
.audio-bar:hover { height: 9px; }
.audio-fill { height: 100%; width: 0; background: var(--accent); }
.asset-name { color: var(--question); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.asset-actions a { font-weight: 600; text-decoration: none; }
.asset-foot { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.asset-foot .btn { font-size: 14px; padding: 10px 16px; text-decoration: none; }
.asset-foot .btn.busy { opacity: .7; pointer-events: none; }
@media (max-width: 560px) { .asset-foot .btn { flex: 1; justify-content: center; } }

/* Visor */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(5, 10, 15, .85); display: grid; place-items: center; padding: 16px; }
.viewer-box { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.viewer-bar { display: flex; align-items: center; gap: 8px; }
.viewer-title { flex: 1; min-width: 0; color: var(--question); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-img { width: auto; background: #000; max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; margin: 0 auto; border-radius: 6px; display: block; }
.viewer-frame { width: 100%; height: calc(100vh - 100px); border: 0; border-radius: 6px; background: #000; }
@media (max-width: 560px) {
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .asset-actions { flex-wrap: wrap; gap: 2px 8px; }
}

/* Pestañas Upcoming / Released / Royalties */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--answer); font: 600 15px Montserrat, sans-serif; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--question); }
.tabs button.active { color: var(--question); border-bottom-color: var(--accent); }
.tab-count { font-size: 12px; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 1px 8px; }
.tabs button.active .tab-count { background: rgba(23, 191, 99, .2); color: var(--accent); }

.royalty-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.royalty-head h2 { color: var(--question); font-size: 20px; margin: 0 0 4px; }
.royalty-head p { margin: 0; font-size: 14px; max-width: 480px; }
.royalty-head .btn { text-decoration: none; font-size: 14px; padding: 10px 16px; }

/* Royalties */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.stat-label { color: var(--answer); font-size: 13px; font-weight: 600; }
.stat-value { color: var(--question); font-size: 26px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--answer); font-size: 12px; }

.chart-card { background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 8px; }
.chart-title { color: var(--question); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.chart-title .muted { font-weight: 500; font-size: 12px; }
.chart-wrap { position: relative; }
.chart-plot { display: flex; align-items: flex-end; gap: 2px; height: 180px; border-bottom: 1px solid var(--line); padding-top: 34px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; outline: none; cursor: default; }
.chart-bar { width: min(28px, 70%); background: var(--accent); border-radius: 4px 4px 0 0; transition: filter .15s; }
.chart-col.hover .chart-bar, .chart-col:focus-visible .chart-bar { filter: brightness(1.25); }
.chart-col:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); border-radius: 4px; }
.chart-x { position: absolute; bottom: -20px; font-size: 11px; color: var(--answer); white-space: nowrap; }
.chart-plot + * { margin-top: 0; }
.chart-wrap { padding-bottom: 22px; }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: #0d151d; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 12px; color: var(--answer); white-space: nowrap; pointer-events: none; display: flex; gap: 6px; z-index: 2; }
.chart-tip[hidden] { display: none; }
.chart-tip b { color: var(--question); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.royalty-row { background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center; }
.art.sm { width: 56px; height: 56px; font-size: 20px; border-radius: 6px; background: #22303c center/cover no-repeat; display: grid; place-items: center; color: var(--answer); }
.royalty-title { color: var(--question); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.royalty-main .meta { margin: 2px 0 0; font-size: 13px; }
.royalty-nums { display: flex; gap: 18px; }
.royalty-nums > div { display: flex; flex-direction: column; align-items: flex-end; }
.royalty-nums .k { color: var(--answer); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.royalty-nums .v { color: var(--question); font-size: 15px; font-variant-numeric: tabular-nums; }
.royalty-nums .v.strong { color: var(--accent); font-weight: 700; }
.royalty-details { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.royalty-details[hidden] { display: none; }
.breakdown-title { color: var(--question); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.breakdown ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.breakdown li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--answer); }
.breakdown li span:last-child { color: var(--question); font-variant-numeric: tabular-nums; white-space: nowrap; }
.royalty-note { color: var(--answer); font-size: 12px; margin: 16px 0 0; }

@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .royalty-row { grid-template-columns: 48px 1fr; }
  .art.sm { width: 48px; height: 48px; }
  .royalty-nums { grid-column: 1 / -1; justify-content: space-between; }
  .royalty-row > .btn { grid-column: 1 / -1; justify-content: center; }
  .royalty-details { grid-template-columns: 1fr; }
  .chart-x { font-size: 9px; }
  .chart-col:nth-child(even) .chart-x { display: none; }
}

/* Utilidades */
.small { font-size: 13px; }
button.linkish { background: none; border: 0; color: var(--accent); font: 600 12px Montserrat, sans-serif; cursor: pointer; padding: 0 2px; text-decoration: underline; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.agreement-menu { display: flex; flex-direction: column; gap: 6px; flex-basis: 100%; }
.upload-wrap { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upload-status { font-size: 13px; }

/* "Ver como" (admin) */
.viewas-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(255, 193, 7, .14); color: #ffcf4d; border: 1px solid rgba(255, 193, 7, .35); border-radius: 8px; padding: 8px 12px; margin-bottom: 18px; font-size: 14px; }
.viewas-bar b { color: #fff; }

/* Plan de promoción */
.promo-list { list-style: none; margin: 0; padding: 0; }
.promo-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13px; }
.promo-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; color: var(--question); }
.promo-list input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.promo-list .due { color: var(--answer); white-space: nowrap; font-size: 12px; }
.promo-list li.done b { text-decoration: line-through; color: var(--answer); }
.promo-list li.late .due { color: #ffcf4d; font-weight: 600; }

/* Liquidaciones */
.statement-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.month-select { width: auto !important; min-width: 180px; padding: 8px 36px 8px 10px !important; font-size: 14px !important; }

/* Cuenta y admin */
.account .chart-card, .admin .chart-card { margin-bottom: 14px; }
.account form.inline, .admin form.inline { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.account form.inline input, .admin form.inline input { flex: 1; min-width: 200px; }
.account form.stack { display: grid; gap: 8px; max-width: 420px; }
.account input[type=password], .account input[type=text], .account input[type=email], .account input.code, .admin input[type=email], .admin input[type=search] {
  background: var(--input); color: var(--answer); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font: inherit; font-size: 14px; }
.account .chart-card.danger { border-color: rgba(255, 107, 107, .35); }
.email-list { list-style: none; padding: 0; margin: 8px 0; }
.email-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--question); font-size: 14px; }
.admin-search { width: 100%; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--question); vertical-align: middle; }
.admin-table th { color: var(--answer); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.admin-table .n { text-align: right; }
.issue { margin: 6px 0; color: var(--question); font-size: 14px; }
.issue summary { cursor: pointer; font-weight: 600; }
.issue ul { margin: 4px 0 8px; padding-left: 18px; font-size: 13px; color: var(--answer); max-height: 240px; overflow: auto; }
@media (max-width: 560px) { .topbar .actions { width: 100%; } }

[hidden] { display: none !important; }
.details a.btn-sm { text-decoration: none; }
.details.codes { margin-top: 8px; }

/* Audio: símbolo musical en el centro y play abajo a la derecha */
.audio-thumb { background: linear-gradient(135deg, #1f3b4d, #16293a) !important; }
.audio-thumb .note-icon { color: var(--accent); opacity: .85; display: grid; place-items: center; }
.audio-thumb .play { position: absolute; right: 10px; bottom: 14px; width: 40px; height: 40px; }
.audio-thumb::after { background: none !important; }
