/* Szarpidrut 2027 — W14 (playlista): poprawki ręczne do w14.css.
   Plik generowany wspólnie dla W13 i W14 (ten sam markup: templates/front/_partials/sz27_playlist.html.twig) — zmiany wprowadzać w obu.
   Elementy serwisu, których makieta nie ma w tej postaci: prawdziwy odtwarzacz (app.js), Live Components hot + addToPlaylist,
   pusta playlista, wiele playlist udostępnionych / własnych. Klasy .is-current / .is-playing dodaje public/sz2027/w13.js. */

:where(.sz27-w14) #w14 .hidden { display: none !important; }
:where(.sz27-w14) #w14 [hidden] { display: none !important; }

/* Breadcrumb: długie tytuły nie rozpychają strony. */
:where(.sz27-w14) #w14 .w14-crumb { flex-wrap: wrap; row-gap: 2px; padding: 8px 0; }
:where(.sz27-w14) #w14 .w14-crumb span[aria-current] { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Odtwarzacz w miejscu makietowego .w14-mock-player ---------- */
:where(.sz27-w14) #w14 .w14-art.has-cover { background: #111; }
:where(.sz27-w14) #w14 .w14-art.has-cover::before,
:where(.sz27-w14) #w14 .w14-art.has-cover::after { display: none; }
:where(.sz27-w14) #w14 .w14-art #audio-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
/* Prawdziwa okładka: napis „SZARPIDRUT / AUDIO” z makiety zasłaniałby grafikę. */
:where(.sz27-w14) #w14 .w14-art.has-cover .w14-art-label { display: none; }
:where(.sz27-w14) #w14 .w14-feature-title { text-transform: uppercase; overflow-wrap: anywhere; }
:where(.sz27-w14) #w14 button.w14-player-triangle { border: 0; padding: 0; cursor: pointer; font: 18px/1 Lato, Arial, sans-serif; color: #fff; background: var(--red); transition: background-color .15s; flex: 0 0 auto; }
:where(.sz27-w14) #w14 button.w14-player-triangle:hover,
:where(.sz27-w14) #w14 button.w14-player-triangle:focus-visible { background: #c4212a; outline: 2px solid #fff; outline-offset: 2px; }
:where(.sz27-w14) #w14 #play-icon { margin-left: 3px; }
:where(.sz27-w14) #w14 #pause-icon { display: inline-flex; color: #fff; line-height: 1 !important; }
:where(.sz27-w14) #w14 #pause-icon svg { display: block; }
:where(.sz27-w14) #w14 #play-icon { font: 400 18px/1 Lato, Arial, sans-serif; }
:where(.sz27-w14) #w14 .w14-progress-input { display: block; width: 100%; height: 3px; margin: 0; -webkit-appearance: none; appearance: none; background: rgb(72, 72, 72); border: 0; border-radius: 0; cursor: pointer; accent-color: var(--red); padding: 0; }
:where(.sz27-w14) #w14 .w14-progress-input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--red); border: 0; }
:where(.sz27-w14) #w14 .w14-progress-input::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--red); border: 0; }
:where(.sz27-w14) #w14 .w14-progress-input::-moz-range-progress { background: var(--red); height: 3px; }
:where(.sz27-w14) #w14 .w14-time { font-variant-numeric: tabular-nums; }
:where(.sz27-w14) #w14 .w14-player-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
:where(.sz27-w14) #w14 .w14-player-tool { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; background: transparent; border: 1px solid #4a4a4a; border-radius: 0; color: #d6d6d6; cursor: pointer; }
:where(.sz27-w14) #w14 .w14-player-tool:hover,
:where(.sz27-w14) #w14 .w14-player-tool:focus-visible { border-color: var(--red); color: #fff; outline: none; }
:where(.sz27-w14) #w14 .w14-player-tool svg { display: block; }
:where(.sz27-w14) #w14 #repeat-icon.opacity-100,
:where(.sz27-w14) #w14 #shuffle-icon.opacity-100 { color: var(--red); opacity: 1; }
:where(.sz27-w14) #w14 .opacity-75 { opacity: .75; }
:where(.sz27-w14) #w14 .w14-volume { position: relative; }
/* Sekcja .w14-current ma overflow:hidden (dekoracja „/ / /”), więc suwak głośności otwiera się w górę. */
:where(.sz27-w14) #w14 .w14-volume-pop { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; background: #111; border: 1px solid #4a4a4a; padding: 12px 14px; }
:where(.sz27-w14) #w14 .w14-volume-pop input { display: block; width: 130px; accent-color: var(--red); cursor: pointer; }

