/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --bg:            #f4f6fa;
  --bg-raised:     #e9eef6;
  --bg-card:       #ffffff;
  --bg-card-hover: #f1f5fb;
  --stroke:        #cbd6e4;
  --stroke-soft:   #dce4ee;

  --text:          #092957;
  --text-dim:      #536b88;
  --text-faint:    #8294ad;

  --accent:        #5ee6c8;   /* signature teal — used sparingly */
  --accent-dim:    #d8e9ff;

  /* position colors: functional coding, not decoration */
  --pos-gk:  #e0b64c;
  --pos-df:  #5aa9e6;
  --pos-mf:  #6ee69a;
  --pos-fw:  #e6626b;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(94,230,200,0.05), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(94,169,230,0.04), transparent 45%);
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
img{ display:block; max-width:100%; }

.shell{ max-width:1240px; margin:0 auto; padding:0 22px; }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar{
  position:sticky; top:0; z-index:50;
  background:#062b61;
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:4px solid #0c5cc9;
}
.topbar-row{
  height:64px;
  display:flex; align-items:center; gap:36px;
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand-mark{
  position:relative; width:52px; height:52px; overflow:hidden;
  background:#fff;
  border:1px solid rgba(255,255,255,.55); border-radius:50%;
  color:#08110f;
  font-family:var(--font-display); font-weight:700; font-size:13px;
  display:flex; align-items:center; justify-content:center;
  letter-spacing:0.3px;
}
.brand-mark img{ position:absolute; z-index:1; top:0; left:50%; width:155%; height:auto; max-width:none; transform:translateX(-50%); }
.brand-name{
  font-family:var(--font-display); font-weight:700; font-size:25px;
  letter-spacing:-0.7px; line-height:1; color:#f5f8fa;
  text-transform:uppercase;
  text-shadow:none;
}
.brand-name::first-letter{ color:var(--accent); }

.primary-nav{ display:flex; gap:2px; flex:1; }
.nav-link{
  position:relative;
  font-size:13.5px; font-weight:600; color:var(--text-dim);
  padding:9px 14px; border-radius:8px;
  transition:color .15s ease, background .15s ease;
}
.nav-link:hover{ color:var(--text); background:rgba(255,255,255,0.04); }
.nav-link.is-active{ color:var(--text); }
.nav-link.is-active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:2px; height:2px;
  background:var(--accent); border-radius:2px;
}

.topbar-actions{ display:flex; gap:6px; flex-shrink:0; }
.icon-btn{
  width:36px; height:36px; border-radius:9px;
  border:1px solid var(--stroke);
  background:var(--bg-raised); color:var(--text-dim);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:border-color .15s, color .15s, background .15s;
}
.icon-btn:hover{ color:var(--text); border-color:#39424c; background:#181d23; }
.menu-btn{ display:none; }

.search-drawer{
  max-height:0; overflow:hidden;
  border-bottom:1px solid transparent;
  transition:max-height .25s ease, border-color .25s ease;
}
.search-drawer.is-open{
  max-height:64px; border-color:var(--stroke-soft);
}
.search-drawer .shell{ padding-top:12px; padding-bottom:12px; }
#searchInput{
  width:100%; background:var(--bg-raised); border:1px solid var(--stroke);
  border-radius:9px; padding:10px 14px; color:var(--text); font-size:13.5px;
  outline:none; transition:border-color .15s;
}
#searchInput:focus{ border-color:var(--accent); }
#searchInput::placeholder{ color:var(--text-faint); }

.mobile-nav{
  display:none; flex-direction:column;
  border-top:1px solid var(--stroke-soft);
  background:var(--bg-raised);
}
.mobile-nav.is-open{ display:flex; }
.mobile-nav a{
  padding:14px 22px; font-size:14px; font-weight:600; color:var(--text-dim);
  border-bottom:1px solid var(--stroke-soft);
}
.mobile-nav a.is-active{ color:var(--accent); }

@media (max-width: 880px){
  .primary-nav{ display:none; }
  .menu-btn{ display:flex; }
}

