.wfjb-widget {
  --wfjb-bg: #0f172a;
  --wfjb-bg-soft: #111827;
  --wfjb-surface: #1f2937;
  --wfjb-border: #334155;
  --wfjb-text: #f8fafc;
  --wfjb-muted: #cbd5e1;
  --wfjb-accent: #22d3ee;
  --wfjb-good: #22c55e;
  --wfjb-warn: #f59e0b;
  --wfjb-bad: #ef4444;
  --wfjb-archive-control-height: 36px;

  background: #000;
  border: 0;
  border-radius: 14px;
  color: var(--wfjb-text);
  padding: 14px;
  box-shadow: none;
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.wfjb-overlay-mode {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.wfjb-loading {
  color: var(--wfjb-muted);
}

.wfjb-card {
  border: 1px solid var(--wfjb-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px;
  margin-bottom: 10px;
}

.wfjb-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--wfjb-text);
}

.wfjb-subtle {
  color: var(--wfjb-muted);
}

.wfjb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 0 !important;
  background: #1a1a1c;
  outline: 0;
  box-shadow: none;
}

.wfjb-table th,
.wfjb-table td {
  border-bottom: 1px solid #2f2f35 !important;
  border-right: 1px solid #2f2f35 !important;
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
  background: #1a1a1c;
  border-left: 0 !important;
  border-top: 0 !important;
}

.wfjb-table th:last-child,
.wfjb-table td:last-child {
  border-right: 0;
}

.wfjb-table th:first-child,
.wfjb-table td:first-child {
  border-left: 0 !important;
}

.wfjb-table thead tr:first-child th {
  border-top: 0 !important;
}

.wfjb-table tbody tr:last-child td {
  border-bottom: 1px solid #2f2f35 !important;
}

.wfjb-table th {
  color: #ffffff !important;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  background: #1f1f22;
  text-align: center;
}

.wfjb-table th:first-child {
  text-align: left;
}

.wfjb-table tbody tr:hover {
  background: #202126;
}

.wfjb-table tbody tr:hover td {
  background: #202126;
}

.wfjb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--wfjb-border);
  padding: 2px 9px;
  font-size: 12px;
}

.wfjb-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #64748b;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.wfjb-status-dot-green { background: var(--wfjb-good); }
.wfjb-status-dot-red { background: var(--wfjb-bad); }
.wfjb-status-dot-yellow { background: var(--wfjb-warn); }
.wfjb-status-dot-blue { background: #38bdf8; }
.wfjb-status-dot-purple { background: #a78bfa; }
.wfjb-status-dot-black { background: #101010; box-shadow: 0 0 0 1px rgba(255,255,255,0.22); }

.wfjb-col-center {
  text-align: center !important;
}


.wfjb-golden-star {
  display: inline-block;
  margin-left: 4px;
  color: #fbbf24;
  font-size: 0.95em;
  line-height: 1;
  vertical-align: baseline;
}
.wfjb-search-results-wrap {
  margin-top: 10px;
  width: 100%;
  background: #1a1a1c;
  border: 1px solid #2f2f35 !important;
  border-radius: 8px;
  overflow: hidden;
  outline: 0;
  box-shadow: none;
}

.wfjb-archive-desktop-id,
.wfjb-playlist-desktop-id,
.wfjb-history-desktop-index {
  display: inline;
}

.wfjb-archive-mobile-card,
.wfjb-archive-mobile-summary,
.wfjb-archive-mobile-meta,
.wfjb-archive-mobile-added,
.wfjb-archive-mobile-status,
.wfjb-archive-mobile-action,
.wfjb-playlist-mobile-summary,
.wfjb-history-mobile-summary {
  display: none;
}

.wfjb-search-empty {
  margin-top: 8px;
}

.wfjb-pill-green { color: var(--wfjb-good); }
.wfjb-pill-red { color: var(--wfjb-bad); }
.wfjb-pill-yellow { color: var(--wfjb-warn); }
.wfjb-pill-blue { color: #38bdf8; }
.wfjb-pill-purple { color: #a78bfa; }

.wfjb-form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.wfjb-form-row--archive-search {
  margin-bottom: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.wfjb-form-row--archive-search .wfjb-input {
  flex: 0 1 33%;
  min-width: 260px;
}

.wfjb-archive-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
}

.wfjb-archive-initials {
  display: grid;
  grid-template-columns: repeat(36, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.wfjb-archive-initial-button {
  min-width: 0;
  width: 100%;
  min-height: var(--wfjb-archive-control-height);
  height: var(--wfjb-archive-control-height);
  padding: 0;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.1;
  border-radius: 8px;
}

.wfjb-archive-initial-button.is-active {
  background: linear-gradient(180deg, #0b3d4a, #06627f);
  border-color: #0ea5e9;
}

.wfjb-archive-initial-button:disabled {
  background: #151518;
  border-color: #2f2f35;
  color: #6b7280;
  cursor: not-allowed;
}

.wfjb-archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 1 auto;
  flex-wrap: wrap;
}

.wfjb-archive-filter-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
}

.wfjb-archive-page-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--wfjb-muted);
  font-size: 13px;
}

.wfjb-archive-filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: var(--wfjb-archive-control-height);
  padding: 4px 10px;
  border-radius: 999px;
  background: #121214;
  border: 1px solid #2f2f35;
  color: #dbeafe;
}

.wfjb-archive-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wfjb-muted);
  font-size: 13px;
}

.wfjb-archive-page-size-control {
  position: relative;
  flex: 0 0 auto;
  min-width: 92px;
  width: 92px;
}

.wfjb-archive-page-size-trigger {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 100%;
  min-height: var(--wfjb-archive-control-height);
  height: var(--wfjb-archive-control-height);
  padding: 0 14px;
  box-sizing: border-box;
  text-align: center;
  text-align-last: center;
  line-height: normal;
  font-weight: 600;
  color: #dbeafe !important;
  vertical-align: middle;
  font-size: 14px;
  justify-content: center;
}

.wfjb-archive-page-size-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid #2f2f35;
  border-radius: 8px;
  background: #1a1a1c;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  z-index: 30;
}

.wfjb-archive-page-size-menu[hidden] {
  display: none;
}

.wfjb-archive-page-size-option {
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbeafe;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 30px;
  cursor: pointer;
}

