* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top, rgba(0, 60, 120, 0.15), transparent 30%),
        radial-gradient(circle at bottom, rgba(255, 255, 255, 0.02), transparent 35%),
        linear-gradient(180deg, #020508 0%, #05080c 50%, #010203 100%);
    color: #f2f2f2;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.015),
        rgba(255,255,255,0.015) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.35;
}

button, input, select, textarea {
    font-family: inherit;
}

.wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.card {
    position: relative;
    padding: 2.5rem 2.25rem 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(10,15,20,0.96) 0%, rgba(5,8,12,0.98) 100%);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.back-link:hover {
    color: rgba(0, 180, 255, 0.95);
}

.hero {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cover {
        max-width: 420px;
        margin: 0 auto;
    }

    .meta {
        max-width: none;
        text-align: center;
    }

    .kicker {
        margin-left: auto;
        margin-right: auto;
    }
}

.cover {
    position: relative;
    display: block;
}

.cover img {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: transform 4s ease;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.08);
    filter: contrast(1.06) saturate(0.9) sepia(0.1) hue-rotate(180deg);
}

.cover img:hover {
    transform: scale(1.025);
}

#lyrics-overlay.cover-lyrics {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 420px;
}

.kicker {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 180, 255, 0.18), rgba(255,255,255,0.04));
    color: rgba(255,255,255,0.78);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

h1 {
    margin: 0 0 12px;
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e0f2fe;
    text-shadow: 0 0 18px rgba(0, 180, 255, 0.2);
}

.description {
    margin-bottom: 20px;
    color: #c0d8e8;
    line-height: 1.65;
    font-size: 1.05rem;
}

.about {
    margin: 18px 0 10px;
    color: #94b2c4;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

#now-playing {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(0, 180, 255, 0.78);
    text-transform: uppercase;
}

audio {
    margin-top: 25px;
    width: 100%;
    border-radius: 20px;
}

#visualizer-track {
    margin-top: 14px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

#visualizer {
    --level: 0.42;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-origin: left center;
    transform: scaleX(var(--level));
    will-change: transform;
    background: linear-gradient(
        90deg,
        rgba(0, 180, 255, 0.95),
        rgba(255,255,255,0.25)
    );
    box-shadow: 0 0 12px rgba(0, 180, 255, 0.25);
    opacity: 0;
    transition: opacity 0.35s ease;
}

#visualizer.is-active {
    opacity: 1;
}

.playlist-section {
    margin-top: 4.5rem;
}

h2 {
    position: relative;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e0f2fe;
}

h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: rgba(0, 180, 255, 0.8);
    margin-top: 8px;
}

#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

#playlist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.25s ease, transform 0.25s ease;
    position: relative;
    cursor: pointer;
}

.track-title {
    font-size: 1.08rem;
    flex: 1 1 12rem;
}

.track-tag {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}

#playlist li:hover {
    color: #ffffff;
    transform: translateX(4px);
}

#playlist li:hover .track-tag {
    color: rgba(0, 180, 255, 0.85);
}

.current .track-title {
    color: rgba(0, 180, 255, 0.95);
    text-shadow: 0 0 10px rgba(0, 180, 255, 0.22);
}

.current .track-tag {
    color: rgba(255,255,255,0.8);
}

#playlist li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: rgba(0, 180, 255, 0.85);
    transition: width 0.25s ease;
}

#playlist li:hover::after {
    width: 100%;
}

.lyric-float {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 0.75rem 1rem;
    font-family: "Inter", sans-serif;
    font-size: clamp(0.72rem, 1.65vw, 0.94rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    color: rgba(255,255,255,0.96);
    text-shadow:
        0 1px 3px rgba(0,0,0,0.95),
        0 0 18px rgba(0, 180, 255, 0.18);
    background: linear-gradient(
        to top,
        rgba(0,10,20,0.92) 0%,
        rgba(0,10,20,0.55) 55%,
        transparent 100%
    );
    animation: lyricIn 0.28s ease forwards;
}

@keyframes lyricIn {
    from {
        opacity: 0;
        filter: blur(4px);
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}


/* --- Custom Player --- */
.custom-player {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.player-controls { display: flex; justify-content: center; align-items: center; gap: 20px; }
.ctrl-btn {
  background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
  opacity: 0.6; transition: all 0.3s ease; padding: 0; display: flex; align-items: center;
}
.ctrl-btn:hover { opacity: 1; color: #00b4ff; transform: scale(1.1); }
.play-btn { font-size: 2.2rem; opacity: 0.9; color: #00b4ff; }
.player-progress, .player-volume { display: flex; align-items: center; gap: 12px; font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #888; }
.player-volume { justify-content: center; margin-top: 5px; opacity: 0.7; }
#seek-bar, #volume-bar {
  flex-grow: 1; -webkit-appearance: none; background: rgba(255,255,255,0.1); height: 4px; border-radius: 2px; outline: none; cursor: pointer;
}
#volume-bar { max-width: 100px; }
#seek-bar::-webkit-slider-thumb, #volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #00b4ff; box-shadow: 0 0 8px #00b4ff;
}
#visualizer-track { height: 100px; position: relative; overflow: hidden; border-radius: 8px; margin-top: 15px; background: rgba(0,0,0,0.2); }
#visualizer-canvas { width: 100%; height: 100%; display: block; }
/* --- Responsive Optimization --- */
@media (max-width: 600px) {
  .wrapper { padding: 40px 10px !important; }
  .card { padding: 1.5rem 1rem !important; border-radius: 12px !important; }
  .hero { gap: 2rem !important; }
  .custom-player { padding: 12px !important; gap: 8px !important; }
  .player-controls { gap: 15px !important; }
  .play-btn { font-size: 1.8rem !important; }
  .ctrl-btn { font-size: 1.2rem !important; }
  .player-volume { display: none !important; } /* Hide volume on mobile to save space */
  .player-progress { gap: 8px !important; font-size: 0.65rem !important; }
  h1 { font-size: 1.8rem !important; }
  .playlist-section { margin-top: 2.5rem !important; }
  #playlist li { padding: 10px 0 !important; }
}
