.webcam-card {
  border: 1px solid #ddd;
  border-radius: .5rem;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.webcam-card-header {
  padding: .75rem 1rem;
  background: #f7f7f7;
  font-weight: bold;
}
.webcam-card-body {
  position: relative;
  width: 100%;
  /* ratio hack si lo necesitas */
  padding-bottom: 56.25%;
  overflow: hidden;
}
.webcam-card-body iframe {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
}
.webcam-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .5rem 1rem;
}
.webcam-categories .category-item {
  background: #eef;
  padding: .25rem .5rem;
  border-radius: .25rem;
  font-size: .875rem;
}
.webcam-card-footer {
  padding: .75rem 1rem;
  text-align: center;
}
.webcam-card-footer .button {
  background: #0073aa;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .25rem;
  text-decoration: none;
}

/* 1) Select all webcam iframes (adjust the selector if you have another class) */
.webcam-embed-container iframe,
iframe[src*="chaturbate.com/embed"],
iframe[src*="bongacams.com/chat-popup"],
iframe[src*="creative.rmhfrtnd.com/LPLiteIframe"] {
  display: block;          /* Block for margin:auto if you need it */
  width: 100% !important;  /* Always at 100% of the container */
  max-width: 100% !important;
  
  aspect-ratio: 16 / 9 !important;
  height: auto !important; /* Let the browser calculate the height */
  
  /* And ensures a minimum acceptable on mobile */
  min-height: 200px !important;  /* Adjust as you see fit */
  
  border: 0 !important;
}

@supports not (aspect-ratio: 16/9) {
  .webcam-embed-container iframe {
    min-height: 200px !important;
  }
}

.webcam-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 1.5rem !important;
  margin: 2rem 0 !important;
}

.webcam-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.webcam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.webcam-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;        
  object-fit: cover;        
  object-position: center;  
}

.webcam-card-title {
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: #333;
}

.webcam-card-link {
  text-decoration: none;
  color: inherit;
}
.webcam-card-link:hover .webcam-card-title {
  color: #0073aa;
}
