/* Public catalog browser (ported from Catalog Page.php) */
.catalog-browser { max-width: 1400px; margin: 0 auto; }
#selection-panel {
  width: 100%; margin-bottom: 20px; padding: 20px;
  border: 2px solid #2c5530; border-radius: 8px; background: #f9f9f9; box-sizing: border-box;
}
.catalog-action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.catalog-action-bar button {
  flex: 1; min-width: 140px; padding: 10px; border: none; border-radius: 5px;
  cursor: pointer; font-weight: bold; white-space: nowrap; color: #fff;
}
.catalog-filters { margin-bottom: 20px; }
.catalog-filters input[type="search"] {
  width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px;
  font-size: 16px; margin-bottom: 10px; box-sizing: border-box;
}
.catalog-filter-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; align-items: end;
}
.catalog-filter-grid label { display: block; margin-bottom: 5px; font-weight: bold; color: #2c5530; }
.catalog-filter-grid select, .catalog-filter-grid button {
  width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;
}
.kittyjack-catalog-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kittyjack-catalog-table thead tr { background: #2c5530; color: white; }
.kittyjack-catalog-table th, .kittyjack-catalog-table td {
  padding: 8px 10px; text-align: left; border: 1px solid #ddd;
}
.song-row { cursor: pointer; }
.kj-writers-btn {
  background: #3498db; color: #fff; border: none; padding: 4px 8px;
  border-radius: 3px; cursor: pointer; font-size: 11px; margin-left: 5px;
}
.kj-modal { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(0,0,0,0.7); }
.kj-modal-content {
  background: #fff; margin: 5% auto; padding: 30px; border-radius: 8px;
  max-width: 700px; position: relative; max-height: 85vh; overflow-y: auto;
}
.kj-modal-close { position: absolute; right: 15px; top: 15px; font-size: 28px; cursor: pointer; color: #999; }
#kj-lic-modal, #kj-meta-modal, #kj-auth-modal, #kj-files-modal {
  display: none; position: fixed; z-index: 10000; inset: 0; background: rgba(0,0,0,0.7);
}
#kj-lic-modal-content, #kj-meta-modal-content {
  background: #fff; margin: 2% auto; padding: 30px; border-radius: 8px;
  max-width: 960px; width: 92%; position: relative; max-height: 92vh; overflow-y: auto;
}
#kj-auth-modal-content, #kj-files-modal-content {
  background: #fff; margin: 5% auto; padding: 30px; border-radius: 8px;
  max-width: 600px; width: 92%; position: relative; max-height: 85vh; overflow-y: auto;
}
.kj-lic-grid, .kj-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 20px; border: 1px solid #e0e0e0; }
.kj-lic-item, .kj-meta-item { padding: 10px 12px; border-bottom: 1px solid #e0e0e0; font-size: 14px; }
.kj-lic-item:nth-child(odd), .kj-meta-item:nth-child(odd) { border-right: 1px solid #e0e0e0; }
.kj-meta-item-full { padding: 10px 12px; border-bottom: 1px solid #e0e0e0; font-size: 14px; grid-column: 1 / -1; }
.kj-lic-label, .kj-meta-label { color: #2c5530; font-weight: bold; margin-right: 8px; }
.kj-meta-section { background: #2c5530; color: #fff; padding: 8px 12px; font-size: 14px; font-weight: bold; grid-column: 1 / -1; }
.kj-split-header { background: #2c5530; color: #fff; padding: 10px 12px; font-size: 15px; font-weight: bold; }
.kj-split-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.kj-split-table th { background: #f5f5f5; padding: 8px 10px; border: 1px solid #ddd; text-align: left; font-size: 13px; }
.kj-split-table td { padding: 8px 10px; border: 1px solid #ddd; font-size: 13px; }
.kj-clearance-badge {
  background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 4px;
  padding: 12px 16px; text-align: center; margin-bottom: 20px; font-size: 13px;
}
.kj-panel-title { color: #2c5530; border-bottom: 2px solid #2c5530; padding-bottom: 8px; margin-top: 0; }
.kj-panel-subtitle { font-size: 16px; font-weight: bold; color: #333; margin-top: -10px; margin-bottom: 16px; }
.kj-auth-box { background: #f9f9f9; padding: 20px; border-radius: 6px; border: 1px solid #e0e0e0; }
.kj-auth-item { padding: 12px 0; border-bottom: 1px solid #e0e0e0; font-size: 15px; }
.kj-auth-label { color: #2c5530; font-weight: bold; margin-right: 8px; }
.kj-muted { font-size: 12px; color: #555; }
.kj-btn-close { background: #2c5530; color: #fff; padding: 10px 30px; border: none; border-radius: 4px; cursor: pointer; }
.kj-file-item { padding: 12px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 10px; }
.kj-btn-download-direct {
  background: #2c5530; color: #fff; border: none; padding: 6px 14px;
  border-radius: 4px; cursor: pointer; font-size: 13px; text-decoration: none; display: inline-block;
}
.catalog-audio-player { width: 150px; height: 30px; }
.stop-button {
  background: #e74c3c; color: white; border: none; padding: 5px 10px;
  border-radius: 3px; cursor: pointer; font-size: 11px; font-weight: bold;
}
