@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --dg-font-family: "Montserrat", sans-serif;
}

.dg-grabaciones-finder {
  width: 100%;
  font-family: var(--dg-font-family);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.dg-grabaciones-finder .dg-row {
  gap: 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.dg-select {
  padding: 1rem 1rem;
  border-radius: 1rem;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7em top 50%;
  background-size: 0.65em auto;
  padding-right: 30px;
  font-weight: bold;
}

.dg-btn {
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 0.6rem;
  background: #40a033;
  color: #fff;
  cursor: pointer;
}

.dg-btn:hover {
  background: #1fc270;
}

.dg-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dg-result {
  margin-top: 0.75rem;
  text-align: center;
}

.dg-link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  background: #0ea5e9;
  color: #fff;
  text-decoration: none;
}

.dg-fecha-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dg-more {
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 0.5rem;
  background: #334155;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.dg-more:hover {
  filter: brightness(1.1);
}

/* Modal de video (SweetAlert2) */
.swal2-popup.dg-swal-video {
  padding: 0;
  background: #000;
}
.dg-video-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}
.dg-video-wrap iframe,
.dg-video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .dg-grabaciones-finder .dg-row {
    grid-template-columns: repeat(1, 1fr);
  }
}