/* artist-detail.css - Styling cho trang Chi tiết ca sĩ & Kho Beat của ca sĩ */

/* 1. HERO & COVER BANNER */
.artist-detail-hero {
  background-color: #0b0f19;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding-top: 72px; /* Khoảng trống bên dưới fixed navbar */
}

.artist-cover-banner {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #0f172a;
}

.artist-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.72) contrast(1.05);
  transform: scale(1.01);
  transition: transform 0.6s ease;
}

.artist-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 25, 0.35) 0%,
    rgba(11, 15, 25, 0.65) 60%,
    #0b0f19 100%
  );
  pointer-events: none;
}

.artist-cover-top {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 2;
}

.artist-detail-breadcrumb {
  margin-bottom: 0;
}

.artist-detail-breadcrumb .breadcrumb {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 0;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.artist-detail-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.artist-detail-breadcrumb .breadcrumb-item a:hover {
  color: var(--primary, #ff4664);
}

.artist-detail-breadcrumb .breadcrumb-item.active {
  color: #ffffff;
  font-weight: 600;
}

.artist-detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* 2. ARTIST PROFILE CARD (Avatar & Info) */
.artist-profile-container {
  position: relative;
  z-index: 3;
  padding-bottom: 45px;
}

.artist-profile-card {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  margin-top: -85px; /* Đè avatar lên chân ảnh bìa */
}

.artist-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary, #ff4664), #38bdf8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 70, 100, 0.3);
}

.artist-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  display: block;
  border: 3px solid #0b0f19;
}

.artist-verified-tick {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 3px solid #0b0f19;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.artist-profile-content {
  flex-grow: 1;
}

.artist-meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.artist-role-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 70, 100, 0.18);
  color: #ff8099;
  border: 1px solid rgba(255, 70, 100, 0.3);
}

.artist-role-tag.rapper {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.artist-role-tag.producer {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.3);
}

.artist-genre-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.artist-profile-name {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.artist-bio-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 20px;
}

.artist-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.artist-btn-playall {
  background: linear-gradient(135deg, var(--primary, #ff4664), #ff5a77);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 70, 100, 0.4);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.artist-btn-playall:hover {
  background: linear-gradient(135deg, #e03250, #ff4664);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 70, 100, 0.5);
}

.artist-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.artist-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.artist-btn-secondary.active {
  background: rgba(255, 70, 100, 0.2);
  color: #ff8099;
  border-color: rgba(255, 70, 100, 0.4);
}

.artist-stats-pills {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.artist-stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.artist-stat-box .stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display, sans-serif);
  line-height: 1.2;
}

.artist-stat-box .stat-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* 3. BEATS SECTION & TABLE */
.artist-beats-section {
  padding: 50px 0 80px;
  background-color: var(--bg-body, #f8fafc);
  min-height: 500px;
}

.artist-beats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.artist-beats-title {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-heading, #0f172a);
  margin: 0;
}

.artist-filter-pills {
  display: flex;
  gap: 6px;
  background: #ffffff;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.artist-pill-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.artist-pill-btn.active {
  background: var(--primary, #ff4664);
  color: #ffffff;
}

/* Tracks Table Styles & Fix Badge Stretched Bug */
.tracks-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tracks-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.tracks-table tbody tr {
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

.tracks-table tbody tr:hover {
  background-color: #f8fafc;
}

.tracks-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}

.track-index-col {
  text-align: center;
}

.track-index-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

.track-info-col {
  display: flex;
  align-items: center;
  gap: 14px;
}

.track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

/* FIX: track-detail-info needs align-items: flex-start so badges don't stretch */
.track-detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 3px;
  overflow: hidden;
}

.track-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading, #0f172a);
  text-decoration: none;
  transition: color 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.track-title:hover {
  color: var(--primary, #ff4664);
}

.track-type-badge {
  display: inline-flex !important;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.3;
  width: auto !important;
  max-width: max-content !important;
  margin-left: 0 !important;
}

.badge-playback {
  background-color: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-karaoke {
  background-color: rgba(255, 70, 100, 0.12);
  color: #ff4664;
  border: 1px solid rgba(255, 70, 100, 0.25);
}

.track-meta-col {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

.track-price-vnd {
  font-weight: 700;
  color: #059669;
  font-size: 0.95rem;
}

.track-price-contact {
  font-weight: 600;
  color: #d97706;
  font-size: 0.9rem;
}

/* Action Buttons in Track Row */
.track-action-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-track-play {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-track-play:hover {
  background-color: #e2e8f0;
  color: var(--primary, #ff4664);
  border-color: #94a3b8;
}

.btn-track-buy-license {
  background: linear-gradient(135deg, var(--primary, #ff4664), #ff5d7a);
  border: none;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 70, 100, 0.25);
  white-space: nowrap;
  text-decoration: none;
}

.btn-track-buy-license:hover {
  background: linear-gradient(135deg, #e03250, #ff4664);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 70, 100, 0.4);
  color: #ffffff;
}

.track-btn-favorite-icon {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.track-btn-favorite-icon:hover,
.track-btn-favorite-icon.active {
  color: #ef4444;
}

/* 4. LICENSE SELECTION MODAL STYLES */
.license-modal-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-color: #e2e8f0;
}

.license-modal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.license-modal-card.featured {
  border-color: var(--primary, #ff4664) !important;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 70, 100, 0.15) !important;
}

.license-modal-price {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* 5. OTHER ARTISTS SECTION */
.other-artist-card {
  text-decoration: none;
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.other-artist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

/* Common artist link styling across entire site */
.artist-name-link,
a.track-artist,
.artist-link,
.cart-item-artist-link,
.player-track-artist-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
  cursor: pointer;
}

.artist-name-link:hover,
a.track-artist:hover,
.artist-link:hover,
.cart-item-artist-link:hover,
.player-track-artist-link:hover {
  color: var(--primary, #ff4664) !important;
  text-decoration: underline !important;
}

/* 6. RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) {
  .track-title {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .artist-cover-banner {
    height: 190px;
  }

  .artist-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-top: -65px;
  }

  .artist-avatar-wrapper {
    width: 130px;
    height: 130px;
  }

  .artist-bio-text {
    margin-left: auto;
    margin-right: auto;
  }

  .artist-actions-row,
  .artist-stats-pills,
  .artist-meta-badges {
    justify-content: center;
  }

  .track-title {
    max-width: 160px;
  }
}
