.sunpad-portal-brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: #135575; text-decoration: none; }
.sunpad-portal-brand:hover { color: #135575; text-decoration: none; }
.sunpad-portal-brand__nombre { font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.sunpad-portal-brand__emblema { display: block; width: 56px; height: 56px; flex-shrink: 0; }
.sunpad-portal-brand__emblema img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sunpad-portal-brand--login { padding-left: 20px; border-left: 1px solid #dce1f0; }
.sunpad-portal-brand--header { gap: 4px; }
.sunpad-portal-brand--header .sunpad-portal-brand__emblema { width: 40px; height: 40px; }
.sunpad-portal-brand--header .sunpad-portal-brand__nombre { font-size: 16px; }
@media (max-width: 575px) {
    .sunpad-portal-brand--login { padding-left: 14px; }
    .sunpad-portal-brand--login .sunpad-portal-brand__emblema { width: 44px; height: 44px; }
    .sunpad-portal-brand--login .sunpad-portal-brand__nombre { font-size: 17px; }
}
.sunpad-zone { color: #48465b; }
.sunpad-zone [hidden] { display: none !important; }
.sunpad-zone .kt-portlet__head-title { font-size: 1.15rem; }
.sunpad-zone .kt-portlet__head { gap: 12px; }
.sunpad-zone .kt-portlet__head-label { min-width: 0; }
.sunpad-zone .kt-portlet__head-toolbar { flex-shrink: 0; }
.sunpad-zone .kt-portlet__body { padding: 25px; }
.sunpad-profile { border-top: 3px solid #5d78ff; }
.sunpad-profile--visiting { border-top-color: #ffb822; }
.sunpad-profile-grid { display: grid; grid-template-columns: minmax(280px, 1.2fr) minmax(300px, 1fr) auto; gap: 28px; align-items: center; }
.sunpad-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.sunpad-name { font-size: 1.5rem; margin: 12px 0 6px; overflow-wrap: anywhere; }
.sunpad-profile-avatar, .sunpad-profile-avatar img, .sunpad-profile-avatar > span { width: 100px !important; height: 100px !important; min-width: 100px; border-radius: 50%; object-fit: cover; }
.sunpad-profile-avatar > span { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #5d78ff; background: #eef1ff; }
.sunpad-profile-metrics { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .85fr); gap: 18px; padding: 0 25px; align-items: center; border-left: 1px solid #ebedf2; border-right: 1px solid #ebedf2; }
.sunpad-profile-metrics > div > span { color: #74788d; }
.sunpad-profile-metrics strong { display: block; margin: 7px 0 12px; font-size: 2rem; white-space: nowrap; }
.sunpad-profile-metrics small { font-size: .9rem; margin-left: 3px; color: #a2a5b9; }
.sunpad-profile-metrics .progress { height: 5px; }
.sunpad-mini { height: 20px; }
.sunpad-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #15647c; }
.sunpad-emblema { display: inline-block; width: 68px; height: 68px; flex-shrink: 0; background: url('/Content/Imgs/Sunpad/marca-original.png') -211px -8px no-repeat; }
.sunpad-profile-tabs { display: flex; gap: 28px; padding: 0 25px; border-top: 1px solid #ebedf2; flex-wrap: wrap; }
.sunpad-profile-tabs a { padding: 20px 0; color: #74788d; border-bottom: 2px solid transparent; }
.sunpad-profile-tabs a.active { color: #5d78ff; border-bottom-color: #5d78ff; }
.sunpad-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 25px; align-items: start; }
.sunpad-main-modules { min-width: 0; }
.sunpad-chart { height: 285px; position: relative; min-width: 0; }
.sunpad-chart--dynamic { cursor: grab; touch-action: pan-y; }
.sunpad-chart--dynamic:active { cursor: grabbing; }
.sunpad-chart-controls { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.sunpad-event { color: #74788d; min-height: 20px; font-size: .9rem; }
.sunpad-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 40px; border-radius: 50%; object-fit: cover; background: #eef1ff; color: #5d78ff; font-weight: 600; overflow: hidden; }
.sunpad-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sunpad-avatar-group { display: flex; align-items: center; flex-wrap: wrap; padding-left: 5px; }
.sunpad-avatar-group a, .sunpad-avatar-group button { margin-left: -5px; border: 2px solid white; border-radius: 50%; }
.sunpad-avatar-group a:hover { z-index: 1; transform: translateY(-3px); }
.sunpad-avatar-group button { width: 40px; height: 40px; background: #eef1ff; color: #5d78ff; font-weight: 600; }
.sunpad-follow-card { border: 1px solid #ebedf2; border-radius: 4px; padding: 15px; margin-bottom: 12px; }
.sunpad-follow-card:last-child { margin-bottom: 0; }
.sunpad-follow-person { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sunpad-follow-person > div { min-width: 0; flex: 1; }
.sunpad-follow-person a, .sunpad-player-name { overflow-wrap: anywhere; font-weight: 500; color: #48465b; }
.sunpad-follow-metrics { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #74788d; margin-top: 12px; }
.sunpad-follow-metrics b { color: #5d78ff; font-size: 1.15rem; }
.sunpad-follow-actions { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.sunpad-follow-module .twitter-typeahead { width: 1%; flex: 1 1 auto; min-width: 0; }
.sunpad-follow-module .tt-menu { width: 100%; min-width: 100%; max-width: 100%; margin-top: 6px; padding: 6px; background: #eef1ff; border: 1px solid #bac6ff; border-radius: 5px; box-shadow: 0 8px 22px rgba(40, 49, 90, .18); max-height: 320px; overflow-y: auto; z-index: 100; }
.sunpad-search-loading { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); z-index: 4; display: flex; color: #5d78ff; pointer-events: none; }
.sunpad-follow-module input.tt-input { padding-right: 58px; }
.sunpad-search-status { padding: 12px; color: #48465b; }
.sunpad-suggestion > div { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.sunpad-suggestion { display: flex; gap: 10px; align-items: center; padding: 12px; cursor: pointer; background: #fff; border-radius: 3px; }
.sunpad-suggestion + .sunpad-suggestion { margin-top: 4px; }
.sunpad-suggestion:hover, .sunpad-suggestion.tt-cursor { background: #dce4ff; }
.sunpad-suggestion small { display: block; color: #74788d; }
.sunpad-matches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sunpad-match { border: 1px solid #ebedf2; border-radius: 5px; overflow: hidden; background: white; min-width: 0; }
.sunpad-match-header { display: flex; align-items: center; gap: 12px; padding: 18px; background: #fafbff; border-bottom: 1px solid #ebedf2; }
.sunpad-match-image { width: 48px; height: 60px; object-fit: contain; border-radius: 4px; flex-shrink: 0; background: white; }
.sunpad-match-header > div { min-width: 0; }
.sunpad-match-title { font-size: 1.15rem; font-weight: 700; line-height: 1.45; margin: 0 0 6px; overflow-wrap: anywhere; }
.sunpad-match-meta { color: #74788d; font-size: .85rem; }
.sunpad-date-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 50px; min-width: 50px; border-radius: 50%; background: #e0f7f4; color: #0abb87; font-size: .8rem; text-transform: uppercase; }
.sunpad-date-badge b { font-size: 1.45rem; line-height: 1.2; }
.sunpad-pair { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f0f1f7; }
.sunpad-pair--winner { background: #fffaf0; border-left: 3px solid #d6a438; padding-left: 15px; }
.sunpad-pair-players { flex: 1; min-width: 0; }
.sunpad-match-player { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.sunpad-match-player:last-child { margin-bottom: 0; }
.sunpad-match-player > div { min-width: 0; flex: 1; }
.sunpad-match-player .sunpad-avatar { width: 34px; height: 34px; min-width: 34px; }
.sunpad-player-level { display: block; color: #3d55b0; font-size: 1.25rem; font-weight: 700; margin-top: 2px; line-height: 1.3; }
.sunpad-player-name { font-weight: 700; color: #304a9c; }
.sunpad-player-name:hover { color: #1d327b; }
.sunpad-score { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.sunpad-score > span { min-width: 26px; padding: 4px; text-align: center; border: 1px solid #e2e5ec; border-radius: 4px; background: white; font-size: 1.1rem; }
.sunpad-score .la-trophy { color: #b58019; font-size: 1.5rem; }
.sunpad-match-footer { padding: 12px 18px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.sunpad-match-detail .sunpad-match { border: 0; }
.sunpad-match-detail .sunpad-match-header { padding-top: 0; background: white; }
.sunpad-match-detail .sunpad-match-title { font-size: 1.35rem; font-weight: 700; }
.sunpad-match-detail .sunpad-match-player .sunpad-avatar { width: 50px; height: 50px; min-width: 50px; }
.sunpad-vista-2 .sunpad-layout { grid-template-columns: minmax(0, 1fr); }
.sunpad-vista-2 .sunpad-follow-module { order: 2; }
.sunpad-vista-2 .sunpad-follow-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sunpad-vista-2 .sunpad-follow-card { margin: 0; }
.sunpad-vista-2 .sunpad-matches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sunpad-vista-2 .sunpad-match-header { align-items: flex-start; }
.sunpad-vista-2 .sunpad-match-image { width: 60px; height: 76px; }
.sunpad-vista-2 .sunpad-date-badge { border-radius: 6px; background: #eef1ff; color: #5d78ff; }
@media (min-width: 1280px) {
    .sunpad-vista-2 .sunpad-chart-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
}
@media (max-width: 1279px) {
    .sunpad-profile-grid { grid-template-columns: minmax(0, 1fr) auto; }
    .sunpad-profile-metrics { grid-row: 2; grid-column: 1 / -1; border: 0; padding: 20px 0 0; border-top: 1px solid #ebedf2; }
    .sunpad-vista-2 .sunpad-matches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sunpad-matches { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991px) {
    .sunpad-layout { grid-template-columns: minmax(0, 1fr); }
    .sunpad-follow-module { order: 2; }
    .sunpad-vista-2 .sunpad-follow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .sunpad-zone .kt-portlet__body { padding: 18px; }
    .sunpad-profile-grid { gap: 15px; }
    .sunpad-identity { gap: 12px; }
    .sunpad-profile-avatar, .sunpad-profile-avatar img, .sunpad-profile-avatar > span { width: 60px !important; height: 60px !important; min-width: 60px; }
    .sunpad-name { font-size: 1.15rem; }
    .sunpad-brand > strong { display: none; }
    .sunpad-profile-metrics { gap: 12px; }
    .sunpad-profile-metrics strong { font-size: 1.6rem; }
    .sunpad-profile-tabs { gap: 18px; padding: 0 18px; }
    .sunpad-matches, .sunpad-vista-2 .sunpad-matches, .sunpad-vista-2 .sunpad-follow-list { grid-template-columns: minmax(0, 1fr); }
    .sunpad-match-header { gap: 10px; padding: 14px; }
    .sunpad-pair { padding: 14px; gap: 8px; }
    .sunpad-score { gap: 3px; }
    .sunpad-score > span { min-width: 23px; }
    .sunpad-chart { height: 240px; }
    .sunpad-zone .form-group, .sunpad-zone .row > div { margin-bottom: 12px !important; }
}

#sunpadPortletJugadores { scroll-margin-top: 150px; }

/* SUNPAD: jerarquía de indicadores y alternativa de partido a tres columnas. */
.sunpad-identity > div { min-width: 0; }
.sunpad-federation > span { min-width: 0; overflow-wrap: anywhere; }
.sunpad-federation { display: flex; align-items: flex-start; gap: 8px; }
.sunpad-federation-flag { width: 25px; height: 18px; object-fit: contain; flex-shrink: 0; margin-top: 2px; }
.sunpad-profile-metrics .sunpad-profile-level { padding: 12px; background: #f3f5ff; border-radius: 6px; }
.sunpad-profile-metrics .sunpad-profile-level strong { font-size: 4rem; line-height: 1.15; font-weight: 700; margin: 6px 0 8px; }
.sunpad-profile-metrics .sunpad-profile-reliability strong { font-size: 1.9rem; }
.sunpad-profile-metrics .sunpad-profile-progress strong { font-size: 1.2rem; font-weight: 500; color: #74788d; }
.sunpad-profile-metrics .sunpad-profile-progress > span { font-size: .85rem; }
.sunpad-profile-progress .progress { height: 3px; }
.sunpad-duel { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 10px; padding: 12px; align-items: stretch; }
.sunpad-duel-side { min-width: 0; padding: 12px 6px; border-top: 2px solid transparent; border-radius: 5px; position: relative; }
.sunpad-duel-side--winner { border-top-color: #d6a438; background: #fffaf0; }
.sunpad-duel .sunpad-match-player { flex-direction: column; text-align: center; gap: 6px; margin-bottom: 18px; }
.sunpad-duel .sunpad-match-player:last-child { margin-bottom: 0; }
.sunpad-duel .sunpad-match-player .sunpad-avatar { width: 42px; height: 42px; min-width: 42px; }
.sunpad-duel .sunpad-player-name { font-size: .95rem; line-height: 1.35; display: block; }
.sunpad-duel .sunpad-player-level { font-size: 1.4rem; }
.sunpad-winner-icon { display: block; color: #b58019; text-align: center; font-size: 1.4rem; margin-bottom: 8px; }
.sunpad-duel-side:not(.sunpad-duel-side--winner) { padding-top: 40px; }
.sunpad-duel-score { align-self: center; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.sunpad-duel-set { display: grid; grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr); align-items: center; gap: 3px; padding: 5px 0; border-bottom: 1px solid #ebedf2; }
.sunpad-duel-set strong { font-size: 1.5rem; color: #48465b; }
.sunpad-duel-set .sunpad-set-winner { color: #9b6a13; }
.sunpad-duel-set > span { color: #a2a5b9; }
.sunpad-subheader .kt-subheader__main { flex-wrap: wrap; }
@media (max-width: 767px) {
    .sunpad-vista-2 .sunpad-matches { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
    .sunpad-subheader > .kt-container { flex-wrap: wrap; }
    .sunpad-subheader .kt-subheader__toolbar { display: flex; width: 100%; justify-content: flex-start; padding-top: 8px; }
    .sunpad-subheader .kt-subheader__toolbar .btn-group { margin-left: 0; }
    .sunpad-profile-metrics { gap: 10px; }
    .sunpad-profile-metrics .sunpad-profile-level { padding: 9px; }
    .sunpad-profile-metrics .sunpad-profile-level strong { font-size: 3.4rem; }
    .sunpad-profile-metrics .sunpad-profile-reliability strong { font-size: 1.7rem; }
    .sunpad-profile-metrics .sunpad-profile-progress strong { font-size: 1.1rem; }
    .sunpad-profile-metrics .sunpad-profile-level > span { font-size: .85rem; }
    .sunpad-duel { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 6px; padding: 10px 8px; }
    .sunpad-duel-side { padding-right: 4px; padding-left: 4px; }
    .sunpad-duel-set strong { font-size: 1.3rem; }
    .sunpad-pair--winner { padding-left: 11px; }
}
@media (max-width: 359px) {
    .sunpad-identity { flex-direction: column; align-items: flex-start; }
    .sunpad-profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sunpad-profile-metrics .sunpad-profile-level { grid-column: 1 / -1; }
    .sunpad-duel { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); }
}

.sunpad-level-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.sunpad-level-line .sunpad-player-level { margin: 0; }
.sunpad-change { display: inline-flex; align-items: center; gap: 1px; font-size: .8rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.sunpad-change i { font-size: .95rem; }
.sunpad-zone .sunpad-change--up.kt-font-accent { color: #0abb87 !important; }
.sunpad-change--flat { min-width: 10px; text-align: center; }
.sunpad-rating-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 7px; width: 100%; max-width: 180px; }
.sunpad-rating-metric { min-width: 0; cursor: help; }
.sunpad-rating-track { height: 5px; background: #ebedf2; border-radius: 2px; overflow: hidden; margin-bottom: 3px; }
.sunpad-rating-fill { display: block; height: 100%; }
.sunpad-rating-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px; font-size: .75rem; line-height: 1.3; }
.sunpad-rating-value { color: #74788d; white-space: nowrap; }
.sunpad-rating-caption .sunpad-change { font-size: .72rem; }
.sunpad-rating-caption .sunpad-change i { font-size: .8rem; }
.sunpad-duel .sunpad-level-line { justify-content: center; }
.sunpad-duel .sunpad-rating-metrics { margin-left: auto; margin-right: auto; }
@media (max-width: 575px) {
    .sunpad-duel .sunpad-rating-metrics { grid-template-columns: minmax(0, 1fr); max-width: 90px; gap: 6px; }
}
