/* Fondo general */
body {
  margin: 0;
  background: url('neocities.jpg') center/cover no-repeat fixed;
  color: #e6e8ef;
  font: 400 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
}

/* Contenedor principal */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* Header y navegación */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.nav {
  display: flex;
  gap: 20px;
}
.nav-link {
  color: #e6e8ef;
  text-decoration: none;
  font-weight: 600;
}
.nav-link:hover,
.nav-link.active {
  color: #5b8cff;
  border-bottom: 2px solid #5b8cff;
}

/* Buscador y filtros */
.toolbar, .chips, .add-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.input, select {
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
}
.btn {
  background: linear-gradient(180deg,#5b8cff,#3b6bd9);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
}

/* Tarjetas de series/programas */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 14px;
  margin-top: 16px;
}
.card {
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.meta {
  padding: 10px;
}
.title {
  font-weight: bold;
  font-size: 14px;
  margin: 0 0 4px;
}
.pill {
  font-size: 11px;
  color: #ccc;
}

/* Modal de reproducción */
dialog#player {
  width: min(980px, 94vw);
  border: none;
  border-radius: 12px;
  padding: 0;
  background: rgba(0,0,0,.95);
}
dialog::backdrop {
  background: rgba(0,0,0,.6);
}