/* Keep both header actions reachable on narrow phone viewports. */
@media (max-width: 640px){
  .shell{ padding-right:14px; padding-left:14px; }
  .topbar-row{ height:60px; gap:8px; }
  .brand{ min-width:0; gap:8px; }
  .brand-mark{ width:40px; height:40px; }
  .brand-name{
    min-width:0;
    font-size:clamp(13px, 4.2vw, 18px);
    letter-spacing:-0.45px;
    white-space:nowrap;
  }
  .topbar-actions{ margin-left:auto; gap:5px; }
  .icon-btn{ width:34px; height:34px; }
}

/* =========================================================
   CLUB HERO
   ========================================================= */
.club-hero{
  border-bottom:1px solid var(--stroke-soft);
  background:
    linear-gradient(180deg, rgba(94,230,200,0.05), transparent 70%);
}
.club-hero-row{
  padding:38px 22px 30px;
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}
.club-id{ display:flex; align-items:center; gap:18px; }
.club-crest{
  width:58px; height:58px; border-radius:14px;
  background:var(--bg-card); border:1px solid var(--stroke);
  color:var(--accent);
  font-family:var(--font-display); font-weight:700; font-size:20px;
  display:flex; align-items:center; justify-content:center;
}
.club-crest img{ width:100%; height:100%; object-fit:contain; padding:5px; }
.eyebrow{
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.8px;
  color:var(--accent); text-transform:uppercase; margin-bottom:6px;
}
.club-hero h1{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(24px, 3.4vw, 34px); letter-spacing:-0.2px;
}
.club-stats{ display:flex; gap:30px; flex-wrap:wrap; }
.club-stat{ display:flex; flex-direction:column; align-items:flex-end; }
.club-stat .n{
  font-family:var(--font-display); font-weight:700; font-size:22px; color:var(--text);
}
.club-stat .l{
  font-size:10.5px; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.6px; margin-top:2px;
}

/* =========================================================
   ROSTER CONTROLS
   ========================================================= */
.roster-controls{
  padding:34px 0 20px;
  display:flex; justify-content:space-between; align-items:flex-end; gap:18px; flex-wrap:wrap;
}
.roster-heading h2{
  font-family:var(--font-display); font-weight:600; font-size:21px;
}
.roster-heading p{ color:var(--text-dim); font-size:13px; margin-top:4px; }

.pos-filters{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  border:1px solid var(--stroke); background:var(--bg-raised); color:var(--text-dim);
  font-size:12.5px; font-weight:600; padding:8px 15px; border-radius:20px;
  cursor:pointer; transition:all .15s ease;
}
.chip:hover{ color:var(--text); border-color:#39424c; }
.chip.is-active{ background:var(--text); color:#0c0f12; border-color:var(--text); }

/* =========================================================
   ROSTER GRID + PLAYER CARD
   ========================================================= */
.roster-grid{
  padding-bottom:80px;
}
.position-section + .position-section{ margin-top:34px; }
.position-heading{
  display:flex; align-items:center; gap:10px; margin-bottom:13px;
  font:600 16px var(--font-display); color:var(--text);
}
.position-heading::after{ content:""; height:1px; flex:1; background:var(--stroke-soft); }
.position-heading span{
  order:2; display:grid; place-items:center; min-width:23px; height:21px; padding:0 6px;
  border-radius:5px; background:var(--bg-raised); color:var(--text-faint); font:700 10px var(--font-mono);
}
.position-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(215px, 1fr)); gap:16px;
}

.player-card{
  background:var(--bg-card);
  border:1px solid var(--stroke-soft);
  border-radius:var(--radius-lg);
  overflow:hidden;
  cursor:pointer;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
  --pos-color: var(--accent);
}
.player-card:hover, .player-card:focus-visible{
  transform:translateY(-3px);
  border-color:var(--pos-color);
  background:var(--bg-card-hover);
  outline:none;
}

