/* ===========================
   AUDIO PAGE (scoped)
=========================== */

/* Keep "Sort by" (and other labels) on one line */
.dccam-toolbar-left label{
  white-space: nowrap;
}

/* Also protect individual text spans if any */
.dccam-toolbar-left span{
  white-space: nowrap;
}

.dccam-toolbar-left{
  gap: 10px;
}

.dccam-toolbar-left label{
  font-size: 13px;
}



.dccam-audio-page { color:#242424; }
.dccam-audio-page * { box-sizing: border-box; }

/* TOP SEARCH BAR */
.dccam-audio-topbar { padding: 18px 0 10px; }
.dccam-audio-form{
  display:flex;
  gap:0;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.dccam-audio-form select,
.dccam-audio-form input{
  height:40px;
  border:1px solid #000;
  border-radius:0;
  padding:0 12px;
  font-size:14px;
  color:#000;
}
#dccam_t_seg{ width:200px; }
#dccam_t_cat{ width:120px; border-left:0; }
#dccam_t_word{
  width:320px;
  border-left:0;
}
#dccamAudioSubmit{
  height:40px;
  border:1px solid #0076ad;
  background:#0076ad;
  color:#fff;
  padding:0 18px;
  margin-left:10px;
  cursor:pointer;
}
#dccamAudioSubmit:hover{ background:#002347; border-color:#002347; }

/* LAYOUT */
.dccam-audio-layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:24px;
  padding: 10px 0 40px;
}
@media (max-width: 991px){
  .dccam-audio-layout{ grid-template-columns: 1fr; }
}

/* SIDEBAR */
.dccam-audio-sidebar .widget{
  padding: 12px 0;
  border-top: 1px solid #BFBFBF;
}
.dccam-refine-heading{
  font-weight:700;
  font-size:14px;
  margin:0 0 10px;
  position:relative;
  padding-right:22px;
  cursor:pointer;
}
.dccam-refine-heading.is-collapsible:after{
  content:"+";
  position:absolute;
  right:0;
  top:0;
  font-size:18px;
  line-height:14px;
}
.dccam-refine-heading.is-open:after{
  transform: rotate(-225deg);
}
.dccam-audio-sidebar a{
  color:#0076ad;
  text-decoration:none;
}
.dccam-audio-sidebar a:hover{ text-decoration:underline; color:#000; }
.dccam-count{ float:right; margin-right:10px; color:#242424; }

/* TOOLBAR */
.dccam-audio-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 8px 0 12px;
}
.dccam-toolbar-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.dccam-toolbar-left label{ display:flex; align-items:center; gap:8px; font-size:13px; }
.dccam-toolbar-left select{
  border:1px solid #00000029;
  border-radius:4px;
  padding:6px 10px;
  height:32px;
}
.dccam-viewbtn{
  width:40px;
  height:40px;
  border:1px solid #00000029;
  border-radius:6px;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.dccam-viewbtn svg path{ fill:#000; }
.dccam-viewbtn.is-active{
  background:#0076ad;
  border-color:#0076ad;
}
.dccam-viewbtn.is-active svg path{ fill:#fff; }

/* LOADER */
.dccam-loader{ padding:10px 0; }
.dccam-loader-inner{
  background:#f6f6f6;
  border:1px solid #efefef;
  padding:12px;
  border-radius:10px;
}

/* CARDS COMMON */
.dccam-cards{ width:100%; }
.dccam-card{
  background:#F6F6F6;
  border:1px solid #EFEFEF;
  border-radius:10px;
  padding:16px;
}
.dccam-card:hover{ border-color:#BFBFBF; }

.dccam-thumb{
  width:150px;
  height:150px;
  border-radius:8px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  flex:0 0 150px;
}
.dccam-meta{ font-size:14px; color:#000; margin:0 0 8px; }
.dccam-title{
  margin:0 0 10px;
  font-size:14px;
  color:#0076ad;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2; /* limit title length */
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.dccam-actions{
  display:flex;
  gap:14px;
  margin-top:10px;
  flex-wrap:wrap;
}
.dccam-actions a,
.dccam-actions button{
  border:0;
  padding:0;
  background:transparent;
  color:#0076ad;
  cursor:pointer;
  font-size:13px;
}
.dccam-actions a:hover,
.dccam-actions button:hover{ color:#002347; text-decoration:underline; }

.dccam-audio-player{ width:100%; margin-top:8px; }

/* GRID VIEW */
.dccam-cards--grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 1199px){
  .dccam-cards--grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px){
  .dccam-cards--grid{ grid-template-columns: 1fr; }
}
.dccam-card--grid .dccam-card-inner{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:stretch;
}
.dccam-card--grid .dccam-thumb{ margin:0 auto; }

/* LIST VIEW (fix broken layout) */
.dccam-cards--list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.dccam-card--list .dccam-card-inner{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
@media (max-width: 575px){
  .dccam-card--list .dccam-card-inner{
    flex-direction:column;
  }
  .dccam-thumb{ width:100%; height:180px; flex:unset; }
}

/* Pagination */
.dccam-audio-results .pagination{
  margin: 10px 0 0;
  border-top: 1px solid #BFBFBF;
  padding: 10px 0;
  list-style:none;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.dccam-audio-results .page-link{
  border:none;
  background:transparent;
  color:#0076ad;
  font-weight:700;
  font-size:14px;
  padding:3px 8px;
  cursor:pointer;
}
.dccam-audio-results .page-link:hover{ text-decoration:underline; color:#000; }
.dccam-audio-results .page-item.active .page-link{
  background:#0076ad;
  color:#fff;
  border-radius:6px;
}

/* TOOLBAR - move Sort/Show/Language to the right next to view buttons */
.dccam-audio-toolbar{
  justify-content: flex-end;   /* instead of space-between */
  gap: 14px;
}

.dccam-toolbar-left{
  margin-left: 0;             /* remove auto push */
}

.dccam-toolbar-right{
  margin-left: 0;
}

/* Optional: make controls tighter + aligned */
.dccam-toolbar-left label{
  gap: 6px;
}
.dccam-toolbar-left select{
  height: 34px;
}

/* Mobile: allow wrap nicely */
@media (max-width: 768px){
  .dccam-audio-toolbar{
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .dccam-toolbar-left{
    width: 100%;
    justify-content: flex-end;
  }
}
