/* =============================================================
   Video Filter – Stylesheet
   ============================================================= */

/* Wrap */
.vf-wrap {
  font-family: inherit;
}

/* ── Filter panel ────────────────────────────────────────────── */
.vf-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

/* Each checkbox row */
.vf-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
  width: fit-content;
}

/* Blurred / unavailable state */
.vf-option.vf-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Hide native checkbox */
.vf-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom checkmark box */
.vf-checkmark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #999;
  border-radius: 3px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.vf-option input:checked ~ .vf-checkmark {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.vf-option input:checked ~ .vf-checkmark::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Label */
.vf-label {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.3;
}

/* Count badge */
.vf-count {
  font-size: 0.875rem;
  color: #777;
  transition: color 0.2s ease;
}

/* ── Results area ────────────────────────────────────────────── */
.vf-results {
  position: relative;
  min-height: 100px;
  transition: opacity 0.2s ease;
}

.vf-results.vf-loading {
  opacity: 0.4;
  pointer-events: none;
}

/* Simple card grid */
.vf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.vf-card {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.vf-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.vf-card a {
  text-decoration: none;
  color: inherit;
}

.vf-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.vf-thumb--placeholder {
  background: #f0f0f0;
}

.vf-card-body {
  padding: 12px 14px;
}

.vf-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  /* margin: 0; */
  line-height: 1.4;
}

.vf-no-results {
  color: #777;
  font-style: italic;
  padding: 20px 0;
}

/* Pagination */
.vf-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
}

.vf-pagination a,
.vf-pagination span {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1;
}

.vf-pagination a:hover {
  border-color: #cfcfcf;
}

.vf-pagination .current {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
