@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
}

/* ══════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════ */

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(29, 185, 84, 0.4); }
    50%       { box-shadow: 0 0 18px rgba(29, 185, 84, 0.85); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes progressPulse {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 0 8px rgba(29, 185, 84, 0.6); }
}

@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.7); }
    60%  { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */

nav {
    font-family: 'Ubuntu', sans-serif;
    animation: fadeSlideDown 0.5s ease both;
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    height: 65px;
    background-color: black;
    color: white;
}

nav ul li {
    padding: 0 12px;
    cursor: pointer;
    position: relative;
    transition: color 0.25s ease;
}

nav ul li:not(.brand)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: #1db954;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
}

/* ══════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════ */

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.6); }
    55%  { transform: scale(1.12); }
    80%  { transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

/* active song row pulses its green glow */
@keyframes rowGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(29,185,84,0.25), inset 0 0 0 1.5px rgba(29,185,84,0.3); }
    50%       { box-shadow: 0 0 24px rgba(29,185,84,0.55), inset 0 0 0 1.5px rgba(29,185,84,0.7); }
}

/* vinyl-spin on active cover art */
@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* equaliser bar dance */
@keyframes eq1 { 0%,100%{height:6px}  25%{height:14px} 75%{height:4px}  }
@keyframes eq2 { 0%,100%{height:12px} 35%{height:5px}  65%{height:18px} }
@keyframes eq3 { 0%,100%{height:8px}  50%{height:16px}               }
@keyframes eq4 { 0%,100%{height:10px} 40%{height:4px}  80%{height:14px} }

