.artist-release-shell {
  min-height: calc(100dvh - 36px);
}

.release-shell-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(15, 18, 29, 0.92);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.release-shell-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.release-title-stack {
  min-width: 0;
}

.release-header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.status-pill,
.filter-chip,
.view-tab,
.music-small-button,
.music-primary-button,
.row-action,
.icon-info-button,
.music-load-more {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill.is-signed-in,
.music-primary-button,
.view-tab.is-active,
.filter-chip.is-active,
.row-action {
  border-color: transparent;
  color: var(--accent-ink);
  background: var(--accent);
}

.music-small-button.danger {
  color: var(--rose);
  background: var(--rose-soft);
}

.icon-info-button {
  width: 32px;
  padding: 0;
  font-weight: 800;
}

.refresh-popover {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 44px));
  padding: 12px;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background: var(--elev);
  box-shadow: var(--shadow-lg);
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.5;
}

.popover-line + .popover-line,
.popover-note {
  margin-top: 6px;
}

.popover-note {
  color: var(--text-4);
}

.auth-strip,
.release-toolbar,
.source-add-panel,
.bulk-panel,
.artist-management {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.auth-strip,
.artist-management-toolbar,
.panel-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-form,
.source-form,
.bulk-source-form,
.search-wrap,
.filter-row,
.artist-management-actions,
.source-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-form input,
.source-form input,
.search-wrap input,
.bulk-source-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.bulk-source-form {
  margin-top: 12px;
  align-items: stretch;
}

.bulk-source-form textarea {
  min-height: 150px;
  border-radius: 16px;
  padding: 12px 14px;
  resize: vertical;
}

.release-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.release-toolbar {
  display: grid;
  gap: 11px;
}

.search-wrap {
  align-items: stretch;
}

.filter-row {
  flex-wrap: wrap;
}

.form-note,
.empty-state {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.45;
}

.form-note.is-error {
  color: var(--rose);
}

.form-note.is-success {
  color: var(--accent);
}

.release-content {
  padding: 0 16px 16px;
}

.release-grid-header,
.release-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(170px, 0.85fr) 86px minmax(180px, 0.9fr) 92px;
  gap: 10px;
  align-items: stretch;
}

.release-grid-header {
  padding: 10px 0 8px;
  color: var(--text-4);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.release-list {
  display: grid;
  gap: 8px;
}

.release-row {
  border-radius: 15px;
}

.release-row > div {
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.052);
  padding: 11px;
}

.release-row > div:first-child {
  border-radius: 15px 0 0 15px;
}

.release-row > div:last-child {
  border-radius: 0 15px 15px 0;
}

.release-row.is-reviewed > div {
  border-color: rgba(118, 247, 170, 0.22);
  background: linear-gradient(135deg, rgba(118, 247, 170, 0.14), rgba(255, 255, 255, 0.052));
}

.release-main-cell,
.release-detail-cell {
  display: grid;
  gap: 4px;
}

.release-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-subtitle,
.tag-line {
  color: var(--text-3);
  font-size: 0.77rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-source-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 650;
}

.source-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  flex: 0 0 auto;
}

.release-date-cell,
.release-action-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 650;
}

.load-more-row {
  padding: 14px 0 0;
  text-align: center;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.052);
}

.source-item.is-muted {
  opacity: 0.56;
}

.source-item strong,
.source-item span {
  display: block;
}

.source-item span {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 0.78rem;
}

@media (max-width: 940px) {
  .release-grid-header {
    display: none;
  }

  .release-content {
    padding-top: 14px;
  }

  .release-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.052);
  }

  .release-row > div {
    border: 0;
    border-radius: 0 !important;
    background: transparent;
  }

  .release-source-cell,
  .release-date-cell,
  .release-action-cell {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .release-shell-card {
    border-radius: 20px;
  }

  .release-shell-header,
  .auth-strip,
  .artist-management-toolbar,
  .panel-headline,
  .source-item {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-form,
  .source-form,
  .bulk-source-form,
  .search-wrap,
  .source-actions,
  .artist-management-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .release-header-actions {
    justify-content: space-between;
  }
}
