/* ==========================================================
   COMPONENTS.CSS — Componentes reutilizables de UI
   ========================================================== */

/* ---------- BOTONES ---------- */
.syn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--syn-dur) var(--syn-ease);
  text-decoration: none;
  font-family: inherit;
}

.syn-btn-brand {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .2);
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .5), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.syn-btn-brand:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(139, 92, 246, .6)
}

.syn-btn-ghost {
  background: transparent;
  border-color: var(--syn-border-strong);
  color: var(--syn-text)
}

.syn-btn-ghost:hover {
  background: var(--syn-surface-2);
  color: #fff;
  border-color: rgba(255, 255, 255, .2)
}

.syn-btn-sm {
  padding: .35rem .75rem;
  font-size: .75rem
}

.syn-btn-lg {
  padding: .8rem 1.6rem;
  font-size: 1.05rem;
  gap: .6rem
}

.syn-btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: none
}

.syn-btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none
}

.syn-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important
}

/* ---------- TÍTULOS / HERO ---------- */
.syn-hero {
  text-align: center;
  padding: 2rem 1rem 3rem
}

.syn-title {
  font-size: clamp(2.8rem, 5vw + .5rem, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.syn-sub {
  color: var(--syn-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 680px;
  margin: 1rem auto
}

.text-gradient {
  background: linear-gradient(180deg, #fff 30%, #a5a8b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-brand {
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6 60%, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.syn-section-title {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.syn-section-title i {
  color: var(--syn-brand)
}

/* ---------- CARDS ---------- */
.syn-card {
  background: var(--syn-surface);
  border: 1px solid var(--syn-border);
  border-radius: var(--syn-r-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--syn-dur) var(--syn-ease);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.syn-card:hover {
  transform: translateY(-4px);
  border-color: var(--syn-border-strong);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .7)
}

.syn-card-media {
  position: relative;
  overflow: hidden;
  background: var(--syn-surface-3);
  height: 140px;
  flex-shrink: 0;
}

.syn-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease, transform .5s var(--syn-ease);
}

.syn-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem
}

.syn-card-title {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.syn-card-desc {
  font-size: .78rem;
  color: var(--syn-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0
}

.syn-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: var(--syn-dim);
  margin-top: auto;
  padding-top: .5rem;
  gap: .5rem;
  flex-wrap: wrap
}

/* Imagen con blur-up */
.syn-img-loading {
  filter: blur(12px);
  opacity: .6;
  transform: scale(1.05);
  transition: filter .7s, opacity .7s, transform .7s
}

/* ---------- BADGES ---------- */
.syn-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  z-index: 10;
  color: #fff;
  background: rgba(10, 12, 16, .8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.syn-badge.brand {
  background: var(--syn-brand);
  border-color: var(--syn-brand)
}

.syn-badge.warn {
  background: var(--syn-warn);
  border-color: var(--syn-warn);
  color: #1a1e27
}

.syn-badge.info {
  background: var(--syn-info);
  border-color: var(--syn-info)
}

.syn-badge.dim {
  background: rgba(100, 116, 139, .85);
  border-color: rgba(100, 116, 139, .85)
}

.syn-badge.pos {
  position: absolute;
  top: .5rem;
  left: .5rem;
  right: auto;
  background: rgba(0, 0, 0, .75);
  color: var(--syn-warn)
}

/* ---------- TIMERS ---------- */
.syn-timer {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(139, 92, 246, .14);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, .2);
  margin-bottom: .5rem;
}

.syn-timer.info {
  background: rgba(59, 130, 246, .14);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, .2)
}

.syn-timer.dim {
  background: rgba(100, 116, 139, .14);
  color: var(--syn-muted);
  border-color: rgba(100, 116, 139, .2)
}

.syn-timer.big {
  font-size: 1.1rem;
  padding: .5rem 1.2rem;
  border-radius: 30px
}

/* ---------- SIDEBAR CARD ---------- */
.syn-sidebar-card {
  background: var(--syn-surface);
  border: 1px solid var(--syn-border);
  border-radius: var(--syn-r);
  padding: 1rem;
  margin-bottom: 1rem
}

.syn-sidebar-card h4 {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--syn-muted);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .4rem
}

.syn-sidebar-card h4 i {
  color: var(--syn-brand)
}

.syn-sidebar-info {
  font-size: .78rem;
  color: var(--syn-muted);
  line-height: 1.55;
  margin-bottom: .8rem
}

/* ---------- FORMS ---------- */
.syn-form-group {
  margin-bottom: 1rem
}

.syn-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--syn-muted);
  margin-bottom: .4rem;
  display: block
}

.syn-input {
  width: 100%;
  padding: .65rem .9rem;
  border-radius: 12px;
  font-size: .85rem;
  background: var(--syn-surface-2);
  border: 1px solid var(--syn-border);
  color: var(--syn-text);
  font-family: inherit;
  transition: all var(--syn-dur);
}

.syn-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, .5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .14);
  background: var(--syn-surface-3);
}

