/* Cbshop.in – Trending Sound Effects
   Page-specific styles only. The shared creator-tools.css controls the
   sidebar/main layout; do not override .cb-tools-layout here. */

.cb-trending-sfx-page,
.cb-trending-sfx-page * { box-sizing: border-box; }

.cb-trending-sfx-page { width: 100%; min-width: 0; color: #202938; }
.cb-trending-sfx-page .cb-tools-main { min-width: 0; }
.cb-trending-sfx-page .cb-tools-hero,
.cb-trending-sfx-page .cb-tools-section,
.cb-trending-sfx-page .cb-tools-seo-content { min-width: 0; max-width: 100%; }

.cb-trending-sfx-page .cb-sfx-library-tools {
  display: block;
  width: 100%; min-width: 0; padding: clamp(15px, 2.5vw, 26px);
  border: 1px solid #e5eaf1; border-radius: 16px; background: #fff;
  box-shadow: 0 4px 18px rgba(20,35,60,.04);
}
.cb-trending-sfx-page .cb-sfx-library-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px; margin: 0 0 22px;
}
.cb-trending-sfx-page .cb-sfx-library-summary > div {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 15px 17px; border: 1px solid #e5eaf1;
  border-radius: 13px; background: #f8fafc;
}
.cb-trending-sfx-page .cb-sfx-library-summary strong {
  font-size: 22px; line-height: 1.2; color: #172554;
}
.cb-trending-sfx-page .cb-sfx-library-summary span { font-size: 12px; color: #667085; }

.cb-trending-sfx-page .cb-sfx-library-controls {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,240px);
  gap: 10px; margin: 0 0 10px; min-width: 0;
}
.cb-trending-sfx-page .cb-sfx-searchbox { display: block; min-width: 0; }
.cb-trending-sfx-page .cb-sfx-library-controls input,
.cb-trending-sfx-page .cb-sfx-library-controls select {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 46px;
  padding: 11px 13px; border: 1px solid #d8dee8; border-radius: 10px;
  background: #fff; color: #263449; font: inherit;
}
.cb-trending-sfx-page .cb-sfx-library-status {
  margin: 0 0 24px; color: #667085; font-size: 13px; line-height: 1.5;
}
.cb-trending-sfx-page .cb-sfx-collection {
  min-width: 0; padding-top: 22px; margin-top: 22px;
  border-top: 1px solid #e8edf3;
}
.cb-trending-sfx-page .cb-sfx-collection-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; min-width: 0; margin-bottom: 15px;
}
.cb-trending-sfx-page .cb-sfx-collection-heading > div { min-width: 0; }
.cb-trending-sfx-page .cb-sfx-collection-heading h2 {
  margin: 4px 0; color: #172033; font-size: clamp(19px,2.5vw,24px);
  line-height: 1.25;
}
.cb-trending-sfx-page .cb-sfx-collection-heading p {
  max-width: 680px; margin: 7px 0 0; color: #667085;
  font-size: 13px; line-height: 1.6;
}
.cb-trending-sfx-page .cb-sfx-collection-kicker {
  color: #667085; font-size: 10px; font-weight: 800; letter-spacing: .1em;
}
.cb-trending-sfx-page .cb-sfx-count {
  flex: 0 0 auto; padding: 6px 10px; border-radius: 20px;
  background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 700;
}
.cb-trending-sfx-page .cb-sfx-library-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px; min-width: 0;
}
.cb-trending-sfx-page .cb-sfx-library-card {
  min-width: 0; padding: 14px; border: 1px solid #e2e8f0;
  border-radius: 13px; background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.cb-trending-sfx-page .cb-sfx-library-card:hover {
  border-color: #c7d2fe; box-shadow: 0 5px 18px rgba(15,23,42,.05);
}
.cb-trending-sfx-page .cb-sfx-library-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 9px;
}
.cb-trending-sfx-page .cb-sfx-wave-icon {
  display: grid; place-items: center; flex: 0 0 30px;
  width: 30px; height: 30px; border-radius: 9px;
  background: #eef2ff; color: #4338ca; font-size: 18px;
}
.cb-trending-sfx-page .cb-sfx-file-type {
  padding: 4px 6px; border-radius: 5px; background: #f1f5f9;
  color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .06em;
}
.cb-trending-sfx-page .cb-sfx-library-card h3 {
  margin: 0 0 4px; color: #263449; font-size: 15px; line-height: 1.4;
  overflow-wrap: anywhere;
}
.cb-trending-sfx-page .cb-sfx-file-name {
  margin: 0; color: #98a2b3; font-size: 11px; line-height: 1.5;
  overflow-wrap: anywhere;
}
.cb-trending-sfx-page .cb-sfx-library-card audio { display: none; }
.cb-trending-sfx-page .cb-sfx-library-actions {
  display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; margin-top: 13px;
}
.cb-trending-sfx-page .cb-sfx-library-actions button,
.cb-trending-sfx-page .cb-sfx-library-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 34px; max-width: 100%; padding: 7px 9px;
  border: 1px solid #dce3ed; border-radius: 8px; background: #fff;
  color: #344054; font-family: inherit; font-size: 11px; font-weight: 600;
  line-height: 1.2; text-decoration: none; cursor: pointer;
}
.cb-trending-sfx-page .cb-sfx-library-actions button:hover,
.cb-trending-sfx-page .cb-sfx-library-actions a:hover {
  border-color: #a5b4fc; background: #f5f6ff; color: #3730a3;
}
.cb-trending-sfx-page .cb-sfx-library-actions .cb-sfx-action-primary {
  border-color: #4f46e5; background: #4f46e5; color: #fff;
}
.cb-trending-sfx-page .cb-sfx-library-actions .cb-sfx-action-primary:hover {
  border-color: #4338ca; background: #4338ca; color: #fff;
}
.cb-trending-sfx-page .cb-sfx-card-feedback {
  display: block; min-height: 15px; margin-top: 7px;
  color: #64748b; font-size: 11px; line-height: 1.4;
}
.cb-trending-sfx-page .cb-sfx-empty-folder,
.cb-trending-sfx-page .cb-sfx-no-results {
  padding: 18px; border: 1px dashed #cbd5e1; border-radius: 10px;
  color: #64748b; font-size: 13px; line-height: 1.6;
}
.cb-trending-sfx-page .cb-sfx-generated-section {
  min-width: 0; padding-top: 28px; margin-top: 30px;
  border-top: 2px solid #e8edf3;
}
.cb-trending-sfx-page .cb-sfx-generated-card { background: #fafaff; }
.cb-trending-sfx-page .cb-sfx-generated-card .cb-sfx-wave-icon {
  background: #ede9fe; color: #6d28d9;
}
.cb-trending-sfx-page .cb-sfx-generated-card .cb-sfx-generated-description {
  min-height: 38px; margin: 0 0 12px; color: #758196;
  font-size: 13px; line-height: 1.5;
}
.cb-trending-sfx-page .cb-sfx-library-actions button:disabled {
  opacity: .65; cursor: wait;
}
.cb-trending-sfx-page .cb-sfx-license {
  margin-top: 22px; padding: 14px 16px; border: 1px solid #f1dfb8;
  border-radius: 12px; background: #fffaf0;
}
.cb-trending-sfx-page .cb-sfx-license strong { color: #8a5b10; font-size: 13px; }
.cb-trending-sfx-page .cb-sfx-license p {
  margin: 5px 0 0; color: #795d2b; font-size: 12px; line-height: 1.65;
}
.cb-trending-sfx-page .cb-sfx-library-card[hidden],
.cb-trending-sfx-page .cb-sfx-collection[hidden],
.cb-trending-sfx-page .cb-sfx-no-results[hidden] { display: none !important; }

@media (max-width: 680px) {
  .cb-trending-sfx-page .cb-sfx-library-controls { grid-template-columns: minmax(0,1fr); }
  .cb-trending-sfx-page .cb-sfx-library-grid { grid-template-columns: minmax(0,1fr); }
  .cb-trending-sfx-page .cb-sfx-library-actions button,
  .cb-trending-sfx-page .cb-sfx-library-actions a { flex: 1 1 calc(50% - 7px); }
  .cb-trending-sfx-page .cb-sfx-collection-heading { align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .cb-trending-sfx-page .cb-sfx-library-tools { padding: 14px; }
  .cb-trending-sfx-page .cb-sfx-library-summary { gap: 7px; }
  .cb-trending-sfx-page .cb-sfx-library-summary > div { padding: 11px 9px; }
  .cb-trending-sfx-page .cb-sfx-library-summary strong { font-size: 18px; }
  .cb-trending-sfx-page .cb-sfx-library-summary span { font-size: 10px; }
}
