* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Tahoma, Arial;
  background: linear-gradient(135deg, #0f4c75, #3282b8);
  min-height: 100vh;
  direction: rtl;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

h1 {
  color: #0f4c75;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 15px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #0f4c75;
}

select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

select:focus {
  outline: none;
  border-color: #3282b8;
}

.info {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 20px;
}

.info h2 {
  color: #0f4c75;
  margin-bottom: 8px;
}

.info p {
  color: #666;
  margin-bottom: 10px;
}

.verse-count {
  background: #e3f2fd;
  color: #1565c0;
  padding: 8px 15px;
  border-radius: 15px;
  display: inline-block;
  font-weight: bold;
}

.verse-display {
  background: #ffffff;
  border: 2px solid #3282b8;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  text-align: center;
  font-size: 1.4rem;
  line-height: 2;
  color: #0f4c75;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verse-display.playing {
  background: #e8f5e8;
  border-color: #27ae60;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  background: linear-gradient(135deg, #0f4c75, #3282b8);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
  min-width: 120px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  background: #bbb;
  cursor: not-allowed;
  transform: none;
}

.play-btn {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: #555;
  border-radius: 8px;
  min-width: 180px;
  z-index: 1;
  flex-direction: column;
}

.dropdown-content button {
  width: 100%;
  background: #666;
  color: white;
  padding: 10px 15px;
  border: none;
  text-align: right;
  cursor: pointer;
  margin: 2px 0;
  border-radius: 6px;
}

.dropdown-content button:hover {
  background: #777;
}

.show {
  display: flex;
  flex-direction: column;
}

.loading {
  text-align: center;
  color: #3282b8;
  font-weight: bold;
  margin: 15px 0;
}

.error {
  background: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 15px 0;
}

.success {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 15px 0;
}

audio {
  display: none;
}

@media(max-width:768px){
  .grid{grid-template-columns:1fr}
  .controls{flex-direction:column;align-items:center}
  .btn{width:200px}
  .verse-display{font-size:1.2rem}
}