/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white !important;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background: #0a0a0a !important;
}

/* Thunder Container */
#thunderContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.thunder {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #8b0000;
  opacity: 0;
  animation: thunderFlash 0.5s ease-out;
}

@keyframes thunderFlash {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  40% {
    opacity: 0.3;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

/* Name Entry Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2a0a0a);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 2px solid #8b0000;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
}

.modal-content h2 {
  color: #ff4444;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.modal-content input {
  width: 100%;
  padding: 1rem;
  margin: 1rem 0;
  border: 2px solid #8b0000;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  text-align: center;
}

.modal-content input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.modal-content button {
  width: 100%;
  padding: 1rem;
  background: #8b0000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content button:hover {
  background: #ff4444;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.144);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #8b0000;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-logo .logo-mobile {
  display: none;
}

.nav-logo h1 {
  font-size: 1.8rem;
  color: #ff4444;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  white-space: nowrap;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

.std-btn {
  background: #ff6b00;
  color: white;
}

.github-btn {
  background: #333;
  color: white;
}

.donate-btn {
  background: #00208b;
  color: white;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Main Content */
.container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Video Section */
.video-section {
  background: rgba(20, 20, 20, 0.8);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
  border: 2px solid #8b0000;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Control Section */
.control-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Status Bar - UPDATED LAYOUT */
.status-bar {
  background: rgba(20, 20, 20, 0.8);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
  border: 2px solid #8b0000;
}

.status-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.status-left {
  flex: 1;
  min-width: 250px;
}

.status-bar h3 {
  color: #ff4444;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.current-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1.3rem;
  font-weight: bold;
}

.current-name {
  color: #ffcc00;
  font-weight: bold;
}

.message-separator {
  color: #ff4444;
  font-weight: bold;
}

.current-text {
  color: #00ff00;
  font-weight: bold;
}

.queue-position {
  background: rgba(139, 0, 0, 0.5);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-size: 1rem;
  color: #ffcc00;
  font-weight: bold;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

/* Input Section */
.input-section {
  background: rgba(20, 20, 20, 0.8);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
  border: 2px solid #8b0000;
}

.input-section h3 {
  margin-bottom: 1rem;
  color: #ff4444;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(139, 0, 0, 0.2);
  border-radius: 5px;
  
  flex-wrap: wrap;
  gap: 0.5rem;
}

.char-count {
  color: #ffcc00;
  font-size: 0.9rem;
  font-weight: bold;
}

.input-section input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border: 2px solid #8b0000;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
}

.input-section input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.message-counter {
  text-align: right;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

.input-section button {
  width: 100%;
  padding: 1rem;
  background: #8b0000;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-section button:hover {
  background: #ff4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

/* Queue Section */
.queue-section {
  background: rgba(20, 20, 20, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
  border: 2px solid #8b0000;
  overflow: hidden;
}

.tabs {
  display: flex;
  background: rgba(10, 10, 10, 0.9);
}

.tab-button {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-button.active {
  background: rgba(139, 0, 0, 0.3);
  color: #ff4444;
  border-bottom: 3px solid #ff4444;
}

.tab-content {
  display: none;
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

.tab-content h4 {
  margin-bottom: 1rem;
  color: #ff4444;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.message-list {
  list-style: none;
}

.message-list li {
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;

  transition: all 0.3s ease;
}

.message-list li:hover {
  background: rgba(139, 0, 0, 0.2);
  transform: translateX(5px);
}

.message-list li.highlighted {
  background: rgba(139, 0, 0, 0.3);
 
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* Footer */
.main-footer {
  background: rgba(10, 10, 10, 0.9);
  padding: 1.5rem 2rem;
  border-top: 2px solid #8b0000;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.9rem;
  color: #ccc;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  filter: brightness(0.8);
}

.social-icon:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .main-nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  .nav-logo .logo-text {
    display: none;
  }

  .nav-logo .logo-mobile {
    display: block;
    font-size: 1.5rem;
    margin: 0;
  }

  .nav-buttons {
    gap: 0.5rem;
  }

  .nav-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .btn-text {
    font-size: 0.8rem;
  }

  .btn-icon {
    width: 16px;
    height: 16px;
  }

  .container {
    padding: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .current-message {
    font-size: 1.1rem;
    justify-content: center;
    text-align: center;
  }

  .queue-position {
    text-align: center;
    min-width: auto;
  }

  .modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }

  .user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .nav-buttons {
    gap: 0.3rem;
  }

  .nav-btn {
    padding: 0.4rem 0.6rem;
  }

  .btn-text {
    font-size: 0.7rem;
  }

  .current-message {
    font-size: 1rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  .status-bar {
    padding: 1rem;
  }

  .status-bar h3 {
    font-size: 1rem;
    text-align: center;
  }
}

/* Scrollbar Styling */
.tab-content::-webkit-scrollbar {
  width: 8px;
}

.tab-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb {
  background: rgba(139, 0, 0, 0.5);
  border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 0, 0.7);
}
.hilight {
  background: rgba(255, 0, 0, 0.7);
  cursor: pointer;
}

/* Offline message styling */
.offline-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  background: rgba(20, 20, 20, 0.8);
  border-radius: 8px;
  padding: 2rem;
}

.offline-message h3 {
  color: #ff4444;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.offline-message p {
  color: #ccc;
  font-size: 1rem;
}


/* Stranger Things Falling Particles - Enhanced */
#strangerParticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.st-particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  filter: blur(0.8px);
  opacity: 0.8;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes st-fall-right {
  0% {
    transform: translate(0, -10px) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(60px, 100vh) scale(0.3);
    opacity: 0;
  }
}

@keyframes st-fall-left {
  0% {
    transform: translate(0, -10px) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-60px, 100vh) scale(0.3);
    opacity: 0;
  }
}

@keyframes st-fall-zigzag {
  0% {
    transform: translate(0, -10px) scale(1);
    opacity: 0;
  }
  25% {
    transform: translate(40px, 25vh);
  }
  50% {
    transform: translate(-30px, 50vh);
  }
  75% {
    transform: translate(20px, 75vh);
  }
  100% {
    transform: translate(0, 100vh) scale(0.3);
    opacity: 0;
  }
}

/* Extra styles for more visual variety */
.st-particle.large {
  width: 8px !important;
  height: 8px !important;
  filter: blur(1px) drop-shadow(0 0 2px white);
  opacity: 0.9 !important;
}

.st-particle.slow {
  animation-duration: 50s !important;
  animation-timing-function: ease-in-out !important;
}

.st-particle.fast {
  animation-duration: 10s !important;
}

/* Add this to your CSS file */
.ai-status {
  text-align: center;
  margin: 10px 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid rgba(139, 0, 0, 0.5);
}

/* Add these styles to your CSS */
.error-message {
  display: none;
  color: #ff4444 !important;
  margin: 10px 0;
  padding: 10px;
  background: rgba(255, 0, 0, 0.1) !important;
  border-radius: 5px;
  border: 1px solid #ff4444;
  text-align: center;
}

.loading {
  opacity: 0.7;
  cursor: not-allowed !important;
}

.success-message {
  color: #00ff00 !important;
  background: rgba(0, 255, 0, 0.1) !important;
  border: 1px solid #00ff00;
}
/* Thunder Effect */
.thunder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #8b0000;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

@keyframes thunderFlash {
  0% { opacity: 0; }
  10% { opacity: 0.6; }
  20% { opacity: 0.2; }
  30% { opacity: 0.8; }
  40% { opacity: 0.1; }
  50% { opacity: 0.9; }
  60% { opacity: 0.1; }
  100% { opacity: 0; }
}

.thunder {
  animation: thunderFlash 1.5s ease-out;
}

/* Particle Animations */
@keyframes st-fall-right {
  0% {
    transform: translate(0, -10px) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(60px, 100vh) scale(0.3);
    opacity: 0;
  }
}

@keyframes st-fall-left {
  0% {
    transform: translate(0, -10px) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-60px, 100vh) scale(0.3);
    opacity: 0;
  }
}

@keyframes st-fall-zigzag {
  0% {
    transform: translate(0, -10px) scale(1);
    opacity: 0;
  }
  25% {
    transform: translate(40px, 25vh);
  }
  50% {
    transform: translate(-30px, 50vh);
  }
  75% {
    transform: translate(20px, 75vh);
  }
  100% {
    transform: translate(0, 100vh) scale(0.3);
    opacity: 0;
  }
}

/* AI Status */
.ai-status {
  text-align: center;
  margin: 10px 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid rgba(139, 0, 0, 0.5);
}

/* Audio player hidden */
audio {
  display: none;
}