/*
Theme Name: NEKOSTR
Theme URI: https://nekostr.com
Author: NEKOBOT
Description: Tema para grupo de traducción de juegos +18. Catálogo de VN, RPG Maker, Ren'Py, Wolf RPG y TyranoScript.
Version: 1.12.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nekostr
Tags: dark, games, anime, translation, visual-novel
*/

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; }

:root {
  --bg:         #080808;
  --bg2:        #101010;
  --bg3:        #181818;
  --card:       #0e0e0e;
  --border:     #2b2b2b;
  --accent:     #ffffff;
  --accent2:    #b8b8b8;
  --accent-glow:rgba(255,255,255,0.10);
  --text:       #ededed;
  --text-muted: #8c8c8c;
  --green:      #ffffff;
  --yellow:     #cfcfcf;
  --red:        #e6e6e6;
  --radius:     10px;
  --radius-sm:  6px;
  --font:       'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* =============================================
   SCROLLBAR
============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* =============================================
   HEADER / NAV
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,18,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.site-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--bg3);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  width: 220px;
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.875rem;
  width: 100%;
}

.nav-search input::placeholder { color: var(--text-muted); }

.nav-search svg { color: var(--text-muted); flex-shrink: 0; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* =============================================
   MAIN LAYOUT
============================================= */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* =============================================
   SECTION HEADERS
============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.section-title .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.section-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  transition: background .2s, color .2s;
}

.section-link:hover {
  background: var(--accent);
  color: #fff;
}

/* =============================================
   GAME CARDS
============================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.game-card-cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #050505;
}

.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.card-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--text-muted); font-size: .75rem;
}

/* Badge del motor (arriba a la derecha, estilo CodeArc) */
.card-engine {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  background: var(--accent);
  color: #000;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 11px;
  border-radius: 7px;
}

.game-card:hover .game-card-cover img { transform: scale(1.05); }

.game-card-cover .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .2s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.game-card:hover .overlay { opacity: 1; }

.btn-play {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  width: 100%;
  justify-content: center;
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.4;
}

.badge-engine   { background: rgba(176,74,255,.85); color: #fff; }
.badge-new      { background: rgba(255,74,141,.9);  color: #fff; }
.badge-complete { background: rgba(74,255,145,.85); color: #000; }
.badge-progress { background: rgba(255,208,74,.85); color: #000; }
.badge-android  { background: rgba(74,200,255,.85); color: #000; }

.game-card-info {
  padding: 12px 14px 14px;
}

.card-top-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.card-cat {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.game-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author { font-size: .78rem; color: var(--text-muted); }

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.game-card-version { font-weight: 600; color: var(--text); }

/* =============================================
   RANKING / TOP 10
============================================= */
.ranking-list { display: flex; flex-direction: column; gap: 8px; }

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color .2s, background .2s;
}

.ranking-item:hover {
  border-color: var(--accent);
  background: var(--bg3);
}

.ranking-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--border);
  min-width: 28px;
  text-align: center;
}

.ranking-item:nth-child(1) .ranking-num { color: #ffd700; }
.ranking-item:nth-child(2) .ranking-num { color: #c0c0c0; }
.ranking-item:nth-child(3) .ranking-num { color: #cd7f32; }

.ranking-cover {
  width: 44px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3);
}

.ranking-cover img { width: 100%; height: 100%; object-fit: cover; }

.ranking-info { flex: 1; min-width: 0; }

.ranking-title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.ranking-views {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* =============================================
   TWO-COLUMN LAYOUT (home)
============================================= */
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.home-section { margin-bottom: 48px; }

/* =============================================
   TABS
============================================= */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; }

.tab-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
}

.tab-btn:hover { border-color: var(--accent); color: var(--text); }

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =============================================
   FEATURED HERO BANNER
============================================= */
/* ---------- HERO CARRUSEL ---------- */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--border);
  background: var(--bg3);
}
.hero-track { display: flex; transition: transform .5s ease; }
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16/5;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,.9) 25%, rgba(0,0,0,.45) 55%, transparent 80%);
  display: flex;
  align-items: center;
  padding: 40px;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(8,8,8,.6);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.hero-dot.is-active { background: #fff; transform: scale(1.2); }

.hero-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  aspect-ratio: 16/5;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.85) 30%, transparent 70%);
  display: flex;
  align-items: center;
  padding: 40px;
}

