/* ===== RELEASE DETAILS PANEL & IN-PAGE TABS (PIXEL-PERFECT MATCH) ===== */

.rel-detail-page {
  padding: 4px 0 60px 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
  background: transparent;
  box-sizing: border-box;
}

/* Top Navigation Bar */
.rel-detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rel-detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s;
}

.rel-detail-back-btn:hover {
  color: #0f172a;
}

.rel-type-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.rel-type-top-badge.audio {
  color: #0f172a;
}

.rel-type-top-badge.video {
  color: #ef4444;
}

/* Main Header */
.rel-detail-header-block {
  margin-bottom: 24px;
}

.rel-detail-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.rel-detail-artist {
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  margin: 0 0 14px 0;
}

.rel-detail-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.rel-detail-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rel-status-badge-delivered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #10b981;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #d1fae5;
}

.rel-status-badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  color: #f59e0b;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #fef3c7;
}

.rel-status-badge-draft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.rel-detail-date-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.rel-trend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #93c5fd;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rel-trend-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.rel-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 14px;
}

.rel-status-banner.delivered, .rel-status-banner.live {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.rel-status-banner.draft {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.rel-status-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.rel-status-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.rel-status-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rel-banner-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.rel-banner-action-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.rel-banner-action-btn.delete:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fca5a5;
}

.rel-trend-link {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rel-trend-link:hover {
  text-decoration: underline;
}

/* Artwork Container & Update Button */
.rel-artwork-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rel-artwork-btn-update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.rel-artwork-btn-update:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.rel-no-cover-placeholder {
  width: 100%;
  height: 100%;
  background: #cbd5e1;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

.rel-tracks-tab-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.rel-ringtone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.rel-ringtone-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.rel-empty-tracks-box {
  padding: 48px 20px 80px 20px;
  text-align: center;
  color: #334155;
  font-style: italic;
  font-size: 13.5px;
  background: transparent;
  border: none;
}


/* Metadata Overview Section */
.rel-meta-box {
  display: flex;
  gap: 32px;
  background: transparent;
  padding: 12px 0 24px 0;
  margin-bottom: 20px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.rel-artwork-wrap.audio {
  position: relative;
  width: 155px;
  height: 155px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rel-artwork-wrap.video {
  position: relative;
  width: 250px;
  height: 140px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rel-artwork-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rel-artwork-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.rel-meta-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  flex: 1;
  min-width: 0;
}

.rel-meta-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.rel-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.rel-meta-label {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.rel-meta-val {
  font-weight: 500;
  color: #334155;
  text-align: right;
  white-space: nowrap;
}

.rel-quality-hd-pill {
  background: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Tabs Bar */
.rel-tabs-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.rel-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 4px 12px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.rel-tab-btn:hover {
  color: #0f172a;
}

.rel-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.rel-tab-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.rel-tab-count-pill.dark {
  background: #0f172a;
  color: #ffffff;
}

.rel-tab-count-pill.blue {
  background: #2563eb;
  color: #ffffff;
}

/* Tab Header Box */
.rel-tab-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.rel-tab-header-left h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.rel-tab-header-left p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.rel-tab-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rel-tab-select {
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
}

.rel-tab-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.rel-tab-search-box input {
  border: none;
  outline: none;
  font-size: 12.5px;
  color: #0f172a;
  width: 100%;
  background: transparent;
}

/* Video Information Heading */
.rel-section-heading {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px 0;
}

/* Table Design */
.rel-content-table-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.rel-detail-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.rel-detail-table th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.rel-detail-table td {
  padding: 15px 16px;
  color: #334155;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.rel-detail-table tr:hover td {
  background: #fafafa;
}

.rel-dsp-logo-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #0f172a;
}

.rel-dsp-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rel-dsp-url-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 12.5px;
  font-family: 'DM Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rel-dsp-url-link:hover {
  text-decoration: underline;
}

.rel-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rel-action-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.12s;
}

.rel-action-btn-sm:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.rel-action-btn-sm.visit {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.rel-action-btn-sm.visit:hover {
  background: #dbeafe;
}

.rel-track-icon-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #3b82f6;
  font-size: 12.5px;
}

.rel-preview-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rel-video-thumb-preview {
  width: 52px;
  height: 29px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rel-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: transform 0.12s;
}

.rel-play-btn:hover {
  transform: scale(1.08);
}

/* Bottom Actions Pill */
.rel-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.rel-bottom-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rel-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.12s;
}

.rel-btn-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.rel-btn-pill.spotify {
  color: #10b981;
}

/* Territories 5-Column List Layout (Matches user screenshot 3) */
.rel-territories-5col-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 16px;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

.rel-territory-5col-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid #f8fafc;
}

.rel-territory-5col-name {
  font-size: 12px;
  font-weight: 500;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pagination Bar */
.rel-tab-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 12.5px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

.rel-page-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rel-page-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s;
}

.rel-page-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Promotion Tab Grid */
.rel-promo-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.rel-promo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.rel-promo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rel-promo-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.rel-promo-badge-active {
  background: #ecfdf5;
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #d1fae5;
}

.rel-promo-desc {
  font-size: 13px;
  color: #475569;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.rel-promo-date {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.rel-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}

.rel-summary-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px 0;
}

.rel-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.rel-summary-row:last-of-type {
  border-bottom: none;
  margin-bottom: 16px;
}

.rel-summary-label {
  color: #64748b;
  font-weight: 500;
}

.rel-summary-val {
  color: #0f172a;
  font-weight: 700;
}

.rel-summary-view-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}

.rel-summary-view-btn:hover {
  background: #dbeafe;
}

/* ===== COPYRIGHT TAB (EXACT MATCH) ===== */

.rel-copyright-overview-head {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.2px;
}

.rel-copyright-kpis-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.rel-copyright-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.rel-copyright-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rel-copyright-kpi-icon.green { background: #ecfdf5; color: #10b981; }
.rel-copyright-kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.rel-copyright-kpi-icon.red { background: #fef2f2; color: #ef4444; }
.rel-copyright-kpi-icon.yellow { background: #fffbeb; color: #f59e0b; }
.rel-copyright-kpi-icon.purple { background: #faf5ff; color: #8b5cf6; }
.rel-copyright-kpi-icon.grey { background: #f8fafc; color: #64748b; }

.rel-copyright-kpi-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rel-copyright-kpi-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.rel-copyright-kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.rel-copyright-kpi-sub {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

/* Copyright Filter Bar */
.rel-copyright-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.rel-copyright-filter-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rel-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.12s;
}

.rel-export-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Claims Table Specifics */
.rel-claim-id-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rel-claim-id-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #0f172a;
  font-family: 'DM Mono', monospace;
  font-size: 12.5px;
}

.rel-claim-video-link {
  font-size: 11.5px;
  color: #2563eb;
  text-decoration: none;
  font-family: 'DM Mono', monospace;
}

.rel-claim-video-link:hover {
  text-decoration: underline;
}

.rel-claim-subtext {
  font-size: 11.5px;
  color: #94a3b8;
}

.rel-claim-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}

.rel-claim-view-btn:hover {
  background: #dbeafe;
  border-color: #3b82f6;
}

/* Bottom 4 Cards Details Grid */
.rel-copyright-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.rel-claim-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.rel-claim-detail-card-head {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.rel-claim-detail-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  font-size: 12.5px;
  color: #0f172a;
}

.rel-claim-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 12.5px;
}

.rel-claim-detail-label {
  color: #64748b;
  font-weight: 500;
}

.rel-claim-detail-val {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

@media (max-width: 1200px) {
  .rel-copyright-kpis-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .rel-copyright-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rel-territories-5col-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .rel-meta-box {
    flex-direction: column;
  }
  .rel-meta-cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rel-territories-5col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rel-promo-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== CLAIM DETAILS POPUP MODAL ===== */
.claim-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.claim-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.claim-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.claim-modal-overlay.open .claim-modal-card {
  transform: translateY(0) scale(1);
}

.claim-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 18px 28px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.claim-modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.claim-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.claim-modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.claim-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.claim-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.claim-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.claim-modal-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.claim-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.claim-modal-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}

.claim-modal-panel-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.claim-modal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 12.5px;
}

.claim-modal-label {
  color: #64748b;
  font-weight: 500;
}

.claim-modal-val {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.claim-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 24px 28px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   COVER ART LIGHTBOX POPUP MODAL (PIXEL PERFECT MATCH)
   ═══════════════════════════════════════════════════════════════════ */
.rel-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: relLightboxFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes relLightboxFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.rel-lightbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
}

.rel-lightbox-frame {
  background: #e2e8f0;
  border: 4px solid #ffffff;
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 540px;
  height: 540px;
  max-width: 80vw;
  max-height: 80vh;
}

.rel-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.rel-lightbox-placeholder {
  width: 100%;
  height: 100%;
  background: #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.rel-lightbox-close-btn {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s ease;
}

.rel-lightbox-close-btn:hover {
  background: rgba(0, 0, 0, 0.95);
  border-color: #ffffff;
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════
   AUDIO TRACKS TABLE (PIXEL PERFECT MATCH)
   ═══════════════════════════════════════════════════════════════════ */
.rel-tracks-tab-body {
  margin-top: 8px;
  width: 100%;
}

.rel-tracks-table-wrap {
  width: 100%;
  overflow-x: hidden;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.rel-tracks-exact-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11.5px;
  text-align: left;
  table-layout: auto;
}

.rel-tracks-exact-table th {
  padding: 9px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.rel-tracks-exact-table td {
  padding: 10px 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: nowrap;
}

.rel-tracks-exact-table tr:hover td {
  background: #fbfcfd;
}

.rel-td-play {
  width: 32px;
  text-align: center;
  padding: 8px 4px !important;
}

.rel-track-play-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #334155;
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
  padding-left: 2px;
}

.rel-track-play-circle:hover {
  transform: scale(1.1);
  background: #0f172a;
}

.rel-track-play-circle.playing {
  background: #10b981;
  color: #ffffff;
  padding-left: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.rel-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'DM Mono', monospace;
  background: #f1f5f9;
  color: #475569;
}

.rel-preview-badge.spotify {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.rel-preview-badge.internal {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.rel-preview-badge.unavailable {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

@keyframes relSpin {
  to { transform: rotate(360deg); }
}

.rel-td-num {
  font-weight: 600;
  color: #0f172a;
  width: 36px;
}

.rel-td-title {
  font-weight: 600;
  color: #0f172a;
}

.rel-td-version {
  color: #64748b;
  font-size: 11.5px;
}

.rel-td-artist {
  color: #334155;
}

.rel-td-authors {
  color: #334155;
  font-size: 11.5px;
}

.rel-td-composers {
  color: #334155;
  font-size: 11.5px;
}

.rel-td-duration {
  color: #334155;
  font-size: 11.5px;
}

.rel-td-genre {
  color: #334155;
  font-size: 11.5px;
}

.rel-td-isrc {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
}

.rel-td-preview {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: #334155;
}

.rel-td-actions {
  text-align: right;
}

.rel-track-btns-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.rel-track-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.rel-track-action-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.rel-track-action-btn.spotify:hover {
  border-color: #10b981;
  color: #10b981;
}

.rel-compilation-btn-wrap {
  margin-top: 24px;
}

.rel-compilation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.rel-compilation-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════════
   VIDEO TAB & BADGES
   ═══════════════════════════════════════════════════════════════════ */
.rel-video-desc-tab {
  padding: 16px 0 32px 0;
}

.rel-video-desc-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.rel-video-desc-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  font-style: italic;
  white-space: pre-line;
}

.rel-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: #2563eb;
  color: #ffffff;
  margin-left: 4px;
}

.rel-tab-badge.dark {
  background: #334155;
  color: #ffffff;
}

.rel-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  cursor: help;
  margin-left: 3px;
  vertical-align: middle;
}

