body.modal-open { overflow: hidden; }

.feed-section {
  padding: 18px 0 60px;
  background: #fff;
}

.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.feed-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.feed-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feed-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feed-card:hover {
  transform: translateY(-3px);
  border-color: #b8c5d6;
  box-shadow: 0 18px 44px rgba(20, 33, 61, 0.1);
}

.feed-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 20%, rgba(0, 168, 107, 0.3), transparent 32%),
    linear-gradient(135deg, #243759, #14213d);
}

.feed-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 12, 22, 0.2);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease;
}

.feed-play:hover {
  background: rgba(7, 12, 22, 0.34);
}

.feed-play .icon {
  width: 36px;
  height: 36px;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.32));
}

.feed-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.feed-badge.live {
  background: var(--green);
}

.feed-badge.offline {
  background: rgba(20, 33, 61, 0.78);
}

.feed-body {
  padding: 14px 15px 16px;
}

.feed-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.feed-meta span + span::before {
  content: "·";
  margin: 0 6px;
  color: #98a2b3;
}

.feed-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.feed-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.72);
  backdrop-filter: blur(8px);
}

.feed-modal-panel {
  position: relative;
  width: min(860px, 100%);
  border-radius: 18px;
  overflow: hidden;
  background: #0d1728;
  box-shadow: 0 30px 80px rgba(20, 33, 61, 0.32);
}

.feed-modal-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.feed-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(20, 33, 61, 0.58);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.feed-modal-caption {
  padding: 14px 16px 16px;
  color: #fff;
  background: #14213d;
}

.feed-modal-caption h3 {
  margin: 0;
  font-size: 16px;
}

.feed-modal-caption p {
  margin: 4px 0 0;
  color: #9fb0c4;
  font-size: 12px;
}

.feed-empty {
  grid-column: 1 / -1;
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
}

@media (max-width: 900px) {
  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .feed-section {
    padding: 12px 0 42px;
  }

  .feed-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feed-modal {
    padding: 12px;
  }
}
/* YouTube-like custom player */
.yt-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.yt-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.yt-big-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(7, 12, 22, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.yt-big-play:hover {
  background: rgba(7, 12, 22, 0.28);
}

.yt-big-play[hidden] {
  display: none;
}

.yt-big-play svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.38));
}

.yt-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(7, 12, 22, 0.82));
  color: #fff;
}

.yt-progress {
  position: relative;
  height: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.yt-buffered,
.yt-progress-fill {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  pointer-events: none;
}

.yt-buffered {
  width: 0;
  background: rgba(255, 255, 255, 0.28);
}

.yt-progress-fill {
  width: 0;
  background: var(--green);
}

.yt-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.yt-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.yt-ctl {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.yt-ctl:hover {
  background: rgba(255, 255, 255, 0.12);
}

.yt-ctl svg {
  width: 20px;
  height: 20px;
}

.yt-volume {
  width: 84px;
  accent-color: var(--green);
}

.yt-time {
  margin-left: 4px;
  color: #dbe4ef;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.yt-ctl--right {
  margin-left: auto;
}

@media (max-width: 620px) {
  .yt-big-play svg {
    width: 48px;
    height: 48px;
  }

  .yt-volume {
    display: none;
  }
}
/* Limgo camera play mark */
.limgo-cam {
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.feed-play .limgo-cam {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.yt-big-play .limgo-cam {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.38));
}

@media (max-width: 620px) {
  .yt-big-play .limgo-cam {
    width: 38px;
    height: 38px;
  }
}