/* Shared interface for every individual song lyrics page. */
:root {
    --lyrics-surface: rgba(17, 17, 24, 0.78);
    --lyrics-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.content {
    max-width: 960px;
    padding-bottom: 5rem;
}

.back-link,
.scroll-top,
.btn {
    min-height: 44px;
}

.back-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-0.25rem);
}

.track-cover-img {
    background: var(--bg-card);
}

.track-links .btn {
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.track-links .btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(0, 212, 170, 0.16);
}

.lyrics-section {
    max-width: 720px;
    padding: clamp(1.4rem, 4vw, 2.25rem);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--lyrics-surface);
    box-shadow: var(--lyrics-shadow);
}

.lyrics-section h2 {
    margin-bottom: 1.25rem;
}

.lyrics-text {
    font-size: clamp(1rem, 1.8vw, 1.08rem);
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.scroll-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 110;
    width: 52px;
    height: 52px;
    min-height: 52px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(17, 17, 24, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
    color: var(--accent);
    font-size: 0;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.scroll-top::before {
    content: "↑";
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 14px 34px rgba(0, 212, 170, 0.26);
}

.back-link:focus-visible,
.btn:focus-visible,
.scroll-top:focus-visible,
.logo-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .content {
        padding-top: 6.5rem;
    }

    .track-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .track-links .btn {
        width: 100%;
    }

    .lyrics-section {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .scroll-top {
        width: 48px;
        height: 48px;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* A labelled control is clearer and more robust than a glyph-only circle. */
.scroll-top {
    width: auto;
    height: 48px;
    min-height: 48px;
    padding: 0 1rem;
    border-radius: 999px;
}

.scroll-top::before {
    content: "\2191";
    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1;
}

.scroll-top::after {
    content: "Takaisin ylös";
    margin-left: 0.5rem;
    font-size: 0.9rem;
}
