/* =====================================================================
   Black Archlord — YouTube (youtube.php)
   Reproductor arriba + rejilla de videos; al pulsar una tarjeta se
   reproduce en el reproductor (sin salir de la web).
   ===================================================================== */

.nw-yt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.nw-yt-hero-actions .nw-btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 13px;
}

.nw-yt-page {
  display: grid;
  gap: 34px;
  padding-top: 30px;
  padding-bottom: 60px;
}

/* ---------- Reproductor ---------- */
.nw-yt-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  scroll-margin-top: calc(var(--nw-header-h) + 16px);
  border-top: 2px solid var(--nw-red);
  overflow: hidden;
}

.nw-yt-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.nw-yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.nw-yt-now {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px;
  border-left: 1px solid var(--nw-line-soft);
}

.nw-yt-now-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nw-red-hot);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nw-yt-now-title {
  margin: 0;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.nw-yt-now-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-yt-now-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nw-yt-now-meta i {
  color: var(--nw-gold);
}

.nw-yt-now .nw-link {
  margin-top: auto;
}

/* ---------- Cabecera de la lista + filtros ---------- */
.nw-yt-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nw-line);
}

.nw-yt-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 22px;
  font-weight: 700;
}

.nw-yt-list-title i {
  color: var(--nw-gold);
}

.nw-yt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nw-yt-filters .nw-tab {
  padding: 0 16px;
}

/* ---------- Rejilla ---------- */
.nw-yt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nw-yt-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nw-yt-card:hover,
.nw-yt-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 60, 40, 0.16);
}

.nw-yt-card.is-active {
  border-color: rgba(255, 110, 80, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 74, 54, 0.45), 0 0 24px rgba(255, 60, 40, 0.25);
}

.nw-yt-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.nw-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.nw-yt-card:hover .nw-yt-thumb img {
  transform: scale(1.05);
  filter: brightness(0.75);
}

.nw-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 140, 110, 0.7);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #c8241a, #7e0e09);
  box-shadow: 0 0 22px rgba(255, 60, 40, 0.55);
  font-size: 18px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nw-yt-play i {
  margin-left: 3px;
}

.nw-yt-card:hover .nw-yt-play,
.nw-yt-card:focus-visible .nw-yt-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.nw-yt-duration,
.nw-yt-playing {
  position: absolute;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 2px;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  font-size: 12px;
  font-weight: 700;
}

.nw-yt-duration {
  right: 8px;
}

.nw-yt-playing {
  left: 8px;
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--nw-red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

.nw-yt-card.is-active .nw-yt-playing {
  display: inline-flex;
}

.nw-yt-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}

.nw-yt-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nw-yt-tag i {
  color: var(--nw-red);
}

.nw-yt-card-title {
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.nw-yt-card .nw-yt-date {
  margin-top: auto;
  color: var(--nw-muted);
  font-size: 13px;
}

/* ---------- Llamada al canal ---------- */
.nw-yt-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nw-yt-cta:hover {
  border-color: rgba(255, 110, 80, 0.6);
  box-shadow: 0 0 24px rgba(255, 60, 40, 0.2);
}

.nw-yt-cta > .fa-youtube {
  flex: 0 0 auto;
  color: var(--nw-red-hot);
  font-size: 38px;
}

.nw-yt-cta strong {
  display: block;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 18px;
}

.nw-yt-cta span span {
  color: var(--nw-muted);
  font-size: 14px;
}

.nw-yt-cta-arrow {
  margin-left: auto;
  color: var(--nw-gold);
}

@media (max-width: 1100px) {
  .nw-yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-yt-player { grid-template-columns: 1fr; }
  .nw-yt-now { border-left: 0; border-top: 1px solid var(--nw-line-soft); padding: 20px; }
  .nw-yt-now .nw-link { margin-top: 0; }
}

@media (max-width: 640px) {
  .nw-yt-grid { grid-template-columns: 1fr; }
  .nw-yt-now-title { font-size: 19px; }
  .nw-yt-list-title { font-size: 19px; }
  .nw-yt-filters { width: 100%; }
  .nw-yt-filters .nw-tab { flex: 1 1 0; padding: 0 6px; }
  .nw-yt-hero-actions .nw-btn { flex: 1 1 auto; }
  .nw-yt-cta { padding: 16px; gap: 14px; }
  .nw-yt-cta > .fa-youtube { font-size: 30px; }
}

@media (hover: none) {
  .nw-yt-play { opacity: 1; transform: translate(-50%, -50%) scale(0.85); }
}

/* ---------- Aviso: video que YouTube no deja incrustar ---------- */
.nw-yt-blocked {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background: #000;
}

.nw-yt-blocked img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.35);
  transform: scale(1.06);
}

.nw-yt-blocked-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  text-align: center;
}

.nw-yt-blocked-box > .fa-youtube {
  color: var(--nw-red-hot);
  font-size: 44px;
}

.nw-yt-blocked-box strong {
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 20px;
  line-height: 1.25;
}

.nw-yt-blocked-text {
  color: #d9ccc6;
  font-size: 14px;
}

.nw-yt-blocked-box .nw-btn {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 22px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .nw-yt-blocked-box > .fa-youtube { font-size: 30px; }
  .nw-yt-blocked-box strong { font-size: 16px; }
  .nw-yt-blocked-text { display: none; }
  .nw-yt-blocked-box .nw-btn { min-height: 38px; font-size: 12px; }
}
