| 1 |
.audio-container { |
| 2 |
padding: 40px 24px; |
| 3 |
margin: 0 auto; |
| 4 |
max-width: 600px; |
| 5 |
border-radius: 8px; |
| 6 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); |
| 7 |
} |
| 8 |
|
| 9 |
.audio-title { |
| 10 |
font-size: 1.75rem; |
| 11 |
font-weight: 600; |
| 12 |
margin-bottom: 0.75rem; |
| 13 |
color: #1a1a1a; |
| 14 |
} |
| 15 |
|
| 16 |
.audio-description { |
| 17 |
font-size: 1rem; |
| 18 |
color: #666; |
| 19 |
margin-bottom: 1.5rem; |
| 20 |
} |
| 21 |
|
| 22 |
.audio-player { |
| 23 |
width: 100%; |
| 24 |
max-width: 500px; |
| 25 |
margin: 0 auto 1.5rem; |
| 26 |
border-radius: 8px; |
| 27 |
overflow: hidden; |
| 28 |
background-color: #f8f9fa; |
| 29 |
padding: 1rem; |
| 30 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| 31 |
} |
| 32 |
|
| 33 |
.audio-player audio { |
| 34 |
width: 100%; |
| 35 |
height: 40px; |
| 36 |
} |
| 37 |
|
| 38 |
/* Custom Audio Player Styling */ |
| 39 |
.audio-player::-webkit-media-controls-panel { |
| 40 |
background-color: #f8f9fa; |
| 41 |
border-radius: 8px; |
| 42 |
} |
| 43 |
|
| 44 |
.audio-player::-webkit-media-controls-play-button { |
| 45 |
background-color: #2563eb; |
| 46 |
border-radius: 50%; |
| 47 |
color: white; |
| 48 |
} |
| 49 |
|
| 50 |
.audio-player::-webkit-media-controls-timeline { |
| 51 |
background-color: #e9ecef; |
| 52 |
border-radius: 4px; |
| 53 |
height: 4px; |
| 54 |
} |
| 55 |
|
| 56 |
.audio-player::-webkit-media-controls-volume-slider { |
| 57 |
background-color: #e9ecef; |
| 58 |
border-radius: 4px; |
| 59 |
height: 4px; |
| 60 |
} |
| 61 |
|
| 62 |
.audio-player::-webkit-media-controls-current-time-display, |
| 63 |
.audio-player::-webkit-media-controls-time-remaining-display { |
| 64 |
color: #495057; |
| 65 |
font-size: 0.9rem; |
| 66 |
} |
| 67 |
|
| 68 |
.audio-info { |
| 69 |
font-size: 0.9rem; |
| 70 |
color: #666; |
| 71 |
margin-top: 0.75rem; |
| 72 |
} |
| 73 |
|
| 74 |
/* Responsive Styles */ |
| 75 |
@media (max-width: 768px) { |
| 76 |
.audio-container { |
| 77 |
padding: 30px 16px; |
| 78 |
} |
| 79 |
|
| 80 |
.audio-title { |
| 81 |
font-size: 1.5rem; |
| 82 |
} |
| 83 |
|
| 84 |
.audio-description { |
| 85 |
font-size: 0.95rem; |
| 86 |
} |
| 87 |
|
| 88 |
.audio-player { |
| 89 |
padding: 0.75rem; |
| 90 |
} |
| 91 |
} |
| 92 |
|
| 93 |
/* Loading State */ |
| 94 |
.audio-player.loading { |
| 95 |
position: relative; |
| 96 |
} |
| 97 |
|
| 98 |
.audio-player.loading::before { |
| 99 |
content: ""; |
| 100 |
position: absolute; |
| 101 |
top: 50%; |
| 102 |
left: 50%; |
| 103 |
transform: translate(-50%, -50%); |
| 104 |
width: 30px; |
| 105 |
height: 30px; |
| 106 |
border: 3px solid #f3f3f3; |
| 107 |
border-top: 3px solid #2563eb; |
| 108 |
border-radius: 50%; |
| 109 |
animation: spin 1s linear infinite; |
| 110 |
} |
| 111 |
|
| 112 |
@keyframes spin { |
| 113 |
0% { transform: translate(-50%, -50%) rotate(0deg); } |
| 114 |
100% { transform: translate(-50%, -50%) rotate(360deg); } |
| 115 |
} |
| 116 |
|
| 117 |
/* Hover Effects */ |
| 118 |
.audio-player:hover { |
| 119 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); |
| 120 |
transform: translateY(-1px); |
| 121 |
transition: all 0.3s ease; |
| 122 |
} |
| 123 |
|
| 124 |
/* Focus States */ |
| 125 |
.audio-player:focus-within { |
| 126 |
outline: 2px solid #2563eb; |
| 127 |
outline-offset: 2px; |
| 128 |
} |