/* Szarpidrut 2027 — W28 The Top: poprawki ręczne do w28.css (linki, Live Components, moduły panelu, puste stany). */

/* ---------- Karty jako linki (rozciągnięty link w tytule) ---------- */
:where(.sz27-w28) #w28 .top-band-item,
:where(.sz27-w28) #w28 .top-track { position: relative; transition: background-color .15s, border-color .15s; }
:where(.sz27-w28) #w28 .top-band-item:hover { border-color: #4a4a4a; background: #191919; }
:where(.sz27-w28) #w28 .top-track:hover { background: #202020; }
:where(.sz27-w28) #w28 .top-stretch { color: inherit; text-decoration: none; }
:where(.sz27-w28) #w28 .top-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
:where(.sz27-w28) #w28 .top-stretch:focus-visible { outline: none; }
:where(.sz27-w28) #w28 .top-stretch:focus-visible::after { outline: 2px solid #fff; outline-offset: -2px; }
:where(.sz27-w28) #w28 .top-track-utilities { position: relative; z-index: 2; }
:where(.sz27-w28) #w28 .top-track:focus-within { z-index: 5; }
:where(.sz27-w28) #w28 a.top-band-top-img { display: block; }
:where(.sz27-w28) #w28 a.top-visual-link { color: inherit; text-decoration: none; }
:where(.sz27-w28) #w28 a.top-visual-link:hover { color: #fff; border-bottom-color: #fff; }
:where(.sz27-w28) #w28 .top-band-top h3 { overflow-wrap: anywhere; }

/* ---------- Okładka albumu nr 1 (prawdziwe zdjęcie zamiast grafiki poglądowej) ---------- */
:where(.sz27-w28) #w28 a.top-album-art { color: inherit; text-decoration: none; }
:where(.sz27-w28) #w28 .top-album-art--cover { background: #111; }
:where(.sz27-w28) #w28 .top-album-art--cover::before { display: none; }
:where(.sz27-w28) #w28 .top-album-art--cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
:where(.sz27-w28) #w28 .top-album-art .top-cover-band { right: 25px; overflow-wrap: anywhere; text-transform: uppercase; }
:where(.sz27-w28) #w28 .top-album-art .top-cover-art { text-transform: uppercase; max-width: 90%; overflow: hidden; }
:where(.sz27-w28) #w28 .top-album-body { min-width: 0; }
:where(.sz27-w28) #w28 .top-album-body h3 { overflow-wrap: anywhere; }
:where(.sz27-w28) #w28 .top-album-playlist { margin-top: 22px; }
:where(.sz27-w28) #w28 .top-album-list { margin-top: 12px; }

/* ---------- „◌ N” = Live Component hot ---------- */
:where(.sz27-w28) #w28 .top-hot-live { position: relative; padding: 0 6px 0 2px; min-height: 25px; }
:where(.sz27-w28) #w28 .top-hot-live .group.relative { position: static; }
:where(.sz27-w28) #w28 .top-hot-live .flex { display: flex; align-items: center; gap: 2px; }
:where(.sz27-w28) #w28 .top-hot-live button { cursor: pointer; padding: 0; margin: 0; width: 22px; height: 22px; background-color: transparent; border: 0; background-position: center; background-repeat: no-repeat; background-size: 15px; opacity: .85; }
:where(.sz27-w28) #w28 .top-hot-live button:hover { opacity: 1; }
:where(.sz27-w28) #w28 .top-hot-live button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
:where(.sz27-w28) #w28 .top-hot-live span { color: #c6c6c6; font: 800 11px/1.2 Lato, Arial, sans-serif; font-variant-numeric: tabular-nums; }
:where(.sz27-w28) #w28 .top-hot-live .added-message {
    position: absolute; top: calc(100% + 8px); left: 0; right: auto; z-index: 30; margin: 0;
    width: 230px; max-width: calc(100vw - 40px); padding: 10px 12px; border-radius: 0;
    font: 700 12px/1.45 Lato, Arial, sans-serif; text-align: left; letter-spacing: 0;
    color: #fff; background: #1d1d1d; border: 1px solid #3c3c3c; border-left: 3px solid #4ed89d; box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
:where(.sz27-w28) #w28 .top-hot-live .added-message.bg-red-600 { border-left-color: #ef363b; }

/* ---------- „+ DO PLAYLISTY” = Live Component addToPlaylist ---------- */
:where(.sz27-w28) #w28 .top-playlist-live { position: relative; cursor: pointer; }
:where(.sz27-w28) #w28 .top-playlist-live:hover { border-color: #ed3039; color: #fff; }
:where(.sz27-w28) #w28 .top-playlist-live .top-playlist-text { pointer-events: none; }
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-wrapper,
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-wrapper > div { position: static; width: auto; height: auto; }
:where(.sz27-w28) #w28 .top-playlist-live a.add-to-playlist,
:where(.sz27-w28) #w28 .top-playlist-live a.add-to-playlist-black { position: absolute; inset: -1px; width: auto !important; height: auto !important; min-width: 0; padding: 0; background: none !important; z-index: 2; }
:where(.sz27-w28) #w28 .top-playlist-live a.add-to-playlist:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-tooltip { display: none; }
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-menu {
    top: calc(100% + 8px); left: 0; right: auto; z-index: 40; border-radius: 0; background: #1d1d1d; border: 1px solid #3c3c3c;
    font: 400 14px/1.4 Lato, Arial, sans-serif; letter-spacing: 0; text-transform: none; white-space: normal; cursor: default; color: #fff;
}
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-menu:not(.hidden) { display: block; }
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-menu p { margin: 0 0 8px; }
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-menu a { text-decoration: none; }
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-menu .bg-s_gold { background: #ef363b; color: #080808; border-radius: 0; font-weight: 900; }
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-menu .bg-s_gold:hover { background: #ff5a5f; }
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-menu button { font: 400 14px/1.4 Lato, Arial, sans-serif; border: 0; }
:where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-menu input { color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); }

/* ---------- Moduły panelu (baner / pasek „top”) i puste stany ---------- */
:where(.sz27-w28) #w28 .top-panel-module { margin: 48px 0 0; }
:where(.sz27-w28) #w28 .top-panel-module img { max-width: 100%; height: auto; }
:where(.sz27-w28) #w28 .top-panel-module.top-bar { margin-top: 64px; }
:where(.sz27-w28) #w28 .top-empty { margin: 0; padding: 24px 16px; color: #bcbcbc; background: #151515; border: 1px solid #303030; }

@media (max-width: 760px) {
    :where(.sz27-w28) #w28 .top-playlist-live .add-to-playlist-menu { max-width: calc(100vw - 60px); }
    :where(.sz27-w28) #w28 .top-cover-art { font-size: 64px; }
}

/* Lista albumów 02–07: nr 1 jest w karcie wyróżnionej, więc na czerwono tylko 02 i 03 (jak podium w pozostałych listach). */
:where(.sz27-w28) #w28 .top-album-list .top-track:nth-child(n+3) .top-track-rank { color: rgb(119, 119, 119); }
