/* Live webcams page (templates/kamerki/kamerki.html). Builds on article.css tokens. */

.k-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.k-header { margin-bottom: 1.5rem; }

.k-note {
  font-size: 0.875rem;
  color: hsl(var(--a-muted));
  margin: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid hsl(var(--a-border));
}

.k-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  padding-bottom: 2rem;
}

.k-cam {
  margin: 0;
  border: 1px solid hsl(var(--a-border));
  border-radius: var(--a-radius);
  overflow: hidden;
  background: hsl(var(--a-surface));
}

.k-player,
.k-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.k-player {
  position: relative;
  padding: 0;
  cursor: pointer;
  background: #000;
  font: inherit;
}

.k-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.k-player:hover img,
.k-player:focus-visible img { opacity: 1; }

.k-live {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #d93025;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.k-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: k-pulse 1.6s ease-in-out infinite;
}
@keyframes k-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .k-dot { animation: none; } }

.k-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font-size: 28px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.k-player:hover .k-play,
.k-player:focus-visible .k-play {
  transform: scale(1.08);
  background: #d93025;
}

.k-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px 12px;
}
.k-name { font-weight: 600; line-height: 1.35; }
.k-source { font-size: 0.8125rem; color: hsl(var(--a-muted)); }
