.atletism-live-wrapper{display:grid;gap:24px;position:relative}
.atletism-live-wrapper.is-loading{opacity:.65;transition:opacity .2s ease}
.atletism-live-shell{display:grid;gap:18px}
.atletism-live-head{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(135deg,#14273f,#1f4e79);color:#fff;padding:18px 20px;border-radius:18px;box-shadow:0 14px 32px rgba(10,20,35,.12)}
.atletism-live-head h2,.atletism-live-head h3{margin:0 0 4px}
.atletism-live-head p{margin:0;opacity:.88}
.atletism-live-badge{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:56px;border-radius:999px;background:rgba(255,255,255,.16);font-weight:700;font-size:20px}
.atletism-live-filters{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:16px;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.atletism-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.atletism-live-filters select,.atletism-live-filters input,.atletism-live-filters button{width:100%;min-height:42px;border-radius:12px;border:1px solid #cbd5e1;padding:0 12px;font:inherit;box-sizing:border-box}
.atletism-live-filters button{background:#1f4e79;color:#fff;border:none;cursor:pointer;font-weight:600}
.atletism-live-filters [data-role="reset"]{background:#e2e8f0;color:#0f172a}
.atletism-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.atletism-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.atletism-section{display:grid;gap:10px}
.atletism-section h3{margin:0;color:#0f172a}
.atletism-table-wrap{overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.atletism-live-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff}
.atletism-live-table th,.atletism-live-table td{padding:10px 12px;border-bottom:1px solid #edf2f7;text-align:left;white-space:nowrap}
.atletism-live-table th{position:sticky;top:0;background:#1f4e79;color:#fff;z-index:1}
.atletism-live-table tbody tr:nth-child(even){background:#f8fafc}
.atletism-live-table tbody tr:hover{background:#eef6ff}
.atletism-live-table tbody tr.atletism-top-1{background:#fff7d6}
.atletism-live-table tbody tr.atletism-top-2{background:#f5f7fa}
.atletism-live-table tbody tr.atletism-top-3{background:#fff0e3}
.atletism-rank{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:#e2e8f0;font-weight:700}
.atletism-top-1 .atletism-rank{background:#f4c430;color:#432}
.atletism-top-2 .atletism-rank{background:#cbd5e1;color:#111827}
.atletism-top-3 .atletism-rank{background:#e7a977;color:#fff}
.atletism-name{font-weight:600}
@media(max-width:1100px){.atletism-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.atletism-grid-2{grid-template-columns:1fr}}
@media(max-width:700px){.atletism-live-head{flex-direction:column;align-items:flex-start}.atletism-filter-grid{grid-template-columns:1fr}.atletism-live-table th,.atletism-live-table td{padding:8px 10px;font-size:14px}}

.atletism-live-stack{display:grid;gap:18px}

.atletism-entry-public-wrap{background:#fff;border:1px solid #d7dde6;border-radius:14px;padding:18px;margin:16px 0;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.atletism-entry-public-wrap h3{margin:0 0 8px;font-size:28px}
.atletism-entry-public-meta{color:#4a5b72;margin-bottom:14px}
.atletism-entry-public-success{background:#ecfdf5;border:1px solid #a7f3d0;color:#166534;padding:10px 12px;border-radius:10px;margin:10px 0 14px}
.atletism-entry-public-actions{display:flex;justify-content:flex-end;margin:0 0 10px}
.atletism-entry-public-actions button{background:#1f4e79;color:#fff;border:0;border-radius:8px;padding:10px 16px;font-weight:600;cursor:pointer}
.atletism-entry-public-actions button:hover{opacity:.92}
.atletism-entry-public-table-wrap{overflow:auto;border:1px solid #e5e7eb;border-radius:12px}
.atletism-entry-public-table{width:100%;border-collapse:collapse;min-width:900px}
.atletism-entry-public-table th,.atletism-entry-public-table td{padding:10px 12px;border-bottom:1px solid #eef2f6;text-align:left}
.atletism-entry-public-table thead th{background:#1f4e79;color:#fff;position:sticky;top:0}
.atletism-entry-public-table tbody tr:nth-child(even){background:#fafcff}
.atletism-entry-public-table input{width:100%;min-width:120px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px}


.atletism-entry-code-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.atletism-entry-code-form label{display:block;font-weight:600}.atletism-entry-code-form input[type=password]{min-width:220px;padding:10px;border:1px solid #ccd0d4;border-radius:8px}.atletism-entry-public-error{background:#fef2f2;color:#991b1b;padding:10px 12px;border-radius:8px;margin:0 0 12px}.atletism-general-entry-table input,.atletism-entry-public-table input{width:100%;min-width:84px;box-sizing:border-box;padding:8px 10px;border:1px solid #d0d7de;border-radius:6px}.atletism-entry-public-meta{margin-bottom:10px;color:#555}.atletism-entry-public-wrap{background:#fff;padding:16px;border-radius:12px;border:1px solid #e5e7eb}.atletism-entry-public-actions{margin:12px 0}.atletism-entry-public-actions button{padding:10px 14px;font-weight:700}.
.atletism-best-result{font-weight:700;color:#1f7a1f;}
.atletism-entry-probe-table input{min-width:84px;}

.atletism-live-metric{display:grid;grid-template-rows:auto auto;gap:0;min-width:72px}
.atletism-live-metric-result{font-weight:700;color:#0f172a;line-height:1.15}
.atletism-live-metric-points{margin-top:6px;padding-top:6px;border-top:1px solid #dbe3ef;font-size:12px;line-height:1.15;color:#64748b;display:flex;align-items:center;justify-content:space-between;gap:8px}
.atletism-live-metric-points strong{font-size:13px;color:#1f4e79}

.atletism-live-row-updated td{animation:atletismLivePulse 1.1s ease-in-out 3;background:#dcfce7 !important;}
@keyframes atletismLivePulse{0%,100%{background:#dcfce7;}50%{background:#86efac;}}
.atletism-live-row-updated .atletism-rank{box-shadow:0 0 0 3px rgba(34,197,94,.22);}

.atletism-live-cell-updated{animation:atletismLivePulse 1.1s ease-in-out 3;background:#dcfce7 !important;color:#0f172a !important;box-shadow:inset 0 0 0 1px rgba(34,197,94,.28);}
.atletism-live-cell-updated *{color:#0f172a !important;}

.atletism-entry-public-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:0 0 14px}
.atletism-entry-public-filters > label{font-weight:600;color:#0f172a;display:flex;align-items:center;gap:8px}
.atletism-entry-public-filters > select,.atletism-entry-public-filters > input,.atletism-entry-public-filters > button{min-height:42px;border-radius:10px;border:1px solid #cbd5e1;padding:0 12px;font:inherit;box-sizing:border-box}
.atletism-entry-public-filters > button{background:#1f4e79;color:#fff;border:none;font-weight:600;cursor:pointer}
.atletism-entry-public-actions-bottom{margin-top:14px}
.atletism-entry-public-actions-bottom button{min-height:48px}
.atletism-entry-code-wrap h3{margin-bottom:10px}
.atletism-entry-code-form button{min-height:42px;border-radius:10px;border:none;background:#1f4e79;color:#fff;padding:0 18px;font-weight:700;cursor:pointer}
.atletism-entry-code-form input[type=text],.atletism-entry-code-form input[type=password]{min-height:42px;box-sizing:border-box}

@media (max-width: 920px){
  .atletism-live-wrapper,.atletism-live-shell,.atletism-live-stack{gap:14px}
  .atletism-live-head{padding:16px;border-radius:16px}
  .atletism-live-badge{min-width:48px;height:48px;font-size:18px}
  .atletism-entry-public-wrap{padding:14px;border-radius:14px}
  .atletism-entry-public-wrap h3{font-size:24px}
  .atletism-entry-public-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .atletism-entry-public-filters > label:first-of-type{display:grid;gap:6px;align-items:start}
  .atletism-entry-public-filters > label:last-of-type{grid-column:1 / -1;justify-content:flex-start}
  .atletism-entry-public-filters > button{grid-column:1 / -1}
  .atletism-entry-code-form{display:grid;grid-template-columns:1fr;gap:8px}
  .atletism-entry-code-form input[type=password],.atletism-entry-code-form input[type=text]{min-width:0;width:100%}
}

@media (max-width: 760px){
  .atletism-live-shortcode,.atletism-entry-public-wrap{max-width:100%;overflow:hidden}
  .atletism-live-table,.atletism-live-table thead,.atletism-live-table tbody,.atletism-live-table tr,.atletism-live-table th,.atletism-live-table td{display:block}
  .atletism-live-table thead{display:none}
  .atletism-live-table tbody{display:grid;gap:12px;padding:10px}
  .atletism-live-table tbody tr[data-live-row],
  .atletism-live-table.atletism-entry-table tbody tr{display:block;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 8px 24px rgba(15,23,42,.06);overflow:hidden}
  .atletism-live-table tbody tr:nth-child(even){background:#fff}
  .atletism-live-table td{display:grid;grid-template-columns:minmax(84px,108px) 1fr;gap:10px;align-items:start;padding:10px 12px;border-bottom:1px solid #edf2f7;white-space:normal}
  .atletism-live-table td::before{content:attr(data-label);font-size:11px;font-weight:800;line-height:1.2;color:#475569;text-transform:uppercase;letter-spacing:.05em}
  .atletism-live-table td:last-child{border-bottom:none}
  .atletism-live-table td[data-label="Nume"]{grid-template-columns:1fr;font-size:16px;padding-top:12px}
  .atletism-live-table td[data-label="Nume"]::before{margin-bottom:4px}
  .atletism-live-table td[data-label="Loc"],
  .atletism-live-table td[data-label="BIB"],
  .atletism-live-table td[data-label="Sex"]{grid-template-columns:minmax(68px,84px) 1fr}
  .atletism-live-table td[data-label="Total"],
  .atletism-live-table td[data-label="Puncte"],
  .atletism-live-table td[data-label="P60"],
  .atletism-live-table td[data-label="P800"],
  .atletism-live-table td[data-label="PL"],
  .atletism-live-table td[data-label="PO"]{font-weight:700}
  .atletism-live-metric{min-width:0;gap:4px}
  .atletism-live-metric-result{font-size:15px}
  .atletism-live-metric-points{margin-top:0;padding-top:0;border-top:none;justify-content:flex-start;gap:6px;font-size:12px}
  .atletism-live-metric-points strong{font-size:13px}
  .atletism-entry-public-table input,.atletism-general-entry-table input,.atletism-entry-probe-table input{min-width:0;width:100%}
  .atletism-entry-public-actions-bottom{position:sticky;bottom:8px;z-index:5;background:linear-gradient(to top,#fff 72%,rgba(255,255,255,.88));padding-top:10px;margin-top:10px}
  .atletism-entry-public-actions-bottom button{width:100%}
  .atletism-live-shortcode-content .atletism-table-wrap,
  .atletism-entry-wrap{overflow:visible;border:none;box-shadow:none;background:transparent}
}

@media (max-width: 480px){
  .atletism-live-head{padding:14px 14px 15px}
  .atletism-live-head h2,.atletism-live-head h3{font-size:20px}
  .atletism-live-badge{min-width:42px;height:42px;font-size:16px}
  .atletism-entry-public-wrap h3{font-size:20px}
  .atletism-entry-public-filters{grid-template-columns:1fr}
  .atletism-live-table tbody{padding:8px}
  .atletism-live-table td{grid-template-columns:minmax(74px,88px) 1fr;padding:9px 10px}
}


.atletism-entry-validate-cell{min-width:126px}
.atletism-row-validate-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 12px;border:none;border-radius:8px;background:#1f4e79;color:#fff;font-weight:700;cursor:pointer;white-space:nowrap}
.atletism-row-validate-btn.is-busy{opacity:.7;cursor:wait}
.atletism-row-save-status{display:block;margin-top:6px;font-size:12px;line-height:1.2;color:#64748b;min-height:14px}
.atletism-row-save-status.is-saving{color:#1d4ed8}
.atletism-row-save-status.is-saved{color:#166534;font-weight:700}
.atletism-row-save-status.is-error{color:#b91c1c;font-weight:700}
@media (max-width:760px){
  .atletism-entry-validate-cell{grid-template-columns:minmax(84px,108px) 1fr}
  .atletism-row-validate-btn{width:100%}
}
