/* FULBO 3.61 · País de origen opcional y ranking anónimo de nacionalidades. */
.profile-dialog .profile-country-field{display:grid;gap:8px;min-width:0;font-weight:800}
.profile-dialog .profile-country-field select{
 width:100%;min-width:0;max-width:100%;min-height:49px;padding:11px 12px;
 border-radius:9px;box-sizing:border-box;background:var(--surface);color:var(--ink);
 border:1px solid var(--line);font-size:15px;font-weight:650;text-overflow:ellipsis
}
.profile-dialog .profile-optional{font-size:12px;font-weight:700;color:var(--muted);display:inline}
.profile-dialog .profile-country-note{margin:-7px 0 4px;font-size:12px;line-height:1.5;color:var(--muted)}
.fan-nations-section{min-width:0}
.fan-nations-section .v2-header{align-items:flex-start;gap:10px}
.fan-nations-section .v2-header p{line-height:1.5}
.fan-country-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 14px}
.fan-country-stats>div{border:1px solid var(--line);border-radius:10px;background:var(--panel2);padding:12px;min-width:0}
.fan-country-stats strong{display:block;font-size:24px;font-weight:850;color:var(--ink);font-variant-numeric:tabular-nums}
.fan-country-stats span{display:block;color:var(--muted);font-size:12px;line-height:1.35}
.fan-country-board{border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
.fan-country-row{display:grid;grid-template-columns:27px 30px minmax(0,1fr) 52px;gap:9px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);min-height:60px}
.fan-country-row:last-child{border-bottom:0}
.fan-country-position{font-weight:800;color:var(--accent);font-variant-numeric:tabular-nums;text-align:center}
.fan-country-flag{font-size:23px;line-height:1;text-align:center}
.fan-country-name{min-width:0;display:grid;gap:7px}
.fan-country-name strong{font-size:14px;line-height:1.25;overflow-wrap:break-word;color:var(--ink)}
.fan-country-track{height:6px;background:var(--line);border-radius:99px;overflow:hidden}
.fan-country-track>span{display:block;height:100%;border-radius:99px;background:var(--accent)}
.fan-country-totals{text-align:right;display:grid;gap:3px}
.fan-country-totals strong{color:var(--ink);font-weight:850;font-size:17px;font-variant-numeric:tabular-nums}
.fan-country-totals small{color:var(--muted);font-weight:750;font-size:11px;white-space:nowrap}
.fan-country-invite{padding:11px 12px;background:var(--panel2);border-radius:8px;line-height:1.6;color:var(--ink);font-size:13px}
.fan-country-action{border:0;background:none;color:var(--accent);font:inherit;font-weight:800;text-decoration:underline;cursor:pointer;padding:0 4px}
html[data-visual="pcf5"] .profile-dialog .profile-country-field select{
 background:#fff!important;color:#1e355b!important;-webkit-text-fill-color:#1e355b!important;
 border:1px solid #8aa1c6!important;box-shadow:none!important;color-scheme:light
}
html[data-visual="pcf5"] .profile-dialog .profile-country-field,
html[data-visual="pcf5"] .profile-dialog .profile-country-note,
html[data-visual="pcf5"] .profile-dialog .profile-optional{color:#243c65!important;text-shadow:none!important}
html[data-visual="pcf5"] .fan-nations-section :is(.fan-country-name strong,.fan-country-totals strong,.fan-country-stats strong,.fan-country-invite){color:#182f51!important;text-shadow:none!important}
html[data-visual="pcf5"] .fan-nations-section .fan-country-position{color:#2557a0!important;text-shadow:none!important}
@media(max-width:760px){
 .profile-dialog .profile-country-field select{font-size:16px;min-height:50px}
 .profile-dialog .profile-country-note{font-size:13px;line-height:1.5}
 .fan-country-stats strong{font-size:21px}.fan-country-stats span{font-size:12px}
 .fan-country-row{grid-template-columns:22px 27px minmax(0,1fr) 47px;gap:6px;padding:12px 8px}
 .fan-country-name strong{font-size:13px}
 .fan-country-flag{font-size:21px}
 .fan-country-totals strong{font-size:15px}
}

/* Perfil compacto: jerarquía clara y escudo del club persistente. */
.profile-dialog .profile-email-title{
 font-size:12px!important;font-weight:800!important;letter-spacing:.02em!important;
 text-transform:none!important;
}
.profile-dialog .profile-email-address{
 overflow-wrap:anywhere;word-break:normal;line-height:1.3!important;
}
.profile-dialog .profile-join-line{
 margin:10px 0 0!important;font-size:15px!important;line-height:1.45!important;
}
.profile-dialog .profile-join-line strong{font-weight:850!important}
.profile-dialog .club-choice .profile-club-identity{
 display:inline-flex;align-items:center;gap:10px;min-width:0;max-width:100%;
}
.profile-dialog .club-choice .profile-club-identity>.tiny-crest,
.profile-dialog .club-choice .profile-club-identity>.tiny-crest-fallback,
.profile-dialog .club-choice .profile-club-identity>.crest-slot{
 width:30px!important;height:30px!important;flex:0 0 30px!important;
 object-fit:contain;
}
.profile-dialog .club-choice .profile-club-detail{
 display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;
 font-size:13px;line-height:1.3;
}
.profile-dialog .club-choice .profile-club-detail small{
 color:var(--muted);font-size:12px;font-weight:650;
}
.profile-dialog .profile-club-results:empty{display:none!important}
.profile-dialog .profile-country-field select:has(option[value=""]:checked){
 color:var(--muted);
}
html[data-visual="pcf5"] .profile-dialog :is(.profile-email-title,.profile-join-line,.profile-join-line strong){
 color:#1e3967!important;text-shadow:none!important;
}
html[data-visual="pcf5"] .profile-dialog .profile-club-detail small{
 color:#304d74!important;text-shadow:none!important;
}
@media(max-width:760px){
 .profile-dialog .profile-email-title{font-size:13px!important}
 .profile-dialog .profile-join-line{font-size:16px!important}
 .profile-dialog .club-choice .profile-club-detail{font-size:14px}
}

/* Perfil 3.62 · primero usuario, luego correo bloqueado y selectores. */
.profile-dialog .profile-form-compact{padding-top:18px!important;gap:16px!important}
.profile-dialog .profile-form-compact label{min-width:0}
.profile-dialog .profile-form-compact #profileEmail[readonly]{
 background:var(--panel2)!important;border:1px solid var(--line)!important;
 color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;
 opacity:1!important;cursor:default;font-weight:600!important;
}
.profile-dialog .profile-join-heading{
 margin:1px 0 0;padding:0;color:var(--accent);
 font-size:clamp(16px,3.8vw,19px);font-weight:850;line-height:1.35;
}
.profile-dialog .profile-club-field{display:grid;gap:8px;min-width:0}
.profile-dialog .profile-field-title{font-size:15px;font-weight:800;line-height:1.35}
.profile-dialog .profile-club-picker{min-width:0;position:relative}
.profile-dialog .profile-club-selector{
 list-style:none;cursor:pointer;display:flex;align-items:center;
 justify-content:space-between;gap:10px;min-height:50px;
 padding:9px 13px;border:1px solid var(--line);border-radius:9px;
 background:var(--surface);box-sizing:border-box;
}
.profile-dialog .profile-club-selector::-webkit-details-marker{display:none}
.profile-dialog .profile-club-selector::marker{content:""}
.profile-dialog .profile-club-selector:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.profile-dialog .profile-club-selector:hover{border-color:var(--accent)}
.profile-dialog .profile-club-selected{flex:1;min-width:0;color:var(--ink);font-weight:700;font-size:14px}
.profile-dialog .profile-picker-chevron{
 font-size:23px;font-weight:700;flex:0 0 20px;text-align:center;
 color:var(--ink);line-height:1;transition:transform .18s ease;
}
.profile-dialog .profile-club-picker[open] .profile-picker-chevron{transform:rotate(180deg)}
.profile-dialog .profile-club-dropdown{
 padding:11px 10px 10px;border:1px solid var(--line);
 border-radius:0 0 9px 9px;background:var(--panel);
}
.profile-dialog .profile-club-search-label{display:grid;gap:6px;margin-bottom:10px;font-size:13px!important}
.profile-dialog .profile-club-search-label input{min-height:44px!important}
.profile-dialog .profile-club-results{
 display:grid;gap:4px;max-height:245px;overflow:auto;overscroll-behavior:contain;
}
.profile-dialog .profile-club-results button{display:flex;align-items:center;gap:9px;
 padding:9px 10px;border-radius:7px;border:1px solid var(--line);
 background:var(--surface);color:var(--ink);text-align:left;cursor:pointer;min-width:0}
.profile-dialog .profile-club-results button>span{min-width:0;flex:1;font-weight:700}
.profile-dialog .profile-club-results button small{font-size:11px;color:var(--muted)}
.profile-dialog .profile-club-results button:hover,
.profile-dialog .profile-club-results button:focus-visible{border-color:var(--accent)}
.profile-dialog .profile-club-selected .profile-club-identity{width:100%}
html[data-visual="pcf5"] .profile-dialog .profile-join-heading{
 color:#1e3967!important;text-shadow:none!important}
html[data-visual="pcf5"] .profile-dialog .profile-field-title{
 color:#243c65!important;text-shadow:none!important}
html[data-visual="pcf5"] .profile-dialog .profile-club-selector{
 background:#fff!important;border:1px solid #8aa1c6!important;
 box-shadow:none!important;color:#1d3256!important}
html[data-visual="pcf5"] .profile-dialog #profileEmail[readonly]{
 background:#edf3ff!important;color:#1d3256!important;
 -webkit-text-fill-color:#1d3256!important;border:1px solid #8aa1c6!important}
@media(max-width:760px){
 .profile-dialog .profile-form-compact{gap:14px!important}
 .profile-dialog .profile-field-title{font-size:15px}
 .profile-dialog .profile-join-heading{font-size:17px}
 .profile-dialog .profile-club-results{max-height:220px}
}

/* Perfil: club y país con controles visualmente equivalentes. */
.profile-dialog .profile-club-selector{
 height:50px;min-height:50px;max-height:50px;padding:8px 12px;
}
.profile-dialog .profile-club-selected .profile-club-identity{
 display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;
}
.profile-dialog .profile-club-selected .profile-club-detail{
 display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;font-size:15px;font-weight:650;line-height:1.35;
 color:var(--ink);
}
.profile-dialog .profile-club-selected .profile-club-identity :is(.tiny-crest,.tiny-crest-fallback,.crest-slot){
 width:27px!important;height:27px!important;flex:0 0 27px!important;
 object-fit:contain;
}
.profile-dialog .profile-club-selected{font-size:15px}
.profile-dialog .profile-country-field select{height:50px;min-height:50px;box-sizing:border-box}
@media(max-width:760px){
 .profile-dialog .profile-club-selector,.profile-dialog .profile-country-field select{
  height:50px;min-height:50px;
 }
 .profile-dialog .profile-club-selected .profile-club-detail{font-size:16px}
}

/* Perfil: cada club del desplegable muestra únicamente escudo y nombre. */
.profile-dialog .profile-club-results button{
 display:flex;align-items:center;gap:10px;min-height:50px;
 padding:9px 13px;box-sizing:border-box;
}
.profile-dialog .profile-club-results button .choice-logo{
 width:27px;height:27px;flex:0 0 27px;object-fit:contain;
}
.profile-dialog .profile-club-results button>span{
 flex:1;min-width:0;line-height:1.35;font-size:15px;font-weight:650;
 overflow-wrap:anywhere;
}