.wfjb-archive-page-size-option:hover,
.wfjb-archive-page-size-option.is-active {
  background: linear-gradient(180deg, #0b3d4a, #06627f);
  color: #f8fafc;
}

.wfjb-archive-page-size-select {
  flex: 0 0 auto;
  min-width: 86px;
  width: 86px;
  min-height: var(--wfjb-archive-control-height);
  height: var(--wfjb-archive-control-height);
  padding: 0 14px;
  box-sizing: border-box;
  text-align: center;
  text-align-last: center;
  line-height: calc(var(--wfjb-archive-control-height) - 2px);
  font-weight: 600;
  color: #dbeafe !important;
  vertical-align: middle;
  font-size: 14px;
  overflow: visible;
}

.wfjb-archive-page-size-select option {
  text-align: center;
}

.wfjb-archive-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wfjb-archive-page-button {
  min-width: 38px;
  min-height: var(--wfjb-archive-control-height);
  height: var(--wfjb-archive-control-height);
  padding: 5px 0;
  font-size: 15px;
  line-height: 1;
}

.wfjb-archive-page-button:disabled {
  background: #151518;
  border-color: #2f2f35;
  color: #6b7280;
}

.wfjb-archive-section {
  margin-bottom: 10px;
}

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

.wfjb-archive-table-wrap {
  width: 100%;
  background: #1a1a1c;
  border: 1px solid #2f2f35 !important;
  border-radius: 8px;
  overflow: hidden;
  outline: 0;
  box-shadow: none;
}

.wfjb-search-table-wrap {
  width: 100%;
  border: 0;
  background: #1a1a1c;
}

.wfjb-search-mobile-wrap {
  display: none;
  gap: 8px;
  padding: 10px;
  background: #1a1a1c;
}

.wfjb-search-mobile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #2f2f35;
  border-radius: 10px;
  background: #151518;
}

.wfjb-search-mobile-main {
  flex: 1 1 auto;
  min-width: 0;
}

.wfjb-search-mobile-title,
.wfjb-search-mobile-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wfjb-search-mobile-title {
  color: var(--wfjb-text);
}

.wfjb-search-mobile-artist {
  color: var(--wfjb-muted);
  margin-top: 2px;
  font-size: 13px;
}

