/* ═══════════════════════════════════════════════════════════════
   YOUTUBE.CSS — Bádminton Perú
   Sección YouTube Live homepage
   → En Angular: youtube.component.scss
   ═══════════════════════════════════════════════════════════════ */

.bp-youtube {
  background: #222;
  padding: 56px 0 64px;
}

/* ── Header ───────────────────────────────────────────────────── */
.bp-yt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.bp-yt-header-left {}

.bp-yt-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--bp-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.bp-yt-header h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--bp-font);
}

.bp-yt-header p {
  margin: 6px 0 0;
  color: #555;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--bp-font);
}

.bp-yt-btn-channel {
  border: 1px solid var(--bp-red);
  color: var(--bp-red);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  font-family: var(--bp-font);
  display: inline-block;
}

.bp-yt-btn-channel:hover {
  background: var(--bp-red);
  color: #fff;
}

/* ── Grid ─────────────────────────────────────────────────────── */
.bp-yt-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Video principal ──────────────────────────────────────────── */
.bp-yt-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.bp-yt-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.bp-yt-info {
  margin-top: 16px;
}

.bp-yt-badge {
  display: inline-block;
  background: var(--bp-red);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-family: var(--bp-font);
}

.bp-yt-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  font-family: var(--bp-font);
}

.bp-yt-info p {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.6;
  font-family: var(--bp-font);
}

/* ── Lista de videos ──────────────────────────────────────────── */
.bp-yt-list-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bp-red);
  font-family: var(--bp-font);
}

.bp-yt-video-list {
  display: flex;
  flex-direction: column;
}

.bp-yt-video {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #2a2a2a;
  cursor: pointer;
  align-items: center;
  transition: opacity 0.2s;
}

.bp-yt-video:last-child {
  border-bottom: none;
}

.bp-yt-video:hover {
  opacity: 0.8;
}

.bp-yt-thumb {
  width: 96px;
  min-width: 96px;
  height: 54px;
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.bp-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-yt-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.bp-yt-thumb:hover .bp-yt-thumb-play {
  opacity: 1;
}

.bp-yt-thumb-play span {
  width: 24px;
  height: 24px;
  background: var(--bp-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
}

.bp-yt-video.active .bp-yt-thumb {
  border: 2px solid var(--bp-red);
}

.bp-yt-video-info {
  flex: 1;
  min-width: 0;
}

.bp-yt-video-title {
  color: #aaa;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 5px;
  font-family: var(--bp-font);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-yt-video.active .bp-yt-video-title {
  color: #fff;
  font-weight: 700;
}

.bp-yt-video-date {
  color: #444;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--bp-font);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bp-yt-grid {
    grid-template-columns: 1fr;
  }
  .bp-yt-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .bp-yt-header h2 { font-size: 22px; }
  .bp-yt-btn-channel { width: 100%; text-align: center; }
}
