/* Selector de Servidores */
.server-selector {
  margin-bottom: 1rem;
}

.server-buttons {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(20, 20, 20, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.server-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.server-btn:hover {
  background-color: #444;
  border-color: #666;
  transform: translateY(-1px);
}

.server-btn.active {
  background-color: #d00000;
  border-color: #d00000;
  box-shadow: 0 2px 8px rgba(208, 0, 0, 0.3);
}

.server-btn.active:hover {
  background-color: #b30000;
  border-color: #b30000;
}

.server-btn i {
  font-size: 0.85rem;
}

/* Responsive para selector de servidores */
@media (max-width: 640px) {
  .server-buttons {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.3rem;
  }
  
  .server-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    justify-content: center;
  }
}

/* Página de Video */
.video-actions .like-btn svg {
  color: white;
  stroke: white;
}

.video-page {
  padding: 2rem 0;
  background-color: transparent;
}

.video-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.video-content {
  flex: 1;
  max-width: 900px;
}

/* Sidebar */
.video-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-image {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Leaderboard */
.leaderboard-section {
  background-color: #141414;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
}

.leaderboard-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #d00000;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.leaderboard-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem;
  background-color: #1e1e1e;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leaderboard-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.rank-username {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leaderboard-item .rank {
  font-size: 1rem;
  font-weight: 700;
  color: #d00000;
}

.leaderboard-item .separator {
  font-size: 1rem;
  color: #999;
  font-weight: 400;
}

.leaderboard-avatar {
  display: none;
}

.leaderboard-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.leaderboard-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d00000;
}

.points-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0;
}

.points-container .trophy-icon {
  stroke: #d4af37;
  flex-shrink: 0;
}

.leaderboard-points {
  font-size: 0.85rem;
  color: #d4af37;
  font-weight: 600;
}

.leaderboard-videos {
  color: #c0c0c0;
  font-size: 12px;
}

.leaderboard-points {
  color: #c0c0c0;
  font-size: 12px;
}

/* Información del autor */
.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d00000;
}

/* Título del video */
.video-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Barra de metadatos */
.video-meta-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.video-date {
  font-size: 0.9rem;
  color: #666;
}

