/* ===============================
   Repixel Minimal Audio Player ðŸŒˆ 2do, color borders... 
================================= */
.audio-item{border:0px solid red; margin-bottom:3rem;}
/* Wrapper */
.repixel-audio-wrapper {
    width: 99% !important;
    padding: 0 !important;
}

/* Player */
.sas-player {
    display: flex;
    align-items: center;
    gap: 16px;
    width: clamp(250px, 80%, 650px);  /* responsive width */
    margin: 16px auto 16px 0px;
    padding: 12px 16px;
	 border: 1px solid #001630; /*  dark blue border */
    border-radius: 8px;
	position: relative;  /* needed for pseudo-element */
    /* Gradient background: light blue â†’ dark navy */
    background: linear-gradient(135deg, #89CFFF 0%, #001630 100%);
    color: #ffffff;
    transition: all 0.25s ease;   

/* actual player border (inside shadow will touch this) */
    z-index: 1; /* make sure pseudo-element is behind content */
	
	   transform: scale(0.75, 0.75);   /*  transform: scale(0.66, 0.5);width 66%, height 50% */
    transform-origin: top left;    /* keeps alignment clean */
	
	/*If it creates extra whitespace below, reduce margin:

.sas-player {
    margin-bottom: -40px; /* adjust visually if needed */
}


/* Shadow between player and outer border */
.sas-player::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 11px;
    pointer-events: none;
    z-index: 0; /* behind content and outer border */

    /* radial gradient: dark near player, fades outward toward outer border */
    background: radial-gradient(
        circle,
        rgba(0, 22, 48, 0.4) 85%,   /* dark near player edge */
        rgba(0, 22, 48, 0) 100%      /* fully transparent at outer border */
    );
}




/* Outer border */
.sas-player::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid #001630; /* your dark blue */
    border-radius: 11px;        /* player border-radius + 3px spacing */
    pointer-events: none;       /* so it doesnâ€™t block clicks */
	  z-index: 2; /* sits above shadow but below content */
}

/* Soft Apple-like Hover */
.sas-player:focus,.sas-player:active, .sas-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 22, 48, 0.18);
    filter: brightness(1.03);
}

/* ---- Play Button ---- */
.sas-play {
    width: 35px;      /* 28px * 1.25 = 35px */
    height: 35px;     /* 28px * 1.25 = 35px */
    border-radius: 50%;
    background: #0A2A52;
    border: 1px solid #163E6D;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-top:16px;
}

.sas-play:hover {
    background: #163E6D;
    transform: scale(1.05);
}

/* Play triangle */
.sas-play::before {
    content: "";
    position: absolute;
    left: 12px;   /* adjusted for larger button */
    top: 9px;     /* adjusted for larger button */
    border-style: solid;
    border-width: 8px 0 8px 13px; /* scaled 25% */
    border-color: transparent transparent transparent #ffffff;
    transition: 0.2s ease;
}

/* Pause state */
.sas-player.playing .sas-play::before {
    border: none;
    width: 12px;     /* scaled 25% */
    height: 15px;    /* scaled 25% */
    left: 11px;      /* adjusted */
    top: 10px;       /* adjusted */
    background:
        linear-gradient(#001630, #001630) left,
        linear-gradient(#001630, #001630) right;
    background-size: 4px 100%;
    background-repeat: no-repeat;
}

/* ---- Progress (Lane) ---- */
.sas-progress {
    position: relative;
    flex: 1;
    height: 6px;
    background: #D4FFFF;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: 0.2s ease;
}

/* Subtle glow on hover */
.sas-progress:hover {
    box-shadow: 0 0 10px rgba(212, 255, 255, 0.9);
}

/* Fill */
.sas-fill {
    position: absolute;
    height: 100%;
    width: 0%;
    background: #001630;
    border-radius: 8px;
    transition: width 0.1s linear;
}

/* Handle */
.sas-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(0, -50%);
    background: #001630;
    transition: 0.15s ease;
}

/* Grow handle softly */
.sas-progress:hover .sas-handle {
    width: 15px;
    height: 15px;
}

/* ---- Time ---- */
.sas-time {
    min-width: 42px;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    opacity: 0.85;
    color: #ffffff;
}

/* Hide native audio (JS version) */
.sas-player audio {
    display: none;
}

/* Base styling (yours kept) */
.audio-item h3 {
    margin: 0 !important;
    line-height: 1em !important;
    padding: 0 !important;
    position: relative;
}

/* Base icon styling */
.audio-item h3::before {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.9em;
}

/* 1st of every 3 */
.audio-item:nth-child(8n+1) h3::before {
    content: "♫";
}

/* 2nd of every 3 */
.audio-item:nth-child(8n+2) h3::before {
    content: "🎸";
}
/*3rd */
/* 8rd of every 8 */
.audio-item:nth-child(8n+3) h3::before {
    content: "🎶";
}
/*4th*/
/* 1st of every 3 */
.audio-item:nth-child(8n+4) h3::before {
    content: "🎼";
}

/*5th*/
/* 8rd of every 8 */
.audio-item:nth-child(8n+5) h3::before {
    content: "🤘";
}
/*6th*/
/* 8rd of every 8 */
.audio-item:nth-child(8n+6) h3::before {
    content: "🎤";
}
/*7th*/
/*  3rd of every 3 */
.audio-item:nth-child(8n+7) h3::before {
    content: "♪";
}
/*8th*/
/* 8rd of every 8 */
.audio-item:nth-child(8n+8) h3::before {
    content: "🎹";
}

 




    