.pc-photo{
  position:relative;
  aspect-ratio:4/4.6;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55) 100%),
    var(--bg-raised);
  overflow:hidden;
}
.pc-photo img{
  width:100%; height:100%; object-fit:cover; object-position:top center;
  filter:grayscale(0.15) contrast(1.04);
  transition:transform .35s ease;
}
.pc-photo-fallback{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-faint); font:700 34px var(--font-display);
  letter-spacing:1px;
}
.player-card:hover .pc-photo img{ transform:scale(1.045); }

.pc-number{
  position:absolute; top:10px; left:10px;
  font-family:var(--font-mono); font-weight:700; font-size:12px;
  color:#0c0f12; background:var(--pos-color);
  width:26px; height:26px; border-radius:7px;
  display:flex; align-items:center; justify-content:center;
}
.pc-pos-tag{
  position:absolute; top:10px; right:10px;
  font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:0.5px;
  color:var(--pos-color); background:rgba(12,15,18,0.72);
  border:1px solid var(--pos-color);
  padding:3px 7px; border-radius:6px;
}

.pc-body{ padding:13px 14px 15px; }
.pc-name{
  font-family:var(--font-display); font-weight:600; font-size:15.5px;
  letter-spacing:-0.1px; line-height:1.25;
}
.pc-role{ font-size:11.5px; color:var(--text-faint); margin-top:2px; }
.pc-meta{
  display:flex; align-items:center; gap:6px;
  margin-top:10px; font-size:11.5px; color:var(--text-dim);
  font-family:var(--font-mono);
}
.pc-dot{ color:var(--text-faint); }
.pc-value{ color:var(--accent); font-weight:700; }

