:root {
  --text-color: #333;
  --focus-border-color: #00bf8f;
  --active-border-color: #00bf8f;
  --shadow-color: rgba(0,0,0,0.1);
  --border-default: 1px solid #bbb;
  --badge-bg: #373639;
  --badge-text: #fff;
  --badge-font-size: 16px;
  --badge-size: 30px;
  --download-padding: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: inherit;
  background: #fff;
  color: var(--text-color);
}

.download-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-item {
  position: relative;
  flex: 1 1 calc(50% - 8px);
  padding: var(--download-padding);
  border: var(--border-default);
  background: linear-gradient(to bottom, #f1f3f4 0%, #f1f3f4 50%, #ffffff 50%, #ffffff 100%);
  color: var(--text-color);
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: justify;
  direction: rtl;
}

.download-item .number-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: var(--badge-size);
  height: var(--badge-size);
  border-radius: 50%;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  font-size: var(--badge-font-size);
  flex-shrink: 0;
}

.download-item p,
.download-item a.audio-link {
  margin: 0;
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.download-item audio {
  display: none;
}

.info-icon {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  font-weight: bold;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  touch-action: manipulation;
}

.download-item.active {
  border-color: var(--active-border-color);
  background: linear-gradient(to bottom, #e8f5e9 0%, #e8f5e9 50%, #ffffff 50%, #ffffff 100%);
}

.download-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--active-border-color);
  pointer-events: none;
}

@media (max-width:768px) {
  .download-item {
    flex: 1 1 100%;
  }
}