html, body {
  margin: 0; padding: 0; height: 100%;
  background-color: #121212;
  color: #e6eef6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 20px;
}

header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #021124;
}

h1 {
  font-size: 18px;
  margin: 0;
}

.search-wrap {
  margin-left: auto;
  width: 380px;
  min-width: 180px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

#category-filter {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  background-color: #1a1a1a !important;
  color: #e6eef6 !important;
  border: 1px solid #333 !important;
  border-radius: 6px !important;
  padding: 10px 40px 10px 14px !important; /* espacio para flecha */
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  height: 42px !important;

  /* Flecha SVG inline */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='%23e6eef6' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px 8px !important;
}

#category-filter:hover {
  background-color: #222 !important;
  border-color: #06b6d4 !important;
}

#category-filter:focus {
  outline: none !important;
  border-color: #06b6d4 !important;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3) !important;
}

/* Input búsqueda con estilo oscuro */
#search {
  height: 42px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #e6eef6;
  padding: 10px 14px;
  font-size: 16px;
  outline: none;
  flex-grow: 1;
}

#search::placeholder {
  color: #888;
}

#search:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
}

.thumbs-container {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  margin-right: -16px;
}

.th {
  flex: 0 0 16.66%;
  padding: 0 16px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.th .thumb {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background: #0b1220;
  border-radius: 12px;
  overflow: hidden;
}

.th .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.time-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.title {
  margin: 8px 0 0;
  font-size: 14px;
  color: #e6eef6;
  text-align: center;
}

.no-results {
  padding: 40px;
  text-align: center;
  color: #9aa4b2;
}

.pagination ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.pagination li {
  display: inline-block;
}

.pagination a, .pagination strong {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #e6eef6;
  background: #0b1220;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.pagination a:hover {
  background: #06b6d4;
  border-color: #06b6d4;
}

.pagination strong {
  background: #06b6d4;
  border-color: #06b6d4;
  cursor: default;
}