/* position accent wiring */
.player-card[data-group="Portero"]{ --pos-color: var(--pos-gk); }
.player-card[data-group="Defensa"]{ --pos-color: var(--pos-df); }
.player-card[data-group="Centrocampista"]{ --pos-color: var(--pos-mf); }
.player-card[data-group="Delantero"]{ --pos-color: var(--pos-fw); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ border-top:1px solid #163f73; background:#062b61; }
.footer-row{
  padding:26px 22px; display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.footer-note{ font-size:12px; color:#c9ddf4; }
.footer-notice-link{
  padding:0; border:0; border-bottom:1px solid currentColor; background:transparent;
  color:#c9ddf4; cursor:pointer; font:inherit; font-size:12px;
}
.footer-notice-link:hover,.footer-notice-link:focus-visible{ color:#fff; outline:none; }
.site-notice{
  position:fixed; right:22px; bottom:22px; z-index:100; width:min(calc(100% - 40px), 420px);
  padding:0; border:1px solid #1b528d; border-radius:14px; background:#062b61;
  color:#eef7ff; box-shadow:0 22px 60px rgba(0,0,0,.45);
}
.site-notice-content{ padding:22px 24px 24px; }
.site-notice-heading{ display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:12px; }
.site-notice h2{ margin:0; font:700 17px var(--font-display); }
.site-notice p{ margin:0; color:#c9ddf4; font-size:13px; line-height:1.65; }
.site-notice a{ color:#8ee7ff; }
.site-notice-close{
  width:30px; height:30px; border:0; border-radius:50%; background:rgba(255,255,255,.1);
  color:#fff; cursor:pointer; font-size:23px; line-height:1;
}
.site-notice-close:hover,.site-notice-close:focus-visible{ background:rgba(255,255,255,.2); outline:none; }

/* =========================================================
   DETAIL OVERLAY / PANEL
   ========================================================= */
.detail-overlay{
  position:fixed; inset:0; z-index:80;
  background:rgba(6,8,10,0.72);
  backdrop-filter:blur(3px);
  display:flex; justify-content:flex-end;
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.detail-overlay.is-open{ opacity:1; pointer-events:auto; }

.detail-panel{
  width:100%; max-width:460px; height:100%;
  background:var(--bg);
  border-left:1px solid var(--stroke);
  overflow-y:auto;
  transform:translateX(100%);
  transition:transform .32s cubic-bezier(.2,.8,.3,1);
}
.detail-overlay.is-open .detail-panel{ transform:translateX(0); }

@media (max-width:560px){
  .detail-panel{ max-width:100%; }
}

.dp-hero{
  position:relative;
  height:230px;
  overflow:hidden;
  background:var(--bg-raised);
}
.dp-hero img{
  width:100%; height:100%; object-fit:cover; object-position:top center;
  filter:grayscale(0.1) contrast(1.05);
}
.dp-hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(12,15,18,0) 40%, var(--bg) 96%);
}
.dp-close{
  position:absolute; top:14px; right:14px; z-index:2;
  width:34px; height:34px; border-radius:9px;
  background:rgba(12,15,18,0.6); border:1px solid rgba(255,255,255,0.14);
  color:#fff; cursor:pointer; font-size:15px;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(6px);
}
.dp-close:hover{ background:rgba(12,15,18,0.85); }

.dp-id{
  position:absolute; left:20px; bottom:16px; z-index:2;
}
.dp-number{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:700; font-size:13px;
  width:28px; height:28px; border-radius:7px;
  background:var(--pos-color); color:#0c0f12; margin-bottom:8px;
}
.dp-id h2{
  font-family:var(--font-display); font-weight:700; font-size:24px; color:#fff;
  letter-spacing:-0.2px; text-shadow:0 2px 10px rgba(0,0,0,0.4);
}
.dp-id .dp-role{
  font-family:var(--font-mono); font-size:11.5px; color:var(--pos-color);
  font-weight:700; letter-spacing:0.5px; text-transform:uppercase; margin-top:3px;
}

.dp-body{ padding:20px 22px 44px; }

.dp-value-row{
  display:flex; justify-content:space-between; align-items:center;
  background:var(--bg-card); border:1px solid var(--stroke-soft);
  border-radius:var(--radius-md); padding:14px 16px; margin-bottom:22px;
}
.dp-value-row .label{ font-size:11px; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.5px; }
.dp-value-row .value{ font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--accent); margin-top:2px; }
.dp-value-row .flag{ font-size:22px; }

.dp-section-label{
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--text-faint); margin:22px 0 12px;
}
.dp-section-label:first-of-type{ margin-top:0; }

.dp-pitch{
  position:relative; width:100%; aspect-ratio:5/3.2;
  background:var(--bg-card); border:1px solid var(--stroke-soft); border-radius:var(--radius-md);
  overflow:hidden;
}
.dp-pitch svg{ position:absolute; inset:0; width:100%; height:100%; }
.dp-pos-dot{
  position:absolute; width:13px; height:13px; border-radius:50%;
  background:var(--pos-color);
  box-shadow:0 0 0 6px color-mix(in srgb, var(--pos-color) 22%, transparent);
  transform:translate(-50%,-50%);
}

.dp-facts{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.dp-fact{
  background:var(--bg-card); border:1px solid var(--stroke-soft); border-radius:var(--radius-sm);
  padding:11px 8px; text-align:center;
}
.dp-fact .v{ font-family:var(--font-display); font-weight:700; font-size:16.5px; }
.dp-fact .l{ font-size:9.5px; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.4px; margin-top:2px; }

.dp-stat-row{ margin-bottom:14px; }
.dp-stat-top{ display:flex; justify-content:space-between; font-size:12.5px; margin-bottom:6px; }
.dp-stat-top span{ color:var(--text-dim); }
.dp-stat-top b{ font-family:var(--font-mono); font-weight:700; color:var(--text); }
.dp-bar-track{ height:6px; border-radius:4px; background:var(--stroke-soft); overflow:hidden; }
.dp-bar-fill{
  height:100%; border-radius:4px; width:0%;
  background:var(--pos-color);
  transition:width .6s cubic-bezier(.2,.8,.3,1);
}

.dp-bio{ color:var(--text-dim); font-size:13px; line-height:1.7; }

::-webkit-scrollbar{ width:9px; }
::-webkit-scrollbar-thumb{ background:#2a3038; border-radius:5px; }
::-webkit-scrollbar-track{ background:transparent; }

@media (prefers-reduced-motion: reduce){
  *{ transition-duration:0.01ms !important; animation-duration:0.01ms !important; }
}

.detail-overlay{ justify-content:center; padding:24px; overflow-y:auto; }
.detail-panel{
  width:min(1120px, 100%); max-width:none; height:auto; min-height:0; margin:auto;
  border:1px solid var(--stroke); border-radius:18px; overflow:visible;
  background:transparent; transform:translateY(26px);
}
.detail-overlay.is-open .detail-panel{ transform:translateY(0); }
.dp-profile{ background:var(--bg); border-radius:17px; overflow:hidden; }
.dp-hero{
  height:auto; min-height:245px; padding:34px 38px; display:flex; align-items:center;
  justify-content:space-between; gap:30px; overflow:visible;
  background:linear-gradient(120deg, #171d24, #101419 65%, #121a1a);
}
.dp-hero::after{ display:none; }
.dp-player-summary{ display:flex; align-items:center; gap:22px; min-width:0; }
.dp-avatar{
  position:relative; width:138px; height:138px; flex:0 0 138px; border-radius:50%; overflow:hidden;
  border:4px solid rgba(255,255,255,.9); background:var(--bg-raised);
}
.dp-avatar img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top; }
.dp-avatar span{ position:absolute; inset:0; z-index:0; display:grid; place-items:center; color:var(--text-faint); font:700 30px var(--font-display); }
.dp-id{ position:static; min-width:0; }
.dp-kicker{ color:var(--text-dim); font:600 11px var(--font-mono); letter-spacing:.55px; text-transform:uppercase; }
.dp-kicker span,.dp-player-meta span{ color:var(--text-faint); margin:0 5px; }
.dp-id h2{ margin-top:7px; font-size:clamp(27px, 4vw, 39px); line-height:1; text-shadow:none; }
.dp-id .dp-role{ display:flex; align-items:center; gap:9px; color:var(--text-dim); margin-top:10px; font-family:var(--font-body); font-size:14px; letter-spacing:0; text-transform:none; }
.dp-role strong{ color:#0c0f12; background:var(--pos-color); padding:3px 7px; border-radius:5px; font:700 10px var(--font-mono); }
.dp-player-meta{ margin-top:14px; color:var(--text-dim); font-size:12px; white-space:nowrap; }
.dp-hero-side{ display:flex; align-items:stretch; gap:9px; flex-shrink:0; }
.dp-value-card,.dp-squad-number{ min-width:126px; padding:14px 16px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(0,0,0,.16); }
.dp-value-card span,.dp-squad-number span{ display:block; color:var(--text-faint); font-size:10px; text-transform:uppercase; letter-spacing:.7px; }
.dp-value-card b{ display:block; margin-top:5px; color:var(--accent); font:700 20px var(--font-display); }
.dp-squad-number{ min-width:76px; text-align:center; }.dp-squad-number b{ display:block; margin-top:1px; font:700 34px/1 var(--font-display); }
.dp-close{ top:15px; right:16px; border-radius:50%; font-size:23px; line-height:1; }
.dp-tabs{ display:flex; gap:30px; padding:0 38px; height:54px; border-bottom:1px solid var(--stroke); background:var(--bg-card); }
.dp-tabs button{ position:relative; border:0; background:none; color:var(--text-faint); cursor:pointer; font:600 13px var(--font-body); }
.dp-tabs button.is-active{ color:var(--text); }.dp-tabs button.is-active::after{ content:""; position:absolute; right:0; bottom:0; left:0; height:3px; background:var(--pos-color); }
.dp-content{ display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.9fr); gap:16px; padding:20px; }
.dp-main-column,.dp-side-column{ display:grid; align-content:start; gap:16px; }
.dp-card{ padding:18px; background:var(--bg-card); border:1px solid var(--stroke-soft); border-radius:12px; }
.dp-card-heading{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; font:600 14px var(--font-display); }
.dp-card-heading i{ color:var(--pos-color); font:700 11px var(--font-mono); font-style:normal; }.dp-card-heading small{ color:var(--text-faint); font:400 10px var(--font-mono); }
.dp-bio{ font-size:13px; line-height:1.72; }.dp-facts{ margin-top:18px; }.dp-fact{ background:#12161a; }.dp-fact .v{ font-size:17px; }.dp-stats{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 20px; }
.dp-stat-row{ margin:0; }.dp-pitch{ aspect-ratio:1.55; background:#15211c; }.dp-pos-dot{ display:grid; place-items:center; width:26px; height:26px; box-shadow:0 0 0 6px color-mix(in srgb,var(--pos-color) 23%,transparent); }.dp-pos-dot span{ color:#08110f; font:700 10px var(--font-mono); }
.dp-match-teams{ display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; color:var(--text-dim); font-size:12px; }.dp-match-teams span:last-child{text-align:right}.dp-match-teams b{ color:var(--text); font:700 16px var(--font-mono); }
.dp-match-rating{ display:flex; justify-content:space-between; margin-top:15px; padding-top:13px; border-top:1px solid var(--stroke-soft); color:var(--text-faint); font-size:11px; }.dp-match-rating b{ display:grid; place-items:center; width:28px; height:22px; background:var(--pos-color); border-radius:4px; color:#09100e; font:700 12px var(--font-mono); }
.dp-view-toggle,.tm-switch{
  border:1px solid rgba(255,255,255,.2); border-radius:7px; cursor:pointer;
  color:var(--text); background:rgba(255,255,255,.08); font:600 11px var(--font-body);
  padding:8px 10px;
}
.dp-view-toggle{ position:absolute; top:16px; right:58px; }
.tm-profile{ display:none; position:relative; overflow:hidden; color:#162940; background:#f5f6f7; min-height:560px; font-family:Arial,sans-serif; }
.detail-panel.show-reference .dp-profile{ display:none; }.detail-panel.show-reference .tm-profile{ display:block; }
.tm-title{ display:flex; align-items:baseline; gap:25px; padding:48px 34px 27px; border-bottom:1px solid #d8dde3; background:linear-gradient(100deg,#fff,#edf0f4); }
.tm-title span{ color:#173458; font-size:42px; font-weight:300; }.tm-title h2{ margin:0; color:#173458; font-size:clamp(30px,5vw,52px); font-weight:300; letter-spacing:-1px; }
.tm-close{ position:absolute; top:14px; right:16px; border:0; background:none; color:#173458; cursor:pointer; font-size:30px; }.tm-switch{ position:absolute; top:19px; right:57px; color:#173458; border-color:#bdc8d4; background:#fff; }
.tm-team{ display:flex; align-items:center; gap:15px; padding:22px 34px; border-bottom:1px solid #d8dde3; background:#fff; }.tm-crest{ display:grid; place-items:center; width:48px; height:48px; overflow:hidden; background:transparent; font-size:24px; }.tm-crest img{ width:100%; height:100%; object-fit:contain; }.tm-team b,.tm-team span{ display:block; }.tm-team b{ color:#1b5d96; font-size:24px; }.tm-team span{ margin-top:5px; color:#57708a; font-size:15px; }
.tm-body{ display:grid; grid-template-columns:minmax(190px,290px) 1fr; gap:30px; padding:30px 34px 40px; background:#fff; }.tm-photo{ position:relative; min-height:300px; overflow:hidden; background:linear-gradient(145deg,#d9e1e5,#6d7b84); }.tm-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top; }.tm-photo span{ position:absolute; inset:0; display:grid; place-items:center; color:#fff; font:700 60px var(--font-display); }.tm-photo b{ position:absolute; right:0; bottom:0; left:0; z-index:1; padding:14px; color:#fff; background:#2196e8; text-align:right; font-size:24px; font-weight:400; }
.tm-facts{ margin:3px 0 0; }.tm-facts div{ display:grid; grid-template-columns:145px 1fr; gap:12px; padding:13px 0; border-bottom:1px solid #e4e7eb; font-size:18px; }.tm-facts dt{ color:#536273; }.tm-facts dd{ margin:0; color:#172534; font-weight:700; }
@media (max-width:760px){
  .detail-overlay{ padding:0; }.detail-panel{ min-height:100%; border:0; border-radius:0; }.dp-profile{ min-height:100vh; border-radius:0; }
  .dp-hero{ padding:70px 22px 25px; align-items:flex-start; flex-direction:column; }.dp-avatar{ width:86px; height:86px; flex-basis:86px; }.dp-player-summary{ gap:15px; }.dp-id h2{ font-size:28px; }.dp-player-meta{ white-space:normal; line-height:1.7; }.dp-hero-side{ width:100%; }.dp-value-card{ flex:1; }.dp-squad-number{ min-width:82px; }
  .dp-tabs{ padding:0 22px; gap:24px; }.dp-content{ grid-template-columns:1fr; padding:14px; }.dp-stats{ grid-template-columns:1fr; }
  .tm-title{ padding:56px 20px 23px; gap:14px; }.tm-title span{ font-size:30px; }.tm-team{ padding:18px 20px; }.tm-team b{ font-size:19px; }.tm-body{ grid-template-columns:1fr; gap:20px; padding:20px; }.tm-photo{ min-height:260px; }.tm-facts div{ grid-template-columns:1fr; gap:3px; font-size:16px; }.tm-switch{ top:17px; right:52px; }.dp-view-toggle{ top:18px; right:57px; }
}

.detail-panel .dp-content{ grid-template-columns:1fr; }
.detail-panel .dp-stats{ grid-template-columns:1fr; }

@media (max-width:560px){
  .club-hero-row{ padding-top:28px; padding-bottom:24px; align-items:flex-start; }
  .club-stats{ width:100%; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
  .club-stat{ align-items:flex-start; }
  .footer-row{ flex-direction:column; align-items:center; text-align:center; }
}

/* Listado compacto inspirado en portales de datos deportivos. */
.roster-table-wrap{ overflow-x:auto; border:1px solid var(--stroke); border-radius:10px; background:var(--bg-card); }
.roster-table{ width:100%; min-width:720px; border-collapse:collapse; text-align:left; }
.roster-table th{ padding:11px 14px; color:var(--text-faint); background:var(--bg-raised); border-bottom:1px solid var(--stroke); font:700 10px var(--font-mono); text-transform:uppercase; }
.roster-table td{ padding:9px 14px; border-bottom:1px solid var(--stroke-soft); font-size:12px; color:var(--text-dim); }.roster-table tbody tr:last-child td{ border-bottom:0; }
.roster-table .player-card{ background:transparent; border:0; border-radius:0; cursor:pointer; transition:background .15s; }.roster-table .player-card:hover,.roster-table .player-card:focus-visible{ transform:none; outline:0; background:rgba(94,230,200,.08); }
.roster-number{ color:var(--text)!important; font:700 13px var(--font-mono)!important; }.roster-number::before{ content:'#'; color:var(--text-faint); }.roster-person{ display:flex; align-items:center; gap:10px; min-width:230px; }.roster-person b,.roster-person small{ display:block; }.roster-person b{ color:var(--accent); font-size:13px; }.roster-person small{ margin-top:2px; color:var(--text-faint); font-size:11px; }
.roster-photo{ display:grid; place-items:center; width:40px; height:42px; flex:0 0 40px; overflow:hidden; background:#062b61; border:1px solid #062b61; }.roster-photo img{ width:100%; height:100%; object-fit:cover; object-position:top; }.roster-photo-empty{ display:block; width:100%; height:100%; background:center/cover no-repeat url('images/default-player-avatar.png'); }.roster-initials{ color:var(--text-faint); font:700 12px var(--font-display); }.roster-value{ color:var(--accent)!important; font-weight:700; white-space:nowrap; }.roster-position{ color:var(--text)!important; font:700 11px var(--font-mono)!important; }
@media (max-width:760px){ .roster-table{ min-width:620px; }.roster-table th,.roster-table td{ padding:8px 10px; } }

/* Paleta clara: blanco y azul rey. */
:root{ --accent:#1266d6; }
body{ background-image:linear-gradient(180deg,#eef3fa 0,var(--bg) 310px); }
.primary-nav .nav-link{ color:#d7e6fb; font-weight:700; }.primary-nav .nav-link:hover,.primary-nav .nav-link.is-active{ color:#fff; background:rgba(255,255,255,.12); }.primary-nav .nav-link.is-active::after{ background:#5ba7ff; }
.icon-btn{ border-color:rgba(255,255,255,.24); background:rgba(255,255,255,.12); color:#fff; }.icon-btn:hover{ color:#fff; border-color:#fff; background:rgba(255,255,255,.22); }
.club-hero{ background:linear-gradient(105deg,#fff,#edf4ff); }
.club-hero > .club-hero-row{ display:none; }.club-transfer-summary{ display:grid; grid-template-columns:auto minmax(330px,1fr) 285px; align-items:center; padding:25px 22px; gap:24px; }.club-title-row{ display:flex; align-items:center; gap:16px; }.club-title-row h1{ color:#062b61; font-size:clamp(28px,3vw,42px); }.club-title-row .eyebrow{ color:#2674ca; }.club-title-row .club-crest{ width:92px; height:92px; border-radius:0; background:#fff; border-color:#cfdae8; }.club-summary{ min-width:0; }.club-quick-stats{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--stroke); background:#fff; }.club-quick-stats div{ min-height:58px; padding:10px 13px; border-right:1px solid var(--stroke-soft); border-bottom:1px solid var(--stroke-soft); }.club-quick-stats div:nth-child(2n){ border-right:0; }.club-quick-stats div:nth-last-child(-n+2){ border-bottom:0; }.club-quick-stats b,.club-quick-stats span{ display:block; }.club-quick-stats b{ color:#1266d6; font:700 20px var(--font-display); }.club-quick-stats span,.club-details{ color:var(--text-dim); font-size:10.5px; }.club-details{ display:flex; gap:12px; flex-wrap:wrap; padding:10px 2px 0; }.club-details b{ color:var(--text); }.competition-card{ display:flex; align-items:center; gap:12px; padding:16px; background:#fff; border:1px solid var(--stroke); }.competition-icon{ display:grid; place-items:center; width:52px; height:52px; color:#1266d6; background:transparent; font-size:25px; overflow:hidden; }.competition-icon img{ width:100%; height:100%; object-fit:contain; padding:0; }.competition-card b,.competition-card span,.competition-card small{ display:block; }.competition-card b{ color:#1266d6; font-size:15px; }.competition-card span{ margin-top:4px; color:var(--text-dim); font-size:11px; }.competition-card small{ margin-top:6px; color:var(--text-faint); font-size:10px; }
.club-value-card{ grid-column:3; justify-self:end; width:225px; margin-top:-24px; padding:13px 18px; color:#fff; background:#57a1f8; text-align:right; }.club-value-card b{ font:300 48px/1 var(--font-display); }.club-value-card span{ margin-left:6px; font-size:21px; }.club-value-card small{ display:block; margin-top:2px; font-size:10px; }
@media (max-width:1000px){ .club-transfer-summary{ grid-template-columns:1fr 1fr; }.competition-card{ grid-column:1/-1; }.club-summary{ grid-column:2; grid-row:1; }.club-value-card{ grid-column:2; margin-top:0; } }@media (max-width:640px){ .club-transfer-summary{ grid-template-columns:1fr; }.club-summary{ grid-column:auto; grid-row:auto; }.competition-card{ grid-column:auto; }.club-value-card{ grid-column:auto; justify-self:stretch; width:auto; margin-top:0; }.club-title-row .club-crest{ width:70px; height:70px; }.club-title-row h1{ font-size:29px; } }

.footer-disclaimer {
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.35); /* ajusta según tu paleta */
  max-width: 60ch;
  margin-top: 0.5rem;
  opacity: 0.8;
}
