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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    color: #f4e9ff;
    background:
        radial-gradient(60% 50% at 12% 8%, rgba(255, 141, 196, 0.35), transparent 60%),
        radial-gradient(55% 45% at 88% 18%, rgba(255, 189, 102, 0.28), transparent 60%),
        radial-gradient(70% 60% at 50% 100%, rgba(90, 70, 220, 0.35), transparent 65%),
        linear-gradient(160deg, #1c0f33 0%, #2a123f 32%, #4a1441 58%, #2a0f2c 78%, #150a1f 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.music-back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #f4e9ff;
    text-decoration: none;
    background: rgba(20, 8, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 7px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.music-back:hover {
    background: rgba(255, 141, 196, 0.18);
    border-color: rgba(255, 189, 102, 0.5);
    transform: translateX(-2px);
}

.music-shell {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 100px 24px 120px;
}

.music-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 56px;
}

.vinyl {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at center, rgba(0,0,0,0.55) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 38% 34%, rgba(255, 210, 150, 0.5), transparent 40%),
        radial-gradient(circle at center, #7a2740 0%, #3c1224 55%, #1c0a15 100%);
    box-shadow: 0 12px 40px rgba(140, 30, 90, 0.45), inset 0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
    animation: spin 9s linear infinite;
}

.vinyl::after {
    content: '';
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffd9a0, #e8a94f 55%, #b97a2e 100%);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.35);
}

.vinyl::before {
    content: '';
    position: absolute;
    inset: 46%;
    border-radius: 50%;
    background: #1c0a15;
    z-index: 2;
}

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

.music-titles h1 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(100deg, #ffd9a0 0%, #ff9ec4 45%, #b28bff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(255, 158, 196, 0.25);
}

.music-titles p {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(244, 233, 255, 0.62);
    letter-spacing: 0.02em;
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.track-card {
    position: relative;
    border-radius: 18px;
    padding: 22px 24px;
    background: rgba(30, 14, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(20, 6, 35, 0.35);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.track-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-a, #ff9ec4), transparent 40%, var(--accent-b, #ffd9a0) 100%);
    opacity: 0.55;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.track-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 50px rgba(20, 6, 35, 0.5);
}

.track-card:nth-child(3n+1) { --accent-a: #ff9ec4; --accent-b: #ffd9a0; }
.track-card:nth-child(3n+2) { --accent-a: #b28bff; --accent-b: #7ee0d8; }
.track-card:nth-child(3n+3) { --accent-a: #ffd9a0; --accent-b: #ff8fd0; }

.track-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.track-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(244, 233, 255, 0.5);
    margin-bottom: 6px;
}

.track-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(95deg, var(--accent-a, #ff9ec4), var(--accent-b, #ffd9a0));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.25;
}

.track-embed {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.track-embed iframe {
    display: block;
    width: 100%;
    height: 160px;
    border: none;
}

.track-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.track-actions a,
.lyrics-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #f4e9ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.track-actions a:hover {
    background: rgba(255, 158, 196, 0.16);
    border-color: rgba(255, 158, 196, 0.5);
    transform: translateY(-1px);
}

.lyrics-toggle:hover {
    background: rgba(178, 139, 255, 0.18);
    border-color: rgba(178, 139, 255, 0.55);
}

.lyrics-toggle .chevron {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 10px;
}

.track-card.open .lyrics-toggle .chevron {
    transform: rotate(180deg);
}

.lyrics-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.lyrics-panel-inner {
    overflow: hidden;
}

.track-card.open .lyrics-panel {
    grid-template-rows: 1fr;
}

.lyrics-body {
    margin-top: 16px;
    padding: 16px 18px;
    border-left: 2px solid var(--accent-a, #ff9ec4);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 4px 10px 10px 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(244, 233, 255, 0.88);
    white-space: pre-wrap;
}

@media (max-width: 600px) {
    .music-shell { padding: 88px 18px 90px; }
    .music-hero { gap: 18px; margin-bottom: 40px; }
    .vinyl { width: 72px; height: 72px; }
    .music-titles h1 { font-size: 34px; }
    .track-title { font-size: 20px; }
}
