/* CamTV Catalog Models PRO */
.camtvCatalog{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
  margin: 18px 0;
}

/* Header */
.camtvCatalog__header{
  display:flex; flex-wrap:wrap; gap:14px;
  align-items:flex-end; justify-content:space-between;
  margin-bottom: 12px;
}
.camtvCatalog__titleWrap{ display:flex; flex-direction:column; gap:10px; }
.camtvCatalog__title{ margin:0; font-size:22px; line-height:1.2; }

/* Total destacado */
.camtvCatalog__total{
  display:flex; align-items:baseline; gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(6px);
  width: fit-content;
}
.camtvCatalog__totalNum{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.camtvCatalog__totalText{
  opacity: .80;
  font-weight: 700;
}

/* Controls */
.camtvCatalog__controls{
  display:flex; flex-wrap:wrap; gap:10px;
  align-items:center;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
}

.camtvCatalog__input,
.camtvCatalog__select{
  height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #111;
  outline: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.camtvCatalog__input{ min-width: 210px; }
.camtvCatalog__select{ min-width: 220px; }

.camtvCatalog__input:focus,
.camtvCatalog__select:focus{
  border-color: rgba(17,17,17,.45);
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}

.camtvCatalog__btnPrimary{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #111;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.camtvCatalog__btnPrimary:hover{ filter: brightness(1.05); }
.camtvCatalog__btnPrimary:active{ transform: translateY(1px); }

.camtvCatalog__segmented{
  display:flex;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.camtvCatalog__segBtn{
  height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  cursor:pointer;
  color:#111;
}
.camtvCatalog__segBtn.isActive{
  background:#111;
  color:#fff;
}

/* Status */
.camtvCatalog__status{
  margin: 8px 0 12px;
  opacity: .85;
  min-height: 18px;
}
.camtvCatalog__status[data-kind="error"]{ opacity: 1; font-weight: 800; }

/* Grid / list */
.camtvCatalog__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
}
.camtvCatalog__grid.isList{ grid-template-columns:1fr; }

/* Card */
.ctmCard{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  overflow: hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.camtvCatalog__grid.isList .ctmCard{ flex-direction:row; }

.ctmCard__media{
  position: relative;
  display:block;
  aspect-ratio: 1/1;
  background:#f3f3f3;
  cursor:pointer;
}
.camtvCatalog__grid.isList .ctmCard__media{
  width: 220px;
  aspect-ratio: auto;
}
.ctmCard__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ctmCard__body{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.ctmCard__top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.ctmCard__user{
  font-weight: 900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ctmCard__pill{
  font-size:12px;
  padding: 4px 10px;
  border-radius:999px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
}

.ctmCard__meta{
  display:grid;
  gap:6px;
  font-size:13px;
  opacity:.92;
}
.ctmCard__metaRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.ctmMetaKey{ opacity:.7; }
.ctmMetaVal{ font-weight:700; }

.ctmCard__open{
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  align-self:flex-start;
}
.ctmCard__open:hover{ background: rgba(0,0,0,.04); }

/* Infinite spinner */
.camtvCatalog__infinite{
  display:flex;
  justify-content:center;
  margin: 18px 0 4px;
  min-height: 44px;
}
.camtvCatalog__loader{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,.12);
  border-top-color: rgba(0,0,0,.45);
  animation: ctmspin 0.9s linear infinite;
}
.camtvCatalog__loader.isHidden{ display:none; }
@keyframes ctmspin { to { transform: rotate(360deg); } }

/* Modal */
.ctmModal[hidden]{ display:none; }
.ctmModal{ position:fixed; inset:0; z-index:9999; }
.ctmModal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.58); }
.ctmModal__panel{
  position:relative;
  max-width: 1080px;
  margin: 4vh auto;
  background:#fff;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.34);
}
.ctmModal__close{
  position:absolute;
  top:12px; right:12px;
  z-index:6;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color:#fff;
  cursor:pointer;
  backdrop-filter: blur(6px);
}
.ctmModal__close:hover{ background: rgba(0,0,0,.48); }

/* Premium modal layout */
.ctmModalHero{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  background: #0f0f10;
  color: #fff;
}
.ctmModalHero__media{
  background:#111;
}
.ctmModalHero__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  max-height: 420px;
}
.ctmModalHero__body{
  padding: 56px 18px 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.ctmModalHero__top{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap: 10px;
}
.ctmModalHero__user{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.3px;
}
.ctmModalHero__btn{
  text-decoration:none;
  height: 42px;
  padding: 0 14px;
  display:inline-flex;
  align-items:center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color:#fff;
  font-weight: 800;
}
.ctmModalHero__btn:hover{ background: rgba(255,255,255,.16); }

.ctmHeadline{
  font-size: 16px;
  font-weight: 800;
  opacity: .95;
}
.ctmTopic{
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
}
.ctmUpdated{
  opacity: .75;
  font-size: 12px;
  margin-top: 2px;
}

.ctmPills{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.ctmPill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Content grid */
.ctmModalGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  background:#fff;
}
.ctmModalCol{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.ctmSection{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}
.ctmSection__title{
  padding: 12px 14px;
  font-weight: 950;
  background: rgba(0,0,0,.03);
}
.ctmSection__body{
  padding: 12px 14px;
}

.ctmInfoGrid{
  display:grid;
  gap: 8px;
}
.ctmInfoRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size: 14px;
}
.ctmInfoKey{ opacity: .65; }
.ctmInfoVal{ font-weight: 850; }

.ctmText{
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
}

.ctmTags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ctmTag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  font-weight: 800;
}

@media (max-width: 980px){
  .ctmModalHero{ grid-template-columns: 1fr; }
  .ctmModalHero__media img{ max-height: 46vh; }
  .ctmModalGrid{ grid-template-columns: 1fr; }
}

body.ctmModalOpen{ overflow:hidden; }


/* Alphabet filter */
.camtvCatalog__alpha{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  overflow-x:auto;
  padding: 2px 2px;
  max-width: 100%;
}
.camtvCatalog__alpha::-webkit-scrollbar{ height: 6px; }
.camtvCatalog__alphaBtn{
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  font-weight: 850;
  font-size: 12px;
  white-space: nowrap;
}
.camtvCatalog__alphaBtn.isActive{
  background: #111;
  color: #fff;
}
.camtvCatalog__alphaBtn:hover{ background: rgba(0,0,0,.04); }
.camtvCatalog__alphaBtn.isActive:hover{ background: #111; }

/* Modal fondo principal (marca) */
.ctmModalHero{
  background: #FD247F;
}
.ctmModalHero__media::after{
  background: linear-gradient(180deg, rgba(253,36,127,0) 0%, rgba(253,36,127,.85) 60%, rgba(253,36,127,.95) 100%);
}
.ctmModal__panel{
  border-color: rgba(253,36,127,.35);
}

/* Nombre modelo +2px */
.ctmModalHero__user{
  font-size: 28px;
  line-height: 1.15;
}

/* CTA sólido que no cambia de color */
.ctmModalHero__btn{
  background: #fff;
  color: #FD247F;
  border: none;
}
.ctmModalHero__btn:hover{
  background: #fff;
  color: #FD247F;
}

/* Pills oscuros para contraste */
.ctmPill, .ctmModalPill{
  background: rgba(0,0,0,.45);
  color:#fff;
  border:none;
}


/* Favorites */
.ctmCard__actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;}
.ctmCard__fav{border:1px solid rgba(0,0,0,.15);background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer;line-height:1;}
.ctmCard__fav.is-on{border-color:#d63638;}

.ctmCard__profile{display:inline-block;padding:6px 10px;border:1px solid rgba(0,0,0,.15);border-radius:8px;text-decoration:none;}

/* Verified badge */
.camtv-verified-badge{background:#fff;}
.camtv-verified-mini{background:#fff;}
