/* ══════════════════════════════════════════════════════════════════════════
   MODAL HOBBIES
══════════════════════════════════════════════════════════════════════════ */

.hob-box {
  max-width: 860px !important;
  width: 96vw !important;
  padding: 0 !important;
  background: #0a0a0a;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  contain: layout style;
}

.hob-scroll {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.hob-scroll::-webkit-scrollbar { width: 3px; }
.hob-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

.hob-section {
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.hob-section-last { border-bottom: none; padding-bottom: 40px; }
@media (max-width: 600px) { .hob-section { padding: 22px 18px; } }

/* ── Labels ── */
.hob-section-label {
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* sublabel — separa bloques dentro de la sección, sin línea */
.hob-section-sublabel {
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  margin: 24px 0 14px;
}

/* ── Placeholder ── */
.hob-ph {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141414;
  border-radius: 8px;
  color: rgba(255,255,255,.1);
  font-size: 18px;
}

/* ══════════════════════════════════════════════════════════════════════════
   TORNEO
══════════════════════════════════════════════════════════════════════════ */

.hob-torneo {
  margin-bottom: 24px;
}

.hob-torneo-main {
  border-radius: 10px;
  overflow: hidden;
  background: #141414;
  aspect-ratio: 16/7;
  margin-bottom: 12px;
}

.hob-torneo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* encuadra la acción, no el suelo */
  display: block;
  filter: brightness(.88);
  transition: filter .3s ease;
}

.hob-torneo-main:hover img { filter: brightness(1); }

@media (max-width: 600px) {
  .hob-torneo-main { aspect-ratio: 4/3; } /* en mobile más cuadrada para que se vea mejor */
}

.hob-torneo-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hob-torneo-titulo {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  font-family: 'DM Mono', monospace;
}

.hob-torneo-lugar {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  letter-spacing: .04em;
}

/* ══════════════════════════════════════════════════════════════════════════
   TIEMPOS — horizontal
══════════════════════════════════════════════════════════════════════════ */

.hob-tiempos-wrap {
  margin-bottom: 4px;
}

.hob-tiempo-label {
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Todos los tiempos en una fila horizontal */
.hob-tiempos-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hob-tiempos-row::-webkit-scrollbar { display: none; }

.hob-tiempo-pb {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  color: rgba(255,255,255,.9);
  line-height: 1;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

/* Separador visual entre PB y el resto */
.hob-tiempo-pb::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: .7em;
  background: rgba(255,255,255,.15);
  margin-left: 16px;
  vertical-align: middle;
}

/* Resto inline, mismo nivel */
.hob-tiempos-rest {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 14px;
  flex-wrap: nowrap;
}

.hob-tiempo-item {
  font-family: 'DM Mono', monospace;
  font-size: clamp(13px, 2vw, 16px);
  color: rgba(255,255,255,.28);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   COLECCIÓN DE CUBOS
══════════════════════════════════════════════════════════════════════════ */

.hob-esp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 8px; }
.hob-esp-grid-full { grid-template-columns: repeat(4,1fr) !important; }
@media (max-width: 600px) {
  .hob-esp-grid-full { grid-template-columns: repeat(2,1fr) !important; }
}

.hob-esp-card { border-radius: 8px; overflow: hidden; background: #141414; border: 1px solid rgba(255,255,255,.04); }
.hob-esp-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; filter: brightness(.85); transition: filter .3s; }
.hob-esp-card:hover img { filter: brightness(1); }
.hob-esp-info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.hob-esp-nombre { font-size: 11px; color: rgba(255,255,255,.65); }
.hob-esp-nota   { font-size: 10px; color: rgba(255,255,255,.28); line-height: 1.4; }
.hob-esp-link   { font-size: 10px; color: rgba(255,255,255,.35); text-decoration: none; margin-top: 2px; transition: color .2s; }
.hob-esp-link:hover { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════════════════════════════
   ORIGEN (foto + botón video)
══════════════════════════════════════════════════════════════════════════ */

.hob-origen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .hob-origen-row { grid-template-columns: 1fr; } }

.hob-origen-img { border-radius: 10px; overflow: hidden; }
.hob-origen-img img { width: 100%; display: block; border-radius: 10px; object-fit: cover; }
.hob-origen-texto { display: flex; flex-direction: column; gap: 16px; }
.hob-origen-nota {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.hob-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  align-self: flex-start;
}
.hob-video-btn:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
}

/* Player del video — con padding en mobile para que no toque los bordes */
.hob-video-player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .hob-video-player {
    border-radius: 8px;
    /* El padding lo da el .hob-section (22px 18px),
       no necesitamos padding extra aquí */
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   AJEDREZ
══════════════════════════════════════════════════════════════════════════ */

.hob-aj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  margin-bottom: 20px;
}

.hob-aj-foto { border-radius: 10px; overflow: hidden; background: #141414; }
.hob-aj-foto img,
.hob-aj-foto .hob-ph { width: 100%; aspect-ratio: 4/3; display: block; }
.hob-aj-foto img {
  object-fit: cover;
  object-position: center;
  filter: brightness(.82);
  transition: filter .3s ease, transform .4s ease;
}
.hob-aj-foto:hover img { filter: brightness(1); transform: scale(1.03); }
.hob-aj-caption { font-size: 10px; color: rgba(255,255,255,.25); padding: 5px 8px 7px; }

/* ── Chess.com ── */
.hob-chess-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.hob-chess-profile:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.13); }
.hob-chess-icon { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.hob-chess-icon-ph {
  width: 36px; height: 36px; border-radius: 6px; background: #2b2b2b;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(255,255,255,.4); flex-shrink: 0;
}
.hob-chess-profile-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.hob-chess-profile-name { font-size: 13px; color: rgba(255,255,255,.8); font-family: 'DM Mono', monospace; }
.hob-chess-profile-sub  { font-size: 10px; color: rgba(255,255,255,.3); letter-spacing: .04em; }
.hob-chess-profile-arrow { font-size: 14px; color: rgba(255,255,255,.2); transition: color .2s, transform .2s; }
.hob-chess-profile:hover .hob-chess-profile-arrow { color: rgba(255,255,255,.6); transform: translate(2px,-2px); }