/* アーカイブページ専用スタイル */
.btn-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}

.btn-link:hover {
  background: var(--brand);
  color: white;
}

.empty-state {
  padding: 40px 20px;
}

/* Video card - clickable thumbnail */
.video-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  align-items: center;
}

.video-card:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.video-card:active {
  transform: scale(0.99);
}

.video-thumb {
  width: 80px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  position: relative;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-thumb .thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
}

.video-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.video-event {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-date {
  font-size: 12px;
  color: var(--muted);
}

/* フィルター */
#filterEvent {
  max-width: 300px;
}

/* ===== Video Preview Modal ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-modal-content {
  position: relative;
  background: var(--panel);
  border-radius: 20px;
  padding: 20px;
  max-width: 500px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalSlideUp 0.25s ease-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.1);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(0,0,0,0.2);
}

.video-modal-info {
  text-align: center;
}

.video-modal-event {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.video-modal-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.video-modal-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.video-modal-qr canvas {
  width: 160px;
  height: 160px;
}

.video-modal-qr-label {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.video-modal-actions {
  display: flex;
  gap: 8px;
}

.video-modal-actions .btn {
  flex: 1;
  font-size: 13px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn.warn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn.warn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* レスポンシブ */
@media (max-width: 640px) {
  .video-modal-content {
    max-width: 100%;
    margin: 0 12px;
  }
  
  .video-modal-actions {
    flex-wrap: wrap;
  }
}