/* ============================================================
   TARKOV HUB KOREA — 홈 치지직 LIVE 카드 (js/live.js)
   방송이 켜져 있을 때만 보인다. 치지직은 외부 임베드 플레이어가 없어
   영상 대신 방송 썸네일(정지화면)을 30초마다 갈아끼운다.
   ============================================================ */
.live-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 36px;
  background: var(--panel);
  border: 1px solid var(--red-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.live-card[hidden] { display: none; }
/* 카드 전체가 치지직 방송 링크 (<a>) */
a.live-card { color: inherit; text-decoration: none; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
a.live-card:hover { border-color: var(--red); transform: translateY(-2px); }
a.live-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a.live-card:hover .live-shot img { filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) { a.live-card:hover { transform: none; } }

.live-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.live-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .live-badge::before { animation: none; } }

.live-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  min-width: 0;
}
.live-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tan-bright);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}
.live-channel img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  object-fit: cover;
  flex-shrink: 0;
}
.live-title {
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 0.88rem;
}
.live-note {
  margin-top: auto;
  color: var(--tan-dim);
  font-size: 0.8rem;
}

.live-go {
  align-self: flex-start;
  padding: 7px 14px;
  border: 1px solid var(--red-deep);
  border-radius: 2px;
  color: var(--text-strong);
  background: rgba(193, 91, 91, 0.12);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
}
a.live-card:hover .live-go { background: var(--red); border-color: var(--red); }

@media (max-width: 760px) {
  .live-card { grid-template-columns: 1fr; margin-top: 24px; }
  .live-info { padding: 16px; }
}
