:root {
    --dark-color: #1A1A2E;
    --gray-color: #8A8DA6;
    --border-color: #E8E8F5;
}

.audio-card-elegant {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(19, 26, 176, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
    position: relative;
    max-width: 420px;
}

.language-tag {
    background-color: var(--primary-color2);
    color: white!important;
    width: fit-content;
    border-radius: 20px;
    padding: 5px 12px;
}

.audio-card-elegant:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(19, 26, 176, 0.1);
    border-color: rgba(19, 26, 176, 0.15);
}

.card-header-elegant {
    position: relative;
    height: 220px;
}

.image-container-elegant {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-image-elegant {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.audio-card-elegant:hover .card-image-elegant {
    transform: scale(1.05);
    filter: brightness(1);
}

.audio-visualization {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top,
    rgba(19, 26, 176, 0.5) 0%,
    rgba(223, 14, 76, 0.3) 50%,
    transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    width: 60%;
    height: 40px;
    padding: 0 10px;
    transform-origin: bottom;
}

.visualizer-bar {
    width: 2px;
    min-height: 10%;
    border-radius: 1.5px 1.5px 0 0;
    animation: visualizer-animation 5.8s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 1.05s);
}

@keyframes visualizer-animation {
    0%, 100% {
        height: var(--height, 30%);
        opacity: 0.6;
    }
    50% {
        height: calc(var(--height, 30%) * 1.8);
        opacity: 0.9;
    }
}

.audio-control-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.elegant-play-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg,
    rgba(19, 26, 176, 0.9),
    rgba(99, 104, 228, 0.9));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(19, 26, 176, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.elegant-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(19, 26, 176, 0.4);
    background: linear-gradient(135deg,
    rgba(19, 26, 176, 1),
    rgba(99, 104, 228, 1));
}

.play-icon {
    color: white;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.play-icon svg {
    position: absolute;
}

.play-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg,
    rgba(19, 26, 176, 0.4),
    rgba(223, 14, 76, 0.2));
    animation: ripple-animation 2s ease-out infinite;
}

.play-ripple:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes ripple-animation {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.elegant-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg,
    rgba(223, 14, 76, 0.9),
    rgba(228, 100, 140, 0.9));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(223, 14, 76, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.label-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
    transparent 0%,
    rgba(19, 26, 176, 0.05) 40%,
    rgba(19, 26, 176, 0.1) 100%);
    pointer-events: none;
}

.card-content-elegant {
    padding: 24px;
}

.location-elegant {
    margin-bottom: 16px;
}

.location-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
    font-size: 14px;
    font-weight: 500;
}

.location-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
    transparent,
    var(--border-color),
    transparent);
}

.duration-display {
    font-family: 'SF Mono', 'Roboto Mono', monospace;
    color: var(--primary-color1);
    font-weight: 600;
    background: rgba(19, 26, 176, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.title-elegant {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-color);
    position: relative;
}

.title-elegant a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(120deg,
    var(--primary-color1) 0%,
    var(--primary-color1) 40%,
    var(--primary-color2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.title-elegant a:hover {
    background: linear-gradient(120deg,
    var(--primary-color2) 0%,
    var(--primary-color2) 40%,
    var(--primary-color1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    var(--border-color),
    transparent);
    margin-bottom: 20px;
    position: relative;
}

.underline-line {
    height: 2px;
    width: 40px;
    background: linear-gradient(90deg,
    var(--primary-color1),
    var(--primary-color2));
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 1px;
}

.underline-dot {
    width: 4px;
    height: 4px;
    background: var(--primary-color2);
    border-radius: 50%;
    position: absolute;
    left: 44px;
    top: -1px;
    animation: float-dot 3s ease-in-out infinite;
}

@keyframes float-dot {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

.price-elegant {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.price-strikethrough {
    display: flex;
    align-items: baseline;
    color: var(--gray-color);
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 16px;
}

.price-current {
    display: flex;
    align-items: baseline;
    color: var(--primary-color2);
    font-weight: 700;
}

.price-current .currency {
    font-size: 20px;
    font-weight: 600;
}

.price-current .amount {
    font-size: 32px;
    font-weight: 800;
    margin: 0 4px;
}

.price-label {
    font-size: 14px;
    color: var(--gray-color);
    font-weight: 500;
    opacity: 0.8;
}


.language-container-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.language-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.language-scroll-container::-webkit-scrollbar {
    display: none;
}

.language-card-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.85));
    color: var(--primary-color1);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(19, 26, 176, 0.05);
}

.language-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent);
    transition: left 0.6s ease;
}

.language-card-btn:hover::before {
    left: 100%;
}

.language-card-btn:hover {
    background: linear-gradient(135deg,
    rgba(19, 26, 176, 0.1),
    rgba(99, 104, 228, 0.15));
    border-color: rgba(19, 26, 176, 0.3);
    color: var(--primary-color1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 26, 176, 0.1);
}

.language-card-btn.active {
    background: linear-gradient(135deg,
    var(--primary-color1),
    rgba(99, 104, 228, 0.9));
    color: white;
    border-color: var(--primary-color1);
    box-shadow: 0 4px 15px rgba(19, 26, 176, 0.25);
}

.language-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-scroll-btn:hover {
    background: var(--primary-color1);
    border-color: var(--primary-color1);
}

.language-scroll-btn:hover svg {
    color: white;
}

.language-scroll-btn.scroll-left {
    left: -12px;
}

.language-scroll-btn.scroll-right {
    right: -12px;
}

.language-selection-area:hover .language-scroll-btn {
    opacity: 1;
}

.language-scroll-btn svg {
    width: 12px;
    height: 12px;
    color: var(--gray-color);
}

.language-scroll-container.auto-scroll {
    animation: autoScroll 20s linear infinite;
    animation-play-state: running;
}

.language-scroll-container.auto-scroll:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* === Custom Audio Player Styles === */
.custom-audio-player-elegant {
    padding: 0 0 5px 0;
}

.audio-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.time-display {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-color);
    width: 35px;
    text-align: center;
}