.hero-content { max-width: 480px; }

.hero-badges { display: flex; gap: 6px; margin-bottom: 12px; }

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 24px;
  transition: opacity .2s, transform .2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

/* =============================================
   SINGLE GAME PAGE
============================================= */
.game-single-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.game-cover-wrap {
  position: sticky;
  top: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  background: var(--bg3);
}

.game-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }

.game-details { display: flex; flex-direction: column; gap: 16px; }

.game-title-main {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.game-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.meta-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-value { font-size: 0.9rem; font-weight: 600; }

.game-desc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.game-desc p { margin-bottom: 1em; }
.game-desc p:last-child { margin-bottom: 0; }

.download-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.download-box h3 { font-size: 0.95rem; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

.download-links { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  cursor: pointer;
}

.btn-download:hover { background: var(--accent); color: #fff; }

/* =============================================
   ARCHIVE / BROWSE PAGE
============================================= */
.archive-filters {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.filter-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}

.filter-select:focus { border-color: var(--accent); }

/* =============================================
   PAGINATION
============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 24px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .site-logo { font-size: 1.6rem; }

.footer-desc {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  transition: border-color .2s, color .2s;
}

.social-btn:hover { border-color: var(--accent); color: var(--accent); }

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .home-columns { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: block; }
  .nav-search { width: 160px; }
  .hero-banner, .hero-slide { aspect-ratio: 16/9; }
  .hero-slide .hero-overlay { padding: 22px; background: linear-gradient(to top, rgba(0,0,0,.92) 20%, rgba(0,0,0,.4) 70%, transparent); align-items: flex-end; }
  .hero-title { font-size: 1.3rem; }
  .hero-arrow { width: 34px; height: 34px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .game-single-hero { grid-template-columns: 1fr; }
  .game-cover-wrap { position: static; max-width: 260px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .site-main { padding: 16px 12px 40px; }
  .nav-search { display: none; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-slider { margin-bottom: 32px; }
  .hero-title { font-size: 1.15rem; }
  .hero-desc { -webkit-line-clamp: 2; font-size: .8rem; margin-bottom: 14px; }
  .hero-slide .hero-overlay { padding: 16px; }
  .btn-primary { padding: 9px 18px; font-size: .85rem; }
  .section-title { font-size: 1.05rem; }
  .carousel-track, .nekostr-row { grid-auto-columns: minmax(150px, 70%); }
  .game-card-title { font-size: .9rem; }
  /* En móvil las tarjetas a 2 columnas se ven más compactas */
  .game-card-info { padding: 10px 11px 12px; }
  .card-top-line { gap: 5px; margin-bottom: 5px; }
}

/* =============================================
   SHORTCODES ADICIONALES
============================================= */

.nekostr-empty {
  color: var(--text-muted);
  font-size: .9rem;
  padding: 24px 0;
  text-align: center;
}

/* --- Iconos sociales (SVG) --- */
.social-btn svg { display: block; }

/* --- [nekostr_top10] --- */
.nekostr-top10-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.top-list { display: flex; flex-direction: column; gap: 6px; counter-reset: none; list-style: none; }
.top-item { display: flex; align-items: center; gap: 10px; }
.top-rank {
  flex: 0 0 24px;
  text-align: center;
  font-weight: 800;
  font-size: .95rem;
  color: var(--accent);
}
.top-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background .2s;
  min-width: 0;
}
.top-link:hover { background: var(--bg3); }
.top-thumb {
  width: 40px;
  height: 53px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
  background: var(--bg3);
}
.top-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.top-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- [nekostr_buscador] --- */
.nekostr-search { margin: 16px 0; }
.nekostr-search form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.nekostr-search form:focus-within { border-color: var(--accent); }
.nekostr-search svg { color: var(--text-muted); flex: 0 0 auto; }
.nekostr-search input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: .95rem;
  outline: none;
}
.nekostr-search button {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.nekostr-search button:hover { opacity: .9; }
.nekostr-search-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nekostr-search-chips .chip {
  font-size: .78rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color .2s, color .2s;
}
.nekostr-search-chips .chip:hover { border-color: var(--accent); color: var(--accent); }

/* --- [nekostr_ultimos] (fila horizontal) --- */
.nekostr-ultimos { margin: 32px 0; }
.nekostr-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  align-items: start;
}
.nekostr-row { scrollbar-width: none; -ms-overflow-style: none; }
.nekostr-row .game-card { scroll-snap-align: start; }
.nekostr-row::-webkit-scrollbar { display: none; }

