.multiple-reviews-link {
  background: rgba(245, 215, 66, 0.2);
  border: 2px solid #f5d742;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
}

.multiple-reviews-link:hover {
  background: rgba(245, 215, 66, 0.3);
  border-color: #c9be9c;
}

/* Estilos de pestañas */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 0;
  background-color: #0a0a0a;
  padding: 0.5rem 0 0;
  border-top: 2px solid rgba(107, 63, 47, 0.5);
}

.tab-btn {
  font-family: "Special Elite", cursive;
  background: rgba(26, 84, 250, 0.3);
  color: #c9be9c;
  border: none;
  border-top: 3px solid transparent;
  border-left: 1px solid rgba(107, 63, 47, 0.5);
  border-right: 1px solid rgba(107, 63, 47, 0.5);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  filter: brightness(0.7);
}

.tab-btn:first-child {
  border-left: none;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  background: rgba(26, 84, 250, 0.5);
  color: #f5d742;
  filter: brightness(0.9);
}

.tab-btn.active {
  background: rgba(26, 84, 250, 0.8);
  color: #f5d742;
  border-top-color: #f5d742;
  filter: brightness(1);
  box-shadow: 0 -3px 10px rgba(245, 215, 66, 0.3);
}

.tab-content {
  display: none;
}

/* Mensaje cuando no hay contenido */
.no-content-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40dvh;
  color: #f5d742;
  font-family: "Special Elite", cursive;
  text-align: center;
  padding: 2rem;
}

.no-content-message p:first-child {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
  filter: grayscale(1);
}

.no-content-message p:last-child {
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(245, 215, 66, 0.3);
}

.no-content-message.static {
  animation: none;
}

/* Estilos para el video dentro del contenedor de celuloide */
.video-review {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto 1rem;
  position: relative;
  z-index: 1;
}

lite-youtube {
  background-color: #000;
  position: relative;
  display: block;
  contain: content;
  background-position: center center;
  background-size: cover;
  cursor: pointer;
  max-width: 100%;
  border-radius: 4px;
}

