/* ===================================================================
   UMG v3 Home dashboard styles — ported verbatim from umg-version-02
   (public/index.html inline <style>, the NEW HOMEPAGE LAYOUT block).
   Classes are uniquely prefixed (home-*, song-videos-*, export-*,
   highlights-*, audience-*, global-*, song-chart-*) — no v3 collisions.
   =================================================================== */

    .song-type {
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .song-type.priority_release {
      background: rgba(153, 51, 255, 0.15);
      color: #9933ff;
    }

    .song-type.release {
      background: rgba(0, 204, 102, 0.15);
      color: #00cc66;
    }

    .song-type.opportunity {
      background: rgba(255, 170, 0, 0.15);
      color: #ffaa00;
    }


    /* ==================== NEW HOMEPAGE LAYOUT ==================== */
    .home-grid {
      display: grid;
      grid-template-columns: 300px 300px 1fr;
      gap: 0;
      height: calc(100vh - 60px);
      overflow: hidden;
    }

    .home-grid.song-selected {
      grid-template-columns: 300px 1fr;
    }

    .home-grid.account-selected {
      grid-template-columns: 300px 300px 1fr;
    }

    .home-column {
      border-right: 1px solid #222;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .home-column:last-child {
      border-right: none;
    }

    /* Accounts view needs full height for scrolling */
    #home-accounts-view {
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
    }

    .home-column-header {
      padding: 20px 20px 16px;
      border-bottom: 1px solid #222;
      background: #0d0d0d;
      flex-shrink: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .home-column-title {
      font-size: 13px;
      font-weight: 600;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .home-column-period {
      font-size: 10px;
      color: #555;
    }

    .home-column-content {
      flex: 1;
      overflow-y: auto;
      padding: 12px;
    }

    /* Slick scrollbar for home columns */
    .home-column-content::-webkit-scrollbar {
      width: 6px;
    }

    .home-column-content::-webkit-scrollbar-track {
      background: transparent;
    }

    .home-column-content::-webkit-scrollbar-thumb {
      background: #333;
      border-radius: 3px;
    }

    .home-column-content::-webkit-scrollbar-thumb:hover {
      background: #444;
    }

    /* Songs List */
    .home-song-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      background: #111;
      border: 1px solid #222;
      border-radius: 10px;
      margin-bottom: 8px;
      cursor: pointer;
      transition: all 0.15s;
      gap: 12px;
      min-width: 0;
    }

    .home-song-item:hover {
      border-color: #333;
      background: #151515;
    }

    .home-song-item.selected {
      border-color: #ff0050;
      background: rgba(255, 0, 80, 0.08);
    }

    .home-item-expand {
      color: #444;
      font-size: 14px;
      margin-left: 12px;
      transition: color 0.15s, transform 0.15s;
    }

    .home-song-item:hover .home-item-expand,
    .home-account-item:hover .home-item-expand {
      color: #888;
    }

    .home-song-item.selected .home-item-expand,
    .home-account-item.selected .home-item-expand {
      color: #ff0050;
      transform: rotate(90deg);
    }

    .home-song-info {
      flex: 1;
      min-width: 0;
    }

    .home-song-name {
      font-size: 13px;
      font-weight: 500;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .home-song-artist {
      font-size: 11px;
      color: #666;
      margin-top: 2px;
    }

    .home-song-right {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
    }

    .home-song-right .song-type {
      font-size: 10px;
      padding: 3px 8px;
    }

    .home-song-slots {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      height: 24px;
      background: rgba(255, 0, 80, 0.15);
      color: #ff0050;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
    }

    /* Accounts List */
    .home-account-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      background: #111;
      border: 1px solid #222;
      border-radius: 10px;
      margin-bottom: 8px;
      cursor: pointer;
      transition: all 0.15s;
      gap: 12px;
      min-width: 0;
    }

    .home-account-item:hover {
      border-color: #333;
      background: #151515;
    }

    .home-account-item.selected {
      border-color: #ff0050;
      background: rgba(255, 0, 80, 0.08);
    }

    .home-account-handle {
      font-size: 13px;
      font-weight: 500;
      color: #fff;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
      flex: 1;
    }

    .home-account-followers {
      font-size: 12px;
      color: #888;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .home-account-delta {
      font-size: 11px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .home-account-delta.positive {
      color: #22c55e;
    }

    .home-account-delta.negative {
      color: #ef4444;
    }

    .home-account-delta.neutral {
      color: #666;
    }

    /* Right side split view - single scrollbar */
    .home-right-split {
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .home-right-split::-webkit-scrollbar {
      width: 6px;
    }

    .home-right-split::-webkit-scrollbar-track {
      background: transparent;
    }

    .home-right-split::-webkit-scrollbar-thumb {
      background: #333;
      border-radius: 3px;
    }

    .home-right-split::-webkit-scrollbar-thumb:hover {
      background: #444;
    }

    .home-right-section {
      display: flex;
      flex-direction: column;
      border-bottom: 1px solid #222;
      flex-shrink: 0;
    }

    .home-right-section:last-child {
      border-bottom: none;
    }

    .home-right-promoted {
      /* Natural height based on chart content */
    }

    .home-right-highlights {
      /* Natural height based on content */
    }

    .home-right-global {
      /* Natural height based on content */
    }

    /* Override column content scroll for right sections - use parent scroll */
    .home-right-section .home-column-content {
      overflow-y: visible;
      flex: none;
    }

    /* Detail view (when song/account selected) */
    .home-detail-view {
      display: none;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
    }

    .home-detail-view.active {
      display: flex;
    }

    .home-detail-header {
      padding: 20px;
      border-bottom: 1px solid #222;
      background: #0d0d0d;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .home-detail-badge-row {
      margin-top: 6px;
    }

    .home-detail-title {
      font-size: 16px;
      font-weight: 600;
    }

    .home-detail-subtitle {
      font-size: 12px;
      color: #666;
      margin-top: 4px;
    }

    .home-detail-close {
      padding: 8px 12px;
      background: #222;
      border: none;
      border-radius: 6px;
      color: #888;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .home-detail-close:hover {
      background: #333;
      color: #fff;
    }

    .home-detail-export {
      padding: 8px 14px;
      background: #22c55e;
      border: none;
      border-radius: 6px;
      color: #fff;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .home-detail-export:hover {
      background: #16a34a;
    }

    .home-detail-buttons {
      display: flex;
      gap: 8px;
    }

    /* Export Modal */
    .export-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.72);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s, visibility 0.2s;
    }

    .export-modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .export-modal {
      background: #111;
      border: 1px solid #2a2a2a;
      border-radius: 14px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
      width: 420px;
      max-width: 90vw;
      transform: scale(0.96) translateY(6px);
      transition: transform 0.2s ease-out;
    }

    .export-modal-overlay.active .export-modal {
      transform: scale(1) translateY(0);
    }

    .export-modal-header {
      padding: 20px;
      border-bottom: 1px solid #222;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .export-modal-title {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
    }

    .export-modal-close {
      background: none;
      border: none;
      color: #666;
      font-size: 20px;
      cursor: pointer;
      padding: 4px;
      line-height: 1;
    }

    .export-modal-close:hover {
      color: #fff;
    }

    .export-modal-body {
      padding: 20px;
    }

    .export-section {
      margin-bottom: 20px;
    }

    .export-section:last-child {
      margin-bottom: 0;
    }

    .export-section-label {
      font-size: 12px;
      font-weight: 500;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 10px;
    }

    .export-radio-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    /* NOTE: these options are <label>s, and styles.css has a global
       `label { display:flex; flex-direction:column; flex:1 1 180px }` —
       row + flex:none here are what keep them from stacking and stretching. */
    .export-radio-option {
      display: flex;
      flex-direction: row;
      flex: 0 0 auto;
      align-items: center;
      gap: 10px;
      padding: 11px 14px;
      background: #1a1a1a;
      border: 1px solid #333;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .export-radio-option:hover {
      border-color: #444;
      background: #222;
    }

    .export-radio-option.selected {
      border-color: #22c55e;
      background: rgba(34, 197, 94, 0.1);
    }

    .export-radio-option input {
      display: none;
    }

    .export-radio-circle {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      border: 2px solid #444;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
    }

    .export-radio-option.selected .export-radio-circle {
      border-color: #22c55e;
    }

    .export-radio-circle::after {
      content: '';
      width: 6px;
      height: 6px;
      background: #22c55e;
      border-radius: 50%;
      opacity: 0;
      transition: opacity 0.15s;
    }

    .export-radio-option.selected .export-radio-circle::after {
      opacity: 1;
    }

    .export-radio-text {
      font-size: 13px;
      font-weight: 500;
      color: #ddd;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .export-radio-option.selected .export-radio-text {
      color: #fff;
    }

    .export-radio-subtext {
      font-size: 11px;
      color: #666;
      margin-left: auto;
      padding-left: 8px;
      flex-shrink: 0;
    }

    .export-date-toggles {
      display: flex;
      gap: 8px;
    }

    .export-date-toggle {
      flex: 1;
      padding: 10px;
      background: #1a1a1a;
      border: 1px solid #333;
      border-radius: 8px;
      color: #888;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
    }

    .export-date-toggle:hover {
      border-color: #444;
      color: #fff;
    }

    .export-date-toggle.active {
      border-color: #22c55e;
      background: rgba(34, 197, 94, 0.1);
      color: #22c55e;
    }

    .export-custom-dates {
      display: none;
      gap: 12px;
      margin-top: 12px;
    }

    .export-custom-dates.visible {
      display: flex;
    }

    .export-date-field {
      flex: 1;
    }

    .export-date-field label {
      display: block;
      font-size: 11px;
      color: #666;
      margin-bottom: 6px;
    }

    .export-date-field input {
      width: 100%;
      padding: 10px;
      background: #1a1a1a;
      border: 1px solid #333;
      border-radius: 6px;
      color: #fff;
      font-size: 13px;
    }

    .export-date-field input:focus {
      outline: none;
      border-color: #22c55e;
    }

    .export-modal-footer {
      padding: 20px;
      border-top: 1px solid #222;
    }

    .export-download-btn {
      width: 100%;
      padding: 14px;
      background: #22c55e;
      border: none;
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .export-download-btn:hover {
      background: #16a34a;
    }

    .export-download-btn:disabled {
      background: #333;
      color: #666;
      cursor: not-allowed;
    }

    .home-detail-content {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
    }


    /* Song videos table */
    .song-videos-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    .song-videos-table th {
      text-align: left;
      padding: 10px 8px;
      border-bottom: 2px solid #333;
      color: #999;
      font-weight: 500;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      cursor: pointer;
      user-select: none;
      transition: color 0.15s;
    }

    .song-videos-table th:hover {
      color: #fff;
    }

    .song-videos-table th.sortable {
      padding-right: 20px;
      position: relative;
    }

    .song-videos-table th .sort-icon {
      position: absolute;
      right: 4px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 10px;
      opacity: 0.3;
      transition: opacity 0.15s;
    }

    .song-videos-table th:hover .sort-icon {
      opacity: 0.6;
    }

    .song-videos-table th.sorted {
      color: #fff;
    }

    .song-videos-table th.sorted .sort-icon {
      opacity: 1;
      color: #8b5cf6;
    }

    .song-videos-table td {
      padding: 12px 8px;
      border-bottom: 1px solid #2a2a2a;
      vertical-align: middle;
    }

    .song-videos-table tr:hover {
      background: #1a1a1a;
    }

    .song-videos-table .metric-cell {
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    .song-videos-table .date-cell {
      color: #888;
      white-space: nowrap;
    }

    .song-videos-table .account-cell {
      color: #aaa;
    }

    .song-videos-table .link-btn {
      background: #333;
      color: #fff;
      border: none;
      padding: 6px 12px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 12px;
      text-decoration: none;
      display: inline-block;
    }

    .song-videos-table .link-btn:hover {
      background: #444;
    }

    .song-videos-empty {
      text-align: center;
      padding: 40px 20px;
      color: #666;
    }

    /* Unified detail stats (for songs, accounts) */
    .detail-stats {
      display: flex;
      gap: 12px;
      margin-bottom: 20px;
    }

    .detail-stat {
      flex: 1;
      text-align: center;
      padding: 16px 12px;
      background: #1a1a1a;
      border-radius: 8px;
    }

    .detail-stat-value {
      font-size: 22px;
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
    }

    .detail-stat-label {
      font-size: 10px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-top: 4px;
    }

    /* Legacy - keep for compatibility */
    .song-videos-summary {
      display: flex;
      gap: 24px;
      margin-bottom: 20px;
      padding: 16px;
      background: #1a1a1a;
      border-radius: 8px;
    }

    .song-videos-stat {
      text-align: center;
    }

    .song-videos-stat-value {
      font-size: 24px;
      font-weight: 600;
      color: #fff;
    }

    .song-videos-stat-label {
      font-size: 11px;
      color: #888;
      text-transform: uppercase;
      margin-top: 4px;
    }

    /* Song views chart */
    .song-chart-container {
      margin-bottom: 24px;
      padding: 16px;
      background: #1a1a1a;
      border-radius: 8px;
      overflow: hidden;
    }

    .song-chart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .song-chart-title {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
    }

    .song-chart-toggles {
      display: flex;
      gap: 4px;
      background: #111;
      padding: 4px;
      border-radius: 6px;
    }

    .song-chart-toggle {
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 500;
      color: #888;
      background: transparent;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .song-chart-toggle:hover {
      color: #fff;
    }

    .song-chart-toggle.active {
      background: #333;
      color: #fff;
    }

    .song-chart-canvas-wrapper {
      position: relative;
      height: 180px;
      width: 100%;
    }

    /* Global Data chart styles */
    .global-data-container {
      padding: 12px;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .global-data-stats {
      display: flex;
      gap: 16px;
      margin-bottom: 12px;
    }

    .global-data-stat {
      flex: 1;
      text-align: center;
      padding: 8px;
      background: #1a1a1a;
      border-radius: 6px;
    }

    .global-data-stat-value {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
    }

    .global-data-stat-label {
      font-size: 10px;
      color: #666;
      text-transform: uppercase;
      margin-top: 2px;
    }

    .global-chart-container {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }

    .global-chart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .global-chart-title {
      font-size: 12px;
      font-weight: 600;
      color: #888;
    }

    .global-chart-toggles {
      display: flex;
      gap: 2px;
      background: #111;
      padding: 2px;
      border-radius: 4px;
    }

    .global-chart-toggle {
      padding: 4px 8px;
      font-size: 10px;
      font-weight: 500;
      color: #666;
      background: transparent;
      border: none;
      border-radius: 3px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .global-chart-toggle:hover {
      color: #aaa;
    }

    .global-chart-toggle.active {
      background: #333;
      color: #fff;
    }

    .global-chart-canvas-wrapper {
      flex: 1;
      position: relative;
      min-height: 120px;
    }

    .promoted-songs-container {
      display: flex;
      flex-direction: column;
    }

    .promoted-songs-container .global-chart-container {
      display: flex;
      flex-direction: column;
    }

    .promoted-songs-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .promoted-songs-filters {
      display: flex;
      gap: 16px;
    }

    .promoted-songs-hint {
      font-size: 10px;
      color: #555;
      text-align: center;
      margin-top: 8px;
      font-style: italic;
    }

    .promoted-songs-filter {
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      font-size: 12px;
      color: #888;
    }

    .promoted-songs-filter input[type="checkbox"] {
      width: 14px;
      height: 14px;
      accent-color: #666;
      cursor: pointer;
    }

    .promoted-songs-filter .filter-label {
      user-select: none;
    }

    .promoted-songs-filter:hover .filter-label {
      color: #fff;
    }

    .promoted-songs-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      padding: 12px 0 0;
      border-top: 1px solid #222;
      margin-top: 12px;
    }

    .promoted-songs-legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: #888;
      transition: opacity 0.2s ease;
      padding: 4px 8px;
      border-radius: 4px;
    }

    .promoted-songs-legend-item:hover {
      background: #222;
      color: #fff;
    }

    .promoted-songs-legend-item.highlighted {
      background: #333;
      color: #fff;
    }

    .promoted-songs-legend-item.dimmed {
      opacity: 0.35;
    }

    .promoted-songs-legend-color {
      width: 12px;
      height: 12px;
      border-radius: 3px;
    }

    .promoted-songs-legend-line {
      width: 16px;
      height: 2px;
      border-radius: 1px;
    }

    /* Highlights section styles */
    .highlights-container {
      display: flex;
      gap: 16px;
      height: 100%;
      padding: 12px;
    }

    .highlights-column {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .highlights-column-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      padding-bottom: 8px;
      border-bottom: 1px solid #222;
    }

    .highlights-column-title {
      font-size: 11px;
      font-weight: 600;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .highlights-period {
      font-size: 9px;
      color: #555;
    }

    .highlights-section {
      margin-bottom: 12px;
    }

    .highlights-section-label {
      font-size: 9px;
      font-weight: 600;
      color: #4ade80;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .highlights-section-label.negative {
      color: #f87171;
    }

    .highlights-section-label.neutral {
      color: #60a5fa;
    }

    .highlights-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      background: #1a1a1a;
      border-radius: 6px;
      margin-bottom: 4px;
      transition: background 0.15s;
    }

    .highlights-item:hover {
      background: #222;
    }

    .highlights-item-rank {
      font-size: 10px;
      font-weight: 700;
      color: #555;
      width: 16px;
      text-align: center;
    }

    .highlights-item-info {
      flex: 1;
      min-width: 0;
    }

    .highlights-item-name {
      font-size: 11px;
      font-weight: 500;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .highlights-item-meta {
      font-size: 9px;
      color: #666;
      margin-top: 1px;
    }

    .highlights-item-value {
      font-size: 11px;
      font-weight: 600;
      color: #fff;
      text-align: right;
    }

    .highlights-item-value.positive {
      color: #4ade80;
    }

    .highlights-item-value.negative {
      color: #f87171;
    }

    .highlights-item-subvalue {
      font-size: 9px;
      color: #666;
      text-align: right;
    }

    .highlights-video-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px;
      background: #1a1a1a;
      border-radius: 6px;
      margin-bottom: 4px;
    }

    .highlights-video-rank {
      font-size: 12px;
      font-weight: 700;
      color: #444;
      width: 18px;
      text-align: center;
    }

    .highlights-video-info {
      flex: 1;
      min-width: 0;
    }

    .highlights-video-stats {
      display: flex;
      gap: 10px;
      font-size: 9px;
      color: #666;
      margin-bottom: 3px;
    }

    .highlights-video-desc {
      font-size: 9px;
      color: #555;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .highlights-video-stat {
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .highlights-video-stat-main {
      font-size: 12px;
      font-weight: 600;
      color: #fff;
    }

    .highlights-video-link {
      padding: 4px 8px;
      font-size: 9px;
      font-weight: 500;
      color: #888;
      background: #222;
      border-radius: 4px;
      text-decoration: none;
      transition: all 0.15s;
    }

    .highlights-video-link:hover {
      background: #333;
      color: #fff;
    }

    .highlights-empty {
      padding: 16px;
      text-align: center;
      font-size: 11px;
      color: #555;
    }

    /* Account detail styles */
    .account-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px 4px 8px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.2px;
      border-radius: 999px;
      background: rgba(136, 136, 136, 0.12);
      border: 1px solid rgba(136, 136, 136, 0.25);
      color: #999;
      cursor: default;
      transition: all 0.15s;
    }

    .status-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
      flex-shrink: 0;
    }

    .account-status-badge.good {
      background: rgba(0, 200, 100, 0.12);
      border-color: rgba(0, 200, 100, 0.3);
      color: #00c864;
    }

    .account-status-badge.warming-up {
      background: rgba(255, 170, 0, 0.12);
      border-color: rgba(255, 170, 0, 0.3);
      color: #ffaa00;
    }

    .account-status-badge.paused,
    .account-status-badge.disabled {
      background: rgba(255, 80, 80, 0.12);
      border-color: rgba(255, 80, 80, 0.3);
      color: #ff5050;
    }

    /* Status chip hover explainer */
    .status-chip-wrap {
      position: relative;
      display: inline-flex;
    }

    .status-chip-wrap:hover .account-status-badge {
      filter: brightness(1.15);
    }

    .status-tooltip {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      z-index: 50;
      width: 300px;
      padding: 10px 12px;
      background: #161616;
      border: 1px solid #2e2e2e;
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
      font-size: 11.5px;
      font-weight: 400;
      line-height: 1.5;
      letter-spacing: 0;
      color: #999;
      text-transform: none;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-4px);
      transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
      pointer-events: none;
    }

    .status-tooltip-title {
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      font-weight: 600;
      color: #fff;
    }

    .status-chip-wrap:hover .status-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .tiktok-link-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 500;
      color: #888;
      background: #222;
      border: 1px solid #333;
      border-radius: 4px;
      text-decoration: none;
      transition: all 0.15s;
    }

    .tiktok-link-btn:hover {
      color: #fff;
      background: #333;
      border-color: #444;
    }

    .home-detail-tiktok {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      background: #fff;
      border: none;
      border-radius: 6px;
      color: #0d0d0d;
      font-size: 12px;
      font-weight: 500;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.15s;
    }

    .home-detail-tiktok svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }

    .home-detail-tiktok:hover {
      background: #e2e2e2;
    }

    .account-stats-bar {
      display: flex;
      gap: 24px;
      padding: 12px 16px;
      background: #1a1a1a;
      border-radius: 8px;
      margin-bottom: 16px;
    }

    .account-stat-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .account-stat-value {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
    }

    .account-stat-label {
      font-size: 11px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Audience Demographics */
    .audience-section {
      margin-top: 20px;
      padding: 16px;
      background: #1a1a1a;
      border-radius: 8px;
    }

    .audience-header {
      margin-bottom: 12px;
    }

    .audience-title {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
    }

    .audience-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .audience-item {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .audience-country {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 140px;
    }

    .audience-flag {
      font-size: 16px;
    }

    .audience-country-name {
      font-size: 13px;
      color: #ccc;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .audience-bar-container {
      flex: 1;
      height: 8px;
      background: #333;
      border-radius: 4px;
      overflow: hidden;
    }

    .audience-bar {
      height: 100%;
      background: linear-gradient(90deg, #ff0050, #ff4444);
      border-radius: 4px;
      transition: width 0.3s ease;
    }

    .audience-percentage {
      font-size: 12px;
      font-weight: 600;
      color: #888;
      min-width: 45px;
      text-align: right;
    }

    /* Placeholder state */
    .home-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: #444;
      text-align: center;
      padding: 20px;
    }

    .home-placeholder-icon {
      font-size: 32px;
      margin-bottom: 12px;
      opacity: 0.5;
    }

    .home-placeholder-text {
      font-size: 13px;
    }

    /* Empty state for columns */
    .home-empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px 20px;
      color: #555;
      text-align: center;
    }

    .home-empty-icon {
      font-size: 28px;
      margin-bottom: 8px;
      opacity: 0.6;
    }

    .home-empty-text {
      font-size: 12px;
    }

/* v3 adaptation: tiers are upper-case (PRIORITY/RELEASE/OPPORTUNITY). */
.song-type.PRIORITY,    .song-type.priority    { background: rgba(153,51,255,.18); color: #c08cff; }
.song-type.RELEASE,     .song-type.release     { background: rgba(34,197,94,.15);  color: #22c55e; }
.song-type.OPPORTUNITY, .song-type.opportunity { background: rgba(255,170,0,.15);   color: #fda728; }