.wfjb-search-mobile-add {
  flex: 0 0 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.wfjb-search-mobile-badge {
  flex: 0 0 auto;
  color: var(--wfjb-muted);
  font-size: 12px;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 4px 8px;
}

.wfjb-search-table-wrap .wfjb-table {
  margin-top: 0;
  border: 0;
}

.wfjb-search-table-wrap .wfjb-table tbody tr:last-child td {
  border-bottom: 0;
}

.wfjb-flat-section {
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wfjb-archive-section-title {
  display: none;
}

.wfjb-input,
.wfjb-button,
.wfjb-date {
  border: 1px solid #2f2f35;
  background: #121214;
  color: var(--wfjb-text);
  border-radius: 8px;
  padding: 10px 12px;
}

.wfjb-input::placeholder {
  color: #8d8d8d;
}

.wfjb-input,
.wfjb-date {
  background: #121214 !important;
  border: 1px solid #2f2f35 !important;
  color: #f1f1f1 !important;
  border-radius: 6px;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.wfjb-input:focus,
.wfjb-date:focus {
  outline: none;
  border-color: #2ea3f2 !important;
}

.wfjb-form-row--archive-search .wfjb-input {
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 20px;
}

.wfjb-input,
.wfjb-date {
  flex: 1;
}

.wfjb-button {
  cursor: pointer;
  background: linear-gradient(180deg, #001216, #004256);
  border-color: #004256;
  font-weight: 600;
  min-height: 44px;
  padding: 8px 14px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wfjb-form-row--archive-search .wfjb-button {
  min-height: var(--wfjb-archive-control-height);
  height: var(--wfjb-archive-control-height);
  padding: 0 14px;
  box-sizing: border-box;
}

.wfjb-auth-status {
  color: #dbeafe;
  border: 1px solid #2f2f35;
  background: #121214;
  border-radius: 8px;
  min-height: 30px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
}

.wfjb-auth-status[hidden],
.wfjb-form-row--archive-search button[hidden] {
  display: none !important;
}

.wfjb-button-secondary {
  background: #1f2937;
  border-color: #334155;
}

.wfjb-button-secondary:hover {
  background: #263244;
}

.wfjb-button-warning {
  background: linear-gradient(180deg, #f5c542, #d89a12);
  border-color: #f0b429;
  color: #111827;
}

.wfjb-button-warning:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffd45f, #e3a51e);
}

.wfjb-search-table-wrap .wfjb-table th:nth-child(2),
.wfjb-search-table-wrap .wfjb-table td:nth-child(2),
.wfjb-archive-table-wrap .wfjb-table th:nth-child(3),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(3) {
  text-align: center;
}

.wfjb-archive-table-wrap .wfjb-table thead th:nth-child(1) {
  text-align: center !important;
}

.wfjb-search-table-wrap .wfjb-table th:last-child,
.wfjb-search-table-wrap .wfjb-table td:last-child {
  width: 190px;
  white-space: nowrap;
}

.wfjb-search-table-wrap .wfjb-button {
  padding: 7px 10px;
  min-width: 112px;
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.wfjb-archive-table-wrap [data-add-queue-song].wfjb-button,
.wfjb-search-table-wrap [data-add-queue-song].wfjb-button {
  padding: 7px 10px;
  min-width: 112px;
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.wfjb-archive-table-wrap td[data-label="Website"] {
  text-align: center;
  vertical-align: middle;
}

.wfjb-archive-table-wrap td[data-label="Website"] .wfjb-button {
  margin: 0 auto;
  display: inline-flex;
  max-width: 100%;
}

.wfjb-search-table-wrap .wfjb-table,
.wfjb-archive-table-wrap .wfjb-table {
  table-layout: fixed;
}

.wfjb-search-table-wrap .wfjb-table th:nth-child(1),
.wfjb-search-table-wrap .wfjb-table td:nth-child(1),
.wfjb-search-table-wrap .wfjb-table th:nth-child(2),
.wfjb-search-table-wrap .wfjb-table td:nth-child(2),
.wfjb-archive-table-wrap .wfjb-table th:nth-child(2),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(2),
.wfjb-archive-table-wrap .wfjb-table th:nth-child(3),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(3) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wfjb-search-table-wrap .wfjb-table td:nth-child(1),
.wfjb-search-table-wrap .wfjb-table td:nth-child(2),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(2),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(3) {
  max-width: 0;
}

.wfjb-search-table-wrap .wfjb-table th:nth-child(2),
.wfjb-search-table-wrap .wfjb-table td:nth-child(2) {
  width: 28%;
}

.wfjb-search-table-wrap .wfjb-table th:nth-child(3),
.wfjb-search-table-wrap .wfjb-table td:nth-child(3) {
  width: 10%;
}

.wfjb-archive-table-wrap .wfjb-table th:nth-child(1),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(1) {
  width: 86px;
  text-align: center !important;
  padding-left: 10px;
  padding-right: 10px;
}

.wfjb-archive-table-wrap .wfjb-table th:nth-child(4),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(4) {
  width: 78px;
  text-align: center;
}

.wfjb-archive-table-wrap .wfjb-table th:nth-child(5),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(5) {
  width: 78px;
  text-align: center;
}

.wfjb-archive-table-wrap .wfjb-table th:nth-child(6),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(6) {
  width: 180px;
  text-align: center;
}

.wfjb-archive-table-wrap .wfjb-table th:nth-child(7),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(7) {
  width: 148px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.wfjb-archive-table-wrap .wfjb-table th:nth-child(3),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(3) {
  width: 24%;
}

.wfjb-archive-table-wrap .wfjb-table th:nth-child(2),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(2) {
  width: 40%;
}

.wfjb-archive-table-wrap .wfjb-table th:nth-child(4),
.wfjb-archive-table-wrap .wfjb-table th:nth-child(5),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(4),
.wfjb-archive-table-wrap .wfjb-table td:nth-child(5) {
  text-align: center;
}

.wfjb-archive-table-wrap .wfjb-table td:nth-child(6),
.wfjb-archive-table-wrap .wfjb-table th:nth-child(6) {
  white-space: nowrap;
}

.wfjb-archive-table-wrap .wfjb-table td:nth-child(7),
.wfjb-archive-table-wrap .wfjb-table th:nth-child(7) {
  white-space: nowrap;
}

.wfjb-playlist-row--interactive {
  cursor: pointer;
}

.wfjb-playlist-row--interactive:hover td {
  background: rgba(34, 211, 238, 0.08);
}

.wfjb-modal.wfjb-push-modal {
  max-width: 360px;
  background: #1a1a1c !important;
  border: 1px solid #2f2f35;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.wfjb-push-modal h3 {
  margin: 0 auto 6px;
  text-align: center;
  width: 100%;
}

.wfjb-push-song-code {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--wfjb-muted);
  margin-bottom: 6px;
  text-align: center;
}

.wfjb-push-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}

.wfjb-push-modal .wfjb-subtle {
  text-align: center;
}

.wfjb-push-modal p.wfjb-subtle {
  font-size: 14px;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 0;
}

.wfjb-push-artist,
.wfjb-push-title {
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.wfjb-push-artist {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wfjb-push-title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wfjb-push-form-row {
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
  width: 100%;
  justify-content: center;
}

.wfjb-push-input {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  height: 30px;
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex: 0 0 64px;
}

.wfjb-push-input::-webkit-outer-spin-button,
.wfjb-push-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wfjb-push-form-row .wfjb-button {
  min-width: 132px;
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.wfjb-push-kick-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.wfjb-push-kick-wrap {
  display: inline-flex;
  width: min(100%, 206px);
}

.wfjb-push-form-row .wfjb-input,
.wfjb-push-form-row .wfjb-button {
  width: auto;
}

.wfjb-push-multiplier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 700;
}

.wfjb-push-price-hint {
  width: 100%;
  text-align: center;
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.84rem;
  margin-top: -4px;
}

.wfjb-push-form-row,
.wfjb-push-kick-row {
  max-width: 206px;
}

.wfjb-push-kick-button {
  width: 100%;
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.wfjb-button-danger {
  background: linear-gradient(180deg, #8f1d1d, #651414);
  border-color: #a92b2b;
  color: #fff;
}

.wfjb-button-danger:hover:not(:disabled) {
  background: linear-gradient(180deg, #a62424, #7a1717);
}

.wfjb-button-danger:disabled {
  background: linear-gradient(180deg, #4a2323, #331818);
  border-color: #553131;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  .wfjb-modal.wfjb-push-modal {
    max-width: min(92vw, 360px);
  }

  .wfjb-push-controls {
    gap: 12px;
  }

  .wfjb-push-form-row,
  .wfjb-push-kick-row {
    max-width: 100%;
  }

  .wfjb-push-form-row {
    display: grid;
    grid-template-columns: 72px 16px minmax(0, 1fr);
    width: 100%;
  }

  .wfjb-push-input {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    flex-basis: 72px;
  }

  .wfjb-push-form-row .wfjb-button,
  .wfjb-push-kick-wrap {
    width: 100%;
  }

  .wfjb-admin-modal {
    width: min(100%, 96vw);
    padding: 16px;
  }

  .wfjb-admin-song-grid,
  .wfjb-admin-song-grid-secondary,
  .wfjb-admin-genre-row,
  .wfjb-admin-genre-create {
    grid-template-columns: 1fr;
  }

  .wfjb-admin-song-toggle,
  .wfjb-admin-song-toggle-main,
  .wfjb-admin-song-toggle-meta,
  .wfjb-admin-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wfjb-admin-song-code,
  .wfjb-admin-song-toggle-label {
    width: 100%;
  }
}

.wfjb-archive-table-wrap .wfjb-table th:nth-child(4) {
  padding-left: 10px;
  padding-right: 10px;
}

.wfjb-playlist-section-public {
  margin-top: 18px;
  width: 100%;
}

.wfjb-playlist-section-public--no-now {
  margin-top: 0;
}

.wfjb-nowplaying-section-public {
  margin-bottom: 14px;
  width: 100%;
}

.wfjb-nowplaying-wrap {
  background: #1a1a1c;
}

.wfjb-nowplaying-head {
  background: #1f1f22;
  color: #ffffff;
  font-weight: 600;
  border-bottom: 1px solid #2f2f35;
  padding: 10px 14px;
  text-align: center;
}

.wfjb-nowplaying-body {
  background: #1a1a1c;
  padding: 10px 14px;
  text-align: center;
}

.wfjb-nowplaying-line + .wfjb-nowplaying-line {
  margin-top: 4px;
}

.wfjb-nowplaying-mainline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.25;
}

.wfjb-nowplaying-pushline {
  text-align: center;
}

.wfjb-nowplaying-id {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.wfjb-nowplaying-sep {
  color: #cbd5e1;
}

.wfjb-nowplaying-artist,
.wfjb-nowplaying-title {
  font-weight: 700;
}

.wfjb-nowplaying-meta {
  color: #cbd5e1;
  font-size: 0.85em;
  font-weight: 500;
}

.wfjb-nowplaying-pushline {
  font-size: 13px;
  line-height: 1.35;
}

.wfjb-playlist-table-wrap .wfjb-table th:nth-child(1),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(1),
.wfjb-playlist-table-wrap .wfjb-table th:nth-child(4),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(4),
.wfjb-playlist-table-wrap .wfjb-table th:nth-child(5),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(5),
.wfjb-playlist-table-wrap .wfjb-table th:nth-child(6),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(6) {
  text-align: center;
}

.wfjb-playlist-table-wrap .wfjb-table {
  table-layout: fixed;
  width: 100%;
}

.wfjb-playlist-table-wrap .wfjb-table th {
  white-space: nowrap;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.35;
  height: 44px;
  box-sizing: border-box;
}

.wfjb-playlist-table-wrap .wfjb-table th:nth-child(1),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(1) {
  width: 72px;
}

.wfjb-playlist-table-wrap .wfjb-table th:nth-child(4),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(4) {
  width: 72px;
}

.wfjb-playlist-table-wrap .wfjb-table th:nth-child(5),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(5) {
  width: 56px;
  text-align: center;
}

.wfjb-playlist-table-wrap .wfjb-table thead th:nth-child(5) {
  text-align: center !important;
}

.wfjb-playlist-table-wrap .wfjb-table th:nth-child(6),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(6) {
  width: 17%;
  text-align: center;
  white-space: nowrap;
}

.wfjb-playlist-table-wrap .wfjb-table th:nth-child(2),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(2) {
  width: 31%;
}

.wfjb-playlist-table-wrap .wfjb-table th:nth-child(3),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(3) {
  width: 220px;
}

.wfjb-playlist-table-wrap .wfjb-table th:nth-child(2),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(2),
.wfjb-playlist-table-wrap .wfjb-table th:nth-child(3),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(3),
.wfjb-playlist-table-wrap .wfjb-table th:nth-child(6),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(6) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wfjb-playlist-table-wrap .wfjb-table td:nth-child(2),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(3),
.wfjb-playlist-table-wrap .wfjb-table td:nth-child(6) {
  max-width: 0;
}

.wfjb-lock-indicator {
  display: inline-block;
  margin-left: 6px;
  vertical-align: baseline;
}

.wfjb-history-section-public {
  width: 100%;
}

.wfjb-history-table-wrap .wfjb-table {
  width: 100%;
  table-layout: fixed;
}

.wfjb-history-filter-wrap .wfjb-form-row {
  margin-bottom: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.wfjb-history-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.wfjb-history-filter-wrap {
  background: #1a1a1c;
}

.wfjb-history-filter-wrap .wfjb-date,
.wfjb-history-filter-wrap .wfjb-history-session-select {
  flex: 0 1 35%;
  width: 35%;
  min-width: 240px;
  max-width: 460px;
}

.wfjb-history-toolbar .wfjb-history-session-select,
.wfjb-history-toolbar .wfjb-button {
  height: 38px;
  min-height: 38px;
}

.wfjb-history-toolbar .wfjb-button {
  flex: 0 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}

.wfjb-history-table-wrap .wfjb-table th {
  white-space: nowrap;
}

.wfjb-history-table-wrap .wfjb-table th:nth-child(1),
.wfjb-history-table-wrap .wfjb-table td:nth-child(1),
.wfjb-history-table-wrap .wfjb-table th:nth-child(2),
.wfjb-history-table-wrap .wfjb-table td:nth-child(2),
.wfjb-history-table-wrap .wfjb-table th:nth-child(5),
.wfjb-history-table-wrap .wfjb-table td:nth-child(5),
.wfjb-history-table-wrap .wfjb-table th:nth-child(6),
.wfjb-history-table-wrap .wfjb-table td:nth-child(6),
.wfjb-history-table-wrap .wfjb-table th:nth-child(7),
.wfjb-history-table-wrap .wfjb-table td:nth-child(7) {
  text-align: center;
}

.wfjb-history-table-wrap .wfjb-table th:nth-child(1),
.wfjb-history-table-wrap .wfjb-table td:nth-child(1) {
  width: 34px;
}

.wfjb-history-table-wrap .wfjb-table th:nth-child(2),
.wfjb-history-table-wrap .wfjb-table td:nth-child(2) {
  width: 92px;
}

.wfjb-history-table-wrap .wfjb-table th:nth-child(5),
.wfjb-history-table-wrap .wfjb-table td:nth-child(5),
.wfjb-history-table-wrap .wfjb-table th:nth-child(6),
.wfjb-history-table-wrap .wfjb-table td:nth-child(6) {
  width: 60px;
}

.wfjb-history-table-wrap .wfjb-table th:nth-child(3),
.wfjb-history-table-wrap .wfjb-table td:nth-child(3) {
  width: 26%;
}

.wfjb-history-table-wrap .wfjb-table th:nth-child(4),
.wfjb-history-table-wrap .wfjb-table td:nth-child(4) {
  width: 22%;
}

.wfjb-history-table-wrap .wfjb-table th:nth-child(7),
.wfjb-history-table-wrap .wfjb-table td:nth-child(7) {
  width: 150px;
}

.wfjb-history-table-wrap .wfjb-table th:nth-child(3),
.wfjb-history-table-wrap .wfjb-table td:nth-child(3),
.wfjb-history-table-wrap .wfjb-table th:nth-child(4),
.wfjb-history-table-wrap .wfjb-table td:nth-child(4),
.wfjb-history-table-wrap .wfjb-table th:nth-child(7),
.wfjb-history-table-wrap .wfjb-table td:nth-child(7) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wfjb-history-table-wrap .wfjb-table td:nth-child(3),
.wfjb-history-table-wrap .wfjb-table td:nth-child(4),
.wfjb-history-table-wrap .wfjb-table td:nth-child(7) {
  max-width: 0;
}

.wfjb-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.wfjb-tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(2, 6, 23, 0.95);
  color: #f8fafc;
  border: 1px solid #334155;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 99999;
  max-width: 280px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.wfjb-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wfjb-copy-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  background: #052e16;
  color: #bbf7d0;
  border: 1px solid #15803d;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

.wfjb-overlay-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 760px) {
  .wfjb-widget {
    padding: 10px;
    border-radius: 10px;
  }

  .wfjb-form-row {
    flex-direction: column;
  }

  .wfjb-table th,
  .wfjb-table td {
    padding: 6px 4px;
  }
}

@media (max-width: 1024px) {
  .wfjb-widget {
    padding: 12px;
  }

  .wfjb-form-row--archive-search .wfjb-input {
    flex-basis: 100%;
    min-width: 0;
  }

  .wfjb-history-toolbar,
  .wfjb-form-row--archive-search {
    gap: 10px;
  }

  .wfjb-archive-filter-row,
  .wfjb-archive-filter-meta-row,
  .wfjb-archive-pagination {
    width: 100%;
  }

  .wfjb-archive-pagination {
    justify-content: center;
  }

  .wfjb-archive-page-meta {
    width: 100%;
  }

  .wfjb-archive-initials {
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  }

  .wfjb-history-filter-wrap .wfjb-history-session-select,
  .wfjb-history-filter-wrap .wfjb-date,
  .wfjb-form-row--archive-search .wfjb-button,
  .wfjb-form-row--archive-search .wfjb-auth-status,
  .wfjb-archive-page-size {
    width: 100%;
    max-width: 100%;
  }

  .wfjb-archive-page-size {
    justify-content: center;
  }

  .wfjb-archive-page-size-select {
    width: 100%;
    max-width: 120px;
  }

  .wfjb-archive-page-size-control {
    width: 100%;
    max-width: 120px;
  }

  .wfjb-nowplaying-mainline {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .wfjb-nowplaying-meta {
    margin-left: 0;
    width: 100%;
  }

  .wfjb-archive-table-wrap,
  .wfjb-search-results-wrap,
  .wfjb-history-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wfjb-table {
    min-width: 720px;
  }

  .wfjb-playlist-table-wrap .wfjb-table {
    min-width: 760px;
  }

  .wfjb-history-table-wrap .wfjb-table {
    min-width: 920px;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .wfjb-history-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wfjb-history-table-wrap .wfjb-table {
    min-width: 980px;
  }

  .wfjb-history-filter-wrap .wfjb-history-session-select,
  .wfjb-history-filter-wrap .wfjb-date {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .wfjb-widget,
  .wfjb-flat-section,
  .wfjb-archive-section,
  .wfjb-archive-table-wrap,
  .wfjb-playlist-table-wrap,
  .wfjb-history-table-wrap,
  .wfjb-nowplaying-wrap,
  .wfjb-archive-table-wrap .wfjb-table,
  .wfjb-playlist-table-wrap .wfjb-table,
  .wfjb-history-table-wrap .wfjb-table,
  .wfjb-archive-table-wrap .wfjb-table tbody,
  .wfjb-playlist-table-wrap .wfjb-table tbody,
  .wfjb-history-table-wrap .wfjb-table tbody,
  .wfjb-archive-table-wrap .wfjb-table tbody tr,
  .wfjb-playlist-table-wrap .wfjb-table tbody tr,
  .wfjb-history-table-wrap .wfjb-table tbody tr {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .wfjb-table {
    min-width: 0;
  }

  .wfjb-widget {
    overflow-x: hidden;
  }

  .wfjb-form-row--archive-search .wfjb-input {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .wfjb-search-table-wrap {
    display: none;
  }

  .wfjb-search-mobile-wrap {
    display: grid;
    padding: 8px;
  }

  .wfjb-search-mobile-item {
    padding: 9px 10px;
  }

  .wfjb-archive-table-wrap .wfjb-table,
  .wfjb-playlist-table-wrap .wfjb-table,
  .wfjb-history-table-wrap .wfjb-table {
    table-layout: auto !important;
  }

  .wfjb-archive-table-wrap .wfjb-table,
  .wfjb-playlist-table-wrap .wfjb-table,
  .wfjb-history-table-wrap .wfjb-table {
    display: block;
    background: transparent;
  }

  .wfjb-archive-table-wrap .wfjb-table thead,
  .wfjb-playlist-table-wrap .wfjb-table thead,
  .wfjb-history-table-wrap .wfjb-table thead {
    display: none;
  }

  .wfjb-archive-table-wrap .wfjb-table tbody,
  .wfjb-playlist-table-wrap .wfjb-table tbody,
  .wfjb-history-table-wrap .wfjb-table tbody {
    display: grid;
    gap: 10px;
    background: transparent;
  }

  .wfjb-archive-table-wrap .wfjb-table tr,
  .wfjb-playlist-table-wrap .wfjb-table tr,
  .wfjb-history-table-wrap .wfjb-table tr {
    display: block;
    border: 1px solid #2f2f35;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1c;
  }

  .wfjb-archive-table-wrap .wfjb-table td,
  .wfjb-playlist-table-wrap .wfjb-table td,
  .wfjb-history-table-wrap .wfjb-table td {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    width: 100%;
    padding: 10px 12px 9px;
    border-right: 0 !important;
    text-align: left !important;
    background: transparent;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .wfjb-archive-table-wrap .wfjb-table td::before,
  .wfjb-playlist-table-wrap .wfjb-table td::before,
  .wfjb-history-table-wrap .wfjb-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    margin-bottom: 4px;
    color: var(--wfjb-muted);
    font-weight: 600;
    text-align: left;
  }

  .wfjb-archive-table-wrap .wfjb-table td > *,
  .wfjb-playlist-table-wrap .wfjb-table td > *,
  .wfjb-history-table-wrap .wfjb-table td > * {
    max-width: 100%;
  }

  .wfjb-archive-table-wrap .wfjb-table td,
  .wfjb-playlist-table-wrap .wfjb-table td,
  .wfjb-history-table-wrap .wfjb-table td {
    width: 100% !important;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .wfjb-archive-table-wrap .wfjb-table td::before,
  .wfjb-playlist-table-wrap .wfjb-table td::before,
  .wfjb-history-table-wrap .wfjb-table td::before {
    white-space: normal;
  }

  .wfjb-archive-table-wrap .wfjb-table td[data-label="Status"],
  .wfjb-playlist-table-wrap .wfjb-table td[data-label="Push"],
  .wfjb-history-table-wrap .wfjb-table td[data-label="Push"],
  .wfjb-playlist-table-wrap .wfjb-table td[data-label="Dauer"],
  .wfjb-history-table-wrap .wfjb-table td[data-label="Dauer"],
  .wfjb-archive-table-wrap .wfjb-table td[data-label="Dauer"] {
    text-align: left !important;
  }

  .wfjb-archive-table-wrap .wfjb-table td[data-label="Status"] .wfjb-status-dot,
  .wfjb-archive-table-wrap .wfjb-table td[data-label="Status"] .wfjb-pill,
  .wfjb-playlist-table-wrap .wfjb-table td[data-label="Push"],
  .wfjb-history-table-wrap .wfjb-table td[data-label="Push"] {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
  }

  .wfjb-archive-table-wrap .wfjb-table tbody tr {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  .wfjb-archive-table-wrap .wfjb-table tbody td {
    display: none !important;
    padding: 0;
    border: 0 !important;
    background: transparent;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .wfjb-archive-table-wrap .wfjb-table tbody td:nth-child(1) {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    text-align: left !important;
    width: 100% !important;
    padding: 11px 12px !important;
  }

  .wfjb-archive-table-wrap .wfjb-table tbody td::before {
    display: none;
  }

  .wfjb-archive-desktop-id {
    display: none;
  }

  .wfjb-archive-mobile-summary {
    display: block;
    width: 100%;
    color: var(--wfjb-text);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .wfjb-archive-mobile-summary .wfjb-golden-star {
    margin-left: 6px;
  }

  .wfjb-archive-mobile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .wfjb-archive-mobile-status {
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
  }

  .wfjb-archive-mobile-main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .wfjb-archive-mobile-meta,
  .wfjb-archive-mobile-added {
    display: block;
    margin-top: 4px;
    color: var(--wfjb-muted);
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }

  .wfjb-archive-mobile-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wfjb-archive-mobile-add {
    min-width: 30px !important;
    width: 30px !important;
    max-width: 30px !important;
    min-height: 38px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    white-space: nowrap;
    border-radius: 10px;
    flex: 0 0 30px !important;
  }

  .wfjb-archive-mobile-dash {
    display: inline-block;
    min-width: 20px;
    text-align: center;
  }

  .wfjb-playlist-table-wrap .wfjb-table tbody tr {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  .wfjb-playlist-table-wrap .wfjb-table tbody td {
    display: none !important;
    padding: 0;
    border: 0 !important;
    background: transparent;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .wfjb-playlist-table-wrap .wfjb-table tbody td:first-child {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    padding: 12px !important;
    text-align: left !important;
  }

  .wfjb-playlist-table-wrap .wfjb-table tbody td::before {
    display: none;
  }

  .wfjb-playlist-desktop-id {
    display: none;
  }

  .wfjb-playlist-mobile-summary {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .wfjb-playlist-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
  }

  .wfjb-playlist-mobile-id {
    color: var(--wfjb-text);
    font-weight: 700;
    font-size: 15px;
  }

  .wfjb-playlist-mobile-push {
    color: var(--wfjb-muted);
    font-size: 12px;
    white-space: nowrap;
  }

  .wfjb-playlist-mobile-title {
    color: var(--wfjb-text);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .wfjb-playlist-mobile-meta {
    margin-top: 4px;
    color: var(--wfjb-muted);
    font-size: 12px;
    line-height: 1.25;
  }

  .wfjb-history-filter-wrap .wfjb-history-session-select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.2;
    padding: 10px 12px;
  }

  .wfjb-history-table-wrap .wfjb-table tbody tr {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  .wfjb-history-table-wrap .wfjb-table tbody td {
    display: none !important;
    padding: 0;
    border: 0 !important;
    background: transparent;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .wfjb-history-table-wrap .wfjb-table tbody td:first-child {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    padding: 12px !important;
    text-align: left !important;
  }

  .wfjb-history-table-wrap .wfjb-table tbody td::before {
    display: none;
  }

  .wfjb-history-desktop-index {
    display: none;
  }

  .wfjb-history-mobile-summary {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .wfjb-history-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
  }

  .wfjb-history-mobile-rank {
    color: var(--wfjb-text);
    font-weight: 700;
    font-size: 15px;
  }

  .wfjb-history-mobile-title {
    color: var(--wfjb-text);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .wfjb-history-mobile-meta,
  .wfjb-history-mobile-added {
    margin-top: 4px;
    color: var(--wfjb-muted);
    font-size: 12px;
    line-height: 1.25;
  }

  .wfjb-archive-table-wrap .wfjb-table td:last-child,
  .wfjb-playlist-table-wrap .wfjb-table td:last-child,
  .wfjb-history-table-wrap .wfjb-table td:last-child {
    border-bottom: 0 !important;
  }

  .wfjb-archive-table-wrap .wfjb-table tbody tr:last-child td,
  .wfjb-playlist-table-wrap .wfjb-table tbody tr:last-child td,
  .wfjb-history-table-wrap .wfjb-table tbody tr:last-child td {
    border-bottom: 1px solid #2f2f35 !important;
  }

  .wfjb-archive-table-wrap .wfjb-table tbody tr td:last-child,
  .wfjb-playlist-table-wrap .wfjb-table tbody tr td:last-child,
  .wfjb-history-table-wrap .wfjb-table tbody tr td:last-child {
    border-bottom: 0 !important;
  }

  .wfjb-history-filter-wrap,
  .wfjb-nowplaying-body {
    padding: 12px;
  }

  .wfjb-nowplaying-head {
    padding: 10px 12px;
  }
}

.wfjb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow: auto;
}

.wfjb-modal {
  width: min(560px, 100%);
  background: linear-gradient(160deg, #0f172a, #111827);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  color: #f8fafc;
  position: relative;
}

.wfjb-login-modal {
  width: min(460px, 100%);
  padding: 18px 20px;
  text-align: center;
}

.wfjb-modal.wfjb-song-info-modal {
  width: min(418px, 100%);
  background: #1a1a1c !important;
  border: 1px solid #2f2f35;
  text-align: center;
  padding: 18px 22px 20px;
}

.wfjb-modal h3 {
  margin: 0 32px 12px 0;
  color: #ffffff;
}

.wfjb-login-modal h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.wfjb-modal p {
  margin: 7px 0;
}

.wfjb-login-modal p {
  margin: 0 auto 14px;
  max-width: 380px;
  line-height: 1.45;
  color: #f8fafc;
}

.wfjb-song-info-modal h3 {
  margin: 0 0 30px;
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.wfjb-song-info-modal p.wfjb-song-info-line {
  margin: 0 !important;
  line-height: 1.05;
  text-align: center;
}

.wfjb-song-info-artist,
.wfjb-song-info-title {
  font-size: 17px;
}

.wfjb-song-info-modal p.wfjb-song-info-artist {
  margin-bottom: 0 !important;
}

.wfjb-song-info-modal p.wfjb-song-info-title {
  margin-top: 0 !important;
}

.wfjb-song-info-modal p.wfjb-song-info-meta {
  margin-bottom: 0 !important;
}

.wfjb-song-info-block {
  margin-top: 34px;
}

.wfjb-song-info-modal p.wfjb-song-info-genre {
  margin-bottom: 0 !important;
}

.wfjb-login-error {
  min-height: 20px;
  margin-top: 8px;
  color: #fca5a5;
}

.wfjb-login-error:empty {
  display: none;
}

.wfjb-login-modal .wfjb-login-error {
  min-height: 0;
  margin: 0 0 8px;
}

.wfjb-login-actions {
  justify-content: flex-end;
  margin-bottom: 0;
}

.wfjb-login-modal .wfjb-login-actions {
  justify-content: center;
  margin-top: 2px;
}

.wfjb-login-modal .wfjb-button {
  min-height: 50px;
  padding: 10px 20px;
  min-width: 200px;
}

.wfjb-admin-modal {
  width: min(920px, 100%);
  background: #1a1a1c;
  border: 1px solid #2f2f35;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  padding: 18px 20px 20px;
}

.wfjb-admin-modal h3 {
  margin-bottom: 8px;
}

.wfjb-admin-modal-meta {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #2f2f35;
  border-radius: 10px;
  background: #121214;
  color: var(--wfjb-muted);
  font-size: 13px;
}

.wfjb-admin-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  max-height: min(68vh, 860px);
  overflow: auto;
  padding-right: 4px;
}

.wfjb-admin-modal-body,
.wfjb-admin-checkbox-grid {
  scrollbar-width: thin;
  scrollbar-color: #4b5563 #121214;
}

.wfjb-admin-modal-body::-webkit-scrollbar,
.wfjb-admin-checkbox-grid::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.wfjb-admin-modal-body::-webkit-scrollbar-track,
.wfjb-admin-checkbox-grid::-webkit-scrollbar-track {
  background: #121214;
  border-radius: 999px;
}

.wfjb-admin-modal-body::-webkit-scrollbar-thumb,
.wfjb-admin-checkbox-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4b5563, #374151);
  border-radius: 999px;
  border: 2px solid #121214;
}

.wfjb-admin-modal-body::-webkit-scrollbar-thumb:hover,
.wfjb-admin-checkbox-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6b7280, #4b5563);
}

.wfjb-admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.wfjb-admin-modal-actions-info {
  margin-right: auto;
  align-self: center;
  font-size: 13px;
}

.wfjb-admin-song-editor-modal {
  width: min(760px, 100%);
}

.wfjb-admin-genre-modal {
  width: min(560px, calc(100vw - 24px));
}

.wfjb-archive-genre-filter-modal {
  width: min(900px, calc(100vw - 24px));
}

.wfjb-archive-genre-filter-modal .wfjb-admin-modal-body {
  max-height: min(94vh, 1400px);
}

.wfjb-archive-genre-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.wfjb-archive-genre-filter-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  margin-top: 2px;
  max-height: none;
  overflow: visible;
  gap: 8px;
  padding-right: 0;
}

.wfjb-archive-genre-filter-grid .wfjb-admin-checkbox-chip {
  width: auto;
  min-width: 0;
  justify-content: flex-start;
}

.wfjb-admin-song-card {
  border: 1px solid #2f2f35;
  border-radius: 12px;
  background: #121214;
  overflow: hidden;
}

.wfjb-admin-song-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.wfjb-admin-song-toggle:hover {
  background: rgba(255, 255, 255, 0.02);
}

.wfjb-admin-song-toggle-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.wfjb-admin-song-code {
  flex: 0 0 auto;
  min-width: 66px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  font-weight: 700;
  text-align: center;
}

.wfjb-admin-song-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wfjb-admin-song-summary strong,
.wfjb-admin-song-summary span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wfjb-admin-song-summary strong {
  color: #fff;
}

.wfjb-admin-song-toggle-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
}

.wfjb-admin-song-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1f2937;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.wfjb-admin-song-status-pill {
  flex: 0 0 auto;
}

.wfjb-admin-song-card-body {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid #2f2f35;
}

.wfjb-admin-song-card.is-expanded .wfjb-admin-song-card-body {
  display: block;
}

.wfjb-admin-song-card.is-expanded .wfjb-admin-song-toggle-label {
  background: #0f172a;
  color: #f8fafc;
}

.wfjb-admin-song-editor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wfjb-admin-song-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wfjb-admin-song-grid-secondary {
  grid-template-columns: minmax(0, 1fr) 116px minmax(0, 1.6fr);
}

.wfjb-admin-song-grid .wfjb-input,
.wfjb-admin-song-grid .wfjb-date {
  height: 36px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.wfjb-admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wfjb-admin-field > span {
  color: var(--wfjb-muted);
  font-size: 13px;
}

.wfjb-admin-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.wfjb-admin-checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #2f2f35;
  border-radius: 8px;
  background: #121214;
  cursor: pointer;
  color: #f8fafc;
  font-size: 13px;
}

.wfjb-admin-checkbox-chip:hover {
  border-color: #475569;
}

.wfjb-admin-checkbox-chip:has(input:checked) {
  border-color: #2ea3f2;
  background: #121214;
}

.wfjb-admin-checkbox-chip input {
  margin: 0;
}

.wfjb-admin-song-row-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.wfjb-admin-genre-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wfjb-admin-genre-row,
.wfjb-admin-genre-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 96px;
  gap: 8px;
  align-items: end;
}

.wfjb-admin-genre-row .wfjb-input,
.wfjb-admin-genre-create .wfjb-input,
.wfjb-admin-genre-row .wfjb-button,
.wfjb-admin-genre-create .wfjb-button {
  min-height: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.wfjb-admin-genre-row .wfjb-input,
.wfjb-admin-genre-create .wfjb-input {
  padding-left: 14px;
  padding-right: 14px;
}

.wfjb-admin-genre-create .wfjb-admin-field {
  margin: 0;
}

.wfjb-admin-genre-row .wfjb-button,
.wfjb-admin-genre-create .wfjb-button {
  white-space: nowrap;
}

.wfjb-admin-genre-create {
  grid-template-columns: minmax(0, 1fr) 118px;
}

.wfjb-modal-archive-mobile {
  width: min(680px, calc(100dvw - 24px));
  max-width: calc(100dvw - 24px);
  max-height: calc(100dvh - 24px);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
  overflow: hidden;
}

.wfjb-archive-mobile-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #2f2f35;
  border-radius: 12px;
  overflow: auto;
  background: rgba(26, 26, 28, 0.9);
  max-height: calc(100dvh - 24px);
  overscroll-behavior: contain;
}

.wfjb-archive-mobile-detail-cell,
.wfjb-archive-mobile-detail-row {
  padding: 18px 20px;
  border-bottom: 1px solid #2f2f35;
}

.wfjb-archive-mobile-detail-cell {
  text-align: center;
}

.wfjb-archive-mobile-detail-cell:not(:nth-child(3)) {
  border-right: 1px solid #2f2f35;
}

.wfjb-archive-mobile-detail-row {
  grid-column: 1 / -1;
}

.wfjb-archive-mobile-detail-row:last-child {
  border-bottom: 0;
}

.wfjb-archive-mobile-detail-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--wfjb-muted);
  margin-bottom: 10px;
}

.wfjb-archive-mobile-detail-value {
  font-size: 18px;
  color: var(--wfjb-text);
}

.wfjb-archive-mobile-detail-cell .wfjb-archive-mobile-detail-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wfjb-archive-mobile-status-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

@media (max-width: 760px) {
  .wfjb-archive-filter-row {
    align-items: stretch;
    gap: 12px;
  }

  .wfjb-archive-initials {
    grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
  }

  .wfjb-archive-initial-button {
    min-width: 0;
    width: 100%;
    min-height: var(--wfjb-archive-control-height);
    height: var(--wfjb-archive-control-height);
    padding: 0;
  }

  .wfjb-archive-filter-meta-row,
  .wfjb-archive-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .wfjb-archive-page-meta,
  .wfjb-archive-page-actions {
    justify-content: center;
  }

  .wfjb-archive-page-size {
    justify-content: center;
  }

  .wfjb-archive-genre-filter-toolbar {
    justify-content: stretch;
  }

  .wfjb-archive-genre-filter-toolbar .wfjb-button {
    width: 100%;
  }

  .wfjb-admin-modal-actions-info {
    width: 100%;
    margin-right: 0;
    text-align: center;
  }

  .wfjb-archive-genre-filter-grid {
    justify-content: center;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .wfjb-modal-backdrop {
    padding: 10px 12px;
  }

  .wfjb-modal-archive-mobile {
    width: min(760px, calc(100dvw - 24px));
    max-width: calc(100dvw - 24px);
    max-height: calc(100dvh - 20px);
  }

  .wfjb-archive-mobile-detail-grid {
    max-height: calc(100dvh - 20px);
  }

  .wfjb-archive-mobile-detail-cell,
  .wfjb-archive-mobile-detail-row {
    padding: 14px 16px;
  }

  .wfjb-archive-mobile-detail-label {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .wfjb-archive-mobile-detail-value {
    font-size: 16px;
  }
}

.wfjb-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #004256;
  background: linear-gradient(180deg, #001216, #004256);
  color: #f8fafc;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  font-weight: 600;
}

.wfjb-modal-close:hover {
  background: linear-gradient(180deg, #00161b, #05556f);
  border-color: #05556f;
}



.wfjb-archive-table-wrap .wfjb-table thead th:nth-child(1) {
  text-align: center !important;
}

@media (min-width: 761px) {
  .wfjb-search-mobile-wrap {
    display: none;
  }

  .wfjb-archive-table-wrap .wfjb-table tbody td:nth-child(1) {
    text-align: center !important;
    justify-content: center;
  }
}

.wfjb-search-progress {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbeafe;
}

.wfjb-search-progress-label {
  white-space: nowrap;
  font-size: 13px;
}

.wfjb-search-progress-bar {
  flex: 1;
  min-width: 180px;
  height: 8px;
  border-radius: 999px;
  background: #121214;
  border: 1px solid #2f2f35;
  overflow: hidden;
}

.wfjb-search-progress-fill {
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #001216, #004256);
  animation: wfjb-search-progress-slide 1.1s ease-in-out infinite alternate;
}

@keyframes wfjb-search-progress-slide {
  from { transform: translateX(-65%); }
  to { transform: translateX(165%); }
}
.wfjb-form-row--archive-search [data-search-clear].wfjb-button-secondary {
  background: linear-gradient(180deg, #001216, #004256);
  border-color: #004256;
}

.wfjb-form-row--archive-search [data-search-clear].wfjb-button-secondary:hover {
  background: linear-gradient(180deg, #00161b, #05556f);
  border-color: #05556f;
}



.wfjb-admin-approval-modal {
  width: min(1120px, calc(100dvw - 24px));
  max-width: calc(100dvw - 24px);
}

.wfjb-admin-approval-modal .wfjb-admin-modal-body {
  max-height: min(82vh, 1040px);
  padding-right: 6px;
}

.wfjb-admin-approval-modal .wfjb-admin-song-card {
  overflow: visible;
}

.wfjb-admin-approval-modal .wfjb-admin-song-toggle,
.wfjb-admin-approval-modal .wfjb-admin-song-toggle-main {
  align-items: flex-start;
}

.wfjb-admin-approval-modal .wfjb-admin-song-summary {
  gap: 4px;
}

.wfjb-admin-approval-modal .wfjb-admin-song-summary strong,
.wfjb-admin-approval-modal .wfjb-admin-song-summary span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.wfjb-admin-approval-modal .wfjb-admin-song-toggle-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: center;
  column-gap: 12px;
  row-gap: 8px;
  min-width: 220px;
  max-width: 44%;
}

.wfjb-admin-approval-modal .wfjb-admin-song-toggle-meta .wfjb-subtle {
  white-space: normal;
  line-height: 1.4;
  text-align: right;
}

.wfjb-admin-approval-modal .wfjb-admin-song-card-body {
  padding: 12px 14px 16px;
}

.wfjb-admin-approval-modal .wfjb-admin-checkbox-grid {
  max-height: none;
  overflow: visible;
}

.wfjb-admin-approval-modal .wfjb-admin-song-row-actions {
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .wfjb-admin-approval-modal {
    width: min(980px, calc(100dvw - 20px));
    max-width: calc(100dvw - 20px);
  }

  .wfjb-admin-approval-modal .wfjb-admin-modal-body {
    max-height: min(86vh, 1080px);
  }

  .wfjb-admin-approval-modal .wfjb-admin-song-toggle {
    flex-direction: column;
    align-items: stretch;
  }

  .wfjb-admin-approval-modal .wfjb-admin-song-toggle-meta {
    max-width: none;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    align-self: stretch;
  }

  .wfjb-admin-approval-modal .wfjb-admin-song-toggle-meta .wfjb-subtle {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .wfjb-admin-approval-modal {
    width: calc(100dvw - 16px);
    max-width: calc(100dvw - 16px);
    padding: 14px;
  }

  .wfjb-admin-approval-modal .wfjb-admin-modal-body {
    max-height: calc(100dvh - 176px);
    gap: 12px;
    margin-top: 12px;
    padding-right: 2px;
  }

  .wfjb-admin-approval-modal .wfjb-admin-modal-meta {
    margin-top: 8px;
    padding: 10px;
    line-height: 1.45;
  }

  .wfjb-admin-approval-modal .wfjb-admin-song-toggle,
  .wfjb-admin-approval-modal .wfjb-admin-song-card-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wfjb-admin-approval-modal .wfjb-admin-song-toggle-meta {
    gap: 8px;
    justify-content: space-between;
  }

  .wfjb-admin-approval-modal .wfjb-admin-song-toggle-label {
    min-width: 0;
  }

  .wfjb-admin-approval-modal .wfjb-admin-song-grid,
  .wfjb-admin-approval-modal .wfjb-admin-song-grid-secondary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wfjb-admin-approval-modal .wfjb-admin-song-row-actions {
    justify-content: stretch;
  }

  .wfjb-admin-approval-modal .wfjb-admin-song-row-actions .wfjb-button {
    width: 100%;
  }
}