@media (max-width: 480px) {
  .nekostr-search form { flex-wrap: wrap; }
  .nekostr-search button { width: 100%; }
}

/* =============================================
   TEMA BLANCO Y NEGRO — ACENTOS OUTLINE
   Convierte rellenos de color en bordes/outline,
   manteniendo la jerarquía con contraste, no con color.
============================================= */

/* Logo: blanco sólido, sin gradiente */
.site-logo {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  letter-spacing: .01em;
}

/* Punto de sección: cuadrito blanco sólido */
.section-title .dot { background: var(--accent); }

/* Botón "Ver juego" en hover de tarjeta: outline */
.btn-play {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  backdrop-filter: blur(2px);
}

/* Hover de tarjeta: marco blanco en vez de glow morado */
.game-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}

/* Versión en tarjeta: gris claro, no acento de color */
.game-card-version { color: var(--text); }

/* Badges: estilo outline monocromático */
.badge {
  background: transparent !important;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge-engine   { border-color: #3a3a3a; color: #e6e6e6; }
.badge-new      { border-color: var(--accent); color: var(--accent); }
.badge-complete { border-color: var(--accent); color: var(--accent); }
.badge-progress { border-color: #6a6a6a; color: #cfcfcf; }
.badge-android  { border-color: #4a4a4a; color: #bdbdbd; }

/* Botón primario (hero): outline que se rellena en hover */
.btn-primary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent);
  color: #000;
  opacity: 1;
  transform: translateY(-1px);
}

/* Tabs activos: outline */
.tab-btn.active {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

/* Botón de descarga: ya es outline; hover relleno blanco/texto negro */
.btn-download:hover { background: var(--accent); color: #000; }

/* Paginación activa/hover: outline */
.page-numbers:hover,
.page-numbers.current {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

/* Buscador (shortcode): botón outline */
.nekostr-search button {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.nekostr-search button:hover { background: var(--accent); color: #000; opacity: 1; }

/* Barra de progreso: blanco→gris (ya usa los tokens, queda monocromática) */

/* Top 10: número en blanco */
.top-rank { color: var(--accent); }

/* Scrollbar: gris en vez de acento de color */
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* =============================================
   CHIPS DE GÉNEROS
============================================= */
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}
.genre-chips-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}
.genre-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color .2s, color .2s;
}
.genre-chips .chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.genre-chips .chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
}
.genre-chips .chip-count {
  font-size: .68rem;
  color: var(--text-muted);
  background: var(--bg3);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 1.5;
}

/* =============================================
   CARRUSEL — MÁS POPULARES
============================================= */
.nekostr-carousel { margin: 32px 0; }

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, color .2s, opacity .2s;
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel-btn:disabled { opacity: .35; cursor: default; border-color: var(--border); color: var(--text-muted); }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: start;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
  position: relative;
  scroll-snap-align: start;
}
.carousel-rank {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(8,8,8,.78);
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.carousel-views {
  position: absolute;
  bottom: 70px;
  left: 8px;
  z-index: 2;
  font-size: .68rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(8,8,8,.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

@media (max-width: 480px) {
  .carousel-track { grid-auto-columns: minmax(150px, 170px); }
}

/* =============================================
   GATE DE EDAD +18
============================================= */
.nk-agegate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4,4,4,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.nk-agegate-box {
  max-width: 420px;
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.nk-agegate-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 18px;
}
.nk-agegate-box h2 { font-size: 1.15rem; margin-bottom: 10px; }
.nk-agegate-box p { color: var(--text-muted); font-size: .9rem; margin-bottom: 18px; }
.nk-agegate-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.nk-btn-yes {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
}
.nk-btn-yes:hover { opacity: .9; }
.nk-btn-no {
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: .85rem;
}
.nk-btn-no:hover { border-color: var(--text-muted); color: var(--text); }
.nk-agegate-legal { font-size: .72rem !important; color: var(--text-muted); margin: 0 !important; }

/* =============================================
   AVISO DE COOKIES
============================================= */
.nk-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  color: var(--text-muted);
}
.nk-cookie a { color: var(--accent); }
.nk-cookie button {
  margin-left: auto;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-weight: 600;
  cursor: pointer;
}
.nk-cookie button:hover { background: var(--accent); color: #000; }

/* =============================================
   FAVORITO EN TARJETA (corazón)
============================================= */
.game-card-cover { position: relative; }
.fav-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8,8,8,.7);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .15s;
}
.fav-btn:hover { transform: scale(1.12); border-color: var(--accent); color: var(--accent); }
.fav-btn.is-fav { color: var(--accent); border-color: var(--accent); }

/* =============================================
   ACCIONES EN FICHA (like / favorito)
============================================= */
.game-actions { display: flex; gap: 10px; margin-top: 12px; }
.game-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.game-action:hover { border-color: var(--accent); color: var(--accent); }
.game-action .ic { font-size: 1rem; line-height: 1; }
.game-action.is-liked,
.game-action.is-fav { border-color: var(--accent); color: var(--accent); }

/* =============================================
   VIDEO / TRAILER
============================================= */
.game-video, .game-shots { margin-top: 4px; }
.game-video h3, .game-shots h3, .download-box h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =============================================
   CAPTURAS
============================================= */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.shot-thumb {
  display: block;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shot-thumb:hover img { transform: scale(1.06); }

/* =============================================
   REPORTAR ENLACE
============================================= */
.report-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-muted);
}
.report-link:hover { color: var(--accent); }

/* =============================================
   CARGAR MÁS
============================================= */
.load-more-wrap { text-align: center; margin: 32px 0; }
.btn-load-more {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 11px 32px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-load-more:hover { background: var(--accent); color: #000; }
.btn-load-more:disabled { opacity: .6; cursor: default; }

/* =============================================
   COMENTARIOS
============================================= */
.nk-comments .comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.nk-comments .comment-list ol { list-style: none; margin-top: 16px; padding-left: 24px; }
.nk-comments .comment-body {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.nk-comments .comment-author { font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.nk-comments .comment-author .avatar { border-radius: 50%; }
.nk-comments .comment-author .says { display: none; }
.nk-comments .comment-meta { font-size: .72rem; color: var(--text-muted); margin: 4px 0 8px; }
.nk-comments .comment-meta a { color: var(--text-muted); }
.nk-comments .comment-content { font-size: .9rem; }
.nk-comments .comment-content p { margin-bottom: 8px; }
.nk-comments .reply { margin-top: 6px; }
.nk-comments .comment-reply-link {
  font-size: .75rem;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 12px;
}
.nk-comments .comment-reply-link:hover { border-color: var(--accent); }
.nk-comments-closed { color: var(--text-muted); font-size: .85rem; }

.nk-comment-form, #respond { margin-top: 8px; }
#respond h3, #reply-title { font-size: 1rem; margin-bottom: 12px; }
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: .9rem;
  margin-bottom: 12px;
  font-family: inherit;
}
#respond input:focus, #respond textarea:focus { outline: none; border-color: var(--accent); }
#respond .form-submit { margin: 0; }
#respond input[type="submit"] {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 26px;
  font-weight: 700;
  cursor: pointer;
}
#respond input[type="submit"]:hover { opacity: .9; }
#respond .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
#respond .comment-form-cookies-consent input { width: auto; margin: 0; }

/* =============================================
   FAVORITOS (sección)
============================================= */
.nekostr-favs { margin: 24px 0; }

/* =============================================
   FICHA DE JUEGO — REDISEÑO (v1.4)
============================================= */
.game-page { max-width: 1180px; margin: 0 auto; }

.game-back {
  display: inline-block;
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 16px;
}
.game-back:hover { color: var(--accent); }

.game-title-bar {
  position: relative;
  font-size: 1.7rem;
  font-weight: 800;
  padding-left: 16px;
  margin-bottom: 24px;
  line-height: 1.2;
}
.game-title-bar::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.title-lang { color: var(--text-muted); font-weight: 600; font-size: 1.1rem; }

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

/* ---------- Galería ---------- */
.game-gallery { margin-bottom: 28px; }
.gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050505;
  aspect-ratio: 16/9;
}
.gallery-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(.4);
  transform: scale(1.2);
  z-index: 0;
}
.gallery-main img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }

.gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.gallery-arrow {
  flex: 0 0 auto;
  width: 32px; height: 56px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: border-color .2s, color .2s;
}
.gallery-arrow:hover { border-color: var(--accent); color: var(--accent); }
.gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
}
.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.gallery-thumb {
  flex: 0 0 auto;
  width: 92px; height: 56px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
  padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; background: #050505; }
.gallery-thumb.is-active { border-color: var(--accent); }

/* ---------- Bloques de contenido ---------- */
.game-block { margin-bottom: 28px; }
.block-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.game-desc { color: var(--text); line-height: 1.7; }
.game-desc p { margin-bottom: 12px; }

/* ---------- Descargas ---------- */
.download-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}
.download-note { color: var(--text-muted); font-size: .82rem; margin-bottom: 14px; }
.download-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: transform .15s, opacity .2s;
}
.btn-download:hover { transform: translateY(-2px); opacity: .9; }
.report-link {
  display: inline-block;
  margin-top: 14px;
  font-size: .8rem;
  color: var(--text-muted);
}
.report-link:hover { color: var(--accent); }