/* Advertencia de contenido */
.content-warning {
  background: linear-gradient(135deg, #8b0000 0%, #4b0000 100%);
  border-left: 4px solid #ff0000;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
  width: 90%;
}

.content-warning p {
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.content-warning p::before {
  content: "⚠️ ";
  margin-right: 8px;
}

/* Notificación de Telegram */
.telegram-notification {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  border-left: 4px solid #00a8e8;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
  width: 90%;
  text-align: center;
}

.telegram-notification p {
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 10px 0;
  text-align: center;
}

.telegram-link {
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.telegram-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.telegram-link::before {
  content: "🔗 ";
  margin-right: 5px;
}

/* Reproductor de video - Diseño estático horizontal */
.video-player {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 400px; /* Altura fija estática */
  margin: 0 auto 1.5rem auto;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-player .video-js {
  width: 100% !important;
  height: 100% !important; /* Altura fija */
  background-color: #000;
  border-radius: 8px;
}

.video-player .vjs-tech {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain; /* Muestra video completo sin zoom */
  border-radius: 8px;
  /* pointer-events: none; - Eliminado para permitir click izquierdo */
}

/* Deshabilitar clic derecho en todo el reproductor */
.video-player,
.video-js {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.video-js .vjs-big-play-button {
  background-color: rgba(208, 0, 0, 0.8);
  border: 2px solid #d00000;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 80px;
  font-size: 3em;
  color: #fff;
  transition: all 0.3s ease;
}

.video-js .vjs-big-play-button:hover {
  background-color: rgba(208, 0, 0, 1);
  border-color: #ff0000;
  transform: scale(1.1);
}

.video-js .vjs-control-bar {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
  background-color: #d00000;
}

.video-js .vjs-slider-handle {
  background-color: #ff0000;
}

.video-js .vjs-button:hover .vjs-icon-placeholder {
  color: #d00000;
}

.video-js .vjs-time-tooltip,
.video-js .vjs-mouse-display {
  background-color: rgba(208, 0, 0, 0.9);
  color: #fff;
}

.video-js .vjs-play-progress:before {
  background-color: #d00000;
}

/* Controles personalizados */
.video-js .vjs-control {
  color: #fff;
}

.video-js .vjs-time-divider,
.video-js .vjs-time-display {
  color: #fff;
  font-family: 'Oswald', sans-serif;
}

.video-js .vjs-volume-panel {
  color: #fff;
}

/* Responsive para Video.js */
@media (max-width: 768px) {
  .video-js .vjs-big-play-button {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 2.5em;
  }
  
  .video-js .vjs-control-bar {
    font-size: 0.8em;
  }
}

/* Acciones del video */
.video-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background-color: rgba(32, 32, 32, 0.9); /* gris oscuro semitransparente */
  border: 1px solid rgba(80, 80, 80, 0.9);
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.action-btn:hover {
  background-color: #b30000;
  border-color: #b30000;
}

.action-btn svg {
  stroke: #1f1f1f;
}

/* Icono del botón DISLIKE siempre en blanco */
.dislike-btn svg {
  stroke: #ffffff;
}

.like-btn:hover {
  background-color: #a00000;
  color: #ffffff;
  border-color: #a00000;
}

.like-btn:hover svg {
  stroke: #ffffff;
}

/* Estado activo (clicado) para LIKE: verde oscuro */
.like-btn.active,
.like-btn:active {
  background-color: #ffd700; /* amarillo dorado para estado presionado */
  border-color: #e6c200;
  color: #ffffff;
}

.like-btn.active svg,
.like-btn:active svg {
  stroke: #ffffff;
}

.dislike-btn:hover {
  background-color: #555555;
  color: #ffffff;
  border-color: #555555;
}

.dislike-btn:hover svg {
  stroke: #ffffff;
}

/* Estado activo (clicado) para DISLIKE: gris más oscuro */
.dislike-btn.active,
.dislike-btn:active {
  background-color: #333333;
  border-color: #333333;
  color: #ffffff;
}

.dislike-btn.active svg,
.dislike-btn:active svg {
  stroke: #ffffff;
}

.share-btn:hover {
  background-color: #0066cc;
  color: #ffffff;
  border-color: #0066cc;
}

.share-btn:hover svg {
  stroke: #ffffff;
}

/* Estado activo (clicado) para COMPARTIR: azul más intenso */
.share-btn:active {
  background-color: #004a99;
  border-color: #004a99;
  color: #ffffff;
}

.share-btn:active svg {
  stroke: #ffffff;
}

.report-btn {
  /* hereda base de .action-btn y se personaliza en hover/active */
}

.report-btn:hover {
  background-color: #d00000;
  border-color: #d00000;
  color: #ffffff;
}

.report-btn:hover svg {
  stroke: #ffffff;
}

.report-btn:active {
  background-color: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}

.report-btn:active svg {
  stroke: #ffffff;
}

/* Sección Otros Videos */
.other-videos-section {
  margin-bottom: 2rem;
  background-color: #141414;
  padding: 1.5rem;
  border-radius: 4px;
}

.other-videos-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.other-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.other-videos-grid .video-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.other-videos-grid .video-card:hover {
  transform: translateY(-5px);
}

.other-videos-grid .video-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.other-videos-grid .video-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.5rem;
  line-height: 1.3;
}

.other-videos-grid .video-meta {
  display: none;
}

/* Sección de comentarios */
.comments-section {
  margin-top: 2rem;
  background-color: #101010;
  border-radius: 6px;
  padding: 1.5rem;
  border: 1px solid #262626;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.comments-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.comment-count {
  font-size: 1.2rem;
  color: #666;
  font-weight: 400;
}

/* Formulario de comentario */
.comment-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Ocultar solo el avatar del formulario de comentario (no los de la lista) */
.comment-form .comment-avatar {
  display: none;
}

.comment-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-toolbar {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  background-color: #2b2b2b;
  border: 1px solid #444;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  flex-wrap: wrap;
}

.toolbar-btn {
  padding: 0.4rem 0.6rem;
  background-color: #3a3a3a;
  border: 1px solid #555;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.toolbar-btn:hover {
  background-color: #4a4a4a;
  border-color: #777;
}

.toolbar-btn.active {
  background-color: #d00000;
  color: #ffffff;
  border-color: #d00000;
}

.toolbar-separator {
  width: 1px;
  background-color: #ddd;
  margin: 0 0.25rem;
}

.comment-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #444;
  border-radius: 0 0 4px 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease;
  outline: none;
  overflow-y: auto;
  background-color: #1b1b1b;
  color: #f5f5f5;
}

.comment-input:focus {
  border-color: #d00000;
  box-shadow: 0 0 0 3px rgba(208, 0, 0, 0.1);
}

.comment-input[contenteditable="true"] {
  cursor: text;
}

.comment-input b {
  font-weight: 700;
}

.comment-input i {
  font-style: italic;
}

.comment-input u {
  text-decoration: underline;
}

.comment-input a {
  color: #0066cc;
  text-decoration: underline;
}

.submit-comment-btn {
  padding: 0.75rem 1.5rem;
  background-color: #d00000;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-comment-btn:hover {
  background-color: #b30000;
}

/* Lista de comentarios */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #d00000;
  border-radius: 4px;
  background-color: #2a2a2a;
}

.comment:last-child {
  border-bottom: none;
}

.comment.reply {
  padding-left: 1rem;
  border-left: 2px solid #e0e0e0;
  background-color: #1f1f1f;
  position: relative;
}

/* Icono de respuesta en la esquina de los comentarios de respuesta */
.comment.reply::after {
  content: "\f3e5"; /* icono de reply de Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.8rem;
  color: #d00000;
}

/* Limitar el margen izquierdo máximo para evitar que se salga de la pantalla */
.comment {
  max-width: 100%;
}

.reply-form {
  margin-left: 3rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
  border-left: 2px solid #d00000;
}

.reply-form .comment-input {
  min-height: 60px;
}

.reply-form-actions {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}

.cancel-reply-btn {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
  border-color: #999;
  color: #333;
}

.submit-reply-btn {
  padding: 0.5rem 1rem;
  background-color: #d00000;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.submit-reply-btn:hover {
  background-color: #b30000;
}

/* Estados activos generales ya definidos arriba para like/dislike */

/* Modal de advertencia */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.auth-modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-modal-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.auth-modal-title {
  font-size: 1.35rem;
  color: #1f1f1f;
  margin-bottom: 2rem;
  font-weight: 600;
  line-height: 1.4;
}

.auth-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-modal-login-btn {
  background-color: #d00000;
  color: #ffffff;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.auth-modal-login-btn:hover {
  background-color: #b30000;
}

.auth-modal-close-btn {
  background-color: transparent;
  color: #666;
  padding: 0.85rem 2rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-modal-close-btn:hover {
  border-color: #999;
  color: #333;
}

/* Modal de opinión al terminar el video */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.feedback-modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feedback-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1f1f1f;
}

.feedback-modal-subtitle {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.feedback-modal-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  margin-bottom: 0.75rem;
  background-color: #d00000;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.feedback-modal-button:hover {
  background-color: #b30000;
}

.feedback-modal-close {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.feedback-modal-close:hover {
  border-color: #999;
  color: #333;
}

/* Mensaje flotante de puntos */
.puntos-mensaje {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 100%);
  color: #1f1f1f;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.puntos-mensaje.show {
  transform: translateX(0);
  opacity: 1;
}

/* Estilos para el cooldown del botón de comentario */
.submit-comment-btn.cooldown-active,
.reply-submit-btn.cooldown-active {
  background-color: #555 !important;
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
  overflow: hidden;
}

.submit-comment-btn.cooldown-active::after,
.reply-submit-btn.cooldown-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #ff4444;
  animation: cooldown 15s linear forwards;
}

@keyframes cooldown {
  from { width: 100%; }
  to { width: 0%; }
}

/* Efecto de deshabilitado para el área de comentarios durante el cooldown */
.comment-input[contenteditable][disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Estilo para el contador de cooldown */
.cooldown-timer {
  font-size: 0.85rem;
  color: #ff6b6b;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
}

.puntos-mensaje svg {
  stroke: #1f1f1f;
  flex-shrink: 0;
}

.puntos-mensaje span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .puntos-mensaje {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    transform: translateY(-100px);
  }
  
  .puntos-mensaje.show {
    transform: translateY(0);
  }
}

.comment-content {
  flex: 1;
  min-width: 0; /* Permite que el contenido se encoja dentro del flex y no desborde */
  border-left: 2px solid #555555;
  padding-left: 1rem;
}

/* Panel de usuario en comentarios (izquierda) */
.comment-user-panel {
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.comment-user-name {
  text-align: center;
}

.comment-user-role {
  display: flex;
  justify-content: center;
}

.comment-user-meta {
  font-size: 0.8rem;
  color: #ffffff;
  display: flex;
  gap: 0.25rem;
}

.comment-user-points-label,
.comment-user-videos-label {
  font-weight: 600;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.15rem; /* Espacio más compacto entre badge, nombre y puntos */
  flex-wrap: wrap; /* Permite que usuario, puntos y badge bajen a otra línea en pantallas pequeñas */
  min-width: 0;
}

.role-badge {
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 0.05rem !important; /* Reduce el espacio extra que venía del style inline */
  box-shadow: none;
  /* Sombra tipo texto: leve desplazamiento y sin mucho desenfoque */
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.7));
}

.comment-author {
  font-size: 0.9rem; /* ligeramente más pequeño */
  font-weight: 600;
  color: #ffffff;
}

.comment-author.rgb-username {
  color: transparent;
}

.comment-separator {
  font-size: 0.85rem;
  color: #aaaaaa;
}

.reply-arrow {
  font-size: 0.85rem;
  color: #999;
  margin-right: 0.3rem;
}

.reply-target {
  font-size: 0.8rem;
  color: #777;
}

.comment-points {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.trophy-icon {
  stroke: #ffffff;
  width: 14px;
  height: 14px;
}

.comment-date {
  font-size: 0.8rem; /* reducir un poco el tamaño de la fecha */
  color: #cccccc;
}

.comment-text {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.comment-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.comment-reply {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background-color: transparent;
  border: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d00000;
  cursor: pointer;
  transition: color 0.3s ease;
}

.comment-reply:hover {
  color: #b30000;
}

/* Responsive */
@media (max-width: 1024px) {
  .video-layout {
    flex-direction: column;
  }

  .video-sidebar {
    width: 100%;
    max-width: 600px;
  }

  .other-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .other-videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Mostrar solo 4 videos (2 arriba, 2 abajo) en móvil */
  .other-videos-grid .video-card:nth-child(n+5) {
    display: none;
  }
  
  .other-videos-grid .video-card {
    width: 100%;
  }
  
  .other-videos-grid .video-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  
  .video-layout {
    flex-direction: column;
  }
  
  .video-content {
    order: 1;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .other-videos-section {
    display: block;
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  .comments-section {
    order: 2;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 0.5rem;
  }
  
  .comment {
    max-width: 100%;
    overflow-x: hidden;
    flex-direction: row;
  }
  
  .comment-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .comment-form {
    gap: 0.5rem;
    flex-direction: row;
    align-items: flex-start;
  }
  
  .comment-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  
  .comment-input-wrapper {
    flex: 1;
    width: 100%;
  }
  
  .comment-input {
    width: 100%;
  }
  
  .submit-comment-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .comment-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .reply-form {
    margin-left: 1rem;
    padding: 0.75rem;
    max-width: calc(100% - 1rem);
  }
  
  .video-sidebar {
    order: 4;
    width: 100%;
  }
  
  .login-box {
    display: none; /* Ocultar en móviles */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .user-info {
    text-align: center;
  }

  .welcome-text {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .username-display {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
  }

  .user-role {
    color: #d00000;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.2rem 0.5rem;
    background: rgba(208, 0, 0, 0.1);
    border-radius: 4px;
    display: inline-block;
  }

  .user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
  }

  .profile-btn {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
    flex: 1;
  }

  .profile-btn:hover {
    background-color: #555;
  }

  .logout-btn {
    background-color: #d00000;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
    flex: 1;
  }

  .logout-btn:hover {
    background-color: #a00000;
  }

  /* Botones de acciones debajo del reproductor más pequeños en móvil */
  .video-actions {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .video-actions .action-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  /* Alinear respuestas de comentarios con los comentarios normales en móvil */
  .comment.reply {
    margin-left: 0 !important;
    padding-left: 0;
    border-left: none;
  }

  /* Reducir tamaño de usuario, rol y puntos en comentarios para móvil */
  .comment-author {
    font-size: 0.8rem;
  }

  .comment-points {
    font-size: 0.75rem;
  }

  .role-badge img,
  .role-badge {
    transform: scale(0.85);
  }

  /* Ajustar panel de usuario en comentarios para móvil */
  .comment-user-panel {
    width: 110px;
    gap: 0.25rem;
  }

  /* En pantallas pequeñas, hacer la línea divisoria un poco más suave */
  .comment-content {
    border-left: 2px solid #555555;
    padding-left: 0.75rem;
  }
}

/* Ocultar footer en la página de videos */
.video-page ~ footer {
  display: none;
}

@media (max-width: 768px) {
  .video-title {
    font-size: 1.3rem;
  }

  .video-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .video-actions {
    flex-wrap: wrap;
  }

  .comment-form {
    flex-direction: column;
  }

  .sidebar-image img {
    height: 200px;
  }
}