.syn-input::placeholder {
  color: var(--syn-dim)
}

/* Input con icono */
.syn-input-icon-wrapper {
  position: relative;
  width: 100%
}

.syn-input-icon-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--syn-muted);
  font-size: 1rem;
  pointer-events: none;
}

.syn-input-icon-wrapper .syn-input {
  padding-left: 40px
}

/* Estado de error en inputs */
.syn-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important;
  background-color: rgba(239, 68, 68, .05) !important;
}

.syn-input-icon-wrapper:has(.syn-input-error) i {
  color: #ef4444 !important
}

/* ---------- TABLAS ---------- */
.syn-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px
}

.syn-table th {
  text-align: left;
  padding: .6rem .5rem;
  color: var(--syn-muted);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em
}

.syn-table td {
  background: var(--syn-surface);
  padding: .75rem .5rem;
  vertical-align: middle
}

.syn-table tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px
}

.syn-table tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px
}

.syn-table tr:hover td {
  background: var(--syn-surface-2)
}

/* ---------- MODALES ---------- */
.syn-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.syn-modal-backdrop.open {
  display: flex
}

.syn-modal {
  background: var(--syn-surface);
  border: 1px solid var(--syn-border-strong);
  border-radius: var(--syn-r-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}

.syn-modal-head {
  padding: 1.25rem 1.5rem .75rem;
  border-bottom: 1px solid var(--syn-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.syn-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0
}

.syn-modal-close {
  background: transparent;
  border: none;
  color: var(--syn-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: .2rem .5rem;
  border-radius: 8px;
}

.syn-modal-close:hover {
  background: rgba(139, 92, 246, .15);
  color: var(--syn-brand)
}

.syn-modal-body {
  padding: 1.5rem
}

/* ---------- TABS (estilo pill, para auth) ---------- */
.syn-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px
}

.syn-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--syn-muted);
  background: var(--syn-surface-2);
  border: 1px solid var(--syn-border);
  transition: all .2s ease;
  font-family: inherit;
}

.syn-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05)
}

.syn-tab.active {
  background: var(--syn-brand);
  color: #fff;
  border-color: var(--syn-brand);
  box-shadow: 0 4px 12px rgba(139, 92, 246, .3);
}

/* ---------- PILLS ---------- */
.syn-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem
}

.syn-pill {
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--syn-surface-2);
  border: 1px solid var(--syn-border);
  color: var(--syn-muted);
  cursor: pointer;
  transition: all var(--syn-dur);
  text-decoration: none;
}

.syn-pill:hover {
  color: #fff;
  border-color: var(--syn-border-strong)
}

.syn-pill.active {
  background: var(--syn-brand);
  border-color: var(--syn-brand);
  color: #fff
}

/* ---------- ALERTS ---------- */
.syn-alert {
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: .85rem;
  margin-bottom: 1rem;
  border: 1px solid
}

.syn-alert-success {
  background: rgba(34, 197, 94, .1);
  border-color: rgba(34, 197, 94, .3);
  color: #22c55e
}

.syn-alert-warn {
  background: rgba(245, 158, 11, .1);
  border-color: rgba(245, 158, 11, .3);
  color: #fbbf24
}

.syn-alert-danger {
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .3);
  color: #f87171
}

/* ---------- EMPTY STATE ---------- */
.syn-empty {
  background: var(--syn-surface);
  border: 1px dashed var(--syn-border-strong);
  border-radius: var(--syn-r-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--syn-muted);
  font-size: .9rem;
}

.syn-empty i {
  font-size: 2.5rem;
  color: var(--syn-dim);
  margin-bottom: .75rem;
  display: block
}

/* ---------- TOASTS ---------- */
.syn-toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  width: auto;
  max-width: 90%;
}

.syn-toast {
  background: var(--syn-surface);
  border: 1px solid var(--syn-border-strong);
  border-left: 4px solid var(--syn-brand);
  border-radius: 12px;
  padding: .9rem 1.2rem;
  margin-bottom: .75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  min-width: 280px;
  max-width: 500px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-20px);
  transition: all .4s var(--syn-ease);
  color: #fff;
  font-size: .85rem;
}

.syn-toast.show {
  opacity: 1;
  transform: translateY(0)
}

.syn-toast.success {
  border-left-color: var(--syn-success)
}