lite-youtube::before {
  content: '';
  display: block;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

header {
  background-color: #1a54fa;
  filter: brightness(0.8) contrast(0.9);
  animation: flicker 3s infinite;
  height: 18dvh;
  padding: 1rem;
  background-image:
    /* Borde izquierdo */
    linear-gradient(to right, rgba(107, 63, 47, 0.8) 6px, transparent 6px),
    /* Borde superior */
    linear-gradient(to bottom, rgba(107, 63, 47, 0.8) 6px, transparent 6px),
    /* Borde derecho - posicionado en el lado derecho */
    linear-gradient(to left, rgba(107, 63, 47, 0.8) 6px, transparent 6px),
    /* Borde inferior - posicionado en la parte inferior */
    linear-gradient(to top, rgba(107, 63, 47, 0.8) 6px, transparent 6px);
  background-position:
    0 0,
    /* Borde izquierdo */ 0 0,
    /* Borde superior */ 100% 0,
    /* Borde derecho */ 0 100%;
  /* Borde inferior */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-sizing: border-box;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}

.mood-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mood-title {
  font-family: "Special Elite", cursive;
  color: #f5d742;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
  max-width: 80px;
  line-height: 1.2;
}

/* Enlaces del header */
.header-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mood-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(245, 215, 66, 0.6);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mood-badge:hover {
  transform: scale(1.1);
  border-color: #f5d742;
  background: rgba(0, 0, 0, 0.6);
}

.mood-badge.final {
  border-color: rgba(201, 190, 156, 0.8);
}

.mood-badge.final:hover {
  border-color: #c9be9c;
}

.mood-emoji {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.mood-label {
  font-family: "Special Elite", cursive;
  color: #c9be9c;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
  font-weight: 600;
  text-align: center;
}

.selected-by-credit {
  font-family: "Special Elite", cursive;
  color: #f5d742;
  font-size: 0.75rem;
  margin-top: 0.75rem;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.selected-by-credit strong {
  color: #c9be9c;
}

h1, p, a {
  font-family: "Special Elite", cursive;
  text-align: center;
}
a {
  text-decoration: none;
}
a:hover {
  filter: brightness(0.8);
}

img {
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.credits-container {
  height: 60dvh;
  overflow: hidden;
  position: relative;
  background-color: black;
  color: black;
  cursor: pointer; 
  background: url("/images/old_celluloid.png") repeat;
  background-size: cover;
  mix-blend-mode: lighten;
  opacity: 0.9;
  /* Permitir scroll si hay video */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.credits-text {
  display: flex;
  flex-direction: column;
  animation: scroll-up 30s linear infinite;
  animation-play-state: running;
  width: 100%;
}

.toggle-container {
  padding: 15px 10px;
  background-color: #1a54fa;
  filter: brightness(0.8) contrast(0.9);
  animation: flicker 3s infinite;
  height: 10dvh;
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  background-image:
    /* Borde izquierdo */
    linear-gradient(to right, rgba(107, 63, 47, 0.8) 6px, transparent 6px),
    /* Borde superior */
    linear-gradient(to bottom, rgba(107, 63, 47, 0.8) 6px, transparent 6px),
    /* Borde derecho - posicionado en el lado derecho */
    linear-gradient(to left, rgba(107, 63, 47, 0.8) 6px, transparent 6px),
    /* Borde inferior - posicionado en la parte inferior */
    linear-gradient(to top, rgba(107, 63, 47, 0.8) 6px, transparent 6px);
  background-position:
    0 0,
    /* Borde izquierdo */ 0 0,
    /* Borde superior */ 100% 0,
    /* Borde derecho */ 0 100%;
  /* Borde inferior */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-sizing: border-box;
}

img {
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.toggle-text {
  font-family: "Special Elite", cursive;
  color: #c9be9c;
  font-size: 0.5rem;
  margin-top: 0.1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Footer */
.review-footer {
  background-color: #1a54fa;
  filter: brightness(0.8) contrast(0.9);
  animation: flicker 3s infinite;
  padding: 1rem;
  background-image:
    linear-gradient(to right, rgba(107, 63, 47, 0.8) 6px, transparent 6px),
    linear-gradient(to bottom, rgba(107, 63, 47, 0.8) 6px, transparent 6px),
    linear-gradient(to left, rgba(107, 63, 47, 0.8) 6px, transparent 6px),
    linear-gradient(to top, rgba(107, 63, 47, 0.8) 6px, transparent 6px);
  background-position: 0 0, 0 0, 100% 0, 0 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-sizing: border-box;
  height: 8dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  font-family: "Special Elite", cursive;
  color: #c9be9c;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin: 0;
}

@keyframes scroll-up {
  0% {
    transform: translateY(15%);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes flicker {
  0%,
  100% {
    filter: brightness(0.8) contrast(0.9);
  }

  50% {
    filter: brightness(0.9) contrast(1);
  }

  75% {
    filter: brightness(0.85) contrast(1.05);
  }
}

/* Tablets y pantallas medianas (hasta 1024px) */
@media screen and (max-width: 1024px) {
  header {
    height: 18dvh;
    padding: 15px;
  }

  header h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  header > div {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  header a {
    font-size: 0.9rem;
  }

  .credits-container {
    height: 72dvh;
  }

  .credits-text {
    padding: 0 20px;
  }

  .credits-text p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .toggle-container {
    height: 10dvh;
  }

  .toggle-container img {
    width: 45px;
    height: 45px;
  }

  .mood-badge {
    width: 45px;
    height: 45px;
  }

  .mood-emoji {
    font-size: 1.6rem;
  }
}

/* Tablets pequeños (hasta 768px) */
@media screen and (max-width: 768px) {
  header {
    height: auto;
    min-height: 12dvh;
    padding: 8px;
  }

  .header-content {
    gap: 0.5rem;
    align-items: flex-start;
    padding-top: 5px;
  }

  .header-center {
    justify-content: flex-start;
  }

  header h1 {
    font-size: 1.2rem;
    line-height: 1.2;
    padding: 0 5px;
    margin-bottom: 0.5rem;
  }

  header a {
    font-size: 0.7rem;
    padding: 3px 6px;
    display: inline-block;
  }

  .mood-container {
    gap: 0.25rem;
  }

  .mood-title {
    font-size: 0.5rem;
    max-width: 60px;
    line-height: 1.1;
  }

  .mood-badge {
    width: 35px;
    height: 35px;
    border-width: 1.5px;
  }

  .mood-emoji {
    font-size: 1.2rem;
  }

  .mood-label {
    font-size: 0.55rem;
    margin-top: 0.15rem;
  }

  .credits-container {
    height: 73dvh;
  }

  .credits-text {
    padding: 0 15px;
    animation-duration: 55s;
  }

  .credits-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 10px 0;
  }

  .toggle-container {
    height: 15dvh;
    padding: 8px;
  }

  .toggle-container img {
    width: 40px;
    height: 40px;
  }

  .toggle-text {
    font-size: 0.45rem;
    margin-top: 0.05rem;
  }
}

/* Móviles (hasta 480px) */
@media screen and (max-width: 480px) {
  header {
    min-height: 11dvh;
    padding: 6px;
  }

  .header-content {
    gap: 0.3rem;
  }

  header h1 {
    font-size: 1rem;
    line-height: 1.15;
    padding: 0 3px;
    word-wrap: break-word;
    margin-bottom: 0.4rem;
  }

  header a {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  .mood-title {
    font-size: 0.45rem;
    max-width: 50px;
  }

  .mood-badge {
    width: 30px;
    height: 30px;
    border-width: 1px;
  }

  .mood-emoji {
    font-size: 1rem;
  }

  .mood-label {
    font-size: 0.5rem;
    margin-top: 0.1rem;
  }

  .credits-container {
    height: 74dvh;
  }

  .credits-text {
    padding: 0 10px;
    animation-duration: 70s;
  }

  .credits-text p {
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 12px 0;
  }

  .toggle-container {
    height: 15dvh;
    padding: 6px;
  }

  .toggle-container img {
    width: 35px;
    height: 35px;
  }

  .toggle-text {
    font-size: 0.4rem;
    margin-top: 0.05rem;
  }
}

/* Landscape en móviles */
@media screen and (max-width: 896px) and (orientation: landscape) {
  header {
    height: auto;
    min-height: 25vh;
    padding: 8px;
  }

  header h1 {
    font-size: 1.2rem;
    line-height: 1.1;
  }

  header > div {
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 5px;
  }

  header a {
    font-size: 0.75rem;
  }

  .credits-container {
    height: 60vh;
  }

  .credits-text {
    padding: 0 15px;
    animation-duration: 45s;
  }

  .credits-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 8px 0;
  }

  .toggle-container {
    height: 15vh;
    padding: 3px;
  }

  .toggle-container img {
    width: 25px;
    height: 25px;
  }

  .toggle-text {
    font-size: 0.3rem;
    margin-top: 0;
  }
}

/* Muy pequeños (hasta 360px) */
@media screen and (max-width: 360px) {
  header h1 {
    font-size: 1rem;
  }

  header a {
    font-size: 0.7rem;
  }

  .credits-text p {
    font-size: 0.8rem;
    line-height: 1.9;
  }

  .toggle-container img {
    width: 32px;
    height: 32px;
  }
}

/* Ajustes visuales para móviles */
@media screen and (max-width: 768px) {
  /* Reducir intensidad de animaciones */
  @keyframes flicker {
    0%, 100% {
      filter: brightness(0.85) contrast(0.95);
    }
    50% {
      filter: brightness(0.9) contrast(1);
    }
  }

  /* Bordes más sutiles */
  header,
  .toggle-container {
    background-image:
      linear-gradient(to right, rgba(107, 63, 47, 0.6) 4px, transparent 4px),
      linear-gradient(to bottom, rgba(107, 63, 47, 0.6) 4px, transparent 4px),
      linear-gradient(to left, rgba(107, 63, 47, 0.6) 4px, transparent 4px),
      linear-gradient(to top, rgba(107, 63, 47, 0.6) 4px, transparent 4px);
  }

  /* Mejorar legibilidad del texto en créditos */
  .credits-text p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  /* Mejorar área de toque */
  .toggle-container img {
    padding: 5px;
  }

  /* Optimizar scroll de créditos */
  .credits-container {
    -webkit-overflow-scrolling: touch;
  }
}

/* Soporte para pantallas con notch (iPhone X+) */
@supports (padding: max(0px)) {
  @media screen and (max-width: 768px) {
    header {
      padding-top: max(12px, env(safe-area-inset-top));
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }

    .toggle-container {
      padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
  }
}

/* Ajuste para mejor rendimiento en móviles */
@media screen and (max-width: 768px) {
  .credits-text {
    will-change: transform;
    backface-visibility: hidden;
  }

  /* Optimizar la animación de scroll */
  @keyframes scroll-up {
    0% {
      transform: translate3d(0, 15%, 0);
    }
    100% {
      transform: translate3d(0, -100%, 0);
    }
  }
}

/* ============= ESTILOS DE COMENTARIOS (MODAL) ============= */

/* Botón para abrir comentarios */
.comments-btn {
  background: rgba(26, 84, 250, 0.2);
  color: #c9be9c;
  border: 1px solid rgba(26, 84, 250, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Special Elite", cursive;
}

.comments-btn:hover {
  background: rgba(26, 84, 250, 0.4);
  color: #f5d742;
  border-color: rgba(26, 84, 250, 0.6);
  transform: translateY(-1px);
}

/* Modal */
.comments-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.comments-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
  border: 2px solid rgba(26, 84, 250, 0.4);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(26, 84, 250, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.comments-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(26, 84, 250, 0.2);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.close-modal-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.close-modal-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.6);
  transform: rotate(90deg);
}

.comments-title {
  font-family: "Special Elite", cursive;
  color: #f5d742;
  font-size: 1.6rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.comments-list {
  padding: 1.5rem;
  max-height: 50vh;
  overflow-y: auto;
}

.comments-list::-webkit-scrollbar {
  width: 8px;
}

.comments-list::-webkit-scrollbar-track {
  background: rgba(26, 84, 250, 0.1);
  border-radius: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: rgba(26, 84, 250, 0.4);
  border-radius: 4px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 84, 250, 0.6);
}

.comment-item {
  background: rgba(26, 84, 250, 0.08);
  border-left: 2px solid rgba(26, 84, 250, 0.5);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.comment-item:hover {
  background: rgba(26, 84, 250, 0.12);
  border-left-color: #f5d742;
  transform: translateX(4px);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comment-author {
  font-family: "Special Elite", cursive;
  color: #f5d742;
  font-size: 1rem;
  font-weight: bold;
}

.comment-date {
  font-family: "Special Elite", cursive;
  color: #c9be9c;
  font-size: 0.85rem;
  opacity: 0.8;
}

.comment-content {
  font-family: "Special Elite", cursive;
  color: #c9be9c;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.no-comments {
  font-family: "Special Elite", cursive;
  text-align: center;
  color: #c9be9c;
  opacity: 0.5;
  padding: 3rem 1rem;
  font-style: italic;
  font-size: 0.95rem;
}

.comment-form-container {
  background: rgba(26, 84, 250, 0.05);
  padding: 1.5rem;
  border-top: 1px solid rgba(26, 84, 250, 0.2);
  border-radius: 0 0 12px 12px;
}

.form-title {
  font-family: "Special Elite", cursive;
  color: #c9be9c;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group label {
  font-family: "Special Elite", cursive;
  color: #c9be9c;
  font-weight: bold;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(26, 84, 250, 0.3);
  color: #c9be9c;
  padding: 0.75rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  font-family: "Special Elite", cursive;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a54fa;
  background: rgba(26, 84, 250, 0.08);
  box-shadow: 0 0 0 3px rgba(26, 84, 250, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 200px;
}

.char-counter {
  font-family: "Special Elite", cursive;
  color: #c9be9c;
  opacity: 0.6;
  font-size: 0.85rem;
  text-align: right;
}

.submit-btn {
  background: linear-gradient(135deg, #1a54fa 0%, #0d3896 100%);
  color: #f5d742;
  border: 1px solid rgba(26, 84, 250, 0.6);
  padding: 0.75rem 1.5rem;
  font-family: "Special Elite", cursive;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #2164ff 0%, #1a54fa 100%);
  border-color: #f5d742;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 84, 250, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 84, 250, 0.3);
}

.form-message {
  font-family: "Special Elite", cursive;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid #22c55e;
  color: #4ade80;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid #ef4444;
  color: #f87171;
}

.form-message.info {
  background: rgba(26, 84, 250, 0.2);
  border: 2px solid #1a54fa;
  color: #60a5fa;
}

/* Responsivo para modal de comentarios */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 0 auto;
  }

  .modal-header {
    padding: 1rem;
  }

  .comments-title {
    font-size: 1.3rem;
  }

  .comments-list {
    padding: 1rem;
    max-height: 40vh;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-form-container {
    padding: 1rem;
  }

  .submit-btn {
    width: 100%;
    align-self: stretch;
  }

  .comments-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .comments-title {
    font-size: 1.1rem;
  }

  .close-modal-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}
