:root {
  --bg: #252525;
  --panel: #111;
  --text: #f2f2f2;
  --muted: #c9c9c9;
  --line: #555;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bn-video-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px 60px;
}

.archive-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.archive-header p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.1rem;
}

.controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 160px auto;
  gap: 12px;
  margin: 0 0 18px;
}

.controls input,
.controls select,
.controls button,
.load-more {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #050505;
  color: var(--text);
  padding: 10px 12px;
  font-size: 16px;
}

.controls button,
.load-more {
  cursor: pointer;
}

.status {
  min-height: 28px;
  margin: 12px 0 18px;
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card {
  background: var(--panel);
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.video-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.75);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
}

.video-info {
  padding: 13px 14px 16px;
}

.video-title {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.video-date {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.load-more {
  display: block;
  margin: 28px auto 0;
  min-width: 180px;
}

.lightbox {
  display: none;
}

.lightbox.is-open {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-inner {
  width: min(1100px, 96vw);
  aspect-ratio: 16 / 9;
  background: #000;
}

.lightbox iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.close-lightbox {
  position: fixed;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 850px) {
  .controls {
    grid-template-columns: 1fr 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .bn-video-archive {
    padding: 22px 12px 44px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
