/* Referência: design-system FERJ. Seletores restritos aos layouts confirmados/prévia. */
html[data-portal-layout^="ferj-"]{--blue:#003ddc;--dark:#061689;--cyan:#00aed7;--neon:#39ff14;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--soft:#f3f4f6}
html[data-portal-layout^="ferj-"] body{background:#f3f4f6;font-size:18px}
html[data-portal-layout^="ferj-"] .app-shell{max-width:1200px;padding:32px 24px 48px}
html[data-portal-layout^="ferj-"][data-portal-width="ampla"] .app-shell{max-width:1440px}
html[data-portal-layout^="ferj-"] .hero{padding:8px 0 30px;background:transparent;border-radius:0;box-shadow:none;border-bottom:1px solid var(--line);color:var(--dark)}
html[data-portal-layout^="ferj-"] .hero h1{font-size:48px;line-height:1.05;text-transform:uppercase;font-weight:800}
html[data-portal-layout^="ferj-"] .hero p{font-size:14px;color:var(--muted)}
html[data-portal-layout^="ferj-"] .hero>div>span{color:var(--muted);font-size:18px;font-weight:400}
html[data-portal-layout^="ferj-"] .hero-count{background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--dark)}
html[data-portal-layout^="ferj-"] .hero-count span{font-size:14px}
html[data-portal-layout^="ferj-"] .hero-competition-name{color:var(--dark)}
html[data-portal-layout^="ferj-"] .site-header{background:var(--dark);box-shadow:none}
html[data-portal-layout^="ferj-"] .site-utility-nav a.is-active{border-radius:0;border-bottom:3px solid var(--neon)}
html[data-portal-layout^="ferj-"] .games-section{margin-top:30px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
html[data-portal-layout^="ferj-"] .games-section>.section-head{display:grid;grid-template-columns:1fr;gap:24px}
html[data-portal-layout^="ferj-"] .section-head h2{color:var(--dark);font-size:32px;text-transform:uppercase;font-weight:800}
html[data-portal-layout^="ferj-"] .matches-title-row h2::before{content:"";display:inline-block;width:6px;height:26px;margin-right:12px;background:var(--neon);vertical-align:-2px}
html[data-portal-layout^="ferj-"] .games-section .section-head small{color:var(--muted);font-size:14px}
html[data-portal-layout^="ferj-"] .match-filters{width:100%;max-width:none;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff;gap:16px}
html[data-portal-layout^="ferj-"] .games-section .competition-filter>span{color:var(--muted);font-size:14px}
html[data-portal-layout^="ferj-"] .competition-controls{grid-template-columns:minmax(180px,1fr) minmax(240px,2fr)}
html[data-portal-layout^="ferj-"] .competition-filter select,html[data-portal-layout^="ferj-"] .competition-search,html[data-portal-layout^="ferj-"] .search-box{min-height:44px;font-size:16px;border:1px solid var(--line);border-radius:8px;box-shadow:none}
html[data-portal-layout^="ferj-"] .status-tabs{display:flex;flex-wrap:wrap;width:auto;padding:0;gap:8px;border:0;background:transparent}
html[data-portal-layout^="ferj-"] .games-section .status-tabs a{min-height:44px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--dark);font-size:14px;padding:8px 16px}
html[data-portal-layout^="ferj-"] .games-section .status-tabs a.is-active{background:var(--dark);color:#fff;border-color:var(--dark);box-shadow:none}
html[data-portal-layout^="ferj-"] .status-tabs a.is-active[href*="ao_vivo"]{background:#dc2626;border-color:#dc2626}
html[data-portal-layout^="ferj-"] .match-list{gap:20px;align-items:start}
html[data-portal-layout^="ferj-"] .match-card{padding:22px;gap:16px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:none;transform:none;align-content:start}
html[data-portal-layout^="ferj-"] .match-card::before{display:none}
html[data-portal-layout^="ferj-"] .match-card:hover{border-color:#9ca3af;box-shadow:0 4px 14px #0616890a;transform:none}
html[data-portal-layout^="ferj-"] .match-card.is-live{border-left:4px solid #dc2626;background:#fff;box-shadow:none}
html[data-portal-layout^="ferj-"] .match-competition{color:var(--dark);font-size:14px;font-weight:800;letter-spacing:.025em;line-height:1.4}
html[data-portal-layout^="ferj-"] .match-heading{gap:10px;padding-bottom:12px;font-size:14px}
html[data-portal-layout^="ferj-"] .match-heading time{margin-left:0;font-size:14px}
html[data-portal-layout^="ferj-"] .round-label{padding:0;border-radius:0;background:transparent;color:var(--muted)}
html[data-portal-layout^="ferj-"] .live-badge{background:#fee2e2;color:#b91c1c;font-size:14px}
html[data-portal-layout^="ferj-"] .live-badge i{animation:none;background:#dc2626}
html[data-portal-layout^="ferj-"] .teams{display:grid;grid-template-columns:minmax(0,1fr) 64px;grid-template-rows:auto auto;gap:12px;text-align:left}
html[data-portal-layout^="ferj-"] .teams>strong{grid-column:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-width:0;font-size:22px;font-weight:700;line-height:1.2}
html[data-portal-layout^="ferj-"] .teams>strong:first-child{grid-row:1}
html[data-portal-layout^="ferj-"] .teams>strong:last-child{grid-row:2}
html[data-portal-layout^="ferj-"] .teams>strong img{width:36px;height:36px;object-fit:contain;flex:0 0 36px}
html[data-portal-layout^="ferj-"] .team-name{justify-content:flex-start;gap:6px;text-align:left;min-width:0}
html[data-portal-layout^="ferj-"] .teams>b{grid-column:2;grid-row:1/3;align-self:stretch;display:grid;align-content:center;gap:12px;position:relative;min-width:0;padding:0;background:transparent;color:var(--dark);font-size:24px;line-height:36px;text-align:center;border-radius:0}
html[data-portal-layout^="ferj-"] .teams>b::before{content:attr(data-home-score)}
html[data-portal-layout^="ferj-"] .teams>b::after{content:attr(data-away-score)}
html[data-portal-layout^="ferj-"] .teams [data-score-value]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-portal-layout^="ferj-"] .teams .score-last-update{position:absolute;top:100%;right:0;min-width:150px;background:#fff;color:var(--muted);font-size:12px;line-height:16px}
html[data-portal-layout^="ferj-"] .teams .score-updating{position:absolute;top:-14px;right:0;font-size:12px;line-height:14px;color:var(--muted)}
html[data-portal-layout^="ferj-"] .stats-link{width:26px;height:26px;border-radius:50%;background:transparent;color:var(--muted)}
html[data-portal-layout^="ferj-"] .stats-link .material-icons-round{font-size:18px}
html[data-portal-layout^="ferj-"] .match-venue{justify-content:flex-start;font-size:14px;font-weight:400;line-height:1.4}
html[data-portal-layout^="ferj-"] .match-scale{padding-top:14px}
html[data-portal-layout^="ferj-"] .match-scale h3{color:var(--dark);font-size:16px;text-transform:uppercase}
html[data-portal-layout^="ferj-"] .match-scale-list dt,html[data-portal-layout^="ferj-"] .match-scale-list dd{font-size:14px}
html[data-portal-layout^="ferj-"] .match-scale-list>div:nth-child(odd){background:#f9fafb}
html[data-portal-layout^="ferj-"] .match-actions{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;padding-top:12px;border-top:1px solid var(--line)}
html[data-portal-layout^="ferj-"] .match-actions .pdf-button{min-height:44px;padding:8px 14px;border:1px solid var(--dark);border-radius:999px;background:#fff;color:var(--dark);font-size:14px}
html[data-portal-layout^="ferj-"] .match-actions .pdf-button:hover{background:var(--dark);color:#fff}
html[data-portal-layout^="ferj-"] .match-actions .watch-button{background:var(--neon);color:var(--dark);border-color:var(--neon)}
html[data-portal-layout^="ferj-"] .portal-loading{background:var(--dark);border-radius:10px;box-shadow:none}
html[data-portal-layout^="ferj-"] .view-switcher{display:none}
html[data-portal-layout="ferj-cards"] .match-list{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-portal-layout="ferj-agenda"] .match-list,html[data-portal-layout="ferj-lista"] .match-list{grid-template-columns:1fr}
html[data-portal-layout="ferj-agenda"] .match-card{grid-template-columns:170px minmax(0,1fr) minmax(200px,.8fr);column-gap:24px;align-items:start}
html[data-portal-layout="ferj-agenda"] .match-competition{grid-column:2;grid-row:1}
html[data-portal-layout="ferj-agenda"] .match-heading{grid-column:1;grid-row:1/3;display:grid;border:0;padding:0}
html[data-portal-layout="ferj-agenda"] .teams{grid-column:2;grid-row:2}
html[data-portal-layout="ferj-agenda"] .match-venue{grid-column:3;grid-row:1}
html[data-portal-layout="ferj-agenda"] .match-actions{grid-column:3;grid-row:2;display:flex;flex-wrap:wrap;border:0;padding:0}
html[data-portal-layout="ferj-agenda"] .match-scale{grid-column:2/4}
html[data-portal-layout="ferj-lista"] .match-list{gap:0;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
html[data-portal-layout="ferj-lista"] .match-card{grid-template-columns:minmax(200px,.6fr) minmax(0,1fr);border:0;border-radius:0;border-bottom:1px solid var(--line);column-gap:32px}
html[data-portal-layout="ferj-lista"] .match-card:last-child{border-bottom:0}
html[data-portal-layout="ferj-lista"] .match-heading{grid-column:1;grid-row:2;align-self:start;border:0}
html[data-portal-layout="ferj-lista"] .teams{grid-column:2;grid-row:1/3}
html[data-portal-layout="ferj-lista"] .match-scale{grid-column:1/-1}
html[data-portal-layout="ferj-lista"] .match-actions{display:flex;flex-wrap:wrap}
html[data-portal-layout^="ferj-"][data-portal-density="compacta"] .match-card{padding:16px;gap:12px}
html[data-portal-layout^="ferj-"][data-portal-density="compacta"] .match-scale-list>div{padding:5px 8px}
@media(max-width:900px){html[data-portal-layout^="ferj-"] .competition-controls{grid-template-columns:1fr}html[data-portal-layout="ferj-agenda"] .match-card{grid-template-columns:130px minmax(0,1fr)}html[data-portal-layout="ferj-agenda"] .match-venue,html[data-portal-layout="ferj-agenda"] .match-actions,html[data-portal-layout="ferj-agenda"] .match-scale{grid-column:1/-1;grid-row:auto}}
@media(max-width:760px){html[data-portal-layout^="ferj-"] .app-shell{padding:24px 14px}html[data-portal-layout^="ferj-"] .hero h1{font-size:36px}html[data-portal-layout^="ferj-"] .match-list{grid-template-columns:1fr}html[data-portal-layout^="ferj-"] .match-card{display:grid;grid-template-columns:minmax(0,1fr);padding:18px;gap:14px}html[data-portal-layout^="ferj-"] .match-card>div,html[data-portal-layout^="ferj-"] .match-card>section{grid-column:1;grid-row:auto}html[data-portal-layout^="ferj-"] .match-heading{display:flex;flex-direction:row;flex-wrap:wrap}html[data-portal-layout^="ferj-"] .teams>strong{font-size:20px}html[data-portal-layout^="ferj-"] .match-filters{padding:14px}html[data-portal-layout^="ferj-"] .games-section .status-tabs a{font-size:14px;padding:8px 12px}html[data-portal-layout^="ferj-"] .filter-lower-row{display:grid;grid-template-columns:1fr}html[data-portal-layout^="ferj-"] .site-header{background:var(--dark)}html[data-portal-layout^="ferj-"] .site-utility-nav a.is-active{color:var(--dark)}}
