/* Szarpidrut 2027 — W29 (patronat medialny: lista + podlisty albumów/wydarzeń): poprawki ręczne do w29.css
   (prawdziwe okładki i plakaty zamiast grafik poglądowych, linki-karty z przyciskiem biletu, paginacja, stany puste). */

/* Prawdziwa okładka albumu w miejscu grafiki poglądowej. */
:where(.sz27-w29) #w29 .pat-cover--img{background: #111;}
:where(.sz27-w29) #w29 .pat-cover--img > img{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s;}
:where(.sz27-w29) #w29 .pat-album:hover .pat-cover--img > img{transform: scale(1.03);}
:where(.sz27-w29) #w29 .pat-cover-foot{text-transform: uppercase;}
:where(.sz27-w29) #w29 .pat-cover-center{text-transform: uppercase;}

/* Układ siatki z wyróżnionym pierwszym i szerokim ostatnim albumem działa dla 1, 3 i 6 kart; dla innych liczb ostatnia karta zostaje zwykła. */
:where(.sz27-w29) #w29 .pat-albums-grid:is(.pat-n2, .pat-n4, .pat-n5) .pat-album:last-child{grid-column: auto; display: flex; min-height: 0; max-height: none;}
:where(.sz27-w29) #w29 .pat-albums-grid:is(.pat-n2, .pat-n4, .pat-n5) .pat-album:last-child .pat-cover{aspect-ratio: 1.23 / 1; height: auto; padding: 19px 22px;}
:where(.sz27-w29) #w29 .pat-albums-grid:is(.pat-n2, .pat-n4, .pat-n5) .pat-album:last-child .pat-album-info{display: block; padding: 19px 21px 23px;}
:where(.sz27-w29) #w29 .pat-albums-grid:is(.pat-n2, .pat-n4, .pat-n5) .pat-album:last-child h3{font-size: 22px; margin: 7px 22px 13px 0;}
:where(.sz27-w29) #w29 .pat-albums-grid:is(.pat-n2, .pat-n4, .pat-n5) .pat-album:last-child .pat-meta{border-top: 0; padding-top: 0;}

/* Podlista albumów: równa siatka bez wyróżnień. */
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:first-child,
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:last-child{grid-column: auto; display: flex; min-height: 0; max-height: none; border-left: 1px solid rgb(56, 56, 56);}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:hover{border-color: rgb(237, 48, 57);}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-cover{aspect-ratio: 1.23 / 1; height: auto; padding: 19px 22px;}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-cover-center{font-size: clamp(32px, 3.2vw, 52px); line-height: .94;}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-cover-mark{font-size: 11px;}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-album-info{display: block; padding: 19px 21px 23px;}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-album-band{font-size: 13px; color: rgb(237, 48, 57); letter-spacing: .13em;}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) h3{font-size: 22px; line-height: 1.22; margin: 7px 22px 13px 0;}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-meta{border-top: 0; padding-top: 0;}
@media (max-width: 690px){
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-cover,
:where(.sz27-w29) #w29 .pat-albums-grid:is(.pat-n2, .pat-n4, .pat-n5) .pat-album:last-child .pat-cover{aspect-ratio: 1 / 1; padding: 13px 12px;}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-cover-center{font-size: clamp(25px, 7vw, 42px);}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-album-info,
:where(.sz27-w29) #w29 .pat-albums-grid:is(.pat-n2, .pat-n4, .pat-n5) .pat-album:last-child .pat-album-info{padding: 13px 13px 37px;}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) .pat-album-band{font-size: 12px;}
:where(.sz27-w29) #w29 .pat-albums-grid--plain .pat-album:is(:first-child, :last-child) h3,
:where(.sz27-w29) #w29 .pat-albums-grid:is(.pat-n2, .pat-n4, .pat-n5) .pat-album:last-child h3{font-size: 18px; margin: 6px 0 12px;}
}