.syn-toast.error {
  border-left-color: var(--syn-brand)
}

.syn-toast.warning {
  border-left-color: var(--syn-warn)
}

.syn-toast.info {
  border-left-color: var(--syn-info)
}

/* ---------- SECTION HEAD (título + acción) ---------- */
.syn-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--syn-border);
  padding-bottom: .75rem;
  margin: 2rem 0 1.25rem;
}

/* ==========================================
   HERO CAROUSEL 2.0
   ========================================== */
.syn-carousel {
  position: relative;
  width: 100%;
  height: 460px;
  background: linear-gradient(145deg, #0d1017 0%, #11141b 100%);
  border: 1px solid var(--syn-border);
  border-radius: var(--syn-r-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.syn-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.syn-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(0.98) translateY(10px);
}

.syn-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  z-index: 2;
}

/* Layout */
.syn-carousel-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  width: 100%;
  height: 100%;
  padding: 3.5rem 4rem;
  align-items: center;
}

/* Textos */
.syn-carousel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}

.syn-carousel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  border: 1px solid;
  align-self: flex-start;
}

.syn-carousel-header-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.syn-carousel-icon {
  font-size: 3.2rem;
  flex-shrink: 0;
}

.syn-carousel-hook {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}

.syn-carousel-text {
  font-size: 1.1rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 95%;
}

.syn-carousel-text strong {
  color: #fff;
  font-weight: 600;
}

/* Botón con brillo pulsante para incentivar el clic */
.syn-btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px -5px rgba(139, 92, 246, 0.4);
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 15px -5px rgba(139, 92, 246, 0.4);
  }

  100% {
    box-shadow: 0 0 25px 0px rgba(139, 92, 246, 0.6);
  }
}

/* Imagen */
.syn-carousel-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-8deg) scale(1.02);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.syn-carousel-slide.active .syn-carousel-image-wrapper {
  transform: perspective(1000px) rotateY(0deg) scale(1);
}

.syn-carousel-image-glow {
  position: absolute;
  inset: -20px;
  filter: blur(40px);
  opacity: 0.3;
  z-index: 0;
  border-radius: 50%;
}

.syn-carousel-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.syn-carousel-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #11141b 0%, transparent 30%, transparent 80%, rgba(17, 20, 27, 0.6) 100%),
    linear-gradient(to top, #11141b 0%, transparent 25%);
  z-index: 2;
  pointer-events: none;
}

.syn-carousel-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.syn-carousel-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--syn-border);
  color: var(--syn-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.syn-carousel-btn:hover {
  background: var(--syn-brand);
  color: #fff;
  border-color: var(--syn-brand);
}

.syn-carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.syn-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.syn-carousel-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 960px) {
  .syn-carousel {
    height: auto;
    min-height: 500px;
  }

  .syn-carousel-layout {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
    gap: 2rem;
  }

  .syn-carousel-image-wrapper {
    display: none;
  }

  .syn-carousel-hook {
    font-size: 2.4rem;
  }

  .syn-carousel-controls {
    bottom: 1.2rem;
    right: 1.2rem;
  }
}

/* ==========================================
   GAME CARDS & GRID (Arreglado)
   ========================================== */
.syn-game-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

.syn-game-grid>* {
  min-width: 0;
  max-width: 100%;
}

/* Tarjeta individual */
.syn-game-card {
  display: flex;
  flex-direction: column;
  background: var(--syn-surface);
  border: 1px solid var(--syn-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

  width: 100%;
  min-width: 0;
  /* NUEVO */
  max-width: 100%;
  /* NUEVO */
}

.syn-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.8);
}

/* Imagen de cabecera */
.syn-game-media {
  position: relative;
  width: 100%;
  min-width: 0;
  /* NUEVO */
  max-width: 100%;
  /* NUEVO */
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--syn-surface-2);
}

.syn-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.syn-game-card:hover .syn-game-media img {
  transform: scale(1.08);
}

.syn-game-media .img-error {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge del género sobre la imagen */
.syn-game-genre-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Body: Layout de columna flexible */
.syn-game-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.syn-game-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.syn-game-card:hover .syn-game-title {
  color: var(--syn-brand);
}

/* Fila inferior: Izquierda y Derecha */
.syn-game-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
}

/* Grupo izquierdo (Avatar, Autor, Género) */
.syn-game-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.syn-game-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.syn-game-author {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.syn-game-genre {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--syn-brand);
  background: rgba(139, 92, 246, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid rgba(139, 92, 246, 0.2);
  flex-shrink: 0;
}

/* Grupo derecho (Botones) */
.syn-game-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Botones de acción individuales */
.syn-game-action {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--syn-border);
  color: var(--syn-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.72rem;
  user-select: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.syn-game-action:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--syn-brand);
  transform: translateY(-1px);
}

