/* replays.css — 录播 video grid (requires theme.css).
   Orb palette is the shared default from the other page sheets —
   not re-declared here. */

/* ── Toolbar: search + count ── */
.replays-toolbar {
  max-width: 980px;
  margin: 0 auto 16px;
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 1;
}

.replays-search-inner { position: relative; display: flex; align-items: center; flex: 1; }

#replaysSearch {
  width: 100%;
  padding: 11px 16px 11px 40px;
  background: var(--surface-hover);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--surface-hover);
  border-radius: 50px;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 4px 16px rgba(var(--blue-rgb), 0.06), inset 0 1px 0 var(--surface-hover);
  -webkit-appearance: none;
}
#replaysSearch::placeholder { color: var(--text3); }
#replaysSearch:focus {
  border-color: rgba(var(--blue-rgb), 0.4);
  box-shadow: 0 0 0 4px rgba(var(--blue-rgb), 0.08), 0 8px 24px rgba(var(--blue-rgb), 0.10);
  background: var(--surface-strong);
}

.replays-s-icon { position: absolute; left: 14px; color: var(--text3); pointer-events: none; transition: color 0.2s; }
#replaysSearch:focus ~ .replays-s-icon { color: var(--blue2); }

.replays-count { font-size: 12px; color: var(--text3); white-space: nowrap; }

/* ── Video grid ── */
.video-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  position: relative; z-index: 1;
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.video-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--surface-hover);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease-out, box-shadow .22s, border-color .22s;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(var(--blue-rgb), 0.12);
  border-color: var(--surface-strong);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;   /* bilibili cover ratio */
  background: var(--surface-muted);
  overflow: hidden;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-dur {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px; line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}

.video-body { padding: 10px 12px 11px; }
.video-title {
  font-size: 13px; line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(13px * 1.5 * 2);   /* steady card height for 1-line titles */
  word-break: break-all;
}
.video-meta {
  margin-top: 7px;
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text3);
}

.replays-status {
  text-align: center;
  color: var(--text3);
  padding: 36px 0;
  position: relative; z-index: 1;
}
