/* --- REPLACE THE TOP PART OF YOUR CSS WITH THIS --- */

/* Apply box-sizing only to chatbot elements, not the whole site */
#chat-wrapper *,
#chatbot *,
#imageModal * {
  box-sizing: border-box;
}

/* Ensure the wrapper floats above the site */
#chat-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
}

/* ... The rest of your CSS below is fine ... */
/* body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}  */

#chat-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
}

#chat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(to right, #709ee3ff, #ffffff);
  border: 2px solid #2563EB;
  /* Blue accent border */
  color: #2563EB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(112, 158, 227, 0.4);
  z-index: 10001;
  transition: all 0.3s ease;
  transform: translate3d(0, 0, 0);
}

#chat-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
  /* Blue glow on hover */
}

#chat-icon .chat-icon-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#chat-bubble {
  position: absolute;
  right: 70px;
  bottom: 10px;
  background: white;
  color: #374151;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-out;
  white-space: nowrap;
  z-index: 10000;
}

#chat-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#chatbot {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 400px;
  height: 600px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 9999;
  background: white;
  animation: slideUp 0.3s ease-out;
  transition: width 0.4s ease, height 0.4s ease;
}

#chatbot.expanded {
  width: 900px;
  height: 80vh;
  max-height: 800px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  background: linear-gradient(to right, #709ee3ff, #ffffff);
  border-bottom: 3px solid #2563EB;
  /* Blue bottom border */
  color: #2563EB;
  /* Blue Text */
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  text-align: center;
}

.header-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header .chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  padding: 5px;
  object-fit: contain;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.chat-subtitle,
.learn-more-btn {
  display: none;
}

.header-action-btn {
  background: rgba(37, 99, 235, 0.1);
  border: none;
  color: #2563EB;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.header-action-btn:hover {
  background: rgba(37, 99, 235, 0.2);
}

.beta-badge {
  color: #d6d6d6;
  font-size: 0.6rem;
  margin-left: 6px;
}

.header-buttons {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  gap: 16px;
  min-height: 0;
}

