        .danmaku-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
        }
        
        .danmaku {
            position: absolute;
            white-space: nowrap;
            font-size: 20px;
            color: #fff;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            animation: danmaku-move 8s linear infinite;
            user-select: none;
        }
        
        @keyframes danmaku-move {
            from { transform: translateX(100%); }
            to { transform: translateX(-100%); }
        }
        
        .control-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 0 0 12px 12px;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
            margin-right: 10px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #6f7378;
            transition: .4s;
            border-radius: 34px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: #f0f0f0;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: #00a1d6;
        }
        
        input:checked + .slider:before {
            transform: translateX(30px);
        }
	#switchStatus {
            color: #212529;
            font-weight: bold;
            margin-left: 8px;
            transition: color 0.3s ease;
        }
.bullet-message {
  position: fixed;
  left: 100%;
  white-space: nowrap;
  font-size: 1.2em;
  padding: 4px 10px;
  background: rgba(255,255,255,0.8);
  color: black;
  border-radius: 8px;
  z-index: 10000;
  animation: flyLeft 20s linear forwards;
}

@keyframes flyLeft {
  from {
    left: 100%;
  }
  to {
    left: -100%;
  }
}

.bullet-message:hover {
    animation-play-state: paused;
    background: rgba(255, 200, 200, 0.9); /* Subtle color change to indicate interaction */
    z-index: 10001; /* Pop to the front when hovered */
}

.danmaku-toggle {
  bottom: 0;
  right: 0;
}

/* On small screens (≤ 768px), move to top right */
@media (max-width: 768px) {
  .danmaku-toggle {
    top: 0;
    bottom: auto;
    right: 0;
  }
}

/* Container for the ban options, hidden by default */
.ban-menu {
    display: none;
    position: absolute;
    top: 100%; /* Below the message */
    left: 0;
    background: #333;
    border-radius: 5px;
    padding: 5px;
    white-space: nowrap;
    z-index: 10002;
}

.ban-btn {
    cursor: pointer;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

