/* Szarpidrut 2027 — W46 (Szczegóły konkursu): poprawki ręczne do w46.css.
   Grafika konkursu (mainImage) w miejscu typograficznego plakatu, statusy z dat, treść konkursu z panelu,
   opcje konkursu / głosowania z Live Componentem contestVote, baner, komentarze. */

/* ---------- Grafika konkursu ---------- */
main.sz27-w46 .cd-art--image { padding: 0; justify-content: flex-start; background: #111; }
main.sz27-w46 .cd-art--image::before,
main.sz27-w46 .cd-art--image::after { display: none; }
main.sz27-w46 .cd-art-blur { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; filter: blur(22px) brightness(.45) saturate(1.2); }
main.sz27-w46 .cd-art-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
main.sz27-w46 .cd-art--image .cd-art-top { background: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
main.sz27-w46 .cd-art-img:focus-visible { outline: 3px solid #f23641; outline-offset: -3px; }
main.sz27-w46 .cd-art--image .cd-art-top { position: relative; z-index: 1; padding: 22px 30px 40px; background: linear-gradient(180deg, rgba(8, 8, 8, .82), rgba(8, 8, 8, 0)); pointer-events: none; }
main.sz27-w46 .cd-art--image .cd-art-stroke { z-index: 1; pointer-events: none; }
main.sz27-w46 .cd-art-center strong { font-size: clamp(30px, 3.2vw, 46px); text-transform: uppercase; overflow-wrap: anywhere; }
main.sz27-w46 .cd-art-bottom { font-size: clamp(20px, 2vw, 28px); }

/* ---------- Statusy ---------- */
main.sz27-w46 .cd-status--active { background: #4a1418; border-color: #ed3039; color: #fff; }
main.sz27-w46 .cd-status--active i { box-shadow: 0 0 0 4px rgba(237, 48, 57, .3); }
main.sz27-w46 .cd-status--upcoming { background: #3a3220; border-color: #8a7140; color: #f6dca3; }
main.sz27-w46 .cd-status--upcoming i { background: #f0b43c; }
main.sz27-w46 .cd-hero-info h1 { text-transform: uppercase; }
main.sz27-w46 .cd-data dd { overflow-wrap: anywhere; }
main.sz27-w46 .cd-breadcrumb strong { overflow-wrap: anywhere; }
main.sz27-w46 .cd-inline-link { color: #fff !important; text-decoration: underline !important; text-decoration-color: #ed3039 !important; text-underline-offset: 3px; }

/* ---------- Treść konkursu z panelu (HTML z edytora) ---------- */
main.sz27-w46 .cd-content { color: #cacacf; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; max-width: 780px; }
main.sz27-w46 .cd-content * { background-color: transparent !important; font-family: inherit !important; }
main.sz27-w46 .cd-content :not(h1, h2, h3, h4, h5, h6, strong, b, a) { color: inherit !important; font-size: inherit !important; }
main.sz27-w46 .cd-content :is(h1, h2, h3, h4, h5, h6) { margin: 22px 0 8px; padding-top: 18px; border-top: 1px solid #2c2c30; color: #fff !important; font: 900 12px/1.5 Lato, Arial, sans-serif !important; letter-spacing: .095em; text-transform: uppercase; }
main.sz27-w46 .cd-content :is(h1, h2, h3, h4, h5, h6)::before { content: ""; display: inline-block; width: 14px; height: 3px; margin: 0 10px 3px 0; background: #ed3039; vertical-align: middle; }
main.sz27-w46 .cd-content > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
main.sz27-w46 .cd-content p { margin: 0 0 10px; }
main.sz27-w46 .cd-content div[dir] { margin: 0; }
main.sz27-w46 .cd-content :is(ul, ol) { margin: 0 0 12px; padding-left: 20px; }
main.sz27-w46 .cd-content :is(strong, b) { color: #fff !important; }
main.sz27-w46 .cd-content p > strong:only-child { display: inline-block; }
main.sz27-w46 .cd-content blockquote { margin: 8px 0 12px; border-left: 3px solid #ed3039; padding: 11px 18px; background: #252527; color: #fff !important; }
main.sz27-w46 .cd-content a { color: #fff !important; text-decoration: underline; text-decoration-color: #ed3039; text-underline-offset: 3px; }
main.sz27-w46 .cd-content img { max-width: 100%; height: auto; }
main.sz27-w46 .cd-content span[style*="font-size"] { font-size: 15px !important; }

/* ---------- Kolumna boczna ---------- */
main.sz27-w46 .cd-aside--wide { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
main.sz27-w46 .cd-aside-card strong { overflow-wrap: anywhere; text-transform: uppercase; margin-top: 4px; }
main.sz27-w46 .cd-aside-card strong a:hover { color: #ed3039; }
main.sz27-w46 .cd-aside-big--date { font-size: clamp(56px, 4.6vw, 84px); }
main.sz27-w46 .cd-option-img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; margin: 12px 0 14px; border: 1px solid #4a2a2d; cursor: zoom-in; }
main.sz27-w46 .cd-option-img:focus-visible { outline: 3px solid #f23641; outline-offset: 2px; }
main.sz27-w46 .cd-option-desc { margin-top: 8px; color: #b9b9be; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
main.sz27-w46 .cd-option-desc * { color: inherit !important; background: transparent !important; font-size: inherit !important; margin: 0; }
main.sz27-w46 .cd-option-desc a { text-decoration: underline; text-decoration-color: #ed3039; }

/* ---------- Głosowanie: opcje + contestVote ---------- */
main.sz27-w46 .cd-vote { margin-top: 42px; }
main.sz27-w46 .cd-options { list-style: none; margin: 0; padding: 0; border: 1px solid #36363a; }
main.sz27-w46 .cd-option { display: grid; grid-template-columns: 84px minmax(0, 1fr) 90px 150px; gap: 20px; align-items: center; padding: 18px 22px; border-top: 1px solid #36363a; background: #171719; }
main.sz27-w46 .cd-option:first-child { border-top: 0; }
main.sz27-w46 .cd-option-media { width: 84px; height: 84px; overflow: hidden; background: #2a1518; display: flex; align-items: center; justify-content: center; color: #fff; font: 32px/1 Anton, Impact, sans-serif; }
main.sz27-w46 .cd-option-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
main.sz27-w46 .cd-option-body h3 { margin: 0; font: 400 22px/1.2 Anton, Impact, sans-serif; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
main.sz27-w46 .cd-option-body h3 a:hover { color: #ed3039; }
main.sz27-w46 .cd-option-place { display: block; margin-bottom: 4px; color: #ff6068; font: 900 10px/1.3 Lato, Arial, sans-serif; letter-spacing: .11em; }
main.sz27-w46 .cd-option-votes { text-align: right; }
main.sz27-w46 .cd-option-votes b { display: block; font: 400 30px/1 Anton, Impact, sans-serif; color: #fff; }
main.sz27-w46 .cd-option-votes small { color: #a9a9ad; font: 900 9px/1.4 Lato, Arial, sans-serif; letter-spacing: .11em; }
main.sz27-w46 .cd-vote-off,
main.sz27-w46 .cd-vote-live { min-height: 44px; border: 1px solid #4a4a4e; background: transparent; color: #8d8d90; font: 900 11px/1.2 Lato, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
main.sz27-w46 .cd-vote-off { cursor: not-allowed; opacity: .7; }
main.sz27-w46 .cd-vote-live { position: relative; display: block; background: #d82933; border-color: #d82933; color: #fff; }
main.sz27-w46 .cd-vote-live:hover { background: #f33540; }
main.sz27-w46 .cd-vote-live > div,
main.sz27-w46 .cd-vote-live .group,
main.sz27-w46 .cd-vote-live .group > .flex { height: 100%; min-height: inherit; }
main.sz27-w46 .cd-vote-live .group > .flex { display: flex; }
main.sz27-w46 .cd-vote-live .contest-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; 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-w46 .cd-vote-live .contest-btn > * { display: none !important; }
main.sz27-w46 .cd-vote-live .contest-btn::after { content: var(--cd-vote-txt, 'GŁOSUJ'); }
main.sz27-w46 .cd-vote-live .contest-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
main.sz27-w46 .cd-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-w46 .cd-vote-live .added-message.bg-green-600 { background: #1f7a45; }
main.sz27-w46 .cd-vote-live .added-message.bg-red-600 { background: #b71c28; }

/* ---------- Inne konkursy ---------- */
main.sz27-w46 .cd-next-list a { grid-template-columns: 210px minmax(0, 1fr) 20px; }
main.sz27-w46 .cd-next-list strong { overflow-wrap: anywhere; }

/* ---------- Baner partnerów ---------- */
main.sz27-w46 .cd-banner { margin: 46px 0 0; }
main.sz27-w46 .cd-banner img { display: block; max-width: 100%; }
main.sz27-w46 .cd-banner .banner + .banner { margin-top: 12px; }

/* ---------- Komentarze ---------- */
main.sz27-w46 .cd-comments { margin-top: 46px; max-width: 900px; }
main.sz27-w46 .cd-comments .cd-section-head { margin-bottom: 0; }
main.sz27-w46 .cd-comment-list { margin: 0 0 22px; }
main.sz27-w46 .cd-comment { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid #303030; }
main.sz27-w46 .cd-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-w46 .cd-comment-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
main.sz27-w46 .cd-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
main.sz27-w46 .cd-comment-head b { color: #f4f2ee; font-size: 14px; }
main.sz27-w46 .cd-comment-head b a:hover { color: #ed3039; }
main.sz27-w46 .cd-comment-head span { color: #8f8f8f; font-size: 12px; }
main.sz27-w46 .cd-comment-body p { margin: 6px 0 0; color: #d0d0d2; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
main.sz27-w46 .cd-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-w46 .cd-comment-action:hover { border-color: #ed3039; color: #fff; }
main.sz27-w46 .cd-comment-report { margin: 8px 0 0; }
main.sz27-w46 .cd-comment-action--report { border: 0; padding: 0; color: #f06c72; text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 12px; }
main.sz27-w46 .cd-comment-action--report:hover { text-decoration: underline; color: #ff8a8f; }
main.sz27-w46 .cd-commentbox { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
main.sz27-w46 .cd-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-w46 .cd-commentbox textarea:focus { outline: 2px solid #ed3039; outline-offset: 0; }
main.sz27-w46 .cd-comment-counter { text-align: right; font-size: 11px; color: #8a8a8a; }
main.sz27-w46 .cd-comment-counter.text-red-500 { color: #f06c72; }
main.sz27-w46 .cd-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-w46 .cd-commentbox button[type=submit]:hover { background: #b71c28; }
main.sz27-w46 .cd-comment-empty { margin: 0 0 6px; padding: 20px; border: 1px solid #353536; background: #191919; color: #9a9a9a; font-size: 15px; }
main.sz27-w46 .cd-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-w46 .cd-login-btn:hover { background: #ed3039; }
main.sz27-w46 .cd-commentbox small { color: #8f8f8f; font-size: 12px; }

@media (max-width: 1020px) {
  main.sz27-w46 .cd-option { grid-template-columns: 70px minmax(0, 1fr) 70px 120px; gap: 14px; }
  main.sz27-w46 .cd-option-media { width: 70px; height: 70px; }
}
@media (max-width: 760px) {
  main.sz27-w46 .cd-art--image { min-height: 0; aspect-ratio: 1 / 1; max-height: 460px; }
  main.sz27-w46 .cd-art--image .cd-art-top { padding: 18px 20px 30px; }
  main.sz27-w46 .cd-option { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px 14px; padding: 16px; }
  main.sz27-w46 .cd-option-media { width: 64px; height: 64px; }
  main.sz27-w46 .cd-vote-off,
  main.sz27-w46 .cd-vote-live { grid-column: 1 / -1; }
  main.sz27-w46 .cd-vote-live .added-message { left: 0; right: auto; width: 100%; }
  main.sz27-w46 .cd-next-list a { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 14px; }
  main.sz27-w46 .cd-next-kind { grid-column: 1 / -1; }
}
main.sz27-w46 .cd-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
@media (max-width: 760px) {
  main.sz27-w46 .cd-art--image { aspect-ratio: 4 / 3; }
}
