:root {
    --bg: #121212;
    --panel: #1a1a1a;
    --muted: #bdbdbd;
    --accent-1: #ff2d95;
    --accent-2: #17e0b6;
    --accent-3: #4ea1ff;
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 16px;
    --card-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Poppins, Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, var(--bg), #0f0f0f 60%);
    color: #eee;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(6px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px
}

.logo {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--accent-3), var(--accent-1));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    animation: neon 2.6s ease-in-out infinite;
    transform-origin: center;
}

.logo span {
    filter: drop-shadow(0 8px rgba(0, 0, 0, 0.35));
}

@keyframes neon {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(78, 161, 255, 0.12));
    }

    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 18px rgba(255, 45, 149, 0.18));
    }
}

nav.menu {
    display: flex;
    gap: 14px;
    align-items: center
}

nav.menu a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500
}

nav.menu a:hover {
    color: #fff
}

.searchWrap {
    display: flex;
    align-items: center;
    gap: 10px
}

.search {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px
}

.search input {
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font-size: 14px;
    width: 220px
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px
}

.card {
    width: min(960px, 95%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
    transition: opacity .45s ease, transform .45s ease;
    opacity: 1;
}

.card.fade-out {
    opacity: 0;
    transform: translateY(6px) scale(.995)
}

.cover {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.meta h2 {
    margin: 0;
    font-size: 22px
}

.meta .by {
    color: var(--muted);
    font-weight: 500
}

.meta .extra {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 13px
}

.lyrics {
    margin-top: 8px;
    padding: 14px;
    background: var(--glass);
    border-radius: 12px;
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    scroll-behavior: smooth;
}

.lyrics::-webkit-scrollbar {
    width: 10px
}

.lyrics::-webkit-scrollbar-track {
    background: transparent
}

.lyrics::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-3), var(--accent-2));
    border-radius: 12px
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px
}

.navBtns {
    display: flex;
    gap: 12px;
    align-items: center
}

.btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transition: transform .12s ease, box-shadow .12s ease;
}

.btn:active {
    transform: translateY(1px)
}

.btn:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
    background: linear-gradient(90deg, var(--accent-3), var(--accent-1))
}

.pos {
    color: var(--muted);
    font-weight: 600
}

.empty {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 18px
}

footer {
    padding: 18px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted)
}

.socials a {
    margin-left: 12px;
    color: var(--muted);
    text-decoration: none
}

@media (max-width:820px) {
    .card {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center
    }

    .lyrics {
        max-height: 260px
    }

    .search input {
        width: 140px
    }
}