* {
  box-sizing: border-box;
}

body {
  background: #131313;
  color: #b9cacb;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.btn-regresar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9cacb;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid #3a494b;
  transition: color 0.2s, border-color 0.2s;
}

.btn-regresar:hover {
  color: #00f2ff;
  border-color: #00f2ff;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  color: #fface8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 32px;
  margin-bottom: 8px;
}

.titulo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: #e2e2e2;
  font-size: 40px;
  margin: 0 0 40px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #1f1f1f;
  border: 1px solid #3a494b;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: #00f2ff;
}

.card__thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card__thumb {
  transform: scale(1.05);
}

.card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover .card__play {
  opacity: 1;
}

.card__play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f2ff;
  font-size: 20px;
}

.card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}

.card__body {
  padding: 14px 16px 16px;
}

.card__title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #e2e2e2;
  line-height: 1.35;
  margin: 0 0 8px 0;
  word-break: break-word;
}

.card__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #b9cacb;
  margin: 0;
}

.paginacion {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagina-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #3a494b;
  background: #1f1f1f;
  color: #b9cacb;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagina-btn:hover {
  border-color: #00f2ff;
  color: #fff;
}

.pagina-btn.activa {
  background: #00f2ff;
  border-color: #00f2ff;
  color: #00363a;
}

.pagina-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.player-overlay.active {
  display: flex;
}

.player-wrapper {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #00f2ff;
}

.player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #3a494b;
  background: none;
  color: #b9cacb;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.player-close:hover {
  color: #00f2ff;
  border-color: #00f2ff;
}