/* Śpiewnik Wyjazdowo.eu — wspólna stylistyka strony głównej */
.songbook-page {
    position: relative;
    min-height: 100vh;
    background: #060b12;
}
.songbook-page > header,
.songbook-page > main,
.songbook-page > footer { position: relative; z-index: 1; }
.songbook-page .site-header { z-index: 80; }
.site-page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #06101d url('../img/wyjazdowo-pociag-poster-chorzow-batory.jpg') center/cover no-repeat;
}
.site-page-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    transform: scale(1.045);
    filter: saturate(.88) contrast(1.08) brightness(.55);
}
.site-page-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3,8,15,.62), rgba(6,11,18,.86) 32%, rgba(6,11,18,.94)),
        radial-gradient(circle at 16% 8%, rgba(45,116,199,.30), transparent 34rem);
}
.site-page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image:
        linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 54px 54px;
}
.songbook-hero {
    padding: 56px 0 30px;
}
.songbook-hero__inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}
.songbook-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: .96;
    letter-spacing: -.055em;
}
.songbook-hero p {
    max-width: 740px;
    margin: 0;
    color: #b9c5d4;
    font-size: 17px;
}
.songbook-stat {
    flex: 0 0 auto;
    min-width: 132px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10,17,29,.68);
    box-shadow: var(--shadow);
    text-align: center;
    backdrop-filter: blur(16px);
}
.songbook-stat strong {
    display: block;
    color: var(--accent-2);
    font-size: 35px;
    line-height: 1;
}
.songbook-stat span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.songbook-app {
    display: grid;
    grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 38px;
}
.songbook-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13,22,34,.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.songbook-card-head {
    padding: 20px 21px 15px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.018);
}
.songbook-card-head h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.songbook-search {
    padding: 14px;
    border-bottom: 1px solid var(--line);
}
.songbook-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(255,255,255,.045);
    color: #fff;
    outline: none;
}
.songbook-search input::placeholder { color: #8290a2; }
.songbook-search input:focus {
    border-color: rgba(88,196,255,.58);
    box-shadow: 0 0 0 4px rgba(47,128,237,.13);
}
.song-list {
    display: grid;
    gap: 7px;
    max-height: 680px;
    padding: 12px;
    overflow: auto;
    scrollbar-color: #285f98 transparent;
}
.song {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.song:hover {
    transform: translateX(2px);
    border-color: rgba(110,175,244,.18);
    background: rgba(255,255,255,.045);
}
.song.active {
    border-color: rgba(88,196,255,.36);
    background: linear-gradient(90deg, rgba(47,128,237,.25), rgba(255,255,255,.035));
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.song-index {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 900;
}
.song.active .song-index {
    background: var(--accent);
    color: #07101d;
}
.song-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.song-copy b {
    overflow: hidden;
    color: #f3f7fc;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.song-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}
.empty {
    padding: 25px 16px;
    color: var(--muted);
    text-align: center;
}
.songbook-viewer {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.viewer-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 21px 23px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.018);
}
.viewer-title h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 31px);
    letter-spacing: -.03em;
}
.songbook-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(88,196,255,.25);
    border-radius: 999px;
    background: rgba(47,128,237,.13);
    color: #cdeaff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
    gap: 16px;
    padding: 18px;
}
.media-box {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
}
.media-box-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}
.media-box-top strong { font-size: 14px; }
.songbook-page .button {
    min-height: 38px;
    width: auto;
    padding: 0 13px;
    border: 1px solid rgba(88,196,255,.22);
    border-radius: 11px;
    background: rgba(47,128,237,.17);
    color: #e8f6ff;
    font-size: 12px;
    cursor: pointer;
}
.songbook-page .button:hover { background: rgba(47,128,237,.30); }
.songbook-page .button.secondary {
    background: rgba(255,255,255,.055);
    color: #e6edf6;
}
audio {
    width: 100%;
    height: 42px;
    color-scheme: dark;
}
.youtube-shell {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 18px;
    border-radius: 13px;
    background: linear-gradient(135deg, #07111e, #0e3968);
    color: #fff;
    text-align: center;
}
.youtube-shell iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.youtube-placeholder b { display: block; margin-bottom: 5px; }
.youtube-placeholder span { color: #adc3da; font-size: 12px; }
.lyrics-wrap { padding: 0 18px 18px; }
.lyrics-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(5,10,17,.45);
}
.lyrics-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.025);
}
.text-controls { display: flex; gap: 7px; flex-wrap: wrap; }
.mini {
    padding: 6px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(255,255,255,.045);
    color: #eaf2fb;
    font-weight: 800;
    cursor: pointer;
}
.mini:hover { background: rgba(255,255,255,.09); }
#lyrics {
    min-height: 190px;
    margin: 0;
    padding: 21px;
    overflow: auto;
    color: #dce5ef;
    font: inherit;
    line-height: 1.75;
    white-space: pre-wrap;
}
.viewer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding: 15px 18px;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.018);
    color: var(--muted);
    font-size: 11px;
}
.songbook-ad-wrap { padding: 5px 0 52px; }
.songbook-ad { min-height: 100px; }
.songbook-page .site-footer { background: rgba(5,8,13,.92); backdrop-filter: blur(14px); }
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 120;
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 12px;
    background: #0b3158;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.38);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(18px);
    transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 1050px) {
    .songbook-app { grid-template-columns: 1fr; }
    .song-list { max-height: 380px; }
}
@media (max-width: 760px) {
    .songbook-hero { padding: 38px 0 22px; }
    .songbook-hero__inner { align-items: flex-start; }
    .songbook-stat { display: none; }
    .songbook-hero p { font-size: 15px; }
    .media-grid { grid-template-columns: 1fr; padding: 12px; }
    .viewer-title { padding: 17px; }
    .songbook-badge { display: none; }
    .media-box { padding: 13px; }
    .media-box-top { align-items: flex-start; flex-direction: column; }
    .lyrics-wrap { padding: 0 12px 12px; }
    .viewer-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
    .songbook-hero h1 { font-size: 43px; }
    .lyrics-head { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .site-page-bg video { display: none; }
}
