body {
  background-color: #f8f9fa;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  margin-top: 20px;
  padding: 15px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.form-group label {
  font-weight: bold;
  color: #333;
}

.form-control {
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

#fileToUpload {
  display: none;
}

.custom-file-upload {
  margin-top: 5px;
  background-color: #ff8800; /* 醒目的橙色 */
  border-color: #ff8800;
  color: #fff;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  display: inline-block;
}

.custom-file-upload:hover {
  background-color: #e67e22; /* 深橙色 */
  border-color: #e67e22;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  border-radius: 5px;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}

.progress {
  height: 25px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.progress-bar {
  line-height: 25px;
  background-color: #28a745;
}

#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 90%;
  width: 500px;
}

#player-container {
  margin-bottom: 10px;
}

#close-btn {
  display: block;
  margin: 0 auto;
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#close-btn:hover {
  background-color: #c82333;
}

.list-group-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  word-wrap: break-word; /* 防止單詞超出邊界 */
  white-space: pre-wrap; /* 保留空白符和換行符 */
  width: 100%; /* 確保項目佔滿父容器的寬度 */
  box-sizing: border-box; /* 包含內填充和邊框在內的總寬度 */
}

.list-group-item-heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.list-group-item-text {
  font-size: 14px;
  color: #555;
  width: 100%;
}

.more-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  padding: 0;
  margin: 5px 0;
}

.more-btn:hover {
  text-decoration: underline;
}

/* 播放按鈕樣式 */
.play-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.play-btn:hover {
  background-color: #218838;
}

@media (max-width: 768px) {
  .container {
      margin-top: 10px;
      padding: 10px;
  }

  h1 {
      font-size: 20px;
  }

  .form-group label {
      font-size: 14px;
  }

  .form-control {
      font-size: 14px;
  }

  .custom-file-upload {
      font-size: 14px;
      padding: 8px;
  }

  .btn-primary {
      font-size: 14px;
      padding: 8px;
  }

  .progress {
      height: 20px;
  }

  .progress-bar {
      line-height: 20px;
  }

  .list-group-item {
      padding: 10px;
  }

  .list-group-item-heading {
      font-size: 16px;
  }

  .list-group-item-text {
      font-size: 12px;
  }

  #popup {
      max-width: 100%;
      width: 90%;
  }

  #close-btn {
      font-size: 14px;
      padding: 8px;
  }
}
