body {
  margin: 0;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a1a;
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-container {
  display: flex;
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
}

.topics-sidebar {
  width: 250px;
  background: #2d2d2d;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.new-chat-btn {
  width: 100%;
  padding: 12px;
  background: #4a5eff;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.new-chat-btn:hover {
  background: #3544cc;
}

.topics-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-item {
  padding: 10px;
  background: #3d3d3d;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.topic-item:hover {
  background: #4d4d4d;
}

.topic-item.active {
  background: #4a5eff;
}

.chat-container {
  flex: 1;
  background: #2d2d2d;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 15px;
  background: #232323;
  border-bottom: 1px solid #3d3d3d;
}

.topic-input {
  width: 100%;
  padding: 8px;
  background: #3d3d3d;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.message {
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  text-align: right;
}

.message.ai {
  text-align: left;
}

.message-content {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 70%;
  word-wrap: break-word;
}

.user .message-content {
  background: #4a5eff;
}

.ai .message-content {
  background: #3d3d3d;
}

.action {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.input-area {
  padding: 20px;
  background: #232323;
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #3d3d3d;
  color: #fff;
  font-size: 16px;
}

input:focus {
  outline: none;
  background: #4d4d4d;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background: #4a5eff;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #3544cc;
}

.info-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4a5eff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}

.info-button:hover {
  background: #3544cc;
}

.info-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2d2d2d;
  padding: 25px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
}

.info-section {
  margin-bottom: 20px;
}

.info-section h3 {
  color: #4a5eff;
  margin-bottom: 10px;
}

.example-image {
  max-width: 100%;
  border-radius: 5px;
  margin: 10px 0;
}

.script-output {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 5px;
  margin: 10px 0;
}

.timeskip {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin: 10px 0;
}

.ai-name {
  font-weight: bold;
  color: #4a5eff;
  margin-bottom: 5px;
}

.song-player {
  background: #1d1d1d;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  width: 100%;
}

.song-info {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #aaa;
}

.song-visualizer {
  height: 60px;
  background: #2a2a2a;
  border-radius: 4px;
  margin: 10px 0;
  position: relative;
  overflow: hidden;
}

.song-visualizer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #4a5eff;
  opacity: 0.3;
}

.song-controls {
  display: flex;
  gap: 10px;
}

.song-controls button {
  flex: 1;
  padding: 8px;
  font-size: 14px;
}

.note-bar {
  position: absolute;
  background: #4a5eff;
  border-radius: 2px;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.energy-bar-container {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 200px;
  background: #2d2d2d;
  padding: 10px;
  border-radius: 8px;
  z-index: 1000;
}

.energy-bar {
  height: 20px;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
}

.energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a5eff, #00ff9d);
  width: 100%;
  transition: width 0.3s;
}

.energy-text {
  font-size: 12px;
  color: #aaa;
  display: flex;
  justify-content: space-between;
}

.watch-ad-btn {
  width: 100%;
  margin-top: 5px;
  padding: 5px;
  font-size: 12px;
}

.barrel-roll {
  animation: barrelRoll 1s linear;
}

.shake {
  animation: shake 0.5s infinite;
}

.physics-enabled {
  position: relative !important;
  transition: all 0.1s;
}

@keyframes barrelRoll {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5px, 5px); }
  50% { transform: translate(5px, -5px); }
  75% { transform: translate(-5px, -5px); }
  100% { transform: translate(0, 0); }
}

.song-title {
  font-size: 1.2em;
  color: #fff;
  margin-bottom: 10px;
  font-weight: bold;
}