/*
Theme Name: Ruso Lobby Theme
Theme URI: https://coolvidsx.com
Author: Custom
Description: Tema lobby de videos con anuncios y redirección.
Version: 2.5
License: GNU General Public License v2 or later
Text Domain: ruso-lobby-theme
*/

html, body {
  margin: 0;
  padding: 0;
  background: #07070a;
  color: #f4f4f7;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: #ff4d57; text-decoration: none; }
img { max-width: 100%; height: auto; border: 0; display: block; }

.vd-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #0b0b10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}
.vd-header a.vd-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.vd-tg {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #229ED9, #1a8bc4);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.5);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.vd-tg:hover {
  background: linear-gradient(135deg, #1a8bc4, #1570a0);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(34, 158, 217, 0.7);
}
.vd-tg:active {
  transform: translateY(-1px) scale(1.02);
}

.vd-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 50px;
}

.vd-kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: #ff4d57;
}
.vd-title {
  font-size: clamp(28px, 5vw, 46px);
  margin: 8px 0 10px;
  font-weight: 800;
}
.vd-sub {
  color: #a3a3b2;
  margin: 0 0 22px;
  max-width: 640px;
}

.lobby-card {
  background: #12121a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  color: inherit;
  width: 100%;
  text-align: left;
  display: block;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.lobby-card:hover { transform: translateY(-4px); background: #1a1a26; }

.lobby-card.featured {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  align-items: stretch;
  border-radius: 22px;
  max-width: 100%;
  margin-bottom: 20px;
}
.lobby-card.featured .lobby-thumb { aspect-ratio: 16/9; min-height: 280px; }
.lobby-card.featured .lobby-play span { width: 74px; height: 74px; }
.lobby-card.featured .lobby-meta {
  padding: 22px 22px 22px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lobby-card.featured .lobby-badge {
  display: inline-block;
  background: #e50914;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 10px;
  width: fit-content;
}
.lobby-card.featured .lobby-meta h3 {
  font-size: clamp(22px, 4vw, 34px);
  margin: 0 0 8px;
  line-height: 1.15;
}
.lobby-card.featured .lobby-meta p { font-size: 14px; }

.lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.lobby-grid .lobby-card { border-radius: 14px; }
.lobby-grid .lobby-thumb { aspect-ratio: 16/9; }
.lobby-grid .lobby-play span { width: 36px; height: 36px; }
.lobby-grid .lobby-play span:after { border-width: 6px 0 6px 10px; margin-left: 2px; }
.lobby-grid .lobby-meta { padding: 8px 10px 12px; }
.lobby-grid .lobby-meta h3 {
  font-size: 13px;
  margin: 0 0 4px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lobby-grid .lobby-meta p { font-size: 11px; }

.lobby-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
  min-height: 100px;
}
.lobby-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.lobby-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05));
}
.lobby-play span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e50914;
  display: grid;
  place-items: center;
}
.lobby-play span:after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.lobby-meta {
  padding: 14px;
}
.lobby-meta h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff;
}
.lobby-meta p {
  margin: 0;
  color: #a3a3b2;
  font-size: 13px;
}

html, body,
body.single,
body.single-post,
.vd-wrap,
#postPlayer,
.post-body,
.post-body * {
  background: #07070a !important;
  color: #f4f4f7;
}
body.single .post-body figure,
body.single .post-body .wp-block-image,
body.single .post-body .wp-block-video,
body.single .post-body img,
body.single .post-body video {
  background: #111 !important;
}
.next-wrap {
  margin-top: 30px;
}
.next-wrap h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.next-card {
  display: flex;
  gap: 12px;
  background: #12121a;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,.06);
}
.next-card img {
  width: 140px;
  height: 80px;
  object-fit: cover;
}
.next-card div {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.next-card span { font-size: 12px; color: #a3a3b2; }
.next-card strong { font-size: 15px; color: #fff; }

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.more-card {
  background: #12121a;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,.06);
}
.more-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.more-card p {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 13px;
  color: #fff;
}

.vd-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 40px;
}
.vd-footer a {
  color: #a3a3b2;
  font-size: 14px;
}

.ad-label {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b6b78;
  margin-bottom: 8px;
}
.ad-slot {
  margin: 18px auto;
  text-align: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  cursor: pointer;
  background: transparent;
  display: block;
}
.post-body {
  position: relative;
  min-height: 200px;
}

/* Centrar video e imagen en la entrada */
.post-body {
  text-align: center;
}
.post-body video,
.post-body .wp-block-video,
.post-body figure,
.post-body img {
  max-width: 100%;
  border-radius: 12px;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

@media (max-width: 700px) {
  .lobby-card.featured {
    grid-template-columns: 1fr;
  }
  .lobby-card.featured .lobby-meta {
    padding: 16px;
  }
  .vd-header a.vd-brand { font-size: 18px; }
  .vd-tg { font-size: 14px; padding: 8px 16px; }
}
