:root{--ink:#121212;--muted:#6c757d;--soft:#f6f7f8;--line:#e9ecef;--accent:#79b829}body{background:#fbfbfa;color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}.card{border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px rgba(0,0,0,.035)}.btn{border-radius:999px}.hero{background:linear-gradient(135deg,#f5f8f0,#fff);border:1px solid var(--line);border-radius:24px}.tournament-img{height:180px;object-fit:cover;border-radius:16px}.match-card{border:1px solid #e7e7e7;border-radius:16px;padding:12px;background:white;min-width:260px}.player-row{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:12px;background:#f8f9fa;margin-bottom:6px}.winner{background:#edf7e8;font-weight:700}.bracket{display:flex;gap:28px;overflow:auto;padding-bottom:20px}.round{min-width:280px}.badge-soft{background:#f2f4f5;color:#222}.table td,.table th{vertical-align:middle}.form-section{background:white;border:1px solid var(--line);border-radius:18px;padding:20px;margin-bottom:18px}

/* V5 - marcador minimalista tipo tenis profesional: fecha + torneo + filas jugador/bandera/score */
.match-card.score-style{background:#fff;border:1px solid #edf0f2;border-radius:18px;padding:14px 16px;box-shadow:0 10px 26px rgba(0,0,0,.035);min-width:320px}.match-mini-header{display:flex;align-items:center;gap:10px;justify-content:space-between;color:#64748b;font-size:.86rem;margin-bottom:12px}.match-mini-header strong{color:#0f172a;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.score-player-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;gap:12px}.player-left{display:flex;align-items:center;gap:10px;min-width:0}.avatar{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#0b2559;color:#fff;font-weight:700;font-size:.9rem;box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}.flag{font-size:1.35rem;line-height:1}.player-name{font-weight:700;color:#006a9e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:175px}.player-level{color:#64748b;font-weight:600}.winner-check{color:#0f9f52;font-size:1.15rem;font-weight:800}.score-cells{display:grid;grid-template-columns:repeat(3,24px);gap:8px;align-items:center;text-align:center}.set-score{font-size:1.18rem;line-height:1;font-weight:800;color:#00005a}.muted-score{color:#cbd5e1}.match-note{border-top:1px solid #f1f5f9;margin-top:8px;padding-top:8px;color:#64748b;font-size:.86rem}.admin-match-form{border-top:1px dashed #e2e8f0;padding-top:12px}@media (max-width:520px){.match-mini-header{align-items:flex-start;flex-direction:column;gap:2px}.player-name{max-width:145px}.score-cells{grid-template-columns:repeat(3,20px);gap:5px}.optional-score{display:none}}

.club-navbar{background:#2f7d32!important;box-shadow:0 6px 18px rgba(0,0,0,.08)}.club-navbar .navbar-brand,.club-navbar .nav-link{color:#fff!important}.club-navbar .dropdown-menu{border-radius:16px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:34px;font-size:1rem}.btn-lg.icon-btn{min-height:48px;font-size:1.05rem}.btn .ico,.dropdown-item .ico{display:inline-block;min-width:1.25rem;text-align:center}.dropdown-item{font-size:1.1rem}.dropdown-item:hover{background:#edf7e8}

/* V13 - responsive público y cuadro tipo ATP con ramas */
.public-hero-atp{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(135deg,#1f6f2d 0%,#2f7d32 48%,#93c53d 100%);color:#fff;border:0;box-shadow:0 16px 40px rgba(22,80,38,.18)}
.public-hero-atp:after{content:"";position:absolute;right:-80px;top:-90px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.12)}
.public-hero-atp .lead{color:rgba(255,255,255,.85)!important}.tournament-card-atp{overflow:hidden;padding:0!important;border-radius:22px}.tournament-card-atp .tournament-img{width:100%;height:190px;border-radius:0;object-fit:cover;background:linear-gradient(135deg,#edf7e8,#fff)}.tournament-card-atp .card-body{padding:18px}.tournament-card-atp .meta-line{display:flex;gap:.5rem;flex-wrap:wrap}.cta-row{display:flex;gap:.65rem;flex-wrap:wrap}.cta-row .btn{min-height:38px}.no-image-placeholder{height:190px;background:linear-gradient(135deg,#edf7e8,#f8fafc);display:flex;align-items:center;justify-content:center;color:#2f7d32;font-size:3rem}

.atp-bracket-wrap{width:100%;overflow-x:auto;overflow-y:hidden;padding:12px 4px 30px;scrollbar-width:thin}.atp-bracket{display:flex;gap:54px;align-items:flex-start;min-width:max-content}.atp-round{width:330px;flex:0 0 330px}.atp-round-title{font-weight:800;color:#80ad2b;text-align:center;text-decoration:underline;margin-bottom:14px}.atp-match-shell{position:relative;margin-bottom:24px}.atp-match-shell.branch:after{content:"";position:absolute;right:-54px;top:50%;width:54px;height:3px;background:#111;transform:translateY(-50%)}.atp-match-shell.branch:before{content:"";position:absolute;right:-54px;top:50%;height:var(--branch-height,0px);width:3px;background:#111;transform:translateY(-50%)}.atp-round.final-round .atp-match-shell:after,.atp-round.final-round .atp-match-shell:before{display:none}.atp-match-shell .match-card.score-style{min-width:0;width:100%;border-radius:10px;box-shadow:none;border:2px solid #111;padding:8px 10px}.atp-match-shell .match-mini-header{font-size:.78rem;margin-bottom:6px}.atp-match-shell .score-player-row{padding:4px 0}.atp-match-shell .avatar{width:28px;height:28px;font-size:.78rem}.atp-match-shell .player-name{max-width:185px}.atp-match-shell .score-cells{grid-template-columns:repeat(3,22px);gap:5px}.atp-match-shell .set-score{font-size:1rem}.round-1 .atp-match-shell{margin-bottom:18px}.round-2 .atp-match-shell{margin-top:48px;margin-bottom:86px}.round-3 .atp-match-shell{margin-top:136px;margin-bottom:230px}.round-4 .atp-match-shell{margin-top:312px;margin-bottom:520px}.round-5 .atp-match-shell{margin-top:664px;margin-bottom:1080px}.round-6 .atp-match-shell{margin-top:1368px;margin-bottom:2200px}

@media (max-width:768px){main.container{padding-left:14px!important;padding-right:14px!important}.public-hero-atp{border-radius:20px;padding:28px 20px!important}.public-hero-atp h1{font-size:2rem}.row.g-4>[class*="col-"]{padding-left:8px;padding-right:8px}.tournament-card-atp .tournament-img,.no-image-placeholder{height:160px}.cta-row .btn{width:100%;justify-content:center}.table-responsive{border-radius:16px}.atp-bracket{gap:36px}.atp-round{width:290px;flex-basis:290px}.atp-match-shell.branch:after{right:-36px;width:36px}.atp-match-shell.branch:before{right:-36px}.atp-match-shell .player-name{max-width:140px}.match-card.score-style{min-width:0}.club-navbar .navbar-collapse{padding-top:12px}.club-navbar .nav-link,.club-navbar .dropdown-item{font-size:1rem}.d-flex.justify-content-between.align-items-start{flex-direction:column;gap:12px}}
@media (max-width:420px){.player-name{max-width:125px}.atp-round{width:268px;flex-basis:268px}.atp-match-shell .avatar{width:24px;height:24px}.score-cells{grid-template-columns:repeat(3,18px);gap:4px}.set-score{font-size:1rem}.tournament-card-atp .card-body{padding:14px}.badge{white-space:normal}}

/* V14 - detalle público más visual y responsive: card ATP club */
.public-tournament-card{background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:0 18px 46px rgba(0,0,0,.06)}
.public-tournament-media{position:relative;background:linear-gradient(135deg,#edf7e8,#f8fafc)}
.public-tournament-media img{display:block;width:100%;height:320px;object-fit:cover}
.public-tournament-placeholder{height:320px;display:flex;align-items:center;justify-content:center;font-size:5rem;color:#2f7d32;background:radial-gradient(circle at 20% 20%,#fff 0,#edf7e8 45%,#dbeed1 100%)}
.public-tournament-body{padding:28px 32px 32px}
.eyebrow{display:inline-flex;align-items:center;gap:.35rem;color:#2f7d32;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.74rem;margin-bottom:.35rem}.eyebrow:before{content:'●';color:#93c53d}
.detail-tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.detail-tag{display:flex;align-items:center;gap:.45rem;padding:10px 12px;border:1px solid #e5efe4;border-radius:16px;background:#f7fbf4;color:#1f2937;text-decoration:none;min-height:46px}.detail-tag b{color:#2f7d32;margin-right:2px}.detail-tag-link{background:#2f7d32;color:#fff}.detail-tag-link b{color:#fff}.detail-tag a{font-weight:700;color:#2f7d32;text-decoration:none}

/* V14 - cuadro: desktop con ramas, mobile por rondas con tabs/cards */
.mobile-rounds{display:none}.desktop-bracket{display:block}
.round-pager{gap:8px;padding-bottom:6px;scroll-snap-type:x mandatory}.round-pager .nav-link{border-radius:999px;white-space:nowrap;color:#2f7d32;background:#eef7ea;font-weight:700;scroll-snap-align:start}.round-pager .nav-link.active{background:#2f7d32;color:#fff}.mobile-round-panel{background:linear-gradient(180deg,#f7fbf4,#fff);border:1px solid #e5efe4;border-radius:22px;padding:14px}.mobile-round-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:12px;border-bottom:1px solid #e5efe4;padding-bottom:10px}.mobile-round-heading span{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#6b7280;font-weight:800}.mobile-round-heading h2{margin:0;color:#2f7d32;font-size:1.35rem;font-weight:900}.mobile-match-list{display:grid;gap:12px}.mobile-match-list .match-card.score-style{margin-bottom:0!important;width:100%;min-width:0}

@media (max-width:992px){.detail-tags{grid-template-columns:repeat(2,minmax(0,1fr))}.public-tournament-media img,.public-tournament-placeholder{height:260px}.public-tournament-body{padding:24px}}
@media (max-width:768px){.desktop-bracket{display:none}.mobile-rounds{display:block}.public-tournament-card{border-radius:22px}.public-tournament-media img,.public-tournament-placeholder{height:210px}.public-tournament-body{padding:20px}.detail-tags{grid-template-columns:1fr;gap:9px}.detail-tag{font-size:.92rem}.public-tournament-body .btn{width:100%;justify-content:center}.mobile-round-panel .admin-match-form .col-6{width:100%}}
@media (max-width:420px){.public-tournament-media img,.public-tournament-placeholder{height:170px}.public-tournament-body{padding:16px}.public-tournament-body h1{font-size:1.65rem}.detail-tag{align-items:flex-start}.mobile-round-heading{align-items:flex-start;flex-direction:column;gap:2px}.mobile-round-heading h2{font-size:1.18rem}}

/* V15 - selector Main Draw / Partidos y fix cards mobile */
.view-switch-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:10px;box-shadow:0 10px 28px rgba(0,0,0,.035)}
.tournament-view-switch{gap:8px;flex-wrap:wrap}.tournament-view-switch .nav-link{border-radius:999px;background:#eef7ea;color:#2f7d32;font-weight:800;padding:.65rem 1rem}.tournament-view-switch .nav-link.active{background:#2f7d32;color:#fff}.draw-header-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px 20px;box-shadow:0 10px 28px rgba(0,0,0,.035)}
.main-draw-bracket{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 14px 34px rgba(0,0,0,.04)}
.mobile-rounds{display:block}.desktop-bracket{display:block}
.public-tournament-grid{align-items:stretch}.public-tournament-grid>[class*="col-"]{display:flex}.public-tournament-grid .tournament-card-atp{width:100%;min-width:0}.tournament-card-atp .card-body{min-width:0}.tournament-card-atp h2,.tournament-card-atp p{overflow-wrap:anywhere}.tournament-card-atp .badge-soft{display:inline-flex;align-items:center;gap:.25rem;max-width:100%;white-space:normal;line-height:1.2}.tournament-card-atp .cta-row{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.tournament-card-atp .cta-row .btn,.tournament-card-atp .cta-row .badge{width:100%;justify-content:center;text-align:center}
@media (max-width:768px){.public-tournament-grid{--bs-gutter-x:0;--bs-gutter-y:1rem}.public-tournament-grid>[class*="col-"]{padding-left:0!important;padding-right:0!important}.tournament-card-atp{border-radius:20px}.tournament-card-atp .tournament-img,.no-image-placeholder{height:150px}.tournament-card-atp .meta-line{gap:.35rem}.tournament-card-atp .card-body{padding:14px}.tournament-card-atp .cta-row{grid-template-columns:1fr}.view-switch-card{position:sticky;top:74px;z-index:10}.tournament-view-switch{display:grid;grid-template-columns:1fr 1fr}.tournament-view-switch .nav-link{width:100%;font-size:.92rem;padding:.6rem .75rem}.main-draw-bracket{padding:12px;border-radius:18px}.atp-bracket-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.atp-bracket{padding-bottom:8px}.draw-header-card{padding:15px}.draw-header-card p{font-size:.92rem}.mobile-round-panel{padding:12px}.match-card.score-style{width:100%}}
@media (max-width:420px){.public-tournament-grid{margin-left:0;margin-right:0}.tournament-card-atp .tournament-img,.no-image-placeholder{height:135px}.tournament-card-atp .card-body{padding:12px}.tournament-card-atp h2{font-size:1.08rem}.tournament-card-atp .small{font-size:.88rem}.tournament-view-switch{gap:6px}.tournament-view-switch .nav-link{font-size:.86rem;padding:.55rem .45rem}.main-draw-bracket .atp-round{width:260px;flex-basis:260px}.main-draw-bracket .atp-match-shell .player-name{max-width:125px}}

/* V16 - Animaciones tipo ATP + UX mobile tipo app */
@media (prefers-reduced-motion: no-preference){
  .tournament-card-atp,.public-tournament-card,.draw-header-card,.view-switch-card,.match-card.score-style{animation:ctvFadeUp .42s ease both}
  .tournament-card-atp:nth-child(2n){animation-delay:.04s}.tournament-card-atp:nth-child(3n){animation-delay:.08s}
  @keyframes ctvFadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
  .tab-pane.fade{transition:opacity .24s ease,transform .24s ease}.tab-pane.fade:not(.show){transform:translateY(10px)}.tab-pane.fade.show{transform:translateY(0)}
}
.match-card.score-style{position:relative;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease;will-change:transform}
.match-card.score-style:before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,rgba(47,125,50,.10),rgba(147,197,61,.05),transparent);opacity:0;transition:opacity .22s ease;pointer-events:none}
.match-card.score-style:hover{transform:translateY(-4px);border-color:#93c53d;box-shadow:0 18px 42px rgba(47,125,50,.14)}
.match-card.score-style:hover:before{opacity:1}.match-card.score-style:hover .player-name{color:#2f7d32}.match-card.score-style:hover .winner-check{transform:scale(1.08)}
.winner-check{display:inline-block;transition:transform .2s ease}.score-player-row{transition:background .2s ease,padding-left .2s ease}.score-player-row:hover{background:#f7fbf4;padding-left:6px}
.atp-match-shell{transition:transform .22s ease,filter .22s ease}.atp-match-shell:hover{transform:translateX(3px);z-index:3}.atp-match-shell.branch:hover:before,.atp-match-shell.branch:hover:after{background:#2f7d32;box-shadow:0 0 0 1px rgba(47,125,50,.12),0 0 12px rgba(47,125,50,.35)}
.tournament-view-switch .nav-link,.round-pager .nav-link{transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}.tournament-view-switch .nav-link:hover,.round-pager .nav-link:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(47,125,50,.12)}
.round-pager{scrollbar-width:none}.round-pager::-webkit-scrollbar{display:none}.mobile-round-panel{transition:box-shadow .22s ease,border-color .22s ease}.mobile-round-panel:hover{border-color:#cfe6c7;box-shadow:0 16px 36px rgba(47,125,50,.08)}
.tournament-card-atp{transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}.tournament-card-atp:hover{transform:translateY(-5px);box-shadow:0 20px 46px rgba(47,125,50,.13);border-color:#d9ead2}.tournament-card-atp .tournament-img{transition:transform .45s ease,filter .45s ease}.tournament-card-atp:hover .tournament-img{transform:scale(1.035);filter:saturate(1.08)}.tournament-card-atp{overflow:hidden}
.btn,.badge,.detail-tag{transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.btn:hover,.detail-tag:hover{transform:translateY(-1px)}

@media (max-width:768px){
  body{background:#f6f8f5}.club-navbar{border-bottom-left-radius:18px;border-bottom-right-radius:18px}.club-navbar .container{padding-left:18px;padding-right:18px}
  main.container{padding-top:16px!important;padding-bottom:82px!important}.public-hero-atp{margin-left:-2px;margin-right:-2px;box-shadow:0 16px 38px rgba(47,125,50,.18)}
  .public-tournament-grid{display:grid!important;grid-template-columns:1fr;gap:14px!important}.public-tournament-grid>[class*="col-"]{width:100%;max-width:100%}
  .tournament-card-atp{border-radius:24px;box-shadow:0 12px 32px rgba(0,0,0,.06);background:#fff}.tournament-card-atp:hover{transform:none}.tournament-card-atp .tournament-img,.no-image-placeholder{height:172px!important}.tournament-card-atp .meta-line{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;scroll-snap-type:x mandatory}.tournament-card-atp .meta-line .badge{flex:0 0 auto;scroll-snap-align:start}.tournament-card-atp .cta-row{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,.88),#fff);padding-top:8px;margin-left:-2px;margin-right:-2px}
  .public-tournament-card{border-radius:26px;box-shadow:0 14px 34px rgba(0,0,0,.07)}.public-tournament-body{padding:18px!important}.detail-tags{gap:10px}.detail-tag{border-radius:18px;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.035)}
  .view-switch-card{top:66px;border-radius:999px;padding:6px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);box-shadow:0 14px 30px rgba(0,0,0,.09)}.tournament-view-switch{grid-template-columns:1fr 1fr!important}.tournament-view-switch .nav-link{border-radius:999px;min-height:44px}
  .round-pager{position:sticky;top:126px;z-index:9;background:rgba(246,248,245,.92);backdrop-filter:blur(10px);padding:8px 0;margin-left:-2px;margin-right:-2px}.round-pager .nav-link{min-height:40px;padding:.55rem .85rem}
  .mobile-round-panel{border-radius:26px;background:#fff;padding:14px;box-shadow:0 14px 34px rgba(0,0,0,.055)}.mobile-round-heading{position:sticky;top:184px;z-index:4;background:#fff;border-radius:18px;padding:10px 12px;margin:-4px -4px 12px;box-shadow:0 8px 20px rgba(0,0,0,.04)}
  .mobile-match-list{gap:14px}.match-card.score-style{border-radius:22px;padding:14px;box-shadow:0 12px 30px rgba(0,0,0,.06)}.match-card.score-style:hover{transform:none}.score-player-row{min-height:44px}.player-left{gap:8px}.avatar{width:32px;height:32px}.flag{font-size:1.25rem}.score-cells{grid-template-columns:repeat(3,22px);gap:5px}.set-score{font-size:1.08rem}
  .admin-match-form .row{gap:8px}.admin-match-form .btn,.admin-match-form .form-control,.admin-match-form .form-select{min-height:42px}.icon-btn{min-height:42px}
}
@media (max-width:380px){.player-name{max-width:112px}.score-cells{grid-template-columns:repeat(3,18px);gap:4px}.avatar{width:30px;height:30px}.tournament-card-atp .tournament-img,.no-image-placeholder{height:150px!important}.public-hero-atp h1{font-size:1.75rem}}

/* V17 - ajustes mobile tournament page */
.tournament-details-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.detail-row{display:grid;grid-template-columns:auto minmax(92px,auto) 1fr;align-items:center;gap:8px;background:#f8faf7;border:1px solid var(--line);border-radius:16px;padding:10px 12px;color:#111;text-decoration:none;min-width:0}
.detail-row-full{grid-column:1 / -1}.detail-icon{font-size:1.1rem;line-height:1}.detail-label{font-weight:800;color:#111;white-space:nowrap}.detail-value{color:#374151;min-width:0;overflow-wrap:anywhere}.detail-row-link .detail-value,.detail-inline-link{color:#0d6efd;font-weight:800;text-decoration:none}.detail-row-link:hover,.detail-inline-link:hover{text-decoration:underline}
.switch-cta{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;border:1px solid #cfe6c7!important;box-shadow:0 8px 20px rgba(47,125,50,.08)}
.switch-cta strong{font-weight:900}.tournament-view-switch .nav-link.switch-cta.active{box-shadow:0 12px 26px rgba(47,125,50,.20)}

@media (max-width:768px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .club-navbar .navbar-brand{font-size:1.05rem;white-space:normal;line-height:1.15;max-width:calc(100vw - 96px)}
  .club-navbar .container{max-width:100%;padding-left:14px!important;padding-right:14px!important}
  main.container{width:100%;max-width:100%;overflow:hidden;padding-left:14px!important;padding-right:14px!important}
  .public-tournament-card{margin-left:0;margin-right:0;border-radius:22px;overflow:hidden}
  .public-tournament-media img,.public-tournament-placeholder{height:150px!important;width:100%;object-fit:cover;object-position:center;border-radius:0!important}
  .public-tournament-body{padding:16px!important}
  .public-tournament-body .eyebrow{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#2f7d32;font-weight:900}
  .public-tournament-body h1{font-size:1.75rem!important;line-height:1.08;margin-top:2px}.public-tournament-body p{font-size:.98rem;margin-bottom:12px!important}
  .public-tournament-body .badge{width:auto;display:inline-flex!important;margin-bottom:4px;font-size:.86rem;white-space:normal;text-align:left}
  .tournament-details-list{grid-template-columns:1fr;gap:7px;margin-top:10px!important}
  .detail-row{grid-template-columns:26px 104px minmax(0,1fr);border-radius:14px;padding:8px 10px;font-size:.94rem;box-shadow:none;background:#fff}
  .detail-icon{text-align:center}.detail-label{font-size:.92rem}.detail-value{font-size:.92rem}
  .view-switch-card{position:static!important;border-radius:18px;padding:8px;margin-top:12px;margin-bottom:14px!important;background:#fff;box-shadow:0 10px 24px rgba(0,0,0,.06)}
  .tournament-view-switch{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%}
  .tournament-view-switch .nav-link.switch-cta{width:100%;min-height:50px;border-radius:14px!important;background:#edf7e8;color:#2f7d32;font-size:.96rem;padding:.65rem .5rem!important}
  .tournament-view-switch .nav-link.switch-cta.active{background:#2f7d32!important;color:#fff!important}
  .round-pager{position:static!important;margin-top:0;background:transparent;padding:2px 0 10px;gap:8px}
  .round-pager .nav-link{border-radius:14px;min-height:42px;font-weight:800;border:1px solid #cfe6c7;background:#fff;color:#2f7d32;white-space:nowrap}
  .round-pager .nav-link.active{background:#2f7d32;color:#fff}
  .mobile-round-heading{position:static!important;box-shadow:none;background:transparent;padding:0;margin:0 0 10px}.mobile-round-heading span{display:none}.mobile-round-heading h2{font-size:1.25rem;color:#111;text-decoration:none}
  .main-draw-bracket{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;border-radius:18px;padding:12px;box-sizing:border-box}.atp-bracket{width:max-content;min-width:100%}
}
@media (max-width:420px){
  .public-tournament-media img,.public-tournament-placeholder{height:130px!important}
  .detail-row{grid-template-columns:24px 92px minmax(0,1fr);font-size:.9rem;padding:8px}.detail-label,.detail-value{font-size:.9rem}
  .tournament-view-switch .nav-link.switch-cta{font-size:.9rem;min-height:46px}.tournament-view-switch .nav-link.switch-cta span{font-size:1.05rem}
}

/* v20 - fase de grupos: tabla de posiciones primero */
.group-standings-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  padding:16px;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.standings-table thead th{
  color:#64748b;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.standings-table tbody tr:first-child{
  background:rgba(47,111,99,.06);
}
.standings-table td{padding:.7rem .5rem;}
@media(max-width:640px){
  .group-standings-card{border-radius:16px;padding:12px;margin-left:-2px;margin-right:-2px;}
  .group-standings-card h3{font-size:1rem;}
  .group-standings-card .badge{font-size:.7rem;white-space:normal;text-align:left;}
  .standings-table{font-size:.86rem;}
  .standings-table td,.standings-table th{padding:.55rem .35rem;}
}
.tournament-description{white-space:normal;color:#475569;line-height:1.65;font-size:.98rem}.tournament-description p{margin-bottom:.75rem}.tournament-description ul,.tournament-description ol{padding-left:1.25rem;margin-bottom:.75rem}.entry-player-flag{display:inline-flex;align-items:center;gap:.25rem;white-space:nowrap}.player-name .entry-player-flag{max-width:120px;overflow:hidden;text-overflow:ellipsis}.player-name{display:inline-flex;gap:.25rem;align-items:center;flex-wrap:wrap}.standings-table th,.standings-table td{white-space:nowrap}
@media(max-width:520px){.player-name .entry-player-flag{max-width:105px}.tournament-description{font-size:.94rem}.standings-table{min-width:620px}}

/* V27/V28 fix: dobles con bandera por jugador y nombres completos */
.entry-player-flag{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap;}
.flag-inline{display:inline-flex;align-items:center;justify-content:center;min-width:1.35em;font-size:1.05rem;line-height:1;}
.player-name-stacked{display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;min-width:0;}
.team-player-line{display:flex;align-items:center;gap:.45rem;line-height:1.18;white-space:normal;}
.team-player-name{font-weight:800;color:#006a9e;overflow:visible;text-overflow:clip;white-space:normal;word-break:normal;}
.score-player-row .player-left{align-items:center;min-width:0;flex:1 1 auto;}
.score-player-row .score-cells{flex:0 0 auto;}
.standings-table .entry-player-flag{margin-right:.25rem;}

@media (min-width:769px){
  .match-card.score-style{min-width:520px;}
  .atp-match-shell .match-card.score-style{min-width:0;}
  .atp-match-shell .team-player-name{font-size:.95rem;}
  .atp-match-shell .player-name-stacked{max-width:210px!important;}
  .atp-match-shell .score-player-row{align-items:center;}
}

@media (max-width:768px){
  .match-card.score-style{padding:14px 12px;}
  .score-player-row{align-items:center;gap:8px;}
  .player-left{gap:8px;}
  .player-name-stacked{max-width:calc(100vw - 170px)!important;}
  .team-player-name{font-size:.94rem;}
  .flag-inline{min-width:1.2em;font-size:1rem;}
  .avatar{width:30px;height:30px;font-size:.82rem;}
  .score-cells{grid-template-columns:repeat(3,20px);gap:4px;}
  .set-score{font-size:1rem;}
  .standings-table .entry-player-flag{display:inline-flex;margin-right:.15rem;}
}

@media (max-width:420px){
  .player-name-stacked{max-width:calc(100vw - 150px)!important;}
  .team-player-name{font-size:.9rem;}
  .team-player-line{gap:.35rem;}
  .score-cells{grid-template-columns:repeat(3,18px);gap:3px;}
}