.chat-body::-webkit-scrollbar {
  width: 4px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.date-separator {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin: 0 0 10px;
}

.chat-input {
  display: flex;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #f0f0f0;
  gap: 12px;
  align-items: center;
}

.chat-input input {
  flex: 1;
  background: #f8f9fa;
  border-radius: 20px;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.chat-input input:focus {
  border-color: #709ee3;
  /* Blue focus border */
  background: white;
}

.chat-input input::placeholder {
  color: #9ca3af;
}

.input-action-btn {
  background: linear-gradient(to right, #709ee3ff, #ffffff);
  border: none;
  color: #2563EB;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.input-action-btn svg {
  width: 20px;
  height: 20px;
}

.input-action-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(112, 158, 227, 0.5);
}

.input-action-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bot-message {
  align-self: flex-start;
  max-width: 85%;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.message-bubble {
  display: inline-block;
  background: white;
  color: #374151;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  white-space: pre-wrap;
  word-wrap: break-word;
  min-width: 0;
}

.quick-topic-container {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Existing styles (keep these!) */
.quick-topic-btn {
  background-color: #f0f7ff;
  /* Light Blue */
  border: 1px solid #709ee3;
  color: #2563EB;
  /* Darker Gold/Orange-ish for readability */
  padding: 8px 12px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-topic-btn:hover {
  background: linear-gradient(to right, #709ee3ff, #ffffff);
  border-color: #709ee3;
  color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(112, 158, 227, 0.5);
}

/* ✅ Add this new block below */
@keyframes softGlow {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(112, 158, 227, 0.4);
  }

  50% {
    box-shadow: 0 0 16px rgba(112, 158, 227, 0.6);
  }
}

.quick-topic-btn {
  animation: softGlow 3s ease-in-out infinite;
}

.user-message {
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  max-width: 85%;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: linear-gradient(135deg, #4169E1, #2563EB);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.bot-message .message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  /* Changed from linear-gradient to white */
  color: #2563EB;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  /* Ensure image stays inside */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bot-message .message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s steps(2, start) infinite;
  color: #2563EB;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

#typing-indicator .message-bubble {
  font-style: italic;
  color: #6b7280;
}

.suggestions-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.suggestion-item:hover {
  background: #fafafa;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4169E1, #2563EB);
  border: 1px solid #709ee3;
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.suggestion-text {
  font-size: 13px;
  color: #374151;
  flex: 1;
}

.suggestion-arrow {
  color: #9ca3af;
  font-size: 12px;
}

.ro-buttons-container {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ro-button {
  display: flex;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

.ro-button:hover {
  background: linear-gradient(135deg, #4169E1, #2563EB);
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 158, 227, 0.4);
}

.ro-button:hover .ro-content {
  color: white;
}

.ro-button:hover .ro-icon,
.ro-button:hover .ro-arrow {
  color: white;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ro-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4169E1, #2563EB);
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ro-content {
  flex: 1;
  transition: color 0.3s ease;
}

.ro-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.ro-description {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

.ro-arrow {
  color: #9ca3af;
  font-size: 18px;
  font-weight: bold;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.ro-button:hover .ro-title,
.ro-button:hover .ro-description {
  color: white;
}

.ro-button:nth-child(1) {
  animation-delay: 0.1s;
}

.ro-button:nth-child(2) {
  animation-delay: 0.2s;
}

.ro-button:nth-child(3) {
  animation-delay: 0.3s;
}

.ro-button:nth-child(4) {
  animation-delay: 0.4s;
}

.ro-button:nth-child(5) {
  animation-delay: 0.5s;
}

.ro-button:nth-child(6) {
  animation-delay: 0.6s;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 6px;
  border-top: 1px solid #e5e7eb;
}

.pagination-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  background: white;
  color: #2563eb;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pagination-controls button:disabled {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.pagination-controls button:not(:disabled):hover {
  background: #2563eb;
  color: white;
}

.pagination-controls span {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-action-btn {
  background: white;
  border: 1px solid #d1d5db;
  color: #3b82f6;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-action-btn:hover {
  border-color: #709ee3;
  color: #4169E1;
  background: #f0f7ff;
}

.image-result-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  animation: slideIn 0.4s ease-out;
}

.image-result-card .image-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  box-sizing: border-box;
  background-color: #f8fafc;
}

.image-result-card .image-link img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  display: block;
}

.image-result-card .image-details {
  padding: 12px;
  font-size: 13px;
  border-top: 1px solid #f0f0f0;
}

.image-result-card .image-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-result-card .image-fig-number {
  color: #6b7280;
  font-size: 12px;
}

/* --- Combined IRC Image and Question Cards --- */

.image-card-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  min-height: 44px;
}

.image-card-item:hover {
  background-color: #f0f7ff;
  border-color: #2563eb;
}

.image-card-item .image-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 8px;
  font-size: 10px;
  flex-shrink: 0;
}

.image-card-item .image-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.image-card-item .image-title {
  font-weight: 500;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
  display: block;
}

.image-card-item .image-fig {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.image-card-item .image-arrow {
  color: #6b7280;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 4px;
}

.question-button {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  min-height: 44px;
}

.question-button:hover {
  background-color: #f0f7ff;
  border-color: white;
}

.question-button .q-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 8px;
  font-size: 10px;
  flex-shrink: 0;
}

.question-button .q-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.question-button .q-title {
  font-weight: 500;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
  display: block;
}

.question-button .q-arrow {
  color: #6b7280;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 4px;
}

/* --- Styles for the Info Window Modal with Side-by-Side Layout --- */

.image-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal-overlay.show {
  opacity: 1;
}

.image-modal-container {
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 1400px;
  /* Increased from 1200px */
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.image-modal-overlay.show .image-modal-container {
  transform: scale(1);
}

.image-modal-main-content {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 25px;
  flex-grow: 1;
  overflow-y: hidden;
  height: 80vh;
  /* Increased from 75vh */
}

/* --- Text Area on Left (Replaces Image) --- */
.image-modal-text-area {
  flex: 0 0 50%;
  max-width: 50%;
  height: 100%;
  overflow-y: auto;
  padding-right: 15px;
  border-right: 1px solid #e5e7eb;
  font-family: 'Inter', sans-serif;
}

.image-modal-text-area h3 {
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  line-height: 1.4;
}

.image-modal-text-area .fig-num {
  color: #2563eb;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: block;
}

.image-modal-text-area p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

/* ---------------------------------------------------- */

#image-modal-caption {
  flex: 1 1 50%;
  text-align: left;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  min-height: 0;
  overflow-y: auto;
  height: 100%;
}

.image-modal-gallery-container {
  background: #f8f9fa;
  padding: 15px;
  border-top: 1px solid #dee2e6;
}

.image-modal-gallery-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
}

.thumbnail-item {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.thumbnail-item:hover,
.thumbnail-item.active {
  border-color: #2563eb;
}

.thumbnail-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.image-modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #333;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.image-modal-close:hover {
  color: #888;
}

/* --- UPDATED STYLES FOR BUTTONS AT TOP --- */

#fixed-actions {
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

#fixed-actions .quick-topic-btn {
  padding: 8px 14px;
}

#chatbot.expanded #fixed-actions {
  justify-content: space-around;
  padding-left: 40px;
  padding-right: 40px;
}

#chatbot.expanded #fixed-actions .quick-topic-btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* --- Styles for Image Suggestion Icons --- */

.image-suggestions-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 10px 5px;
  gap: 10px;
}

.suggestion-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  width: 65px;
  text-align: center;
}

.suggestion-icon-item:hover {
  background-color: #f0f4ff;
}

.suggestion-icon-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
  object-fit: contain;
}

.suggestion-icon-item span {
  font-size: 12px;
  color: #374151;
  font-weight: 500;
  line-height: 1.3;
}

/* --- Modal Question List --- */
.modal-question-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.modal-question-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateX(3px);
}

.modal-question-icon {
  width: 24px;
  height: 24px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
}

.modal-question-text {
  flex: 1;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
}

/* --- START: MEDIA QUERIES --- */

@media (max-width: 700px) {
  #chatbot.expanded {
    width: calc(100vw - 32px);
  }
}

@media (max-width: 480px) {
  #chatbot {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 80px;
    height: calc(100vh - 120px);
    max-height: 500px;
  }

  #chat-wrapper {
    right: 16px;
    bottom: 16px;
  }

  .ro-button {
    padding: 10px;
  }

  .ro-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
    margin-right: 10px;
  }

  .ro-title {
    font-size: 13px;
  }

  .ro-description {
    font-size: 11px;
  }

  .chat-header {
    padding: 10px 15px;
  }

  .header-buttons {
    right: 10px;
  }

  .message-bubble.welcome-message {
    max-width: 220px;
    text-align: center;
    margin: 0 auto;
    padding: 10px;
  }

  .video-modal-container {
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
  }

  .video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    min-height: 500px;
  }

  .video-player-wrapper video {
    width: 100%;
    height: auto;
    display: block;
  }

  .video-info-section {
    background: white;
    padding: 20px;
  }

  .video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
  }

  .video-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
  }

  .video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    text-align: center;
  }

  .video-loading::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }
}