/* ══════════════════ VIDEO LIST PAGE ══════════════════ */
#video-list-page { padding-bottom: 64px; }
#video-list-page .wrap { max-width: var(--max); margin: 0 auto; }
#video-list-page .section-head { margin-bottom: 40px; }
#video-list-page .section-head .label-mono { color: #888; }
#video-list-page .section-head .section-title { color: #111827; }

.vl-empty {
  text-align: center;
  color: #555;
  font-size: 16px;
  padding: 60px 20px;
}

/* ── Tabs ─────────────────────────────────────────────────────── */
.vl-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.vl-tab {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #ececec;
  background: #fff;
  color: #555;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.vl-tab:hover {
  background: #f1f5f9;
  color: #111827;
  border-color: #f3c7ca;
}

.vl-tab.active {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(230,62,70,.3);
}

/* ── Card grid ────────────────────────────────────────────────── */
.vl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.vl-card {
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ececec;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.vl-card:hover {
  transform: translateY(-5px);
  border-color: #f3c7ca;
  box-shadow: 0 4px 20px rgba(230,62,70,0.15);
}

.vl-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.vl-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.vl-card:hover .vl-card-img img { transform: scale(1.05); }

.vl-card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity .2s;
  font-size: 52px;
  color: #fff;
}

.vl-card:hover .vl-card-play { opacity: 1; }

.vl-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vl-card-date {
  font-size: 16px;
  font-weight: 700;
  color: #f97316;
  letter-spacing: .03em;
}

.vl-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
  font-family: var(--sans);
}

.vl-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.vl-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  background: rgba(230,62,70,.08);
  color: var(--primary);
  border: 1px solid rgba(230,62,70,.2);
}

.vl-card-bar {
  height: 4px;
  background: var(--cta-grad, linear-gradient(120deg, #F39A2C, #E63E46));
  flex-shrink: 0;
}

/* ── Player mode ──────────────────────────────────────────────── */
.vl-player-note {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.7;
  font-family: var(--sans);
}

.vl-player-item {
  margin-bottom: 56px;
}

.vl-player-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

.vl-player-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.vl-player-title {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: .02em;
  font-family: var(--sans);
}

.vl-player-content {
  margin-top: 16px;
  font-size: 16px;
  color: #555;
  line-height: 1.75;
  white-space: pre-line;
  font-family: var(--sans);
}

/* ── Lightbox modal ───────────────────────────────────────────── */
.vl-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.vl-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.vl-modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.vl-modal-close {
  position: absolute;
  top: -44px; right: 0;
  background: none; border: none;
  color: #fff; font-size: 26px;
  cursor: pointer; opacity: .85;
  transition: opacity .15s;
  line-height: 1; padding: 0;
}

.vl-modal-close:hover { opacity: 1; }

.vl-modal-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 60px rgba(0,0,0,.45);
}

.vl-modal-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vl-card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
}

@media (max-width: 640px) {
  #video-list-page { padding-bottom: 48px; }
  .vl-card-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .vl-tab { padding: 8px 16px; font-size: 16px; }
  .vl-modal-overlay { padding: 12px; }
  .vl-modal-close { top: -36px; font-size: 22px; }
}

@media (max-width: 420px) {
  .vl-card-grid { grid-template-columns: 1fr; }
}
