/* ==========================================================================
   pcxv · ranking kasyn · polishcasinos.org
   Sekcje: ramka · naglowek rankingu · filtry · pozycja · zakladka numeru ·
   logo · oferta · akcja · warunki · pokaz wszystkie · mobilny
   ========================================================================== */

/* ---- ramka ---- */
.pcxv{margin:0 0 30px;padding:22px 24px 18px;background:#F4F4F0;border-top:5px solid #1B1E24}
.pcxv *{box-sizing:border-box}

/* ---- naglowek rankingu ---- */
.pcxv-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 24px;margin-bottom:16px}
.pcxv-tyt{margin:0;font:900 24px/1.2 "Roboto",Arial,sans-serif;letter-spacing:-.01em;color:#1A1C20}
.pcxv-pod{margin:6px 0 0;font-size:13px;line-height:1.5;color:#5D6169}
.pcxv-pod b{color:#1A1C20}

/* ---- filtry ---- */
.pcxv-filtry{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.pcxv-filtry input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.pcxv-filtry label{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;background:#fff;color:#1A1C20;font-size:13px;font-weight:700;cursor:pointer;box-shadow:inset 0 -2px 0 #D9DBD5}
.pcxv-filtry input:checked+label{background:#1B1E24;color:#F6C400;box-shadow:none}
.pcxv-filtry input:focus-visible+label{outline:2px solid #1F5FAD;outline-offset:2px}

/* ---- pozycja ---- */
.pcxv-lista{margin:0;padding:0;list-style:none}
.pcxv-lista>li::before,.pcxv-lista>li::after{content:none!important;display:none!important}
.pcxv-lista>li.pcxv-poz{position:relative;display:grid;grid-template-columns:40px 96px minmax(0,1.1fr) minmax(0,1.25fr) 190px;grid-template-areas:"nr logo marka oferta akcja" "nr logo fakty fakty akcja" "war war war war war";gap:4px 22px;align-items:center;margin:0 0 10px;padding:14px 20px 12px 0;background:#fff;box-shadow:0 1px 0 #D9DBD5}
.pcxv-lista>li.pcxv-poz:first-child{box-shadow:inset 0 0 0 2px #F6C400}

/* ---- zakladka numeru ---- */
.pcxv-nr{grid-area:nr;align-self:start;display:grid;place-items:start center;width:40px;height:54px;margin-top:-14px;padding-top:9px;background:#1B1E24;color:#fff;font:italic 900 19px/1 "Roboto",Arial,sans-serif;clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%)}
.pcxv-poz:nth-child(1) .pcxv-nr{background:#F6C400;color:#1A1C20}
.pcxv-poz:nth-child(2) .pcxv-nr{background:#C8102E}
.pcxv-poz:nth-child(3) .pcxv-nr{background:#1F5FAD}

/* ---- logo ---- */
.pcxv-logo{grid-area:logo;display:grid;place-items:center;width:96px;height:96px;background:#fff;box-shadow:inset 0 0 0 1px #D9DBD5}
.pcxv-logo img{display:block;max-width:82px!important;max-height:82px!important;width:auto;height:auto;object-fit:contain;float:none;margin:0;position:static}
.pcxv-marka{grid-area:marka;min-width:0}
.pcxv-marka b{display:block;font-size:19px;line-height:1.25;color:#1A1C20}
.pcxv-chip{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:2px 8px 2px 6px;background:#E8F2EC;color:#1E5C39;font-size:12px;font-weight:700;line-height:1.5}
.pcxv-chip svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4}

/* ---- oferta ---- */
.pcxv-oferta{grid-area:oferta;min-width:0}
.pcxv-oferta strong{display:block;font:900 20px/1.2 "Roboto",Arial,sans-serif;color:#1A1C20}
.pcxv-oferta span{display:block;margin-top:2px;font-size:14px;font-weight:500;color:#3A3D44}
.pcxv-fakty{grid-area:fakty;margin:4px 0 0;font-size:13px;line-height:1.5;color:#5D6169}
.pcxv-fakty i{font-style:normal;color:#C8C9C4;margin:0 6px}

/* ---- akcja ---- */
.pcxv-akcja{grid-area:akcja;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding-left:2px}
.pcxv-cta{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 14px;background:#F6C400;color:#1A1C20!important;font-weight:900;font-size:14px;text-transform:uppercase;letter-spacing:.03em;text-decoration:none!important;text-align:center}
.pcxv-cta:hover{background:#1B1E24;color:#F6C400!important}
.pcxv-rec{display:flex;align-items:center;justify-content:center;gap:6px;min-height:32px;color:#1F5FAD!important;font-size:14px;font-weight:700;text-decoration:none}
.pcxv-rec:hover{text-decoration:underline}

/* ---- warunki ---- */
.pcxv-war{grid-area:war;margin:6px 0 0 62px;font-size:13px;color:#5D6169}
.pcxv-war summary{display:inline-flex;align-items:center;gap:6px;min-height:30px;cursor:pointer;font-weight:700;color:#3A3D44;list-style:none}
.pcxv-war summary::-webkit-details-marker{display:none}
.pcxv-war summary::after{content:"";width:6px;height:6px;border-right:2px solid #5D6169;border-bottom:2px solid #5D6169;transform:rotate(45deg) translateY(-2px)}
.pcxv-war[open] summary::after{transform:rotate(-135deg)}
.pcxv-war p{margin:4px 0 2px;line-height:1.55}

/* ---- pokaz wszystkie ---- */
.pcxv-lista>li.pcxv-ukr{display:none}
.pcxv-dol{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;margin-top:6px}
.pcxv-all{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.pcxv-wiecej{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;background:#1B1E24;color:#fff;font-weight:700;font-size:14px;cursor:pointer}
.pcxv-wiecej::after{content:"";width:7px;height:7px;border-right:2px solid #F6C400;border-bottom:2px solid #F6C400;transform:rotate(45deg) translateY(-2px)}
.pcxv-nota{margin:0;font-size:12px;line-height:1.5;color:#6B6F76}
.pcxv:has(.pcxv-all:checked) .pcxv-lista>li.pcxv-ukr{display:grid}
.pcxv:has(.pcxv-all:checked) .pcxv-wiecej{display:none}
/* filtry po pokaz wszystkie: wybrany filtr chowa niepasujące wśród widocznych (ukryty ogon zostaje ukryty) */
.pcxv:has(.pcxv-fx-sport:checked) .pcxv-lista>li:not(.pcxv-m-sport),.pcxv:has(.pcxv-fx-ue:checked) .pcxv-lista>li:not(.pcxv-m-ue),
.pcxv:has(.pcxv-fx-spiny:checked) .pcxv-lista>li:not(.pcxv-m-spiny),.pcxv:has(.pcxv-fx-duzy:checked) .pcxv-lista>li:not(.pcxv-m-duzy){display:none}

/* ---- mobilny ---- */
@media (max-width:939px){
  .pcxv-lista>li.pcxv-poz{grid-template-columns:40px 80px minmax(0,1fr);grid-template-areas:"nr logo marka" "nr logo oferta" "fakty fakty fakty" "akcja akcja akcja" "war war war";gap:6px 16px;padding:14px 16px 12px 0}
  .pcxv-logo{width:80px;height:80px}
  .pcxv-logo img{max-width:68px!important;max-height:68px!important}
  .pcxv-fakty,.pcxv-akcja,.pcxv-war{margin-left:16px}
  .pcxv-akcja{flex-direction:row;padding-left:0}
  .pcxv-cta{flex:1 1 auto}
  .pcxv-rec{padding:0 6px}
  .pcxv:has(.pcxv-all:checked) .pcxv-lista>li.pcxv-ukr{display:grid}
}
@media (max-width:640px){
  .pcxv{padding:16px 12px 14px;margin-left:calc(var(--wnetrze,16px) * -1 + 4px);margin-right:calc(var(--wnetrze,16px) * -1 + 4px)}
  .pcxv-tyt{font-size:20px}
  .pcxv-filtry{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .pcxv-filtry::-webkit-scrollbar{display:none}
  .pcxv-filtry label{flex:0 0 auto;white-space:nowrap;min-height:44px}
  .pcxv-lista>li.pcxv-poz{grid-template-columns:34px 64px minmax(0,1fr);gap:4px 12px;padding-right:12px}
  .pcxv-nr{width:34px;height:48px;font-size:16px}
  .pcxv-logo{width:64px;height:64px}
  .pcxv-logo img{max-width:54px!important;max-height:54px!important}
  .pcxv-marka b{font-size:17px}
  .pcxv-oferta strong{font-size:17px}
  .pcxv-fakty,.pcxv-akcja,.pcxv-war{margin-left:12px}
  .pcxv-akcja{flex-direction:column}
  .pcxv-dol{flex-direction:column;align-items:stretch}
  .pcxv-wiecej{justify-content:center}
}