/* ---------- Lista utworów: bieżący utwór zamiast :first-child ---------- */
:where(.sz27-w14) #w14 .w14-track:first-child { border-left: 1px solid rgb(54, 54, 54); background: rgb(25, 25, 25) !important; }
:where(.sz27-w14) #w14 .w14-track:first-child .w14-index { color: rgb(165, 165, 165); }
:where(.sz27-w14) #w14 .w14-track.is-current { border-left: 3px solid var(--red); background: rgb(33, 23, 25) !important; }
:where(.sz27-w14) #w14 .w14-track.is-current .w14-index { color: rgb(249, 106, 112); }
:where(.sz27-w14) #w14 .w14-track:hover { border-color: rgb(106, 66, 69); }
:where(.sz27-w14) #w14 .w14-track.is-current:hover { border-left-color: var(--red); }
:where(.sz27-w14) #w14 .w14-track-actions { position: relative; }
:where(.sz27-w14) #w14 button.w14-fake-button { cursor: pointer; font-family: Lato, Arial, sans-serif; line-height: 1; border-radius: 0; }
:where(.sz27-w14) #w14 button.w14-play:hover,
:where(.sz27-w14) #w14 button.w14-play:focus-visible { background: #c4212a; border-color: #c4212a; outline: none; }
:where(.sz27-w14) #w14 .w14-track.is-playing button.w14-play { box-shadow: 0 0 0 2px rgba(237, 48, 57, .35); }

/* Dodaj do playlisty (Live Component addToPlaylist) w kwadracie „+” z makiety */
:where(.sz27-w14) #w14 .w14-add { position: relative; padding: 0; cursor: pointer; }
:where(.sz27-w14) #w14 .w14-add:hover { border-color: #8a8a8a; }
:where(.sz27-w14) #w14 .w14-add .add-to-playlist-wrapper,
:where(.sz27-w14) #w14 .w14-add [data-controller="dropdown"] { position: static; width: 100%; height: 100%; }
:where(.sz27-w14) #w14 .w14-add a.add-to-playlist { background: none !important; position: absolute; inset: 0; width: auto; height: auto; padding: 0; display: flex; align-items: center; justify-content: center; color: #f8f8f8; font: 900 15px/1 Lato, Arial, sans-serif; text-decoration: none; }
:where(.sz27-w14) #w14 .w14-add a.add-to-playlist::before { content: "+"; }
:where(.sz27-w14) #w14 .add-to-playlist-tooltip { display: none; }
:where(.sz27-w14) #w14 .add-to-playlist-menu { right: 0; left: auto; top: calc(100% + 6px); z-index: 40; white-space: normal; text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 14px; line-height: 1.4; text-align: left; background: #111; border: 1px solid #4a4a4a; border-radius: 0; color: #f4f2ee; }
:where(.sz27-w14) #w14 .add-to-playlist-menu:not(.hidden) { display: block; }
:where(.sz27-w14) #w14 .add-to-playlist-menu p { margin: 0 0 8px; }
:where(.sz27-w14) #w14 .add-to-playlist-menu button,
:where(.sz27-w14) #w14 .add-to-playlist-menu a { border-radius: 0 !important; font: 700 13px/1.3 Lato, Arial, sans-serif; }
:where(.sz27-w14) #w14 .add-to-playlist-menu .bg-s_gold { background: var(--red); color: #fff; }
:where(.sz27-w14) #w14 .add-to-playlist-menu .bg-s_gold:hover { background: #ff5059; }
:where(.sz27-w14) #w14 .add-to-playlist-menu input { color: #f4f2ee; border: 0; border-bottom: 1px solid #777; background: transparent; }

/* Polub (Live Component hot) */
:where(.sz27-w14) #w14 .w14-hot { display: flex; align-items: center; margin-right: 4px; }
:where(.sz27-w14) #w14 .w14-hot .group { position: relative; }
:where(.sz27-w14) #w14 .w14-hot .flex { display: flex; align-items: center; gap: 3px; }
:where(.sz27-w14) #w14 .w14-hot button { cursor: pointer; background-color: transparent; border: 0; padding: 6px 2px; box-sizing: content-box; width: 18px; height: 18px; background-position: center; background-repeat: no-repeat; background-size: 18px; opacity: .85; }
:where(.sz27-w14) #w14 .w14-hot button:hover { opacity: 1; }
:where(.sz27-w14) #w14 .w14-hot span { color: #cfcfcf; font: 700 12px/1 Lato, Arial, sans-serif; font-variant-numeric: tabular-nums; min-width: 1ch; }
:where(.sz27-w14) #w14 .w14-hot .added-message { position: absolute; right: 0; top: 100%; z-index: 40; font: 400 13px/1.4 Lato, Arial, sans-serif; border-radius: 0; }

/* Pusta playlista */
:where(.sz27-w14) #w14 .w14-empty { border: 1px solid rgb(54, 54, 54); background: rgb(25, 25, 25); padding: 28px 20px; color: #bdbdbd; font: 400 15px/1.6 Lato, Arial, sans-serif; margin: 0 0 60px !important; }