.syn-game-action:focus-visible {
  outline: 2px solid var(--syn-brand);
  outline-offset: 2px;
}

.syn-game-action.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--syn-brand);
  color: var(--syn-brand);
}

.syn-game-action[data-action="hide"]:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* Botón CTA (Mi biblioteca) */
.syn-game-action--cta {
  width: auto !important;
  min-width: 0;
  aspect-ratio: auto !important;
  padding: 0 .65rem !important;
  font-size: .75rem !important;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.syn-game-action--cta i {
  font-size: .75rem !important;
}

/* ==========================================
   GAME OF THE DAY (GOTD) (AJUSTADO: Más compacto)
   ========================================== */
.syn-gotd-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--syn-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.3s ease;
}

.syn-gotd-wrapper:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.syn-gotd-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}

.syn-gotd-wrapper:hover .syn-gotd-bg {
  transform: scale(1.03);
}

.syn-gotd-bg.img-error {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
}

.syn-gotd-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.95) 0%, rgba(10, 12, 16, 0.6) 40%, transparent 100%);
  z-index: 1;
}

.syn-gotd-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--syn-brand);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.syn-gotd-timer {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: monospace;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.syn-gotd-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.syn-gotd-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem 0;
  line-height: 1.1;
}

.syn-gotd-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
  max-width: 85%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.syn-gotd-empty {
  background: var(--syn-surface);
  border: 1px dashed var(--syn-border-strong);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  color: var(--syn-muted);
}

.syn-gotd-empty i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--syn-dim);
}

.syn-gotd-empty h3 {
  font-size: 1.1rem;
  margin: 0 0 0.2rem 0;
  color: #fff;
}

/* ==========================================
   GOTD — GRID DE 2 JUEGOS DEL DÍA
   ========================================== */
.syn-gotd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.syn-gotd-grid .syn-gotd-wrapper {
  margin-bottom: 0 !important;
  height: 240px;
}

.syn-gotd-grid .syn-gotd-title {
  font-size: 1.3rem;
  line-height: 1.15;
}

.syn-gotd-grid .syn-gotd-desc {
  font-size: 0.78rem;
  -webkit-line-clamp: 2;
  max-width: 95%;
}

.syn-gotd-grid .syn-gotd-content {
  padding: 1rem;
}

.syn-gotd-grid .syn-gotd-label,
.syn-gotd-grid .syn-gotd-timer {
  font-size: 0.68rem;
  padding: 0.25rem 0.5rem;
}

@media (max-width: 640px) {
  .syn-gotd-grid {
    grid-template-columns: 1fr;
  }

  .syn-gotd-grid .syn-gotd-wrapper {
    height: 260px;
  }
}

/* ==========================================
   REVIEW CARDS — Blog horizontal, 2 columnas
   ========================================== */
.syn-review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

.syn-review-card {
  display: flex;
  flex-direction: row;
  background: var(--syn-surface);
  border: 1px solid var(--syn-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.syn-review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.8);
}

.syn-review-media {
  position: relative;
  width: 140px;
  min-width: 140px;
  overflow: hidden;
  background: var(--syn-surface-2);
  flex-shrink: 0;
}

.syn-review-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.syn-review-card:hover .syn-review-media img {
  transform: scale(1.06);
}

.syn-review-media .img-error {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
}

.syn-review-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.syn-review-rating i {
  font-size: 0.6rem;
}

.syn-review-rating.great {
  background: rgba(34, 197, 94, 0.85);
}

.syn-review-rating.good {
  background: rgba(139, 92, 246, 0.85);
}

.syn-review-rating.mid {
  background: rgba(245, 158, 11, 0.85);
  color: #1a1e27;
}

.syn-review-rating.bad {
  background: rgba(239, 68, 68, 0.85);
}

.syn-review-body {
  flex: 1;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.syn-review-game {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--syn-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.syn-review-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.syn-review-card:hover .syn-review-title {
  color: var(--syn-brand);
}

.syn-review-excerpt {
  font-size: 0.8rem;
  color: var(--syn-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.syn-review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--syn-border);
  font-size: 0.7rem;
  color: var(--syn-dim);
}

.syn-review-author {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--syn-muted);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.syn-review-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--syn-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.syn-review-stats {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.syn-review-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  color: var(--syn-dim);
}

@media (max-width: 800px) {
  .syn-review-card {
    flex-direction: column;
  }

  .syn-review-media {
    width: 100%;
    min-width: 0;
    height: 160px;
  }

  .syn-review-body {
    padding: 0.9rem;
  }
}
