/* /home/hkiugcom/website.airplay/assets/focus/focus.css */

.ap-focus-wrap {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Track count ─────────────────────────────────────────────────────────── */
.ap-focus-count {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.38);
  letter-spacing: 0.04em;
}

/* ── Table wrapper ───────────────────────────────────────────────────────── */
.ap-focus-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.ap-focus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.90);
}

.ap-focus-table th {
  padding: 5px 10px;
  text-align: left;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.45);
  border-bottom: 1px solid rgba(31, 41, 55, 0.80);
  white-space: nowrap;
  vertical-align: bottom;
}
.ap-focus-table th .col-sub {
  font-size: 8px;
  font-weight: 700;
  opacity: 0.65;
  letter-spacing: 0.06em;
}

.ap-focus-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.50);
  vertical-align: middle;
  white-space: nowrap;
}

.ap-audit-table tbody tr {
  cursor: pointer;
}
.ap-focus-row:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* On-air row highlight */
.ap-focus-row.is-onair td {
  background: rgba(250, 204, 21, 0.04);
}
.ap-focus-row.is-onair .track-title {
  color: rgba(250, 204, 21, 0.95);
}

/* ── Columns ─────────────────────────────────────────────────────────────── */
.col-last {
  width: 70px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.col-artist-title {
  min-width: 160px;
  max-width: 340px;
}
.track-artist {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.55);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.track-title {
  display: block;
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.track-title:hover {
  color: rgba(250, 204, 21, 0.95);
}

.col-pop {
  width: 52px;
  text-align: right;
}
.pop-val {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.pop-high { color: rgba(52, 211, 153, 0.90); }
.pop-mid  { color: rgba(250, 204, 21, 0.90); }
.pop-low  { color: rgba(248, 113, 113, 0.90); }
.pop-nil  { color: rgba(148, 163, 184, 0.30); }

.col-plays {
  width: 46px;
  text-align: right;
  color: rgba(148, 163, 184, 0.70);
  font-variant-numeric: tabular-nums;
}

.col-dur {
  width: 52px;
  text-align: right;
  color: rgba(148, 163, 184, 0.55);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.col-spark {
  width: 88px;
  padding-left: 12px;
  padding-right: 4px;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.ap-focus-empty {
  padding: 40px 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.45);
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.ap-focus-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* .ap-mode-label / .ap-mode-pills / .ap-mode-pill — shared styles in audit_base.css */
/* Focus topbar adds no extra pill overrides */

/* ── Back to top ─────────────────────────────────────────────────────────── */
.ap-backtop-group {
  position: fixed;
  right: 20px;
  bottom: 40px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.ap-backtop {
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(17,24,39,0.85);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-family: inherit;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.30);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, background .15s ease;
  cursor: pointer;
}
.ap-backtop.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ap-backtop:hover { background: rgba(30,41,59,0.95); }
.ap-backtop:active { transform: translateY(1px); }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .col-spark {
    width: 60px;
    padding-left: 6px;
  }
  .track-artist,
  .track-title {
    max-width: 180px;
  }

  /* TRACK column fills available viewport width after PLAYED */
  #auditTable th.ap-th-track-mob,
  #auditTable td.ap-td-track-mob {
    width: clamp(140px, calc(100vw - 90px), 320px);
    max-width: clamp(140px, calc(100vw - 90px), 320px);
  }
}