/* progress bar thumb ping */
@keyframes thumbPing {
    0%   { box-shadow: 0 0 0 0 rgba(29,185,84,0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(29,185,84,0); }
    100% { box-shadow: 0 0 0 0 rgba(29,185,84,0); }
}

/* masterPlay ripple */
@keyframes ripple {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
    100% { box-shadow: 0 0 0 18px rgba(255,255,255,0); }
}

/* bottom bar scanning line */
@keyframes scanLine {
    0%   { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* title shimmer */
@keyframes shimmerText {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* heart beat on playing gif area */
@keyframes heartbeat {
    0%,100% { transform: scale(1); }
    14%      { transform: scale(1.15); }
    28%      { transform: scale(1); }
    42%      { transform: scale(1.1); }
    70%      { transform: scale(1); }
}

/* nav underline slide */
@keyframes underlineSlide {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* search bar expand */
@keyframes searchExpand {
    from { width: 0; opacity: 0; padding: 0; }
    to   { width: 180px; opacity: 1; padding: 6px 14px; }
}

/* bell shake */
@keyframes bellShake {
    0%,100% { transform: rotate(0); }
    15%     { transform: rotate(18deg); }
    30%     { transform: rotate(-16deg); }
    45%     { transform: rotate(12deg); }
    60%     { transform: rotate(-8deg); }
    75%     { transform: rotate(4deg); }
}

/* badge pop */
@keyframes badgePop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* badge ping */
@keyframes badgePing {
    0%   { box-shadow: 0 0 0 0 rgba(29,185,84,0.7); }
    70%  { box-shadow: 0 0 0 6px rgba(29,185,84,0); }
    100% { box-shadow: 0 0 0 0 rgba(29,185,84,0); }
}

/* nav item stagger in */
@keyframes navItemIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* avatar ring spin */
@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* active pill slide */
@keyframes pillSlide {
    from { opacity: 0; transform: scaleX(0.5); }
    to   { opacity: 1; transform: scaleX(1); }
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */

nav {
    font-family: 'Ubuntu', sans-serif;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeSlideDown 0.5s ease both;
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    height: 65px;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    color: white;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 4px;
}

/* stagger each nav item on load */
nav ul li {
    padding: 0 12px;
    cursor: pointer;
    position: relative;
    transition: color 0.25s ease;
    opacity: 0;
    animation: navItemIn 0.4s ease forwards;
}
nav ul li:nth-child(1) { animation-delay: 0.05s; }
nav ul li:nth-child(2) { animation-delay: 0.12s; }
nav ul li:nth-child(3) { animation-delay: 0.19s; }
nav ul li:nth-child(4) { animation-delay: 0.26s; }
nav ul li:nth-child(5) { animation-delay: 0.33s; }
nav ul li:nth-child(6) { animation-delay: 0.40s; }

/* green underline sweep on hover */
nav ul li:not(.brand):not(.nav-search-item):not(.nav-bell):not(.nav-avatar)::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 12px; right: 12px;
    height: 2px;
    background: #1db954;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    border-radius: 2px;
}
nav ul li:not(.brand):not(.nav-search-item):not(.nav-bell):not(.nav-avatar):hover::after {
    transform: scaleX(1);
}
nav ul li:not(.brand):not(.nav-search-item):not(.nav-bell):not(.nav-avatar):hover {
    color: #1db954;
}

/* active nav link gets a pill background */
nav ul li.active {
    background: rgba(29,185,84,0.12);
    border-radius: 20px;
    color: #1db954;
    animation: navItemIn 0.4s ease forwards, pillSlide 0.3s ease forwards;
}
nav ul li.active::after {
    transform: scaleX(1) !important;
}

/* ── Brand ── */
.brand img {
    width: 44px;
    padding: 0 8px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover img { transform: rotate(360deg) scale(1.15); }
.brand {
    display: flex;
    align-items: center;
    font-weight: bolder;
    font-size: 1.3rem;
    margin-right: 8px;
}

/* ── Spacer pushes right-side items to the end ── */
.nav-spacer { flex: 1; }

/* ── Search ── */
.nav-search-item {
    display: flex;
    align-items: center;
    padding: 0 8px !important;
}

.nav-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-search-wrap:focus-within {
    border-color: #1db954;
    background: rgba(29,185,84,0.08);
}

.nav-search-icon {
    padding: 0 10px;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.25s ease;
}
.nav-search-wrap:focus-within .nav-search-icon { color: #1db954; }

#navSearch {
    width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.85rem;
    padding: 0;
    transition: width 0.35s cubic-bezier(0.22,1,0.36,1),
                padding 0.35s ease,
                opacity 0.25s ease;
    opacity: 0;
}

/* expand on focus or when parent li is hovered */
.nav-search-item:hover #navSearch,
#navSearch:focus {
    width: 160px;
    padding: 8px 10px 8px 0;
    opacity: 1;
}

#navSearch::placeholder { color: rgba(255,255,255,0.3); }

/* ── Bell ── */
.nav-bell {
    padding: 0 10px !important;
    position: relative;
}

.nav-bell-icon {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    display: block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-bell:hover .nav-bell-icon {
    color: white;
    animation: bellShake 0.5s ease;
}

/* notification badge */
.nav-badge {
    position: absolute;
    top: 10px; right: 8px;
    width: 8px; height: 8px;
    background: #1db954;
    border-radius: 50%;
    border: 1.5px solid #111;
    animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.8s both,
               badgePing 2s ease-in-out 1.5s infinite;
}

/* ── Avatar ── */
.nav-avatar {
    padding: 0 8px 0 4px !important;
    position: relative;
}

.nav-avatar-wrap {
    width: 34px; height: 34px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

/* spinning dashed ring on hover */
.nav-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px dashed transparent;
    transition: border-color 0.3s ease;
}
.nav-avatar:hover .nav-avatar-wrap::before {
    border-color: #1db954;
    animation: ringRotate 2s linear infinite;
}

.nav-avatar-img {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #1db954, #1565c0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255,255,255,0.15);
    transition: border-color 0.25s ease;
    /* fallback initials via CSS */
    line-height: 34px;
    text-align: center;
}
.nav-avatar:hover .nav-avatar-img {
    border-color: #1db954;
}

/* ══════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════ */

.container {
    min-height: 72vh;
    color: white;
    font-family: 'Varela Round', sans-serif;
    display: flex;
    margin: 23px auto;
    width: 70%;
    border-radius: 12px;
    padding: 34px;
    background-image: url('my1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    animation: fadeIn 0.8s ease both;
}

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 12px;
    z-index: 0;
}

.container > * {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════
   PLAYLIST TITLE — shimmer on load
══════════════════════════════════════════ */

.songList h1 {
    animation: fadeSlideDown 0.6s ease 0.2s both;
    background: linear-gradient(
        90deg,
        #fff 0%, #fff 40%,
        #1db954 50%,
        #fff 60%, #fff 100%
    );
    background-size: 400px 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideDown 0.6s ease 0.2s both,
               shimmerText 3s linear 1s 1;
}

/* ══════════════════════════════════════════
   SONG ITEMS
══════════════════════════════════════════ */

.songItemContainer {
    margin-top: 74px;
}

.songItem {
    height: 50px;
    display: flex;
    background-color: rgba(255, 255, 255, 0.88);
    color: black;
    margin: 12px 0;
    justify-content: space-between;
    align-items: center;
    border-radius: 34px;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    opacity: 0;
    animation: slideInLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: transform 0.22s ease,
                background-color 0.22s ease,
                box-shadow 0.22s ease,
                color 0.22s ease;
}

/* stagger */
.songItem:nth-child(1)  { animation-delay: 0.05s; }
.songItem:nth-child(2)  { animation-delay: 0.12s; }
.songItem:nth-child(3)  { animation-delay: 0.19s; }
.songItem:nth-child(4)  { animation-delay: 0.26s; }
.songItem:nth-child(5)  { animation-delay: 0.33s; }
.songItem:nth-child(6)  { animation-delay: 0.40s; }
.songItem:nth-child(7)  { animation-delay: 0.47s; }
.songItem:nth-child(8)  { animation-delay: 0.54s; }
.songItem:nth-child(9)  { animation-delay: 0.61s; }
.songItem:nth-child(10) { animation-delay: 0.68s; }

/* ripple sweep on hover */
.songItem::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(29,185,84,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    border-radius: 34px;
}

.songItem:hover::before { transform: translateX(100%); }

.songItem:hover {
    transform: scale(1.025) translateX(6px);
    background-color: #1db954;
    box-shadow: 0 6px 24px rgba(29, 185, 84, 0.5);
    color: white;
}

/* active / currently playing row */
.songItem.playing {
    background-color: rgba(29, 185, 84, 0.18);
    color: white;
    animation: slideInLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               rowGlow 2s ease-in-out infinite;
}

/* cover art */
.songItem img {
    width: 43px;
    margin: 0 23px;
    border-radius: 34px;
    transition: transform 0.35s ease;
}

.songItem:hover img { transform: rotate(10deg) scale(1.12); }

/* vinyl spin when actively playing */
.songItem.playing img {
    animation: vinylSpin 4s linear infinite;
    border-radius: 50%;
}

/* ── Equaliser bars (shown when playing) ── */
.eq-bars {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 18px;
    margin-right: 6px;
}

.songItem.playing .eq-bars { display: flex; }
.songItem.playing .songlistplay .fa-play-circle { display: none; }

.eq-bars span {
    width: 3px;
    background: #1db954;
    border-radius: 2px;
}
.eq-bars span:nth-child(1) { animation: eq1 0.7s ease-in-out infinite; }
.eq-bars span:nth-child(2) { animation: eq2 0.9s ease-in-out infinite; }
.eq-bars span:nth-child(3) { animation: eq3 0.6s ease-in-out infinite; }
.eq-bars span:nth-child(4) { animation: eq4 0.8s ease-in-out infinite; }

/* ══════════════════════════════════════════
   TIMESTAMP & ROW PLAY ICON
══════════════════════════════════════════ */

.timestamp {
    margin: 0 23px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timestamp i {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.timestamp i:hover {
    transform: scale(1.35);
    color: #1db954;
}

.fa-pause-circle {
    color: #1db954 !important;
    animation: rowGlow 1.4s ease-in-out infinite;
    border-radius: 50%;
}

/* ══════════════════════════════════════════
   BOTTOM PLAYER BAR
══════════════════════════════════════════ */

.bottom {
    position: sticky;
    bottom: 0;
    height: 130px;
    background-color: #000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.06);
    animation: fadeSlideUp 0.6s ease 0.4s both;
    position: relative;
    overflow: hidden;
}

/* scanning green line at top of player bar */
.bottom::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%, rgba(29,185,84,0.1) 20%,
        #1db954 50%,
        rgba(29,185,84,0.1) 80%, transparent 100%
    );
    background-size: 200% 100%;
    animation: scanLine 2.5s linear infinite;
}

/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */

#myProgressBar {
    width: 80vw;
    cursor: pointer;
    accent-color: #1db954;
    height: 4px;
    transition: height 0.2s ease;
}

#myProgressBar:hover {
    height: 6px;
    animation: thumbPing 1s ease infinite;
}

/* ══════════════════════════════════════════
   CONTROL ICONS
══════════════════════════════════════════ */

.icons {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icons i {
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), color 0.2s ease;
}

.icons i:hover {
    transform: scale(1.25);
    color: #1db954;
}

/* prev/next get a slide nudge */
#previous:hover { transform: scale(1.2) translateX(-3px); color: #1db954; }
#next:hover     { transform: scale(1.2) translateX(3px);  color: #1db954; }

/* master play: bounce in + ripple on hover */
#masterPlay {
    animation: bounceIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.5s both;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), color 0.2s ease;
}

#masterPlay:hover {
    transform: scale(1.3);
    color: #1db954;
    animation: ripple 0.6s ease forwards;
}

/* ══════════════════════════════════════════
   SONG INFO (bottom left)
══════════════════════════════════════════ */

.songInfo {
    position: absolute;
    left: 10vw;
    font-family: 'Varela Round', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.5s ease 0.7s both;
}

.songInfo img {
    opacity: 0;
    transition: opacity 0.4s ease-in;
    animation: heartbeat 1.5s ease-in-out infinite;
}

#masterSongName {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

/* ══════════════════════════════════════════
   MEDIA QUERIES
══════════════════════════════════════════ */

@media only screen and (max-width: 1400px) {
    .container { width: 80%; }
}

@media only screen and (max-width: 1100px) {
    .container { width: 90%; padding: 24px; margin: 16px auto; }
}

@media only screen and (max-width: 768px) {
    .container {
        width: 95%; padding: 16px; margin: 12px auto;
        border-radius: 8px; flex-direction: column;
    }
    .songItemContainer { margin-top: 32px; }
    .songItem          { height: 45px; }
    .songItem img      { width: 36px; margin: 0 12px; }
    .songBanner        { display: none; }
    nav ul             { height: 55px; }
    .brand             { font-size: 1.1rem; }
}

@media only screen and (max-width: 480px) {
    .container  { width: 100%; border-radius: 0; margin: 8px 0; padding: 12px; }
    .songItem   { height: 42px; border-radius: 20px; }
    .songItem img { width: 30px; margin: 0 8px; }
    .timestamp  { margin: 0 10px; font-size: 0.85rem; }
    #myProgressBar { width: 92vw; }
    .bottom     { height: 110px; }
    .icons i    { font-size: 2rem !important; }
    .songInfo   { left: 4vw; font-size: 0.85rem; }
    nav ul li   { padding: 0 8px; font-size: 0.9rem; }
    .brand img  { width: 36px; }
}

nav ul li:not(.brand):hover::after {
    transform: scaleX(1);
}

nav ul li:not(.brand):hover {
    color: #1db954;
}

.brand img {
    width: 44px;
    padding: 0 8px;
    transition: transform 0.5s ease;
}

.brand:hover img {
    transform: rotate(360deg) scale(1.1);
}

.brand {
    display: flex;
    align-items: center;
    font-weight: bolder;
    font-size: 1.3rem;
}

/* ══════════════════════════════
   CONTAINER
══════════════════════════════ */

.container {
    min-height: 72vh;
    color: white;
    font-family: 'Varela Round', sans-serif;
    display: flex;
    margin: 23px auto;
    width: 70%;
    border-radius: 12px;
    padding: 34px;
    background-image: url('my1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    animation: fadeIn 0.7s ease both;
}

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 12px;
    z-index: 0;
}

.container > * {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════
   SONG LIST
══════════════════════════════ */

.songList h1 {
    animation: fadeSlideDown 0.6s ease 0.2s both;
}

.songItemContainer {
    margin-top: 74px;
}

.songItem {
    height: 50px;
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    margin: 12px 0;
    justify-content: space-between;
    align-items: center;
    border-radius: 34px;
    cursor: pointer;

    opacity: 0;
    animation: slideInLeft 0.5s ease forwards;
    transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.songItem:nth-child(1)  { animation-delay: 0.05s; }
.songItem:nth-child(2)  { animation-delay: 0.10s; }
.songItem:nth-child(3)  { animation-delay: 0.15s; }
.songItem:nth-child(4)  { animation-delay: 0.20s; }
.songItem:nth-child(5)  { animation-delay: 0.25s; }
.songItem:nth-child(6)  { animation-delay: 0.30s; }
.songItem:nth-child(7)  { animation-delay: 0.35s; }
.songItem:nth-child(8)  { animation-delay: 0.40s; }
.songItem:nth-child(9)  { animation-delay: 0.45s; }
.songItem:nth-child(10) { animation-delay: 0.50s; }

.songItem:hover {
    transform: scale(1.025) translateX(6px);
    background-color: #1db954;
    box-shadow: 0 4px 18px rgba(29, 185, 84, 0.45);
    color: white;
}

.songItem img {
    width: 43px;
    margin: 0 23px;
    border-radius: 34px;
    transition: transform 0.3s ease;
}

.songItem:hover img {
    transform: rotate(8deg) scale(1.12);
}

/* ══════════════════════════════
   PLAY ICONS (inside rows)
══════════════════════════════ */

.timestamp {
    margin: 0 23px;
}

.timestamp i {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.timestamp i:hover {
    transform: scale(1.35);
    color: #1db954;
}

.fa-pause-circle {
    animation: pulseGlow 1.4s ease-in-out infinite;
    color: #1db954;
    border-radius: 50%;
}

/* ══════════════════════════════
   BOTTOM PLAYER BAR
══════════════════════════════ */

.bottom {
    position: sticky;
    bottom: 0;
    height: 130px;
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeSlideUp 0.6s ease 0.3s both;
}

.icons {
    margin-top: 14px;
}

.icons i {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.icons i:hover {
    transform: scale(1.2);
    color: #1db954;
}

#masterPlay {
    animation: bounceIn 0.5s ease 0.5s both;
    transition: transform 0.2s ease, color 0.2s ease;
}

#masterPlay:hover {
    transform: scale(1.25);
    color: #1db954;
}

/* ══════════════════════════════
   PROGRESS BAR
══════════════════════════════ */

#myProgressBar {
    width: 80vw;
    cursor: pointer;
    accent-color: #1db954;
}

#myProgressBar:hover {
    animation: progressPulse 1s ease-in-out infinite;
}

/* ══════════════════════════════
   SONG INFO (bottom left)
══════════════════════════════ */

.songInfo {
    position: absolute;
    left: 10vw;
    font-family: 'Varela Round', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.5s ease 0.6s both;
}

.songInfo img {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

#masterSongName {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

/* ══════════════════════════════
   MEDIA QUERIES
══════════════════════════════ */

@media only screen and (max-width: 1400px) {
    .container { width: 80%; }
}

@media only screen and (max-width: 1100px) {
    .container {
        width: 90%;
        padding: 24px;
        margin: 16px auto;
    }
}

@media only screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 16px;
        margin: 12px auto;
        border-radius: 8px;
        flex-direction: column;
    }

    .songItemContainer { margin-top: 32px; }
    .songItem          { height: 45px; }

    .songItem img {
        width: 36px;
        margin: 0 12px;
    }

    .songBanner { display: none; }
    nav ul      { height: 55px; }
    .brand      { font-size: 1.1rem; }
}

@media only screen and (max-width: 480px) {
    .container {
        width: 100%;
        border-radius: 0;
        margin: 8px 0;
        padding: 12px;
    }

    .songItem {
        height: 42px;
        border-radius: 20px;
    }

    .songItem img {
        width: 30px;
        margin: 0 8px;
    }

    .timestamp {
        margin: 0 10px;
        font-size: 0.85rem;
    }

    #myProgressBar { width: 92vw; }

    .bottom { height: 110px; }

    .icons i { font-size: 2rem !important; }

    .songInfo {
        left: 4vw;
        font-size: 0.85rem;
    }

    nav ul li {
        padding: 0 8px;
        font-size: 0.9rem;
    }

    .brand img { width: 36px; }
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */

/* ══════════════════════════════
   FOOTER — ANIMATIONS
══════════════════════════════ */

@keyframes footerSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoGlitch {
  0%   { text-shadow: none; transform: translate(0); }
  20%  { text-shadow: -2px 0 #ff005c, 2px 0 #00e5cc; transform: translate(-1px, 0); }
  40%  { text-shadow: 2px 0 #ff005c, -2px 0 #00e5cc; transform: translate(1px, 0); }
  60%  { text-shadow: -1px 0 #00e5cc; transform: translate(0); }
  80%  { text-shadow: 1px 0 #ff005c; transform: translate(1px, 0); }
  100% { text-shadow: none; transform: translate(0); }
}

@keyframes textReveal {
  from { opacity: 0; letter-spacing: 0.3em; filter: blur(4px); }
  to   { opacity: 1; letter-spacing: 0.04em; filter: blur(0); }
}

@keyframes locationDrift {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 0.35; transform: translateX(0); }
}

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

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.65; }
}

/* ══════════════════════════════
   FOOTER BASE
══════════════════════════════ */

footer {
  background-color: #0d1117;
  padding: 22px 40px;
  position: relative;
  overflow: hidden;
  animation: footerSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* animated scanning top border */
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 20%,
    #00e5cc 50%,
    rgba(255,255,255,0.04) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: borderScan 3.5s linear infinite;
}

/* subtle grid texture */
footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,204,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,204,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════
   LOGO
══════════════════════════════ */

.footer-logo {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #00e5cc;
  letter-spacing: 0.5px;
  cursor: default;
  user-select: none;
  position: relative;

  /* entry: slide from left */
  animation: footerSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  transition: color 0.3s ease;
}

/* blinking cursor after SJ. */
.footer-logo::after {
  content: '|';
  margin-left: 2px;
  color: #00e5cc;
  animation: cursorBlink 1s step-end infinite;
  font-weight: 300;
}

/* glitch on hover */
.footer-logo:hover {
  animation: logoGlitch 0.4s steps(1) forwards;
}

/* ══════════════════════════════
   COPYRIGHT
══════════════════════════════ */

.footer-copy {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  text-align: center;

  /* entry: blur-reveal */
  animation: textReveal 0.9s ease 0.3s both;
}

/* heart pulses */
.footer-copy .heart {
  display: inline-block;
  color: #ff4d6d;
  animation: pulse 1.8s ease-in-out infinite;
}

/* ══════════════════════════════
   LOCATION
══════════════════════════════ */

.footer-location {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  text-align: right;

  /* entry: drift from right */
  animation: locationDrift 0.7s ease 0.5s both;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.footer-location:hover {
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 600px) {
  footer {
    padding: 18px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-location {
    text-align: center;
  }
}
/* ══════════════════════════════
   MUSIC VISUALIZER
══════════════════════════════ */

.musicVisual{
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Neon rotating disc */
.ring{
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(29,185,84,0.6);

    box-shadow:
        0 0 20px rgba(29,185,84,0.7),
        inset 0 0 20px rgba(29,185,84,0.5);

    animation:
        rotateRing 10s linear infinite,
        pulseRing 2s ease-in-out infinite;
}

/* Sound waves */

.wave{
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0,229,204,0.4);
    animation: wavePulse 3s linear infinite;
}

.wave1{
    width: 140px;
    height: 140px;
}

.wave2{
    width: 190px;
    height: 190px;
    animation-delay: 1s;
}

.wave3{
    width: 240px;
    height: 240px;
    animation-delay: 2s;
}

/* Floating notes */

.note{
    position: absolute;
    font-size: 2rem;
    animation: floatNotes 5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.note1{
    left: 10px;
    top: 20px;
}

.note2{
    right: 20px;
    top: 50px;
    animation-delay: 1s;
}

.note3{
    bottom: 10px;
    left: 50%;
    animation-delay: 2s;
}

/* ANIMATIONS */

@keyframes rotateRing{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}

@keyframes pulseRing{
    0%,100%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.08);
    }
}

@keyframes wavePulse{
    0%{
        transform: scale(0.7);
        opacity: 1;
    }

    100%{
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes floatNotes{
    0%,100%{
        transform: translateY(0px) rotate(0deg);
    }

    25%{
        transform: translateY(-18px) rotate(-8deg);
    }

    50%{
        transform: translateY(10px) rotate(8deg);
    }

    75%{
        transform: translateY(-12px) rotate(-4deg);
    }
}

/* Hover glow effect */

.container:hover .ring{
    box-shadow:
        0 0 40px rgba(29,185,84,1),
        inset 0 0 30px rgba(29,185,84,0.8);
}

/* Responsive */

@media(max-width:900px){

    .musicVisual{
        display:none;
    }

}
/* ══════════════════════════════
   EXTRA PREMIUM ANIMATIONS
══════════════════════════════ */

/* Animated background glow */
body::before{
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(29,185,84,0.18), transparent 70%);
    top: -150px;
    left: -150px;
    z-index: -2;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

body::after{
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,229,204,0.12), transparent 70%);
    bottom: -120px;
    right: -120px;
    z-index: -2;
    animation: floatGlow2 10s ease-in-out infinite alternate;
}

@keyframes floatGlow{
    from{
        transform: translate(0,0) scale(1);
    }
    to{
        transform: translate(80px,50px) scale(1.2);
    }
}

@keyframes floatGlow2{
    from{
        transform: translate(0,0) scale(1);
    }
    to{
        transform: translate(-70px,-40px) scale(1.15);
    }
}

/* Glassmorphism */
.container{
    backdrop-filter: blur(14px);
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}

/* Floating song cards */
.songItem{
    transform-style: preserve-3d;
}

.songItem:hover{
    transform: perspective(1000px)
               rotateY(6deg)
               scale(1.04)
               translateX(8px);
}

/* Animated title glow */
.songList h1{
    position: relative;
    display: inline-block;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow{
    from{
        text-shadow: 0 0 8px rgba(29,185,84,0.4);
    }
    to{
        text-shadow:
            0 0 12px rgba(29,185,84,0.8),
            0 0 22px rgba(29,185,84,0.5);
    }
}

/* Music equalizer effect */
.icons::after{
    content: '';
    width: 70px;
    height: 30px;
    display: block;
    margin: 10px auto 0;
    background:
        linear-gradient(#1db954 0 0) 0 100%/6px 20%,
        linear-gradient(#1db954 0 0) 14px 100%/6px 60%,
        linear-gradient(#1db954 0 0) 28px 100%/6px 35%,
        linear-gradient(#1db954 0 0) 42px 100%/6px 80%,
        linear-gradient(#1db954 0 0) 56px 100%/6px 50%;
    background-repeat: no-repeat;
    animation: equalizer 1s infinite linear;
}

@keyframes equalizer{
    0%{
        background-size:
            6px 20%,
            6px 60%,
            6px 35%,
            6px 80%,
            6px 50%;
    }

    25%{
        background-size:
            6px 70%,
            6px 30%,
            6px 90%,
            6px 40%,
            6px 60%;
    }

    50%{
        background-size:
            6px 30%,
            6px 80%,
            6px 45%,
            6px 60%,
            6px 90%;
    }

    100%{
        background-size:
            6px 20%,
            6px 60%,
            6px 35%,
            6px 80%,
            6px 50%;
    }
}

/* Neon player effect */
.bottom{
    box-shadow: 0 -4px 25px rgba(29,185,84,0.15);
}

/* Rotating album effect */
.songItem img{
    animation: rotateDisc 8s linear infinite;
    animation-play-state: paused;
}

.songItem:hover img{
    animation-play-state: running;
}

@keyframes rotateDisc{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}

/* Floating animation for song info */
.songInfo{
    animation:
        fadeIn 0.5s ease 0.6s both,
        floating 3s ease-in-out infinite;
}

@keyframes floating{
    0%,100%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-4px);
    }
}

/* Smooth progress bar */
#myProgressBar{
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
}

/* Animated footer glow */
footer{
    box-shadow: 0 -2px 30px rgba(0,229,204,0.08);
}
/* ══════════════════════════════
   COOL SONG CARD EFFECTS
══════════════════════════════ */

.songItem{
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

/* SONG NUMBER BADGE */

.songItem::before{
    content: attr(data-song);
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;
    border-radius: 50%;

    background: linear-gradient(135deg,#1db954,#00e5cc);

    color: white;
    font-size: 0.9rem;
    font-weight: bold;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 0 18px rgba(29,185,84,0.5);

    transition: all 0.35s ease;
}

/* SHINE EFFECT */

.songItem::after{
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.45),
        transparent
    );

    transform: skewX(-25deg);
}

/* HOVER EFFECT */

.songItem:hover{
    transform:
        perspective(1000px)
        rotateY(7deg)
        scale(1.04)
        translateX(12px);

    background: rgba(29,185,84,0.15);

    box-shadow:
        0 10px 35px rgba(29,185,84,0.35),
        0 0 20px rgba(0,229,204,0.2);

    border-color: rgba(29,185,84,0.4);
}

/* MOVE NUMBER BADGE */

.songItem:hover::before{
    left: 10px;
    transform: translateY(-50%) scale(1.1) rotate(10deg);
}

/* RUNNING SHINE */

.songItem:hover::after{
    animation: shineMove 1s ease;
}

/* SONG NAME EFFECT */

.songName{
    transition:
        letter-spacing 0.3s ease,
        transform 0.3s ease,
        color 0.3s ease;
}

.songItem:hover .songName{
    color: white;
    letter-spacing: 1px;
    transform: translateX(8px);
}

/* PLAY BUTTON EFFECT */

.songItemPlay{
    transition:
        transform 0.3s ease,
        color 0.3s ease,
        text-shadow 0.3s ease;
}

.songItem:hover .songItemPlay{
    transform: scale(1.4) rotate(8deg);
    color: #fff;

    text-shadow:
        0 0 12px rgba(255,255,255,0.8),
        0 0 22px rgba(29,185,84,0.8);
}

/* PLAYING SONG ANIMATION */

.songItem.activeSong{
    background: linear-gradient(
        90deg,
        rgba(29,185,84,0.25),
        rgba(0,229,204,0.15)
    );

    animation: activePulse 2s ease infinite;

    border: 1px solid rgba(29,185,84,0.4);
}

/* KEYFRAMES */

@keyframes shineMove{
    0%{
        left: -120%;
    }

    100%{
        left: 150%;
    }
}

@keyframes activePulse{

    0%,100%{
        box-shadow: 0 0 12px rgba(29,185,84,0.3);
    }

    50%{
        box-shadow:
            0 0 30px rgba(29,185,84,0.7),
            0 0 60px rgba(0,229,204,0.35);
    }
}
/* ══════════════════════════════
   FOCUS MODE EFFECT
══════════════════════════════ */

.songItem{
    transition:
        opacity 0.5s ease,
        transform 0.45s ease,
        filter 0.45s ease,
        box-shadow 0.45s ease;
}

/* other songs fade away */

.songItem.blurSong{
    opacity: 0.12;
    transform: scale(0.92);
    filter: blur(4px);
    pointer-events: none;
}

/* selected song highlight */

.songItem.activeFocus{
    opacity: 1 !important;

    transform:
        scale(1.08)
        translateX(15px);

    z-index: 20;

    background:
        linear-gradient(
            135deg,
            rgba(29,185,84,0.35),
            rgba(0,229,204,0.18)
        );

    box-shadow:
        0 0 30px rgba(29,185,84,0.45),
        0 0 60px rgba(0,229,204,0.25);

    filter: none;
}

/* glowing border */

.songItem.activeFocus::before{
    animation:
        activePulse 1.5s infinite;
}

/* smooth comeback */

.songItemContainer:hover .songItem{
    transition-delay: 0s;
}
