.snap-video-list {
  --primary: #0d6efd;
  --accent: #00d2ff;
  --bg: #0b1220;
  padding: 1.25rem 0 2rem;
}

.snap-video-filters {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.snap-video-filters .filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.snap-video-filters .filter {
  grid-column: span 1;
  min-width: 0;
}

.snap-video-filters .filter--search {
  grid-column: span 2;
}

.snap-video-filters .filter-actions {
  grid-column: 4;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  margin-top: 0;
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 1000px) {
  .snap-video-filters .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap-video-filters .filter { grid-column: span 1; }
  .snap-video-filters .filter--search { grid-column: span 2; }
  .snap-video-filters .filter-actions {
    grid-column: span 2;
    grid-row: auto;
    justify-self: start;
  }
}
@media (max-width: 600px) {
  .snap-video-filters .filter-row { grid-template-columns: 1fr; }
  .snap-video-filters .filter,
  .snap-video-filters .filter--search,
  .snap-video-filters .filter-actions {
    grid-column: auto;
  }
}

.snap-video-filters label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.snap-video-filters input,
.snap-video-filters select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
}

.btn-filter {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.picker {
  position: relative;
  display: flex;
  gap: 0.35rem;
}

.picker input {
  flex: 1;
}

.picker-clear {
  width: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  cursor: pointer;
}

.picker-clear:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.picker-results {
  margin-top: 0.4rem;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
}

.picker-results button {
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.picker-results button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.picker-results .picker-empty {
  padding: 0.6rem 0.75rem;
  opacity: 0.8;
}

.snap-video-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.snap-video-card {
  grid-column: span 4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .snap-video-card { grid-column: span 6; }
}
@media (max-width: 600px) {
  .snap-video-card { grid-column: span 12; }
}

.snap-video-card .thumb {
  position: relative;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
}

.snap-video-card .btn-quickwatch {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.snap-video-card .meta {
  padding: 0.9rem 0.9rem 1rem;
}

.snap-video-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.snap-video-card p {
  margin: 0 0 0.75rem;
  opacity: 0.9;
}

.snap-video-card .actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-details {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.linklike {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
}

.snap-video-empty {
  padding: 2rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.snap-video-pager {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.pager-btn, .pager-page {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

.pager-page.active {
  background: rgba(255, 255, 255, 0.14);
}

.pager-btn.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.pager-ellipsis {
  opacity: 0.7;
  padding: 0 0.25rem;
}

.snap-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  /* Extremely high z-index to beat theme headers/footers in production */
  z-index: 2147483646;
  isolation: isolate;
  padding: 1rem;
}

.snap-video-modal.active {
  display: flex;
}

.snap-video-modal-dialog {
  width: min(980px, 100%);
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.snap-video-modal-close {
  /* Fixed + higher z-index so video controls can’t steal the tap/click */
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  border: 0;
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2147483647;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.snap-video-modal-body {
  padding: 0;
}

.snap-video-modal video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}