.current-time {
    color: var(--primary-color1);
}

.audio-progress-bar {
    flex-grow: 1;
    height: 12px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.progress-track-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.progress-fill-custom {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color1), var(--primary-color2));
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-handle-custom {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3px rgba(19, 26, 176, 0.2);
    transition: left 0.1s linear, box-shadow 0.2s ease;
}

.audio-progress-bar:hover .progress-handle-custom {
    box-shadow: 0 0 0 5px rgba(19, 26, 176, 0.3);
}

.custom-audio-source {
    display: none;
}

/* === Updated Compact Button Styles === */
.actions-elegant {
    display: flex;
    gap: 10px;
    padding-top: 8px;
}

.btn-elegant {
    flex: 1;
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    padding: 10px 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: 1px solid rgba(232, 232, 245, 0.6);
    min-height: 48px;
}

.btn-elegant:hover {
    transform: translateY(-2px);
    border-color: rgba(19, 26, 176, 0.2);
    box-shadow: 0 6px 20px rgba(19, 26, 176, 0.1);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.btn-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-icon svg {
    width: 14px;
    height: 14px;
    position: absolute;
}

.btn-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-elegant:hover .btn-overlay {
    opacity: 1;
}

.btn-preview {
    color: var(--primary-color1);
}

.btn-preview:hover {
    background: linear-gradient(135deg,
    rgba(19, 26, 176, 0.08),
    rgba(99, 104, 228, 0.12));
    border-color: rgba(19, 26, 176, 0.3);
    box-shadow: 0 6px 20px rgba(19, 26, 176, 0.15);
}

.btn-preview .btn-icon {
    background: rgba(19, 26, 176, 0.1);
    color: var(--primary-color1);
}

.btn-preview:hover .btn-icon {
    background: rgba(19, 26, 176, 0.2);
    transform: scale(1.1);
}

.btn-preview:hover .btn-text {
    color: var(--primary-color1);
    letter-spacing: 0.4px;
}

.btn-details {
    color: rgba(223, 14, 76, 0.9);
}

.btn-details:hover {
    background: linear-gradient(135deg,
    rgba(223, 14, 76, 0.08),
    rgba(228, 100, 140, 0.12));
    border-color: rgba(223, 14, 76, 0.3);
    box-shadow: 0 6px 20px rgba(223, 14, 76, 0.15);
}

.btn-details .btn-icon {
    background: rgba(223, 14, 76, 0.1);
    color: rgba(223, 14, 76, 0.9);
}

.btn-details:hover .btn-icon {
    background: rgba(223, 14, 76, 0.2);
    transform: scale(1.1);
}

.btn-details:hover .btn-text {
    color: rgba(223, 14, 76, 0.9);
    letter-spacing: 0.4px;
}

.btn-download {
    color: var(--primary-color1);
}

.btn-download:hover {
    background: linear-gradient(135deg,
    rgba(48, 83, 159, 0.08),
    rgba(48, 83, 159, 0.12));
    border-color: rgba(48, 83, 159, 0.3);
    box-shadow: 0 6px 20px rgba(48, 83, 159, 0.15);
}

.btn-download .btn-icon {
    background: rgba(48, 83, 159, 0.1);
    color: var(--primary-color1);
}

.btn-download:hover .btn-icon {
    background: rgba(48, 83, 159, 0.2);
    transform: scale(1.1);
}

.btn-download:hover .btn-text {
    color: var(--primary-color1);
    letter-spacing: 0.4px;
}

/* ===== Modal Styles ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    animation: modalAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    /*background: linear-gradient(135deg,
    rgba(223, 14, 76, 0.1),
    rgba(223, 14, 76, 0.2));*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.modal-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color2);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--gray-color);
    font-size: 14px;
    line-height: 1.5;
}

.modal-content {
    text-align: center;
    margin-bottom: 25px;
}

.modal-language {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(19, 26, 176, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    margin: 15px 0;
    font-weight: 600;
    color: var(--primary-color1);
    border: 1px solid rgba(19, 26, 176, 0.1);
}

.modal-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color2);
    margin: 10px 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.modal-btn-cancel {
    background: rgba(138, 141, 166, 0.1);
    color: var(--gray-color);
    border: 1px solid var(--border-color);
}

.modal-btn-cancel:hover {
    background: rgba(138, 141, 166, 0.2);
    border-color: var(--gray-color);
}

.modal-btn-confirm {
    background: linear-gradient(135deg,
    var(--primary-color1),
    rgba(99, 104, 228, 0.9));
    color: white;
    border: 1px solid var(--primary-color1);
    box-shadow: 0 4px 15px rgba(19, 26, 176, 0.3);
}

.modal-btn-confirm:hover {
    background: linear-gradient(135deg,
    rgba(19, 26, 176, 0.9),
    rgba(19, 26, 176, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 26, 176, 0.4);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(138, 141, 166, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(138, 141, 166, 0.2);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 16px;
    height: 16px;
    color: var(--gray-color);
}



@media (max-width: 1281px) {
    .audio-card-elegant{
        max-width: 360px;
    }
}
