/* Szarpidrut 2027 — W26 (RockFight: głosowanie i wyniki): poprawki ręczne do w26.css.
   Stan „trwa głosowanie” (data-rfd-state=active) — reguły makiety, których ekstraktor nie widzi (stan przełączany w makiecie JS-em),
   przycisk Live Componentu contestVote w miejscu .rfd-vote-action, opis edycji z panelu, baner, komentarze. */

/* ---------- Stan aktywny (z makiety) ---------- */
main.sz27-w26 .rfd-page[data-rfd-state=active] .rfd-statebadge i { background: #ed3039; box-shadow: 0 0 0 4px #ed303934; }
main.sz27-w26 .rfd-page[data-rfd-state=active] .rfd-vote-action { background: #ed3039; color: #fff; border-color: #ed3039; cursor: pointer; opacity: 1; }
main.sz27-w26 .rfd-page[data-rfd-state=active] .rfd-vote-action:hover { background: #b71c28; }
main.sz27-w26 .rfd-page[data-rfd-state=active] .rfd-team-winner .rfd-team-name small { color: #e29fa2; }

/* ---------- Live Component contestVote w slocie .rfd-vote-action ---------- */
main.sz27-w26 .rfd-vote-live { position: relative; padding: 0 !important; display: block; }
main.sz27-w26 .rfd-vote-live > div,
main.sz27-w26 .rfd-vote-live .group,
main.sz27-w26 .rfd-vote-live .group > .flex { height: 100%; min-height: inherit; }
main.sz27-w26 .rfd-vote-live .group > .flex { display: flex; }
main.sz27-w26 .rfd-vote-live .contest-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: inherit; margin: 0; padding: 9px 10px; background: transparent; border: 0; border-radius: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: uppercase; cursor: pointer; box-shadow: none; }
main.sz27-w26 .rfd-vote-live .contest-btn > * { display: none !important; }
main.sz27-w26 .rfd-vote-live .contest-btn::before { content: ""; display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.9' viewBox='0 0 24 24'%3E%3Cpath d='M9 12.4l2 2 4-4'/%3E%3Cpath d='M5 5.5h14v15H5z'/%3E%3Cpath d='M8 3h8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.9' viewBox='0 0 24 24'%3E%3Cpath d='M9 12.4l2 2 4-4'/%3E%3Cpath d='M5 5.5h14v15H5z'/%3E%3Cpath d='M8 3h8'/%3E%3C/svg%3E") center / contain no-repeat; }
main.sz27-w26 .rfd-vote-live .contest-btn::after { content: var(--rfd-vote-txt, 'GŁOSUJ'); }
main.sz27-w26 .rfd-vote-live .contest-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
main.sz27-w26 .rfd-vote-live[aria-busy=true],
main.sz27-w26 .rfd-vote-live [busy] { opacity: .7; }
/* komunikaty komponentu („Dziękujemy za głos”, „Już głosowałeś dziś…”, „Zaloguj się…”) */
main.sz27-w26 .rfd-vote-live .added-message { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: min(16rem, 80vw); margin: 0; padding: 10px 12px; border-radius: 0; color: #fff; font: 700 12px/1.45 Lato, Arial, sans-serif; letter-spacing: 0; text-transform: none; text-align: left; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
main.sz27-w26 .rfd-vote-live .added-message.bg-green-600 { background: #1f7a45; }
main.sz27-w26 .rfd-vote-live .added-message.bg-red-600 { background: #b71c28; }
@media (max-width: 760px) {
  main.sz27-w26 .rfd-vote-live .contest-btn { padding: 10px 14px; }
  main.sz27-w26 .rfd-vote-live .added-message { left: 0; right: auto; width: 100%; }
}
@media (min-width: 761px) and (max-width: 960px) {
  main.sz27-w26 .rfd-vote-live .contest-btn::before { width: 14px; height: 14px; flex-basis: 14px; }
}

/* ---------- Wiersz zespołu ---------- */
main.sz27-w26 .rfd-avatar img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
main.sz27-w26 .rfd-team-name strong a { color: inherit; }
main.sz27-w26 .rfd-team-name strong a:hover { color: #ed3039; }
main.sz27-w26 .rfd-team-desc { margin-top: 8px; color: #b4b4b7; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
main.sz27-w26 .rfd-team-desc * { color: inherit !important; background: transparent !important; font-size: inherit !important; margin: 0; }
main.sz27-w26 .rfd-team-desc a { text-decoration: underline; text-decoration-color: #ed3039; }
main.sz27-w26 .rfd-team--empty { display: block; min-height: 0; }
main.sz27-w26 .rfd-team--empty small { font-size: 13px !important; }
main.sz27-w26 .rfd-inline-link { color: #fff !important; text-decoration: underline; text-decoration-color: #ed3039; text-underline-offset: 3px; }
main.sz27-w26 .rfd-backtop > span { text-align: right; overflow-wrap: anywhere; }
main.sz27-w26 .rfd-hero-panel .rfd-panel-bottom strong { overflow-wrap: anywhere; }

/* ---------- Opis edycji z panelu (HTML z edytora) ---------- */
main.sz27-w26 .rfd-content { color: #b9b9bc; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
main.sz27-w26 .rfd-content * { background-color: transparent !important; font-family: inherit !important; }
main.sz27-w26 .rfd-content :not(h1, h2, h3, h4, h5, h6, strong, b, a) { color: inherit !important; }
main.sz27-w26 .rfd-content :is(h1, h2, h3, h4, h5, h6) { margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid #353535; color: #ed3039 !important; font: 900 11px/1.4 Lato, Arial, sans-serif !important; letter-spacing: .14em; text-transform: uppercase; }
main.sz27-w26 .rfd-content :is(h2, h3, h4) { padding-top: 0; border-top: 0; margin: 14px 0 4px; color: #fff !important; font-size: 12px !important; letter-spacing: .07em; }
main.sz27-w26 .rfd-content > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
main.sz27-w26 .rfd-content p { margin: 0 0 10px; font-size: 14px !important; line-height: 1.6 !important; }
main.sz27-w26 .rfd-content :is(ul, ol) { margin: 0 0 10px; padding-left: 20px; }
main.sz27-w26 .rfd-content li p { margin: 0 0 4px; }
main.sz27-w26 .rfd-content :is(strong, b) { color: #fff !important; }
main.sz27-w26 .rfd-content a { color: #fff !important; text-decoration: underline; text-decoration-color: #ed3039; text-underline-offset: 3px; }
main.sz27-w26 .rfd-content img { max-width: 100%; height: auto; }
@media (max-width: 760px) {
  main.sz27-w26 .rfd-content p { font-size: 14.5px !important; }
}

/* ---------- Baner partnerów (get_banner('contests')) ---------- */
main.sz27-w26 .rfd-banner { margin: 56px 0 0; }
main.sz27-w26 .rfd-banner img { display: block; max-width: 100%; }
main.sz27-w26 .rfd-banner .banner + .banner { margin-top: 12px; }

/* ---------- Komentarze ---------- */
main.sz27-w26 .rfd-comments { margin-top: 64px; max-width: 900px; }
main.sz27-w26 .rfd-comments .rfd-section-head { margin-bottom: 0; }
main.sz27-w26 .rfd-comment-list { margin: 0 0 22px; }
main.sz27-w26 .rfd-comment { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid #303030; }
main.sz27-w26 .rfd-comment-avatar { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: #222; color: #fff; font: 800 16px/1 Lato, Arial, sans-serif; }
main.sz27-w26 .rfd-comment-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
main.sz27-w26 .rfd-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
main.sz27-w26 .rfd-comment-head b { color: #f4f2ee; font-size: 14px; }
main.sz27-w26 .rfd-comment-head b a:hover { color: #ed3039; }
main.sz27-w26 .rfd-comment-head span { color: #8f8f8f; font-size: 12px; }
main.sz27-w26 .rfd-comment-body p { margin: 6px 0 0; color: #d0d0d2; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
main.sz27-w26 .rfd-comment-action { background: transparent; border: 1px solid #404040; color: #bbb; padding: 4px 9px; font: 800 10px/1.2 Lato, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border-radius: 0; margin-left: auto; }
main.sz27-w26 .rfd-comment-action:hover { border-color: #ed3039; color: #fff; }
main.sz27-w26 .rfd-comment-report { margin: 8px 0 0; }
main.sz27-w26 .rfd-comment-action--report { border: 0; padding: 0; color: #f06c72; text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 12px; }
main.sz27-w26 .rfd-comment-action--report:hover { text-decoration: underline; color: #ff8a8f; }
main.sz27-w26 .rfd-commentbox { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
main.sz27-w26 .rfd-commentbox textarea { width: 100%; min-height: 120px; padding: 14px; background: #141414; border: 1px solid #3a3a3a; border-radius: 0; color: #eee; font: 15px/1.55 Lato, Arial, sans-serif; resize: vertical; }
main.sz27-w26 .rfd-commentbox textarea:focus { outline: 2px solid #ed3039; outline-offset: 0; }
main.sz27-w26 .rfd-comment-counter { text-align: right; font-size: 11px; color: #8a8a8a; }
main.sz27-w26 .rfd-comment-counter.text-red-500 { color: #f06c72; }
main.sz27-w26 .rfd-commentbox button[type=submit] { align-self: flex-start; padding: 13px 20px; background: #ed3039; border: 0; border-radius: 0; color: #fff; font: 900 12px/1 Lato, Arial, sans-serif; letter-spacing: .1em; cursor: pointer; }
main.sz27-w26 .rfd-commentbox button[type=submit]:hover { background: #b71c28; }
main.sz27-w26 .rfd-comment-empty { margin: 0 0 6px; padding: 20px; border: 1px solid #353536; background: #191919; color: #9a9a9a; font-size: 15px; }
main.sz27-w26 .rfd-login-btn { align-self: flex-start; padding: 13px 20px; border: 1px solid #ed3039; color: #fff !important; font: 900 12px/1.2 Lato, Arial, sans-serif; letter-spacing: .1em; }
main.sz27-w26 .rfd-login-btn:hover { background: #ed3039; }
main.sz27-w26 .rfd-commentbox small { color: #8f8f8f; font-size: 12px; }

/* Nazwy zespołów wersalikami jak w makiecie (w bazie zapis mieszany) */
main.sz27-w26 .rfd-team-name strong,
main.sz27-w26 .rfd-panel-bottom strong { text-transform: uppercase; }
