#fch-gallery .club-parent-association{display:flex;align-items:center;gap:12px;margin:20px 0;padding:13px 0;border-top:1px solid #ffffff25;border-bottom:1px solid #ffffff25}
#fch-gallery .club-parent-association>div:last-child{min-width:0}
#fch-gallery .club-parent-association span{font-size:8px;letter-spacing:1px;color:#eabf78;font-weight:800}
#fch-gallery .club-parent-association p{font-size:12px;margin:5px 0 0;color:#d6e4ed}
#fch-gallery #club-association-emblem{width:60px;flex:0 0 60px}
#fch-gallery #club-association-emblem img{width:60px;height:65px;object-fit:contain}
#fch-gallery #club-association-emblem .unavailable{width:56px;height:56px;margin:0;min-width:0;border:1px solid #7b98aa;background:#17364c;border-radius:50%;display:flex;align-items:center;justify-content:center}
#fch-gallery #club-association-emblem .unavailable strong{font-size:20px}
#fch-gallery #club-association-emblem .unavailable small{display:none}
#fch-gallery .player-roster{padding:40px 4.5% 50px;background:#f2efe7;color:#0a263d}
#fch-gallery .roster-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:25px}
#fch-gallery .roster-heading h2{font:900 clamp(38px,4.7vw,65px)/.95 GalleryDisplay,Impact,sans-serif;text-transform:uppercase;margin:10px 0 0}
#fch-gallery .roster-heading .eyebrow{color:#ad1936;font-size:10px}
#fch-gallery .roster-note{max-width:280px;color:#586b78;font-size:12px;line-height:1.7;margin:0}
#fch-gallery .roster-toolbar{background:#0a263d;border-top:4px solid #e52c49;padding:20px;color:#fff}
#fch-gallery .roster-filters{display:grid;grid-template-columns:minmax(180px,1.6fr) repeat(3,minmax(115px,1fr)) auto;gap:12px;align-items:end}
#fch-gallery .roster-filters label{font:700 10px/1.5 Arial,sans-serif;letter-spacing:.5px;color:#bdd0de}
#fch-gallery .roster-filters input,#fch-gallery .roster-filters select{display:block;box-sizing:border-box;width:100%;height:45px;background:#173b54;color:#fff;border:1px solid #68879b;border-radius:0;font:400 14px Arial,sans-serif;padding:10px 12px;margin-top:7px;min-width:0}
#fch-gallery .roster-filters input::placeholder{color:#c0d0db}
#fch-gallery .roster-filters select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
#fch-gallery .roster-clear{height:45px;border:1px solid #68879b;background:transparent;color:#fff;padding:10px 16px;font-size:12px}
#fch-gallery .roster-switch{display:flex;gap:6px;margin-top:18px;flex-wrap:wrap}
#fch-gallery .roster-switch button,#fch-gallery .player-side-switch button{min-height:44px;border:1px solid #658399;background:transparent;color:#dce7ee;padding:10px 20px;font-size:13px;font-weight:700}
#fch-gallery .roster-switch button[aria-pressed=true],#fch-gallery .player-side-switch button[aria-pressed=true]{background:#e82e47;border-color:#e82e47;color:#fff}
#fch-gallery .roster-count{font-size:12px;color:#536b7a;margin:18px 0}
#fch-gallery .roster-results{display:grid;gap:18px}
#fch-gallery .roster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#fch-gallery .roster-player{background:white;min-width:0;border:1px solid #c6d1d4;border-top:3px solid #e82e47;display:flex;flex-direction:column;padding:20px;position:relative}
#fch-gallery .roster-avatar{background:linear-gradient(145deg,#214b67,#0b2941);color:#fff;width:62px;height:62px;display:grid;place-items:center;font:900 30px GalleryDisplay,Impact,sans-serif;border-radius:50%;margin-bottom:16px;border:2px solid #d5b275}
#fch-gallery .roster-identity h3{font:900 30px/1 GalleryDisplay,Impact,sans-serif;text-transform:uppercase;margin:0 0 12px;color:#0b2941;min-height:0}
#fch-gallery .roster-identity p{font-size:12px;color:#546b7b;margin:7px 0}
#fch-gallery .roster-measures{display:flex;gap:0;flex-wrap:wrap;margin:15px 0;border-top:1px solid #d4dcdf;border-bottom:1px solid #d4dcdf}
#fch-gallery .roster-measures span{font:700 11px/1.3 Arial,sans-serif;padding:12px 10px;border-right:1px solid #d4dcdf;font-variant-numeric:tabular-nums}
#fch-gallery .player-open{background:#0b2941;color:white;border:0;padding:13px 16px;min-height:44px;text-align:left;font-size:12px;font-weight:700;margin-top:auto}
#fch-gallery .roster-list{grid-template-columns:1fr;gap:8px}
#fch-gallery .roster-list .roster-player{display:grid;grid-template-columns:62px minmax(180px,1fr) minmax(190px,auto) 140px;gap:20px;align-items:center;padding:16px 20px;border-top:0;border-left:3px solid #e82e47}
#fch-gallery .roster-list .roster-avatar,#fch-gallery .roster-list .roster-measures{margin:0}
#fch-gallery .roster-list .player-open{margin:0}
#fch-gallery .roster-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
#fch-gallery .roster-cards .roster-player{border:0;padding:0;background:transparent;filter:drop-shadow(0 7px 8px #0002)}
#fch-gallery .player-front{aspect-ratio:63.5/88.9;width:100%;box-sizing:border-box;background:#0c447c;border:7px solid #fff;border-top-color:#e82e47;border-radius:10px;overflow:hidden;color:white;display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;text-align:left;max-width:380px;margin:auto}
#fch-gallery .player-portrait{position:relative;min-height:0;background:#123b5e;overflow:hidden}
#fch-gallery .player-portrait>img:first-child{display:block;width:100%;height:100%;object-fit:cover;object-position:center 18%;margin:0}
#fch-gallery .player-number{position:absolute;right:10px;top:8px;font:900 clamp(32px,4vw,60px)/1 GalleryDisplay,Impact,sans-serif;color:#ffffff4d}
#fch-gallery .player-sport{position:absolute;bottom:8px;right:9px;background:#091e33cf;color:#fff;font-size:9px;letter-spacing:.5px;padding:5px 7px;font-weight:700}
#fch-gallery .player-portrait .player-club-logo{position:absolute;left:10px;top:10px;width:43px;height:48px;object-fit:contain;filter:drop-shadow(0 2px 3px #0008)}
#fch-gallery .player-nameband{position:relative;background:#042c53;padding:10px 12px;border-top:3px solid #e82e47}
#fch-gallery .player-nameband p{font-size:8px;line-height:1.3;letter-spacing:.4px;color:#c7dff2;margin:0 25px 6px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fch-gallery .player-first{display:block;font-size:12px;margin-bottom:1px}
#fch-gallery .player-nameband strong{font:900 clamp(25px,2.8vw,38px)/.95 GalleryDisplay,Impact,sans-serif;text-transform:uppercase;display:block;overflow-wrap:anywhere}
#fch-gallery .player-position{position:absolute;right:0;top:-22px;background:#e82e47;color:#fff;font-weight:900;font-size:12px;padding:7px;max-width:95px;overflow:hidden}
#fch-gallery .player-front-stats{display:grid;grid-template-columns:repeat(3,1fr);background:#0c447c}
#fch-gallery .player-front-stats>div{padding:8px 4px;border-right:1px solid #ffffff30;text-align:center}
#fch-gallery .player-front-stats strong{display:block;font:900 27px/1 GalleryDisplay,Impact,sans-serif;font-variant-numeric:tabular-nums}
#fch-gallery .player-front-stats span{font-size:8px;letter-spacing:1px;color:#d1e8fa;display:block;margin-top:4px}
#fch-gallery .player-edition{font-size:7px;text-align:center;letter-spacing:.7px;margin:0;padding:5px;background:#072640;color:#c8dded}
#fch-gallery .roster-cards .player-open{margin:9px 0 0;background:#08283e}
#fch-gallery .roster-empty{padding:35px;background:#fff;border-left:4px solid #e82e47;grid-column:1/-1;font-size:15px}
#fch-gallery .player-dialog{width:min(780px,94vw);max-height:90vh;box-sizing:border-box;border:0;border-top:5px solid #e82e47;background:#09283e;color:white;padding:22px;box-shadow:0 25px 80px #0008}
#fch-gallery .player-dialog::backdrop{background:#021425d9}
#fch-gallery .player-close{display:block;margin:0 0 15px auto;background:transparent;color:#fff;border:1px solid #7693a7;padding:10px 16px;min-height:44px}
#fch-gallery .player-side-switch{display:flex;justify-content:center;gap:8px;margin-bottom:20px}
#fch-gallery .player-dialog .player-front{max-width:330px}
#fch-gallery .player-dialog .player-nameband strong{font-size:37px}
#fch-gallery .player-back{background:#f1efe8;color:#183046;padding:24px;min-height:350px;border-radius:8px;border-left:5px solid #e82e47}
#fch-gallery .player-back .eyebrow{font-size:10px;color:#ac1633}
#fch-gallery .player-back h3{font:900 36px/1 GalleryDisplay,Impact,sans-serif;text-transform:uppercase;margin:10px 0 15px;color:#08283e}
#fch-gallery .player-back p{font-size:12px;line-height:1.6}
#fch-gallery .player-bio{border-top:1px solid #bac7cc;padding-top:12px;color:#526576}
#fch-gallery .player-table-wrap{overflow-x:auto;max-width:100%;margin-top:20px}
#fch-gallery .player-back table{border-collapse:collapse;width:100%;font:11px/1.5 Arial,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
#fch-gallery .player-back caption{text-align:left;font-size:10px;font-weight:800;letter-spacing:1px;padding-bottom:10px}
#fch-gallery .player-back th,#fch-gallery .player-back td{padding:8px 7px;text-align:right;border-bottom:1px solid #c2d0d6}
#fch-gallery .player-back th:first-child{text-align:left}
#fch-gallery .player-back thead{background:#dce8ee}
#fch-gallery .player-total{font-weight:800;background:#e1e5df}
#fch-gallery .player-back .player-source{font-size:10px;margin:18px 0 0;color:#536674}
#fch-gallery .player-roster :focus-visible{outline:3px solid #d79c29;outline-offset:3px}
@container gallery (max-width:1050px){#fch-gallery .roster-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#fch-gallery .roster-clear{grid-column:2}#fch-gallery .roster-cards{grid-template-columns:repeat(3,minmax(0,1fr))}#fch-gallery .roster-list .roster-player{grid-template-columns:55px 1fr auto}#fch-gallery .roster-list .roster-measures{grid-column:2}#fch-gallery .roster-list .player-open{grid-column:3;grid-row:1/3}}
@container gallery (max-width:700px){#fch-gallery .player-roster{padding:27px 5%}#fch-gallery .roster-heading{display:block}#fch-gallery .roster-note{margin-top:15px;max-width:none}#fch-gallery .roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#fch-gallery .roster-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#fch-gallery .roster-list .roster-player{grid-template-columns:50px minmax(0,1fr);gap:12px}#fch-gallery .roster-list .player-open{grid-column:1/-1;grid-row:auto}#fch-gallery .roster-list .roster-measures{grid-column:1/-1}#fch-gallery .player-nameband{padding:8px}#fch-gallery .player-front-stats strong{font-size:23px}}
@container gallery (max-width:460px){#fch-gallery .roster-grid,#fch-gallery .roster-cards{grid-template-columns:1fr}#fch-gallery .roster-cards .roster-player{max-width:330px;width:100%;justify-self:center}#fch-gallery .roster-toolbar{padding:16px}#fch-gallery .roster-filters{gap:12px}#fch-gallery .roster-filters label:first-child{grid-column:1/-1}#fch-gallery .roster-filters input,#fch-gallery .roster-filters select{font-size:16px}#fch-gallery .roster-switch{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}#fch-gallery .roster-switch button{padding:10px 5px;font-size:12px}#fch-gallery .player-nameband strong{font-size:36px}}

#fch-gallery .player-sport{bottom:35px}

/* Retrato compartido por lista, fichas y coleccionables. */
#fch-gallery .roster-avatar{position:relative;overflow:hidden;border-radius:8px;width:76px;height:88px;display:block;flex-shrink:0;box-sizing:border-box}
#fch-gallery .roster-avatar img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 18%;margin:0}
#fch-gallery .roster-jersey{position:absolute;bottom:0;right:0;padding:3px 6px;background:#e82e47;color:#fff;font:800 11px/1.4 Arial,sans-serif}
#fch-gallery .roster-grid .roster-avatar{width:100%;height:180px;border:0;border-bottom:3px solid #d5b275;border-radius:4px}
#fch-gallery .roster-grid .roster-avatar img{object-fit:contain;object-position:center top}
#fch-gallery .roster-list .roster-player{grid-template-columns:76px minmax(180px,1fr) minmax(190px,auto) 140px}
@container gallery (max-width:1050px){#fch-gallery .roster-list .roster-player{grid-template-columns:76px 1fr auto}}
@container gallery (max-width:700px){#fch-gallery .roster-list .roster-player{grid-template-columns:64px minmax(0,1fr)}#fch-gallery .roster-list .roster-avatar{width:64px;height:78px}}

/* Dropdowns propios: controles y opciones diseñados, sin select nativo. */
#fch-gallery .roster-dropdown-field{min-width:0}
#fch-gallery .roster-filter-label{display:block;font:700 10px/1.5 Arial,sans-serif;letter-spacing:.5px;color:#bdd0de}
#fch-gallery .roster-dropdown{position:relative;margin-top:7px}
#fch-gallery .roster-dropdown-trigger{width:100%;min-height:45px;background:#173b54;border:1px solid #68879b;color:#fff;padding:11px 34px 11px 12px;text-align:left;font:400 14px Arial,sans-serif;position:relative}
#fch-gallery .roster-dropdown-trigger:after{content:'';position:absolute;right:14px;top:16px;width:7px;height:7px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
#fch-gallery .roster-dropdown-trigger[aria-expanded=true]{border-color:#eabf78;background:#21475e}
#fch-gallery .roster-dropdown-trigger[aria-expanded=true]:after{transform:rotate(225deg);top:20px}
#fch-gallery .roster-dropdown-menu{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 5px);background:#0c293e;border:1px solid #7c9caf;box-shadow:0 12px 24px #0006;padding:5px;max-height:260px;overflow:auto}
#fch-gallery .roster-dropdown-option{display:block;width:100%;text-align:left;color:#e7f0f6;background:transparent;border:0;border-left:3px solid transparent;padding:12px 10px;min-height:44px;font:400 14px Arial,sans-serif}
#fch-gallery .roster-dropdown-option[aria-selected=true]{background:#274b61;border-left-color:#ef3652;font-weight:700}
#fch-gallery .roster-dropdown-option:hover,#fch-gallery .roster-dropdown-option:focus{background:#385f75;color:white;outline:2px solid #eabf78;outline-offset:-2px}
@container gallery (max-width:460px){#fch-gallery .roster-dropdown-trigger,#fch-gallery .roster-dropdown-option{font-size:16px}}
#fch-gallery .roster-player .player-engagement{margin-top:15px;min-width:0}
#fch-gallery .roster-player .player-engagement>.social-links{min-height:36px;margin:0 0 12px}
#fch-gallery .roster-player .player-engagement>.social-links[hidden]{display:flex!important}
#fch-gallery .player-engagement .social-links .social-control{width:36px;height:36px;min-height:36px;flex-basis:36px;padding:8px;border-color:#183b5650;background:#15374b08}
#fch-gallery .player-engagement .social-links .social-icon{filter:none;width:18px;height:18px;min-width:18px}
#fch-gallery .player-engagement .social-demo-group{color:#526777}
#fch-gallery .player-engagement .tribune.tribune-compact{background:#09283e;color:white;padding:13px;margin:0;border-top:2px solid #d6b16e;display:block}
#fch-gallery .player-engagement .tribune-intro{display:none}
#fch-gallery .player-engagement .tribune-figures{margin:0 0 10px}
#fch-gallery .player-engagement .tribune-stat{padding:8px 4px;min-height:67px}
#fch-gallery .player-engagement .tribune-stat strong{font-size:28px}
#fch-gallery .player-engagement .tribune-stat span{font-size:8px}
#fch-gallery .player-engagement .tribune-stat small{font-size:9px}
#fch-gallery .player-engagement .applause-button{min-height:40px;font-size:17px;padding:8px}
#fch-gallery .player-engagement .tribune-status{color:#bbccd8;font-size:9px;line-height:1.5}
#fch-gallery .roster-list .player-engagement{grid-column:1/-1;display:grid;grid-template-columns:minmax(140px,1fr) minmax(270px,1.3fr);gap:18px;border-top:1px solid #ccd8df;padding-top:12px;margin-top:0;align-items:center}
#fch-gallery .roster-cards .player-engagement{margin-top:10px}
#fch-gallery .roster-cards .player-engagement>.social-links{padding:0 6px}
#fch-gallery .player-dialog .player-engagement{margin-top:20px;max-width:100%}
#fch-gallery .player-dialog .player-engagement .social-links{margin:0 0 12px;min-height:36px}
#fch-gallery .player-dialog .player-engagement .social-links .social-control{background:#ffffff12;border-color:#7e9bad}
#fch-gallery .player-dialog .player-engagement .social-links .social-icon{filter:invert(1)}
#fch-gallery .player-dialog .player-engagement .social-demo-group{color:#bbccd8}
@container gallery (max-width:700px){#fch-gallery .roster-list .player-engagement{display:block}}

/* Interacción del jugador: franja ligera, sin repetir un marcador de estadio. */
#fch-gallery .player-engagement{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#fch-gallery .roster-player .player-engagement{border-top:1px solid #d2dce2;padding-top:12px;margin-top:14px}
#fch-gallery .roster-player .player-engagement>.social-links{margin:0;min-height:32px;gap:5px}
#fch-gallery .player-engagement .social-links .social-control{width:30px;height:30px;min-height:30px;flex-basis:30px;padding:6px}
#fch-gallery .player-engagement .social-links .social-icon{width:15px;height:15px;min-width:15px}
#fch-gallery .player-engagement .tribune.tribune-player{background:transparent;border:0;box-shadow:none;padding:0;margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#17394f;flex:1 1 215px;min-width:0}
#fch-gallery .tribune-player:before,#fch-gallery .tribune-player:after{display:none}
#fch-gallery .player-engagement .tribune-player .tribune-figures{display:flex;align-items:center;gap:10px;background:transparent;border:0;margin:0;flex:1}
#fch-gallery .player-engagement .tribune-player .tribune-stat{display:flex;flex-direction:row;align-items:baseline;gap:4px;min-height:0;padding:0;border:0;background:transparent;text-align:left;flex-wrap:wrap}
#fch-gallery .player-engagement .tribune-player .tribune-stat strong{font:800 14px/1.3 Arial,sans-serif;color:#14384f}
#fch-gallery .player-engagement .tribune-player .tribune-stat span{font:400 10px/1.3 Arial,sans-serif;letter-spacing:0;color:#506777}
#fch-gallery .player-engagement .tribune-player .tribune-stat small{display:none}
#fch-gallery .player-engagement .tribune-player .tribune-action{display:contents}
#fch-gallery .player-engagement .tribune-player .applause-button{background:#f0f4f5;border:1px solid #9cb1be;color:#17394f;font:700 11px/1.3 Arial,sans-serif;letter-spacing:0;text-transform:none;padding:8px 10px;min-height:36px;width:auto;margin:0;box-shadow:none;white-space:nowrap}
#fch-gallery .player-engagement .tribune-player .applause-button:before{font-size:13px;margin-right:4px}
#fch-gallery .player-engagement .tribune-player.has-applauded .applause-button{background:#e3eee9;color:#245d4a;border-color:#b0c8bc}
#fch-gallery .player-engagement .tribune-player .tribune-status{flex-basis:100%;font:400 10px/1.4 Arial,sans-serif;color:#4e6778;margin:0}
#fch-gallery .player-engagement .tribune-player .tribune-status:empty{display:none}
#fch-gallery .roster-list .player-engagement{display:flex;grid-column:2/-1;gap:15px;margin:0;padding-top:10px}
#fch-gallery .roster-list .tribune-player{flex:0 1 370px;margin-left:auto!important}
#fch-gallery .roster-cards .player-engagement>.social-links{padding:0}
#fch-gallery .player-dialog .player-engagement{border-top:1px solid #ffffff30;padding-top:15px}
#fch-gallery .player-dialog .player-engagement .tribune-player .tribune-stat strong{color:#f1f5f7}
#fch-gallery .player-dialog .player-engagement .tribune-player .tribune-stat span,#fch-gallery .player-dialog .player-engagement .tribune-player .tribune-status{color:#b9ccd9}
#fch-gallery .player-dialog .player-engagement .social-links{margin:0}
@container gallery (max-width:700px){#fch-gallery .roster-list .player-engagement{grid-column:1/-1;display:flex}#fch-gallery .roster-list .tribune-player{flex:1 1 215px}}

#fch-gallery .player-engagement .tribune.tribune-player{flex-direction:row;width:auto;justify-content:space-between}
#fch-gallery .roster-list .player-engagement .tribune.tribune-player{flex:0 1 390px}
#fch-gallery .player-engagement .tribune-player .tribune-figures{flex:1 1 130px}
#fch-gallery .analytics-choice{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;background:#112e43;color:#d8e4ec;padding:14px;font:12px/1.5 Arial,sans-serif}
#fch-gallery .analytics-choice button{background:transparent;color:#fff;border:1px solid #86a2b5;min-height:40px;padding:9px 12px;font-size:12px}
#fch-gallery .analytics-choice button[aria-pressed=true]{background:#31536a;border-color:#d6b16e}

/* Live roster refresh sits on the light heading, outside the dark filter bar. */
#fch-gallery .roster-heading .roster-clear{flex-shrink:0;background:#0b2a40;color:#fff;border-color:#0b2a40;font-weight:700}
#fch-gallery .roster-heading .roster-clear:hover{background:#b71236;border-color:#b71236}
#fch-gallery .roster-heading .roster-clear:focus-visible{outline:3px solid #d5a54f;outline-offset:3px}
