.card-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-video:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card-video:hover video {
  transform: scale(1.05) rotate(-0.5deg);
}

/* Duración en la esquina inferior derecha */
.video-duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 3px;
}
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #;
  color: #333;
  line-height: 1.6;
}

/* Espaciado arriba */
.blog_area {
  margin-top: 40px;
}

/* Títulos */
h2, h3, h4 {
  font-weight: 600;
  color: #222;
}

/* HEADER */
.custom-header {
  width: 100%;
  padding: 4px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-left .logo {
  height: 70px;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 15px;
}

/* FORM */
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  max-width: 650px;   /* ✅ limite en PC */
  width: 100%;
  margin: auto;
  box-sizing: border-box;
}

.search-field {
  height: 40px;
  font-size: 15px;
  border-radius: 6px;
  padding: 6px 10px;
  flex: 1;
  min-width: 0;
}

.search-btn {
  flex: 0 0 auto;
  height: 40px;
  background-color: #448bc6;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  padding: 0 12px;
  white-space: nowrap;
}

/* BOTONES */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-listen {
  border: 2px solid #00a8ff;
  border-radius: 20px;
  padding: 6px 15px;
  color: #00a8ff;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  white-space: nowrap;
}

.btn-listen:hover {
  background: #00a8ff;
  color: #fff;
}

.btn-give {
  color: #00a8ff;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .header-center {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .search-form {
    max-width: 100%;   /* ✅ en móvil ocupa todo */
    gap: 6px;
  }

  .search-field {
    flex: 1;
    min-width: 0;
  }

  .header-right {
    order: 3;
    justify-content: center;
  }

  .header-left {
    order: 1;
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .btn-listen,
  .btn-give {
    font-size: 12px;
    padding: 5px 10px;
  }

  .logo {
    height: 30px;
  }
}
.search-bar {
  width: 100%;
  max-width: 400px;
  padding: 8px 15px;
  border-radius: 20px;
  border: none;
  background: #f1f1f1;
  outline: none;
}

/* para ver los videos css */


.video-container { width: 100%; max-width: 900px; margin-bottom: 15px; }
.related-video { position:relative; display:flex; margin-bottom:10px; cursor:pointer; overflow:hidden; border-radius:5px; }
.related-video video { width:120px; height:70px; object-fit:cover; transition: transform 0.3s ease; }
.related-video div { margin-left:10px; flex:1; display:flex; align-items:center; }
.related-video span.duration { position:absolute; bottom:5px; right:5px; background:rgba(0,0,0,0.7); color:#fff; font-size:10px; padding:1px 3px; border-radius:3px; }
.related-video:hover video { transform:scale(1.1); }

.description { max-height:80px; overflow:hidden; transition:max-height 0.3s ease; }
.description.expanded { max-height:500px; }
.show-more { cursor:pointer; color:#1d9bf0; font-size:14px; }
.actions { margin:10px 0; display:flex; gap:10px; }
.actions button { border:none; background:#e9ecef; padding:5px 10px; border-radius:3px; cursor:pointer; }
.actions button:hover { background:#dee2e6; }

.youtube-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.youtube-card {
    display: flex;
    text-decoration: none;
    color: #000;
    gap: 10px;
    align-items: flex-start;
}

.youtube-card .thumb {
    position: relative;
    width: 168px;
    height: 94px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.youtube-card .duration {
    position: absolute;
    right: 5px;
    bottom: 5px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
}

.youtube-card .info {
    flex: 1;
    font-size: 13px;
}

.youtube-card .title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.2;
    color: #000;
}

.youtube-card .meta {
    font-size: 12px;
    color: #606060;
}

.youtube-card .thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

