.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-card {
  background: var(--color-bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  width: 100%;
  height: 200px;
  background: #000;
  position: relative;
  cursor: pointer;
}

.video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-overlay::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid var(--color-primary);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.video-info {
  padding: 1rem;
}

.video-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  word-break: break-word;
}

.video-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.video-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.video-actions button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-stream {
  background: var(--color-primary);
  color: white;
}

.btn-stream:hover {
  background: var(--color-primary-dark);
}

.btn-download {
  background: var(--color-bg-light);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-download:hover {
  background: var(--color-bg);
}

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.video-modal video {
  width: 100%;
  height: auto;
  max-height: 90vh;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #000;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-light);
}

.error {
  text-align: center;
  padding: 2rem;
  color: #dc3545;
}

.no-videos {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-light);
}

.filter-controls {
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-controls input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
}
