/* ==========================================================
   AST Audio Player Styles v19.4
   ========================================================== */

/* Waveform Canvas */
.ast-waveform-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1 !important; /* Force to background */
    pointer-events: none;
}

.ast-waveform-canvas.loading {
    background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.05) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: waveformPulse 1.5s ease-in-out infinite, skeletonShimmer 2s linear infinite;
}

@keyframes waveformPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Hide default progress bar when waveform is active */
.custom-audio-wrapper-v18.has-waveform .mejs-time-current {
    display: none !important;
}

.custom-audio-wrapper-v18.has-waveform .mejs-time-total {
    background-color: transparent !important;
}

.custom-audio-wrapper-v18 {
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #17202B;
    min-height: 60px;
    box-sizing: border-box;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-audio-wrapper-v18:hover {
    background-color: #1e2a38;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.custom-audio-wrapper-v18:target {
    border: 2px solid #D31E07;
    box-shadow: 0 0 20px rgba(211, 30, 7, 0.4);
}



.custom-audio-wrapper-v18 .custom-audio-player-section {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 0px;
    z-index: 5 !important; /* Ensure controls are above waveform */
}

.custom-audio-wrapper-v18 .mejs-container {
    background: transparent !important;
    width: 100% !important;
    height: 60px !important;
    position: relative;
    z-index: 5 !important; /* Force above waveform */
}

.custom-audio-wrapper-v18 .mejs-controls {
    position: relative !important;
    background: transparent !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.custom-audio-wrapper-v18 .audio-title-container {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    height: auto;
    display: flex;
    align-items: center;
    z-index: 5;
    pointer-events: none;
    max-width: calc(100% - 180px);
}

.custom-audio-wrapper-v18 .audio-title {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
    padding: 0; 
    pointer-events: auto;
    line-height: 1;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.custom-audio-wrapper-v18 .audio-title:hover,
.custom-audio-wrapper-v18 .audio-title:active,
.custom-audio-wrapper-v18 .audio-title:focus {
    color: #D31E07 !important;
    text-decoration: none !important;
}

.custom-audio-wrapper-v18 .mejs-time-rail {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: default !important;
    pointer-events: none !important;
    z-index: 1;
}

.custom-audio-wrapper-v18 .mejs-time-total {
    background-color: transparent !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.custom-audio-wrapper-v18 .mejs-time-loaded {
    display: none !important;
}

.custom-audio-wrapper-v18 .mejs-time-current {
    background-color: rgba(211,30,7,0.7) !important;
    height: 100% !important;
    border-radius: 0 !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button {
    position: relative;
    z-index: 5;
    width: 42px !important;
    height: 42px !important;
    margin: 0 5px 0 0 !important;
    flex-shrink: 0;
}

.custom-audio-wrapper-v18 .mejs-playpause-button button {
    margin: 0 !important;
    padding: 0 !important;
    width: 42px !important;
    height: 42px !important;
    background-color: #17202B !important; /* Enforce solid color */
    background: #17202B !important; /* Enforce solid color */
    border: 2px solid #D31E07 !important;
    opacity: 1 !important; 
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s, border-color 0.2s, transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-image: none !important;
    transform: scale(1) !important;
    backface-visibility: hidden !important;
    outline: none !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 10 !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button button::before,
.custom-audio-wrapper-v18 .mejs-playpause-button button i {
    opacity: 1 !important;
    color: #ffffff !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button button span {
    display: none !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button.mejs-play button {
    background: #111821 !important;
    border: 2px solid #D31E07 !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button.mejs-play button:before {
    content: '\f04b' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    color: #D31E07 !important;
    margin-left: 2px;
}

.custom-audio-wrapper-v18 .mejs-playpause-button.mejs-replay button {
    background: #111821 !important;
    border: 2px solid #D31E07 !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button.mejs-replay button:before {
    content: '\f04b' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    color: #D31E07 !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button.mejs-pause button {
    background: #D31E07 !important;
    border: 2px solid #D31E07 !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button.mejs-pause button:before {
    content: '\f04d' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    color: #ffffff !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button button:hover {
    background: #D31E07 !important;
    border-color: #D31E07 !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button button:hover:before {
    color: #ffffff !important;
}

.custom-audio-wrapper-v18 .custom-audio-controls-right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 20; /* High enough to be above MEJS container */
    padding: 0;
    border-radius: 0;
    will-change: transform;
}

.custom-audio-wrapper-v18 .download-count {
    color: #bdc3c7;
    font-size: 14px !important;
    font-weight: 500;
    position: absolute;
    right: 110px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    white-space: nowrap;
    line-height: 1;
    padding: 0;
}

.custom-audio-wrapper-v18 .audio-download-link,
.custom-audio-wrapper-v18 .audio-copy-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #4b5563 !important;
    background: #4b5563 !important;
    opacity: 1 !important; 
    border-radius: 10px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 10 !important;
}

.custom-audio-wrapper-v18 .audio-copy-link {
    margin-right: 8px;
    background-color: #374151;
}

.custom-audio-wrapper-v18 .audio-download-link:hover,
.custom-audio-wrapper-v18 .audio-download-link:active {
    background-color: #D31E07 !important;
    background: #D31E07 !important;
}

.custom-audio-wrapper-v18 .audio-download-link:hover i,
.custom-audio-wrapper-v18 .audio-download-link:active i {
    color: #ffffff !important;
}

.custom-audio-wrapper-v18 .audio-download-link i,
.custom-audio-wrapper-v18 .audio-copy-link i {
    color: #bdc3c7;
    font-size: 18px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-audio-wrapper-v18 .audio-copy-link.copied {
    background-color: #10b981;
}

.custom-audio-wrapper-v18 .audio-copy-link.copied i {
    color: #ffffff;
}

.custom-audio-wrapper-v18 .audio-download-link.loading {
    background-color: #6b7280;
}

.custom-audio-wrapper-v18 .audio-download-link.loading i {
    color: #9ca3af;
}

.custom-audio-wrapper-v18 .audio-download-link.disabled {
    background-color: #10b981; /* Green success color */
    cursor: default;
}

.custom-audio-wrapper-v18 .audio-download-link.disabled i {
    color: #ffffff;
    transform: scale(1.2); /* Slight pop on the checkmark */
}

.custom-audio-wrapper-v18 .mejs-time-handle,
.custom-audio-wrapper-v18 .mejs-volume-button,
.custom-audio-wrapper-v18 .mejs-horizontal-volume-slider,
.custom-audio-wrapper-v18 .mejs-time-float,
.custom-audio-wrapper-v18 .mejs-time-buffering {
    display: none !important;
}

.custom-audio-wrapper-v18 .mejs-time {
    display: flex !important;
    align-items: center;
    position: absolute !important;
    right: 65px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    z-index: 10 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none;
    line-height: 1 !important;
}

.custom-audio-wrapper-v18 .mejs-currenttime-container {
    display: none !important; /* Hide current time */
}

.custom-audio-wrapper-v18 .mejs-duration-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    line-height: 1 !important;
}

.audio-title-seo {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
}

@media (prefers-reduced-motion: reduce) {
    .custom-audio-wrapper-v18 .audio-download-link,
    .custom-audio-wrapper-v18 .audio-download-link i,
    .custom-audio-wrapper-v18 .mejs-playpause-button button {
        transition: none;
    }
}

/* ==========================================================
   Global Audio Grid & Card Styles (For Hybrid Layout)
   ========================================================== */
.ast-rel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

@media(max-width: 768px) {
    .ast-rel-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }
}

.ast-rel-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.ast-rel-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .05);
    border-color: rgba(211, 30, 7, 0.3);
}

.ast-rel-card-top {
    width: 100%;
    position: relative;
    padding-bottom: 100%;
    height: 0;
    background: rgba(0, 0, 0, .2);
    border-radius: 24px 24px 0 0;
}

.ast-rel-card-top .custom-audio-wrapper-v18 {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
}

.ast-rel-card-top .ast-radial-play-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 18px !important;
}

.ast-rel-card-footer {
    padding: 16px;
    background: rgba(17, 24, 33, .8);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
}

.ast-rel-card-info {
    flex: 1;
    min-width: 0;
}

.ast-rel-card-title {
    display: block;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-decoration: none !important;
    margin-bottom: 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.ast-rel-card-cat {
    display: block;
    font-size: 10px !important;
    color: rgba(255, 255, 255, .4) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ast-rel-card-meta {
    font-size: 11px !important;
    color: rgba(255, 255, 255, .6) !important;
    font-weight: 600;
}

.ast-load-more-c {
    text-align: center;
    margin: 50px 0 120px 0;
}

.ast-btn-load-more {
    background: #17202B;
    border: 1px solid #2c3a4d;
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.ast-btn-load-more:hover {
    background: #D31E07;
    border-color: #D31E07;
    box-shadow: 0 0 15px rgba(211, 30, 7, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .custom-audio-wrapper-v18 {
        width: 100%;
    }
    
    .custom-audio-wrapper-v18 .custom-audio-player-section {
        padding-right: 0px;
    }
    
    .custom-audio-wrapper-v18 .audio-title {
        max-width: 300px;
        font-size: 13px;
    }
    
    .custom-audio-wrapper-v18 .audio-title-container {
        left: 60px;
    }
    
    .custom-audio-wrapper-v18 .download-count {
        font-size: 11px;
        margin-right: 8px;
    }
    
    .custom-audio-wrapper-v18 .custom-audio-controls-right {
        right: 10px;
    }
    
    .custom-audio-wrapper-v18 .audio-download-link {
        width: 40px;
        height: 40px;
    }
    
    .custom-audio-wrapper-v18 .audio-download-link i {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .custom-audio-wrapper-v18 .audio-title {
        max-width: 250px;
        font-size: 12px;
    }
    
    .custom-audio-wrapper-v18 .audio-title-container {
        left: 60px;
    }
}

/* ==========================================================
   Modal Styles
   ========================================================== */

.ast-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.ast-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ast-modal-content {
    background: #111821;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ast-modal-overlay.active .ast-modal-content {
    transform: scale(1);
}

.ast-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1c2633;
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
    z-index: 10;
}

.ast-modal-close:hover {
    background: #253040;
    color: #fff;
}

.ast-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 10px;
    color: #fff;
}

.ast-ad-container {
    width: 300px;
    height: 250px;
    min-height: 250px;
    background: #1C2331; 
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: visible !important;
    position: relative;
}

/* Force AdSense transparency */
.adsbygoogle, .adsbygoogle iframe {
    background: transparent !important;
}

.ast-ad-blocked {
    text-align: center;
    color: #6b7280;
    padding: 20px;
}

.ast-ad-blocked i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #4b5563;
}

.ast-ad-blocked p {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #9ca3af;
}

.ast-ad-blocked span {
    font-size: 12px;
    color: #6b7280;
}

.ast-ad-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.ast-ad-container {
    width: 300px;
    height: 250px;
    background: #0d1117;
    margin: 15px auto;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes adPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

#ast-ad-slot-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ast-timer-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    background: #1c2633;
    padding: 15px;
    border-radius: 12px;
}

.ast-timer-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: conic-gradient(#374151 calc(100% - var(--progress, 100) * 1%), #D31E07 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ast-timer-circle::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #1c2633;
    z-index: -1;
}

.ast-timer-text {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.4;
    font-weight: 400;
}

/* ==========================================================
   Duration Display
   ========================================================== */

.ast-duration {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
    .ast-duration { display: none; }
}

/* ==========================================================
   Mini Player (Sticky)
   ========================================================== */

.ast-mini-player {
    position: fixed;
    bottom: 10px; /* Floating look */
    left: 0;
    right: 0;
    padding: 0 12px; /* Side spacing on mobile */
    z-index: 99998;
    transform: translateY(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: none;
    background: transparent;
}

@media (min-width: 768px) {
    .ast-mini-player {
        bottom: 10px;
        padding: 0; /* Let inner handle max-width */
    }
    .ast-mini-inner {
        max-width: 800px; /* Narrower to match site content */
        margin: 0 auto;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.ast-mini-player.active {
    transform: translateY(0);
}

.ast-mini-drag-handle {
    width: 100%;
    height: 24px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.ast-mini-drag-handle i {
    transition: transform 0.2s;
}

.ast-mini-drag-handle:active i {
    transform: translateY(3px);
}

.ast-mini-inner {
    display: flex;
    align-items: center;
    height: 76px; /* Enlarged for bigger buttons */
    padding: 0 18px 0 18px;
    background: #111821;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    gap: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 18px !important;
}

.ast-mini-play {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid #D31E07 !important;
    background: #111821 !important;
    color: #D31E07 !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 18px;
}

.ast-mini-play:hover,
.ast-mini-play.playing {
    background: #D31E07 !important;
    color: #fff !important;
}

.ast-mini-center-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.ast-mini-info-row {
    display: flex;
    align-items: center; /* Changed from baseline for button alignment */
    gap: 12px;
    min-width: 0;
}

.ast-mini-info-row .ast-mini-copy-link {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.3) !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 12px !important;
    margin-left: 2px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ast-mini-info-row .ast-mini-copy-link:hover {
    color: #D31E07 !important;
    background: rgba(211, 30, 7, 0.1) !important;
    border-radius: 6px;
}

.ast-mini-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    line-height: 1.2;
    flex-shrink: 1;
}

.ast-mini-title:hover {
    color: #D31E07;
}

.ast-mini-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

.ast-mini-progress-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.15s ease;
}

.ast-mini-progress-wrap:hover {
    height: 6px;
}

.ast-mini-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #D31E07, #E63E2A);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.ast-mini-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ast-mini-actions button,
.ast-mini-actions a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 17px;
    text-decoration: none;
}

.ast-mini-actions .ast-mini-next:hover {
    background: #D31E07 !important;
    color: #fff !important;
}

.ast-mini-actions a .download-count {
    display: none; /* Hide download count on mini player */
}

.ast-mini-actions button:hover,
.ast-mini-actions a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.ast-mini-actions .audio-download-link {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.ast-mini-actions .audio-download-link:hover,
.ast-mini-actions .audio-download-link:active {
    background: #D31E07 !important;
    color: #fff !important;
}

.ast-mini-actions .audio-download-link.loading {
    background: #6b7280;
}

.ast-mini-actions .audio-download-link.disabled {
    background: #D31E07;
    cursor: default;
}

@media (max-width: 480px) {
    .ast-mini-inner {
        padding: 0 10px;
        gap: 8px;
    }
    .ast-mini-info {
        max-width: 120px;
    }
    .ast-mini-title {
        font-size: 12px;
    }
}

/* =========================================================
   RADIAL THEME (SINGLE RINGTONE APP UI)
   ========================================================= */
.ast-radial-theme-container {
    background-color: #0b0e14; /* Dark background from screenshot */
    color: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 40px 0;
}

.ast-radial-app-screen {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.ast-radial-left {
    flex: 1 1 350px;
    display: flex;
    justify-content: center;
}

.ast-radial-right {
    flex: 1 1 400px;
}

.ast-radial-theme {
    width: 350px;
    height: 350px;
    background: #111827;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.ast-radial-theme .custom-audio-player-section {
    width: 100%;
    height: 100%;
    position: relative;
}

.ast-radial-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.ast-radial-theme .ast-waveform-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ast-radial-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #D31E07; /* Red button */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    z-index: 10;
    box-shadow: 0 0 20px rgba(211, 30, 7, 0.4);
    pointer-events: auto; /* Play button clickable separately */
    transition: transform 0.2s;
}

.ast-radial-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.ast-ringtone-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.ast-ringtone-desc {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ast-ringtone-meta-boxes {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ast-meta-box {
    background: #1f2937;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.ast-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.ast-meta-val {
    font-size: 16px;
    color: #f3f4f6;
    font-weight: 700;
}

.ast-meta-box.ast-magic-sync {
    background: transparent;
    border: 1px solid #374151;
    flex-direction: row;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
}

.ast-ringtone-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ast-btn-download,
.ast-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    flex: 1;
    min-width: 200px;
}

.ast-btn-download {
    background: #D31E07; /* Red from screenshot */
    color: white;
}

.ast-btn-download:hover {
    background: #e62309;
    box-shadow: 0 5px 15px rgba(211, 30, 7, 0.4);
}

.ast-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.ast-btn-secondary:hover {
    background: #ffffff;
}

@media (max-width: 768px) {
    .ast-radial-app-screen {
        flex-direction: column;
        text-align: center;
    }
    .ast-radial-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================================
   MAGIC SYNC QR MODAL
   ========================================================= */
.ast-qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.ast-qr-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.ast-qr-modal {
    background: #1f2937;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    color: #ffffff;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ast-qr-modal-overlay.hidden .ast-qr-modal {
    transform: scale(0.9);
}

.ast-qr-modal h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.ast-qr-modal p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 30px;
}

.ast-qr-image-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: inline-block;
    min-width: 200px;
    min-height: 200px;
    position: relative;
}

.ast-qr-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.ast-qr-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #4b5563;
}

.ast-qr-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ast-qr-close:hover {
    background: rgba(255,255,255,0.2);
}

.ast-meta-box.ast-magic-sync {
    cursor: pointer;
    transition: all 0.2s;
}

.ast-meta-box.ast-magic-sync:hover {
    background: rgba(255,255,255,0.05);
    border-color: #4b5563;
    color: #e5e7eb;
}

/* ==========================================================
   Micro-interactions
   ========================================================== */
.custom-audio-wrapper-v18 .audio-download-link,
.custom-audio-wrapper-v18 .audio-copy-link,
.ast-mini-play,
.ast-mini-next,
.ast-mini-actions a,
.ast-mini-info-row .ast-mini-copy-link {
    transition: all 0.2s, transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.custom-audio-wrapper-v18 .mejs-playpause-button button:active,
.custom-audio-wrapper-v18 .audio-download-link:active,
.custom-audio-wrapper-v18 .audio-copy-link:active,
.ast-mini-play:active,
.ast-mini-next:active,
.ast-mini-actions a:active,
.ast-mini-info-row .ast-mini-copy-link:active {
    transform: scale(0.92) !important;
}
