
.ruefa-cup{--navy:#071a3a;--blue:#164f9b;--line:#dfe8f0;--text:#25394d;--muted:#708195;max-width:1180px;margin:28px auto 46px;color:var(--text)}.ruefa-cup *{box-sizing:border-box}.ruefa-cup-page .entry-title,.ruefa-cup-page .page-title,.ruefa-cup-page h1.wp-block-post-title,.ruefa-cup-page main>article>header h1{display:none!important}.ruefa-cup-page .current-menu-item>a,.ruefa-cup-page .current_page_item>a{background:#fff!important;color:#102b43!important;border-radius:12px!important}.ruefa-cup-hero{background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;border-radius:18px;padding:24px 26px;box-shadow:0 16px 38px rgba(5,37,63,.14);position:relative;overflow:hidden}.ruefa-cup-hero:after{content:"";position:absolute;width:220px;height:220px;border:32px solid rgba(255,255,255,.06);border-radius:50%;right:-70px;top:-84px}.ruefa-cup-kicker{font-size:11px;letter-spacing:.12em;font-weight:900;color:#a9d8ff;margin-bottom:7px}.ruefa-cup-hero h2{margin:0;font-size:clamp(25px,4vw,38px);color:#fff}.ruefa-cup-hero p{margin:10px 0 0;color:#e3f0fa;font-size:14px}.ruefa-cup-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:30px 0 12px}.ruefa-cup-head h3{font-size:24px;margin:0;color:#122f49}.ruefa-cup-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.ruefa-cup-source{font-size:11px;color:#7e8fa0;text-align:right}.ruefa-cup-card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px rgba(23,55,83,.06);overflow:hidden}.ruefa-cup-scroll{overflow-x:auto}.ruefa-cup-table{width:100%;border-collapse:collapse;min-width:790px}.ruefa-cup-table th{background:#f5f8fb;color:#6a7c8e;text-transform:uppercase;font-size:10px;padding:11px 10px;border-bottom:1px solid var(--line);text-align:center}.ruefa-cup-table th.club,.ruefa-cup-table td.club{text-align:left}.ruefa-cup-table td{padding:9px 10px;border-bottom:1px solid #edf2f6;text-align:center;font-size:13px}.ruefa-cup-table td.rank{width:44px;font-weight:900;position:relative}.ruefa-cup-table td.points{font-size:15px;font-weight:950}.ruefa-cup-table tr.zone-top8 td.rank:before,.ruefa-cup-table tr.zone-playoff td.rank:before,.ruefa-cup-table tr.zone-out td.rank:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px}.ruefa-cup-table tr.zone-top8 td.rank:before{background:#26a269}.ruefa-cup-table tr.zone-playoff td.rank:before{background:#e5a600}.ruefa-cup-table tr.zone-out td.rank:before{background:#cbd4dd}.ruefa-cup-team{display:flex;align-items:center;gap:9px;min-width:0}.ruefa-cup-team strong{font-size:13px;color:#20384e;white-space:nowrap}.ruefa-cup-logo{width:30px;height:30px;flex:0 0 30px;object-fit:contain}.ruefa-cup-logo-fallback{width:30px;height:30px;border-radius:8px;background:#eef3f7;color:#56708a;display:grid;place-items:center;font-size:9px;font-weight:900}.ruefa-cup-tabs{display:flex;gap:7px;overflow-x:auto;padding:3px 1px 10px}.ruefa-cup-tab{border:1px solid #cbdbe8;background:#fff;color:#3a5971;border-radius:10px;padding:9px 13px;font-size:12px;font-weight:900;white-space:nowrap;cursor:pointer}.ruefa-cup-tab.active{background:var(--blue);border-color:var(--blue);color:#fff}.ruefa-cup-round{display:none}.ruefa-cup-round.active{display:block}.ruefa-cup-round h4{font-size:18px;color:#16344e}.ruefa-cup-fixtures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ruefa-cup-fixture{display:grid;grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);align-items:center;gap:8px;padding:11px 12px;border:1px solid #e2ebf2;border-radius:12px;background:#fff;min-height:69px}.ruefa-cup-side{display:flex;align-items:center;gap:7px;min-width:0}.ruefa-cup-side.away{justify-content:flex-end;text-align:right}.ruefa-cup-side.away .ruefa-cup-logo,.ruefa-cup-side.away .ruefa-cup-logo-fallback{order:2}.ruefa-cup-center{text-align:center;font-size:10px;color:#8292a0}.ruefa-cup-center strong{display:block;font-size:14px;color:#173751}.ruefa-cup-center .score{font-size:17px;color:var(--blue)}@media(max-width:760px){.ruefa-cup{max-width:none;width:auto;margin:10px 8px 24px}.ruefa-cup-hero{padding:18px 16px;border-radius:16px}.ruefa-cup-head{flex-direction:column;align-items:flex-start;margin:18px 0 10px}.ruefa-cup-source{text-align:left}.ruefa-cup-card{border-radius:12px}.ruefa-cup-table{min-width:700px}.ruefa-cup-fixtures{grid-template-columns:1fr}.ruefa-cup-fixture{grid-template-columns:minmax(0,1fr) 61px minmax(0,1fr);padding:10px}.ruefa-cup-tabs{padding-bottom:8px}.ruefa-cup-round h4{margin:10px 0 12px}}

.ruefa-cup-page .entry-content > h1:first-child,.ruefa-cup-page .page-content > h1:first-child,.ruefa-cup-page .wp-block-post-content > h1:first-child,.ruefa-cup-page .inside-article .entry-content > h1:first-child,.ruefa-cup-page article .entry-content > h1:first-child,.ruefa-cup-page .site-main h1:first-child{display:none!important}

.ruefa-cup-hero-meta{margin-top:14px;display:flex;flex-direction:column;gap:10px}.ruefa-cup-hero-note,.ruefa-cup-hero-source{margin:0;color:rgba(255,255,255,.96);font-size:16px;line-height:1.55}.ruefa-cup-hero-source{font-size:15px;color:rgba(255,255,255,.88)}.ruefa-cup-head p,.ruefa-cup-head .ruefa-cup-source{display:none}@media(max-width:760px){.ruefa-cup-hero-meta{margin-top:12px;gap:8px}.ruefa-cup-hero-note,.ruefa-cup-hero-source{font-size:14px;line-height:1.5}.ruefa-cup-hero-source{font-size:13px}}

body.ruefa-cup-page h1{display:none!important}.ruefa-cup-card--table{margin-top:26px}


/* MOBILE EDGE FIX: prawie cala szerokosc ekranu, bez zewnetrznego bialego kafla strony. */
@media (max-width:760px){
 body.ruefa-cup-page .site-content,
 body.ruefa-cup-page .content-area,
 body.ruefa-cup-page .site-main,
 body.ruefa-cup-page main,
 body.ruefa-cup-page article,
 body.ruefa-cup-page .inside-article,
 body.ruefa-cup-page .entry-content,
 body.ruefa-cup-page .wp-block-post-content{
   width:100%!important;max-width:none!important;
   margin-left:0!important;margin-right:0!important;
   padding-left:0!important;padding-right:0!important;
   background:transparent!important;box-shadow:none!important;
   border:0!important;border-radius:0!important;
 }
 body.ruefa-cup-page .ruefa-cup{
   width:calc(100vw - 8px)!important;max-width:none!important;
   margin:6px 4px 20px!important;padding:0!important;
 }
 body.ruefa-cup-page .ruefa-cup-hero{
   width:100%!important;margin:0!important;padding:15px 11px!important;
   border-radius:12px!important;
 }
 body.ruefa-cup-page .ruefa-cup-hero h2{font-size:clamp(24px,8vw,34px)!important;line-height:1.05!important}
 body.ruefa-cup-page .ruefa-cup-hero-meta{width:100%!important;max-width:none!important;margin-top:11px!important;gap:7px!important}
 body.ruefa-cup-page .ruefa-cup-hero-note,
 body.ruefa-cup-page .ruefa-cup-hero-source{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
 body.ruefa-cup-page .ruefa-cup-card{
   width:100%!important;margin:10px 0 0!important;
   border-left:0!important;border-right:0!important;
   border-radius:0!important;box-shadow:none!important;background:transparent!important;
 }
 body.ruefa-cup-page .ruefa-cup-scroll{width:100%!important;margin:0!important}
 body.ruefa-cup-page .ruefa-cup-head{margin-left:2px!important;margin-right:2px!important}
 body.ruefa-cup-page .ruefa-cup-tabs,
 body.ruefa-cup-page .ruefa-cup-round{margin-left:0!important;margin-right:0!important}
}


/* MOBILE KEY COLUMNS: na pierwszym widoku widoczne tylko pozycja, klub i PKT. */
@media (max-width:760px){
 body.ruefa-cup-page .ruefa-cup-scroll{overflow-x:hidden!important}
 body.ruefa-cup-page .ruefa-cup-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(3),
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(4),
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(5),
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(6),
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(7),
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(8),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(3),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(4),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(5),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(6),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(7),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(8){display:none!important}
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(1),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(1){width:38px!important;min-width:38px!important;padding:8px 4px!important}
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(2),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(2){width:auto!important;min-width:0!important;padding:8px 5px!important}
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(9),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(9){display:table-cell!important;width:54px!important;min-width:54px!important;padding:8px 4px!important;text-align:center!important}
 body.ruefa-cup-page .ruefa-cup-team{gap:7px!important;min-width:0!important}
 body.ruefa-cup-page .ruefa-cup-team strong{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.15!important;font-size:13px!important}
 body.ruefa-cup-page .ruefa-cup-logo,
 body.ruefa-cup-page .ruefa-cup-logo-fallback{width:26px!important;height:26px!important;flex:0 0 26px!important}
 body.ruefa-cup-page .ruefa-cup-table td.points{font-size:15px!important;font-weight:950!important}
}


/* MOBILE SWIPE TABLE:
   pierwszy widok: # | KLUB | PKT
   po przesunieciu palcem w lewo: M | Z | R | P | BRAMKI | +/-
*/
@media (max-width:760px){
 body.ruefa-cup-page .ruefa-cup-scroll{
   overflow-x:auto!important;
   overflow-y:visible!important;
   -webkit-overflow-scrolling:touch!important;
   scrollbar-width:thin;
 }
 body.ruefa-cup-page .ruefa-cup-table{
   width:max-content!important;
   min-width:760px!important;
   table-layout:auto!important;
   border-collapse:collapse!important;
 }
 body.ruefa-cup-page .ruefa-cup-table thead,
 body.ruefa-cup-page .ruefa-cup-table tbody{
   display:block!important;
   width:max-content!important;
   min-width:760px!important;
 }
 body.ruefa-cup-page .ruefa-cup-table tr{
   display:flex!important;
   width:max-content!important;
   min-width:760px!important;
   align-items:stretch!important;
 }
 body.ruefa-cup-page .ruefa-cup-table th,
 body.ruefa-cup-page .ruefa-cup-table td{
   display:flex!important;
   align-items:center!important;
   justify-content:center!important;
   flex:0 0 auto!important;
 }
 /* # */
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(1),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(1){
   order:1!important;width:38px!important;min-width:38px!important;
   padding:8px 4px!important;
 }
 /* Klub */
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(2),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(2){
   order:2!important;width:calc(100vw - 100px)!important;
   min-width:235px!important;max-width:300px!important;
   justify-content:flex-start!important;text-align:left!important;
   padding:8px 6px!important;
 }
 /* PKT - specjalnie jako 3. kolumna na mobile */
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(9),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(9){
   order:3!important;display:flex!important;
   width:54px!important;min-width:54px!important;
   padding:8px 4px!important;text-align:center!important;
 }
 /* dalsze kolumny po przesunieciu */
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(3),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(3){order:4!important;width:48px!important;min-width:48px!important;display:flex!important}
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(4),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(4){order:5!important;width:48px!important;min-width:48px!important;display:flex!important}
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(5),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(5){order:6!important;width:48px!important;min-width:48px!important;display:flex!important}
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(6),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(6){order:7!important;width:48px!important;min-width:48px!important;display:flex!important}
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(7),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(7){order:8!important;width:78px!important;min-width:78px!important;display:flex!important}
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(8),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(8){order:9!important;width:58px!important;min-width:58px!important;display:flex!important}
 body.ruefa-cup-page .ruefa-cup-team{width:100%!important;min-width:0!important}
 body.ruefa-cup-page .ruefa-cup-team strong{
   white-space:normal!important;overflow-wrap:anywhere!important;
   line-height:1.15!important;font-size:13px!important;
 }
}


/* MOBILE FIRST VIEW v2:
   pierwszy ekran: # | KLUB | M | PKT | BRAMKI
   po przesunieciu w lewo: Z | R | P | +/-
*/
@media (max-width:760px){
 body.ruefa-cup-page .ruefa-cup-table{
   min-width:640px!important;
 }
 body.ruefa-cup-page .ruefa-cup-table thead,
 body.ruefa-cup-page .ruefa-cup-table tbody,
 body.ruefa-cup-page .ruefa-cup-table tr{
   min-width:640px!important;
 }
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(1),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(1){
   order:1!important;width:34px!important;min-width:34px!important;
   padding:8px 3px!important;
 }
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(2),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(2){
   order:2!important;
   width:calc(100vw - 195px)!important;
   min-width:155px!important;max-width:230px!important;
   padding:8px 5px!important;
 }
 /* M */
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(3),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(3){
   order:3!important;width:36px!important;min-width:36px!important;display:flex!important;
 }
 /* PKT */
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(9),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(9){
   order:4!important;width:44px!important;min-width:44px!important;display:flex!important;
   font-weight:950!important;
 }
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(9){
   color:#20384e!important;
 }
 /* BRAMKI */
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(7),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(7){
   order:5!important;width:72px!important;min-width:72px!important;display:flex!important;
 }
 /* po przesunieciu */
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(4),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(4){
   order:6!important;width:42px!important;min-width:42px!important;display:flex!important;
 }
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(5),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(5){
   order:7!important;width:42px!important;min-width:42px!important;display:flex!important;
 }
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(6),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(6){
   order:8!important;width:42px!important;min-width:42px!important;display:flex!important;
 }
 body.ruefa-cup-page .ruefa-cup-table th:nth-child(8),
 body.ruefa-cup-page .ruefa-cup-table td:nth-child(8){
   order:9!important;width:52px!important;min-width:52px!important;display:flex!important;
 }
 body.ruefa-cup-page .ruefa-cup-team strong{
   font-size:12px!important;line-height:1.1!important;
 }
 body.ruefa-cup-page .ruefa-cup-logo,
 body.ruefa-cup-page .ruefa-cup-logo-fallback{
   width:24px!important;height:24px!important;flex-basis:24px!important;
 }
}


/* LEAGUE HERO BRANDING – UEFA CHAMPIONS LEAGUE */
.ruefa-cup-hero{
  background:
    radial-gradient(circle at 88% 22%,rgba(124,88,255,.40) 0,rgba(124,88,255,0) 30%),
    linear-gradient(135deg,#06173c 0%,#123b8e 58%,#4b2a9f 100%)!important;
  border:1px solid rgba(137,180,255,.24);
  isolation:isolate;
}
.ruefa-cup-hero:after{
  border-color:rgba(255,255,255,.045)!important;
}
.ruefa-cup-hero > :not(.ruefa-cup-hero-logo){
  position:relative;
  z-index:2;
}
.ruefa-cup-kicker{color:#b9d7ff!important}
.ruefa-cup-hero-logo{
  position:absolute;
  z-index:1;
  right:28px;
  top:50%;
  width:172px;
  height:172px;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:.28;
}
.ruefa-cup-hero-logo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:brightness(0) invert(1);
}
.ruefa-cup-hero h2,
.ruefa-cup-hero .ruefa-cup-kicker,
.ruefa-cup-hero .ruefa-cup-hero-meta{max-width:78%}
@media(max-width:760px){
 .ruefa-cup-hero-logo{
   right:5px;top:12px;transform:none;
   width:106px;height:106px;opacity:.16;
 }
 .ruefa-cup-hero h2,
 .ruefa-cup-hero .ruefa-cup-kicker,
 .ruefa-cup-hero .ruefa-cup-hero-meta{max-width:100%}
}