/* ---------- Playlisty udostępnione / własne: kilka kart ---------- */
:where(.sz27-w14) #w14 .w14-shared { max-width: 1536px; margin: 44px auto 12px; padding: 28px clamp(18px, 4.05vw, 56px) 22px; box-sizing: border-box; border-top: 1px solid rgb(59, 59, 59); display: grid; grid-template-columns: minmax(0px, 1fr) minmax(250px, 1fr); gap: 30px; min-width: 0; }
:where(.sz27-w14) #w14 .w14-shared + .w14-shared { margin-top: 12px; }
:where(.sz27-w14) #w14 .w14-shared-lead { min-width: 0; }
:where(.sz27-w14) #w14 .w14-shared-index { font: 800 13.75px/1.5 Lato, Arial, sans-serif; letter-spacing: 0.2em; color: rgb(237, 48, 57); }
:where(.sz27-w14) #w14 .w14-shared h2 { font: 400 clamp(28px, 3.3vw, 44px)/1.36 Anton, Impact, sans-serif; letter-spacing: 0.06em; color: rgb(244, 242, 238); margin: 12px 0px 8px; overflow-wrap: anywhere; }
:where(.sz27-w14) #w14 .w14-shared h2 em { color: rgb(237, 48, 57); font-style: normal; }
:where(.sz27-w14) #w14 .w14-shared p { color: rgb(174, 174, 174); font: 15px/1.65 Lato, Arial, sans-serif; margin: 0; }
:where(.sz27-w14) #w14 .w14-shared-list { display: grid; gap: 10px; align-content: start; min-width: 0; }
:where(.sz27-w14) #w14 .w14-shared-link { display: grid; grid-template-columns: 52px minmax(0px, 1fr) minmax(0px, max-content); align-items: center; gap: 16px; background: rgb(25, 25, 25); border: 1px solid rgb(64, 64, 64); padding: 22px 19px; text-decoration: none; color: rgb(244, 242, 238); min-height: 88px; min-width: 0; }
:where(.sz27-w14) #w14 .w14-shared-link:hover,
:where(.sz27-w14) #w14 .w14-shared-link:focus-visible { border-color: rgb(237, 48, 57); background: rgb(34, 34, 34); }
:where(.sz27-w14) #w14 .w14-shared-link.is-current { border-left: 3px solid rgb(237, 48, 57); }
:where(.sz27-w14) #w14 .w14-shared-icon { font: 32px/1 Anton, Impact, sans-serif; color: rgb(237, 48, 57); }
:where(.sz27-w14) #w14 .w14-shared-name { font: 800 clamp(20px, 2vw, 29px)/1.1 Anton, Impact, sans-serif; letter-spacing: 0.035em; text-transform: uppercase; overflow-wrap: anywhere; min-width: 0; }
:where(.sz27-w14) #w14 .w14-shared-name small { display: block; margin-top: 6px; font: 700 12.5px/1.4 Lato, Arial, sans-serif; letter-spacing: .08em; color: #a8a8a8; text-transform: uppercase; }
:where(.sz27-w14) #w14 .w14-shared-hint { font: 800 13.75px/1.5 Lato, Arial, sans-serif; color: rgb(158, 158, 158); letter-spacing: 0.12em; text-align: right; white-space: normal; overflow-wrap: anywhere; }
:where(.sz27-w14) #w14 .w14-shared-link.is-current .w14-shared-hint { color: rgb(239, 106, 109); }

@media (max-width: 760px) {
    :where(.sz27-w14) #w14 .w14-shared { grid-template-columns: minmax(0px, 1fr); gap: 16px; margin-top: 26px; }
    :where(.sz27-w14) #w14 .w14-shared-link { grid-template-columns: 45px minmax(0px, 1fr); }
    :where(.sz27-w14) #w14 .w14-shared-hint { grid-column: 2; text-align: left; }
}
@media (max-width: 560px) {
    :where(.sz27-w14) #w14 .w14-shared { padding-inline: 16px; }
    /* Odtwarzacz mobilny: przycisk + pasek w pierwszym wierszu, czas pod paskiem, narzędzia pod spodem. */
    :where(.sz27-w14) #w14 .w14-current .w14-player .w14-progress-input { grid-column: 2; }
    :where(.sz27-w14) #w14 .w14-current .w14-player .w14-time { margin-top: -6px; }
    :where(.sz27-w14) #w14 .w14-current .w14-player .w14-player-tools { grid-column: 1 / -1; margin-top: 2px; }
    :where(.sz27-w14) #w14 button.w14-player-triangle { font-size: 14px; }
    :where(.sz27-w14) #w14 .w14-hot { margin-right: 0; }
    :where(.sz27-w14) #w14 .w14-hot button { padding: 6px 1px; width: 16px; height: 16px; background-size: 16px; }
    :where(.sz27-w14) #w14 .w14-hot span { font-size: 11px; }
    :where(.sz27-w14) #w14 .w14-add a.add-to-playlist { font-size: 14px; }
}
@media (max-width: 360px) {
    :where(.sz27-w14) #w14 .w14-shared-link { grid-template-columns: 32px minmax(0px, 1fr); padding: 16px 12px; gap: 12px; }
    :where(.sz27-w14) #w14 .w14-hot span { display: none; }
}
