/* CLAUDE 10-10: Effects > Video effects, the library panel (panels.js fxGrid): search, category tabs, favorites,
   New badges, tile skeletons. The tiles themselves are the older .cc-fx rules (editor.css, editor-chrome.css). */
.cc-fxlib {
  display: grid;
  gap: 8px;
}
.cc-fx-bar {
  display: flex;
  gap: 6px;
}
.cc-fx-bar input[type='search'] {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #2c2c31;
  border-radius: 10px;
  background: #141416;
  color: #ececef;
  font-size: 13px;
}
.cc-fx-bar input[type='search']::placeholder {
  color: #8a8a92;
}
.cc-fx-bar input[type='search']:focus-visible,
.cc-fx-fav:focus-visible,
.cc-fx-tab:focus-visible,
.cc-fx-empty button:focus-visible {
  outline: 2px solid #f3f2ee;
  outline-offset: 2px;
}
.cc-fx-fav {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #2c2c31;
  border-radius: 10px;
  background: #141416;
  color: #a1a1aa;
  cursor: pointer;
}
.cc-fx-fav:hover {
  color: #ececef;
  border-color: #4a4a50;
}
.cc-fx-fav[aria-pressed='true'] {
  color: #ffd166;
  border-color: #ffd166;
}
.cc-fx-fav[aria-pressed='true'] path {
  fill: currentColor;
}
/* the tabs scroll sideways like CapCut's; the scrollbar is hidden, the edges fade */
.cc-fx-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
}
.cc-fx-tabs::-webkit-scrollbar {
  display: none;
}
.cc-fx-tab {
  flex: none;
  scroll-snap-align: start;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #2c2c31;
  border-radius: 999px;
  background: transparent;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.cc-fx-tab:first-child {
  margin-left: 6px;
}
.cc-fx-tab:hover {
  color: #ececef;
  border-color: #4a4a50;
}
.cc-fx-tab[aria-selected='true'] {
  background: #f3f2ee;
  border-color: #f3f2ee;
  color: #111;
}
.cc-fx-tab.dim:not([aria-selected='true']) {
  opacity: 0.55;
}
.cc-fx-soon,
.cc-fx-soon:hover {
  border-style: dashed;
  border-color: #3a3a40;
  color: #6f6f78;
  cursor: not-allowed;
  margin-right: 18px;
}
.cc-fx-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 12px;
  text-align: center;
  color: #8a8a92;
  font-size: 13px;
}
.cc-fx-empty p {
  margin: 0;
}
.cc-fx-empty button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #3a3a40;
  border-radius: 999px;
  background: transparent;
  color: #ececef;
  cursor: pointer;
}
/* tiles: a New badge top left (the Premium one is top right, editor.css), and a skeleton until a picture is drawn */
.cc-fx button[data-fx] {
  position: relative;
}
.cc-fx button[data-new]::before {
  content: 'New';
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ff5c8a;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
/* CLAUDE 10-11 (phone speed): the skeleton used to slide a gradient with background-position, which repaints every tile
   on every frame (125 of them in this grid); an opacity pulse is composited and costs the main thread nothing. */
.cc-fx i.tp-on:not(.tp-ready) {
  background: #1d1d21;
  animation: fxlib-pulse 1.4s ease-in-out infinite;
}
@keyframes fxlib-pulse {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc-fx i.tp-on:not(.tp-ready) {
    animation: none;
    background: #1c1c20;
  }
  .cc-fx-tabs {
    scroll-behavior: auto;
  }
}
/* the phone's sheets and any touch screen: 44 px targets */
body.pe-on .cc-fx-bar input[type='search'],
body.pe-on .cc-fx-fav,
body.pe-on .cc-fx-tab,
body.pe-on .cc-fx-empty button {
  min-height: 44px;
}
body.pe-on .cc-fx-fav {
  min-width: 44px;
}
@media (pointer: coarse) {
  .cc-fx-bar input[type='search'],
  .cc-fx-fav,
  .cc-fx-tab,
  .cc-fx-empty button {
    min-height: 44px;
  }
  .cc-fx-fav {
    min-width: 44px;
  }
}