/* Karty wydarzeń: element <article> z linkiem rozciągniętym na całą kartę (żeby przycisk biletu mógł być osobnym linkiem). */
:where(.sz27-w29) #w29 .pat-event,
:where(.sz27-w29) #w29 .pat-tour{position: relative;}
:where(.sz27-w29) #w29 .pat-link::after{content: ""; position: absolute; inset: 0; z-index: 3;}
:where(.sz27-w29) #w29 .pat-link:focus-visible{outline: none;}
:where(.sz27-w29) #w29 .pat-event:focus-within,
:where(.sz27-w29) #w29 .pat-tour:focus-within{outline: 2px solid rgb(237, 48, 57); outline-offset: 3px;}
:where(.sz27-w29) #w29 .pat-event:focus-within .pat-event-art > img,
:where(.sz27-w29) #w29 .pat-tour:focus-within .pat-tour-art img{filter: none;}
:where(.sz27-w29) #w29 .pat-ticket{position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 9px 14px; background: rgb(237, 48, 57); color: #080808; font-size: 12px; font-weight: 900; letter-spacing: .1em;}
:where(.sz27-w29) #w29 .pat-ticket:hover{background: #fff;}
:where(.sz27-w29) #w29 .pat-event-overlay em{font-size: 12px; letter-spacing: .12em;}
:where(.sz27-w29) #w29 .pat-tour-art span{z-index: 2;}
/* Bez plakatu: ciemne tło z czerwonym akcentem zamiast zdjęcia. */
:where(.sz27-w29) #w29 .pat-event-art:not(:has(img)),
:where(.sz27-w29) #w29 .pat-tour-art:not(:has(img)){background: radial-gradient(circle at 85% 15%, rgba(237, 48, 57, .28), transparent 45%), linear-gradient(135deg, #202020, #111);}

/* Nawigacja pod nagłówkiem — linki do sekcji. */
:where(.sz27-w29) #w29 .pat-underhero a:hover{color: #fff;}
:where(.sz27-w29) #w29 .pat-section{scroll-margin-top: calc(var(--sz45-top, 78px) + 12px);}
:where(.sz27-w29) #w29 .pat-section h2{scroll-margin-top: calc(var(--sz45-top, 78px) + 40px);}

/* Podlisty: nagłówek bez linii sekcji. */
:where(.sz27-w29) #w29 .pat-sublist .pat-section{padding-top: 40px;}
:where(.sz27-w29) #w29 .pat-visually-hidden{position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;}

/* Stan pusty. */
:where(.sz27-w29) #w29 .pat-empty{margin: 40px 0 10px; padding: 34px 28px; border: 1px solid rgb(48, 48, 48); background: rgb(25, 25, 25); color: rgb(184, 183, 186); font-size: 17px; line-height: 1.55;}

/* Odstęp przed stopką (zamiast notatki „makieta” z makiety). */
:where(.sz27-w29) #w29 .pat-end{height: 70px;}
@media (max-width: 690px){:where(.sz27-w29) #w29 .pat-end{height: 50px;}}

/* Paginacja KNP. */
:where(.sz27-w29) #w29 .pat-pagination{display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 34px 0 6px;}
:where(.sz27-w29) #w29 .pat-pagination > a,
:where(.sz27-w29) #w29 .pat-pagination > span{display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid rgb(56, 56, 56); background: rgb(25, 25, 25); color: rgb(244, 242, 238); font-size: 13px; font-weight: 800; line-height: 1;}
:where(.sz27-w29) #w29 .pat-pagination > a:hover{border-color: rgb(237, 48, 57); color: rgb(237, 48, 57);}
:where(.sz27-w29) #w29 .pat-pagination > span[aria-current="page"]{background: rgb(237, 48, 57); border-color: rgb(237, 48, 57); color: #080808;}
:where(.sz27-w29) #w29 .pat-pagination > .is-disabled{opacity: .3;}
:where(.sz27-w29) #w29 .pat-pagination > .is-gap{background: transparent; border-color: transparent; min-width: 18px; padding: 0;}
@media (max-width: 690px){:where(.sz27-w29) #w29 .pat-pagination{gap: 4px;}
:where(.sz27-w29) #w29 .pat-pagination > a, :where(.sz27-w29) #w29 .pat-pagination > span{min-width: 34px; height: 38px; padding: 0 8px;}}
