* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #009739;
    color: white;
}

.audio-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.audio-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.voice-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.voice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.language-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
}

.voice-card {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}


.voice-card.playing {
    background: rgba(255, 255, 255, 1);
}

.flag {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.flag.english {
    background: linear-gradient(to right, #00247d 33%, #ffffff 33%, #ffffff 66%, #cf142b 66%);
}

.flag.bangla {
    background-color: #006a4e;
    position: relative;
}

.flag.bangla::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40%;
    height: 40%;
    background-color: #f42a41;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.flag.urdu {
    background-color: #115740;
    position: relative;
}

.flag.urdu::before {
    content: "";
    position: absolute;
    top: 45%;
    left: 45%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle at 50% 50%, #ffffff 50%, transparent 51%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transform: translate(-50%, -50%);
}

.flag.urdu::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 60%;
    width: 40%;
    height: 40%;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: -8px 0 0 4px #fff;
    transform: translate(-50%, -50%) rotate(-20deg);
}

.flag.germany {
    background: linear-gradient(to bottom, #000 33%, #dd0000 33%, #dd0000 66%, #ffce00 66%);
}

.flag.netherlands {
    background: linear-gradient(to bottom, #ae1c28 33%, #ffffff 33%, #ffffff 66%, #21468b 66%);
}

.flag.france {
    background: linear-gradient(to right, #002654 33%, #ffffff 33%, #ffffff 66%, #ce1126 66%);
}

.flag.canada {
    background: #ff0000;
    color: white;
}

.flag.italy {
    background: linear-gradient(to right, #009246 33%, #ffffff 33%, #ffffff 66%, #ce2b37 66%);
}

.flag.china {
    background: #de2910;
    color: #ffde00;
}

.flag.portugal {
    background: linear-gradient(to right, #006600 40%, #ff0000 40%);
}

.flag.brazil {
    background: #009739;
}

.flag.mexico {
    background: linear-gradient(to bottom, #006847 33%, #ffffff 33%, #ffffff 66%, #ce1126 66%);
}

.flag.spain {
    background: linear-gradient(to bottom, #aa151b 25%, #f1bf00 25%, #f1bf00 75%, #aa151b 75%);
}

.flag.india {
    background: linear-gradient(to bottom, #ff9933 33%, #ffffff 33%, #ffffff 66%, #138808 66%);
}

.content {
    flex: 1;
    color: #333;
}

.waveform-container {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 30px;
}

.waveform-bar {
    width: 100%;
    background: #000000;
    border-radius: 2px;
    transition: all 0.1s ease;
}

.waveform-bar.active {
    background: #FFC107;
}

.play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #01540a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-button:hover {
    background: #df085e;
    transform: scale(1.01);
}

.play-button:active {
    transform: scale(0.95);
}

.play-icon,
.pause-icon {
    width: 0;
    height: 0;
    transition: all 0.3s ease;
}

.play-icon {
    border-left: 12px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

.pause-icon {
    width: 12px;
    height: 16px;
    position: relative;
}

.pause-icon::before,
.pause-icon::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 16px;
    background: white;
    border-radius: 1px;
}

.pause-icon::before {
    left: 0;
}

.pause-icon::after {
    right: 0;
}

.hidden {
    display: none;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.3);
    }

    50% {
        transform: scaleY(1);
    }
}

.waveform-bar.animating {
    animation: wave 0.6s ease-in-out infinite;
}

/* Audio Section Responsive */
@media screen and (max-width: 992px) {
    .audio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .audio-container {
        grid-template-columns: repeat(1, 1fr);
    }
}