/* ---------- Tarjeta de info (derecha) ---------- */
.game-aside { position: sticky; top: 80px; }
.info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.info-cover { position: relative; aspect-ratio: 16/10; background: #050505; overflow: hidden; }
.info-cover .card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(20px) brightness(.45); transform: scale(1.2); z-index: 0; }
.info-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.info-cover .info-engine { z-index: 2; }
.info-engine {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent);
  color: #000;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 6px;
}

.info-list { padding: 6px 18px; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.info-row:last-child { border-bottom: none; }
.info-k { color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.info-v { color: var(--text); font-weight: 600; text-align: right; }
.info-v a { color: var(--accent); }
.info-v a:hover { text-decoration: underline; }

.info-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 18px; border-top: 1px solid var(--border); }
.tag-pill {
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color .2s, color .2s;
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent); }

.info-progress { padding: 0 18px 14px; }
.progress-head { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-muted); margin-bottom: 7px; }
.progress-track { background: var(--bg3); border-radius: 4px; height: 7px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; }

.info-actions { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px; border-top: 1px solid var(--border); }
.btn-primary-action {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn-primary-action:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary-action.is-fav { background: var(--accent2); }
.btn-ghost-action {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, color .2s;
}
.btn-ghost-action:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-action.is-liked { border-color: var(--accent); color: var(--accent); }

/* ---------- Bloque de Discord ---------- */
.discord-box {
  margin-top: 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.discord-box-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.discord-banner { display: block; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.discord-banner img { width: 100%; display: block; }
.discord-widget { border: 0; border-radius: 10px; display: block; width: 100%; }
.discord-join-btn {
  display: block;
  text-align: center;
  background: #5865F2;
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  transition: background .2s;
}
.discord-join-btn:hover { background: #4752c4; }

/* ---------- Idiomas disponibles ---------- */
.info-row-stack { flex-direction: column; align-items: flex-start; gap: 9px; }
.info-langs { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.lang-pill {
  font-size: .74rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

/* ---------- Video embed genérico (ya definido arriba) ---------- */

/* ---------- Videos subtitulados ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video-item { display: flex; flex-direction: column; gap: 8px; }
.video-caption { font-size: .85rem; color: var(--text); font-weight: 600; }

/* ---------- Fandubs ---------- */
.fandub-list { display: flex; flex-direction: column; gap: 18px; }
.fandub-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  align-items: start;
}
.fandub-card .video-embed { margin: 0; }
.fandub-info { min-width: 0; }
.fandub-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.fandub-credits { display: flex; flex-direction: column; gap: 10px; }
.fandub-credits > div { display: flex; flex-direction: column; gap: 2px; }
.fc-k { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.fc-v { font-size: .9rem; font-weight: 600; color: var(--text); }
.fc-v a { color: var(--accent); }
.fc-v a:hover { text-decoration: underline; }

/* ---------- Póster de video (host sin embed directo) ---------- */
.video-poster {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform .15s, opacity .2s;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.05); opacity: .92; }

/* ---------- Lista de capítulos ---------- */
.chapter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chapter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.chapter-btn:hover { border-color: var(--accent); color: var(--accent); }
.chapter-btn.is-active { border-color: var(--accent); color: var(--accent); background: var(--bg3); }

/* ---------- Single Video — layout específico ---------- */
.single-video .game-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.single-video .game-main .video-embed {
  border-radius: 12px;
}
.single-video .info-card {
  position: sticky;
  top: 80px;
}

/* ---------- Server / Chapter labels y botones ---------- */
.server-list, .chapter-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.server-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}
.server-btn { text-transform: none; }
.server-btn:hover { border-color: var(--accent); color: var(--accent); }
.server-btn.is-active { border-color: var(--accent); color: var(--accent); background: var(--bg3); }

/* ---------- Comentarios — tema oscuro ---------- */
.nk-comments { color: var(--text); }
.nk-comments .section-title { font-size: 1rem; }
.nk-comment-form label { color: var(--text); display: block; margin-bottom: 4px; font-size: .88rem; font-weight: 600; }
.nk-comment-form input[type="text"],
.nk-comment-form input[type="email"],
.nk-comment-form input[type="url"],
.nk-comment-form textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
  width: 100%;
  max-width: 480px;
  font-family: var(--font);
  font-size: .9rem;
}
.nk-comment-form textarea { max-width: 100%; min-height: 120px; resize: vertical; }
.nk-comment-form input:focus,
.nk-comment-form textarea:focus { outline: none; border-color: var(--accent); }
.nk-comment-form .form-submit input[type="submit"] {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.nk-comment-form .form-submit input[type="submit"]:hover { opacity: .9; transform: translateY(-1px); }
.comment-list { margin-top: 16px; }
.comment-list .comment { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.comment-list .comment-author { font-weight: 700; font-size: .9rem; }
.comment-list .comment-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; }
.comment-list .comment-content p { margin-bottom: 8px; }
.nk-comments-closed { color: var(--text-muted); font-style: italic; }
.logged-in-as { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.logged-in-as a { color: var(--accent); }
.logged-in-as a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .fandub-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-aside { position: static; order: -1; }
  .single-video .game-layout { grid-template-columns: 1fr; }
}

/* =============================================
   PUBLICIDAD (Adsterra)
============================================= */
.nk-ad {
  margin: 24px 0;
  text-align: center;
  overflow: hidden;
}
.nk-ad-label {
  display: block;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  opacity: .6;
  margin-bottom: 6px;
}
.nk-ad-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
.nk-ad-inner img,
.nk-ad-inner iframe { max-width: 100%; height: auto; }
.nk-ad-sidebar { margin-top: 24px; }
.nk-ad-native {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg2);
}

/* ---------- Popup flotante seguro (modal de anuncio) ---------- */
.nk-ad-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nk-ad-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, .82);
  backdrop-filter: blur(3px);
}
.nk-ad-modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.nk-ad-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.nk-ad-modal-close:hover { opacity: .9; }
.nk-ad-modal .nk-ad-inner { display: flex; justify-content: center; }
@media (max-width: 480px) {
  .nk-ad-modal-close { top: -10px; right: -10px; width: 30px; height: 30px; }
}

/* ---------- Modal de perfil social (créditos de fandub) ---------- */
.nk-soc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nk-soc-modal[hidden] { display: none; }
.nk-soc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
}
.nk-soc-card {
  position: relative;
  background: var(--bg-card, #111);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px 26px;
  width: min(320px, calc(100vw - 40px));
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}
.nk-soc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.nk-soc-close:hover { color: #fff; border-color: #fff; }
.nk-soc-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.nk-soc-name { font-size: 1.1rem; font-weight: 700; }
.nk-soc-role { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.nk-soc-handle { font-size: .9rem; color: var(--accent); margin: 8px 0 16px; word-break: break-all; }
.nk-soc-open { display: inline-block; }

@media (max-width: 480px) {
  .nk-cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .nk-cookie button { margin: 0; width: 100%; }
}
