* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f8f8f8;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.header {
  background: linear-gradient(135deg, #8B0000 0%, #C8102E 60%, #8B0000 100%);
  padding: 30px 20px 20px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  margin: 0 -20px 20px;
}

.title {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  letter-spacing: 2px;
}

.subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: #FFD700;
  letter-spacing: 1px;
}

.player-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cover {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #eee;
  object-fit: cover;
}

.audio-title {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.progress-box {
  margin: 20px 0;
}

.progress-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 2px;
  outline: none;
}

.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #C8102E;
  border-radius: 50%;
  cursor: pointer;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.play-btn {
  margin-top: 10px;
  width: 200px;
  height: 50px;
  line-height: 50px;
  background: #C8102E;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
}

.history-link {
  margin-top: 20px;
  font-size: 14px;
  color: #576b95;
  cursor: pointer;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 85%;
  max-width: 400px;
  position: relative;
}

.modal-content.small {
  width: 85%;
  max-width: 350px;
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

.close {
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.history-list {
  max-height: 400px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.history-item img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 12px;
}

.history-item-info {
  flex: 1;
}

.history-item-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.history-item-date {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #C8102E;
}

.modal-desc {
  margin: 10px 0 20px;
  color: #666;
}

.primary-btn {
  background: #C8102E;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 30px;
  font-size: 16px;
  cursor: pointer;
}

.form-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.lottery-result {
  font-size: 22px;
  font-weight: bold;
  color: #C8102E;
  margin: 15px 0;
}