:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-2: #1b1b1f;
  --text: #f7f7f8;
  --muted: #a6a6ad;
  --line: #303036;
  --red: #e00000;
  --red-2: #ff2a2a;
  --white: #ffffff;
  --soft: #f5f5f6;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-shell,
body.auth-loading .app-shell {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 24% 18%, rgba(224, 0, 0, .24), transparent 34%),
    linear-gradient(135deg, rgba(0, 0, 0, .96), rgba(12, 12, 15, .94));
}

.login-screen.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 18px;
  padding: 34px;
  background: rgba(13, 13, 16, .94);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
}

.login-card.access-card {
  width: min(1080px, 100%);
  min-height: min(720px, calc(100vh - 48px));
  align-content: start;
  gap: 22px;
  padding: clamp(26px, 5vw, 56px);
  background:
    linear-gradient(120deg, rgba(20, 0, 0, .64), rgba(13, 13, 16, .96) 46%, rgba(5, 5, 7, .98)),
    radial-gradient(circle at 12% 20%, rgba(224, 0, 0, .22), transparent 34%);
  border-radius: 0;
}

.access-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.access-top img {
  width: min(210px, 46vw);
  max-height: 50px;
  object-fit: contain;
}

.access-top span {
  color: #d6dcff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-card img {
  width: 100%;
  max-height: 78px;
  object-fit: contain;
}

.login-card p {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
}

.access-heading {
  max-width: 720px;
}

.access-heading span {
  display: block;
  color: var(--red-2);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.access-heading h1 {
  margin: 8px 0 8px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: .92;
  letter-spacing: 0;
}

.access-heading p {
  max-width: 660px;
  margin: 0;
  color: #d7dbea;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  font-weight: 500;
}

.access-mode-grid,
.access-entity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.access-entity-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

.access-choice,
.access-entity-card {
  min-height: 156px;
  padding: 22px;
  text-align: left;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(135deg, rgba(224,0,0,.20), rgba(255,255,255,.035)),
    rgba(20, 20, 24, .86);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.access-choice:hover,
.access-entity-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 42, 42, .70);
  background:
    linear-gradient(135deg, rgba(224,0,0,.30), rgba(255,255,255,.05)),
    rgba(22, 22, 26, .92);
}

.access-choice strong,
.access-entity-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1;
}

.access-choice span,
.access-entity-card span {
  display: block;
  margin-top: 9px;
  color: #d1d6e7;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.access-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.30);
}

.access-avatar img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.access-avatar.logo img {
  object-fit: contain;
  padding: 8px;
}

.access-avatar b {
  color: #fff;
  font-size: 18px;
}

.selected-access {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

.selected-access .access-avatar {
  width: 54px;
  height: 54px;
}

.selected-access strong {
  display: block;
  font-size: 18px;
}

.selected-access span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-loader {
  height: 5px;
  overflow: hidden;
  background: #2b2b31;
}

.login-loader i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--red);
  animation: loginLoad 2.8s ease-in-out infinite;
}

@keyframes loginLoad {
  0% { transform: translateX(-110%); opacity: .45; }
  50% { opacity: 1; }
  100% { transform: translateX(250%); opacity: .45; }
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-card.access-card .login-form {
  max-width: 430px;
}

.login-card.access-card .login-form label:first-of-type {
  display: none;
}

.login-form input {
  width: 100%;
}

.login-form small {
  min-height: 18px;
  color: var(--red-2);
  font-weight: 800;
  text-align: center;
}

.ghost-action,
.admin-access {
  justify-self: start;
  color: #d8dbe8;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  padding: 11px 14px;
  font-weight: 900;
  cursor: pointer;
}

.admin-access {
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.client-hidden {
  display: none !important;
}

button,
select,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px;
  background: #000;
  border-right: 1px solid #2b2b30;
}

.brand {
  height: 84px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #232328;
}

.brand img {
  width: 100%;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  height: 42px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: var(--white);
  background: #171719;
  border-color: var(--red);
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #111;
  border: 1px solid #242428;
}

.sidebar-foot span {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-foot small {
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.topbar > div:first-child {
  flex: 1 1 600px;
  min-width: 420px;
}

.topbar-logo {
  display: block;
  width: min(760px, 100%);
  max-height: 82px;
  margin: 0 0 12px;
  object-fit: contain;
  object-position: left center;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--red-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 16px;
}

.filters {
  display: flex;
  gap: 10px;
  align-items: end;
  padding-top: 10px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

select,
input {
  min-width: 180px;
  height: 38px;
  padding: 0 10px;
  color: var(--text);
  background: #101013;
  border: 1px solid var(--line);
}

select[multiple] {
  height: auto;
  min-height: 118px;
  padding: 8px;
}

label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

input[readonly] {
  color: #ffffff;
  background: #1c1c20;
  border-color: #4a4a52;
  cursor: default;
}

input::placeholder {
  color: #66666d;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#dashboard .summary-grid,
#player-report .summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 178px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(224, 0, 0, 0.16), rgba(224, 0, 0, 0) 54%),
    linear-gradient(180deg, #19191d, #101012);
  border: 1px solid #34343a;
  border-left: 4px solid var(--red);
}

.profile-hero::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -42px;
  width: 240px;
  height: 110px;
  background: rgba(224, 0, 0, 0.08);
  transform: skewX(-18deg);
  pointer-events: none;
}

.profile-media {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px 48px;
  gap: 10px;
  align-items: end;
}

.profile-media .player-photo {
  grid-row: span 2;
  width: 112px;
  height: 112px;
  border: 2px solid var(--red);
}

.profile-media .asset-logo-wrap {
  width: 46px;
  height: 46px;
}

.profile-media .asset-logo-wrap.agency-logo {
  width: 56px;
}

.profile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.profile-copy span {
  color: var(--red-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-copy h2 {
  max-width: 760px;
  font-size: 38px;
  line-height: 1.05;
}

.profile-copy p {
  color: #e7e7ea;
  font-size: 16px;
}

.profile-copy small {
  color: var(--muted);
  font-size: 14px;
}

.pro-player-hero {
  grid-template-columns: 1fr;
  gap: 18px;
  min-height: 520px;
  padding: 24px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(8, 8, 10, 0.94) 66%),
    radial-gradient(circle at 52% 15%, rgba(255, 255, 255, 0.11), transparent 27%),
    radial-gradient(circle at 20% 44%, rgba(224, 0, 0, 0.22), transparent 28%),
    linear-gradient(135deg, #202024, #0b0b0d 64%);
  border-left: 1px solid #34343a;
}

.pro-player-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.05) 8.1% 8.25%, transparent 8.35% 92%, rgba(255, 255, 255, 0.05) 92.1% 92.25%, transparent 92.35%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 78px);
  opacity: 0.62;
}

.pro-player-hero::after {
  right: -80px;
  bottom: -78px;
  width: 460px;
  height: 220px;
  background: rgba(224, 0, 0, 0.12);
  transform: skewX(-18deg);
  z-index: -1;
}

.hero-bg-word {
  position: absolute;
  left: 24px;
  top: 26px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(42px, 8vw, 112px);
  font-weight: 1000;
  line-height: 0.9;
  text-transform: uppercase;
  pointer-events: none;
}

.pro-hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--red-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pro-hero-main {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr) minmax(92px, 150px);
  align-items: end;
  gap: 24px;
  min-height: 320px;
}

.pro-hero-photo {
  display: block;
}

.pro-hero-photo .player-photo {
  width: min(280px, 100%);
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 4px solid var(--red);
  border-radius: 0;
  background: linear-gradient(180deg, #2b2b30, #080809);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

.pro-hero-photo .player-photo strong {
  font-size: 44px;
}

.pro-hero-copy {
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
}

.pro-hero-copy > span {
  color: var(--red-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pro-hero-copy h2 {
  max-width: 800px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.92;
  text-transform: uppercase;
}

.pro-hero-copy p {
  color: #f4f4f6;
  font-size: 17px;
  font-weight: 800;
}

.pro-hero-copy small {
  color: #c8c8d0;
  font-size: 14px;
}

.player-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.player-tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.24);
  color: #f3f3f5;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pro-hero-logos {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
}

.pro-hero-logos .asset-logo-wrap {
  width: 86px;
  height: 86px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pro-hero-logos .asset-logo-wrap.agency-logo {
  width: 86px;
}

.pro-hero-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat {
  position: relative;
  min-height: 116px;
  padding: 14px;
  overflow: hidden;
  background: rgba(18, 18, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat.primary {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(224, 0, 0, 0.24), rgba(18, 18, 22, 0.94));
}

.hero-stat span,
.hero-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hero-stat span {
  color: #d9d9df;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.hero-stat em {
  color: var(--red);
  font-style: normal;
}

.ring-stat::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: conic-gradient(var(--red) var(--p), rgba(255, 255, 255, 0.16) 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%);
  mask: radial-gradient(circle, transparent 54%, #000 56%);
}

.bar-stat i {
  display: block;
  height: 7px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--red) var(--w), rgba(255, 255, 255, 0.13) 0);
}

.summary-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.export-panel {
  margin-bottom: 16px;
  border-color: rgba(224, 0, 0, 0.55);
}

.export-panel .data-actions {
  padding: 14px;
}

.export-panel small {
  color: var(--muted);
}

.summary-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.summary-card span,
.summary-card small,
.panel-head span {
  color: var(--muted);
}

.summary-card strong {
  font-size: 32px;
  line-height: 1;
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 78px;
}

.asset-row.small {
  min-height: 34px;
  justify-content: flex-end;
}

.asset-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
}

.asset-logo-wrap.agency-logo {
  width: 72px;
}

.asset-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  color: #fff;
  background: #240707;
  border: 1px solid #5c1515;
}

.player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-photo strong {
  font-size: 24px;
}

.player-photo.small-photo {
  width: 34px;
  height: 34px;
}

.player-photo.small-photo strong {
  font-size: 12px;
}

.player-card-personal {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.player-card-personal span {
  min-width: 0;
  white-space: normal;
}

.photo-crop-box {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #101014;
  border: 1px solid var(--line);
}

.photo-crop-preview {
  display: grid;
  place-items: center;
  width: 108px;
  aspect-ratio: 1;
  overflow: hidden;
  color: var(--muted);
  background-color: #1a1a1f;
  background-repeat: no-repeat;
  border: 1px solid #3a3a42;
}

.poster-crop-box {
  grid-template-columns: 92px repeat(3, minmax(0, 1fr));
}

.poster-crop-preview {
  width: 82px;
  aspect-ratio: 9 / 14;
}

.photo-crop-box label {
  gap: 6px;
  min-width: 0;
}

.photo-crop-box input[type="range"] {
  width: 100%;
  min-width: 0;
  padding: 0;
}

.asset-row.small .asset-logo-wrap {
  width: 38px;
  height: 38px;
  padding: 4px;
}

.asset-row.small .asset-logo-wrap.agency-logo {
  width: 56px;
}

.summary-card.accent {
  border-color: var(--red);
  background: linear-gradient(180deg, #1d0c0c 0%, #141416 100%);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
}

.match-clips-panel,
.match-featured-panel {
  width: 100%;
}

.panel {
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  background: #050505;
  border-bottom: 1px solid var(--red);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.metric-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid #2c2c32;
}

.metric-card-action {
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.metric-card-action:hover,
.metric-card-action:focus-visible,
.metric-card-action.active {
  border-color: var(--red);
  background: #1f1719;
}

.metric-card-action:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.metric-card-action.active {
  transform: translateY(-1px);
}

.metric-title {
  font-weight: 800;
}

.metric-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-values.one {
  grid-template-columns: 1fr;
}

.compact-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-values div {
  display: grid;
  gap: 2px;
}

.metric-values span {
  color: var(--muted);
  font-size: 11px;
}

.inline-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inline-filter select {
  min-width: 170px;
}

.professional-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.professional-lead,
.professional-columns article {
  background: var(--panel-2);
  border: 1px solid #2c2c32;
}

.professional-lead {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-left: 4px solid var(--red);
}

.professional-lead span,
.professional-lead small {
  color: var(--muted);
}

.professional-lead span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.professional-lead strong {
  max-width: 900px;
  font-size: 20px;
  line-height: 1.35;
}

.scout-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.scout-kpis article {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #111115;
  border: 1px solid #303038;
}

.scout-kpis span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.scout-kpis strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.scout-kpis small {
  color: var(--muted);
}

.professional-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.professional-columns article {
  padding: 14px;
}

.professional-columns h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.professional-columns ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: #e8e8ea;
}

.professional-columns li::marker {
  color: var(--red);
}

.meter {
  height: 7px;
  overflow: hidden;
  background: #2a2a2f;
}

.meter i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--red);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 320px;
  padding: 18px;
}

.bar-item {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  height: 280px;
  text-align: center;
}

.bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.bar {
  width: 44px;
  min-height: 2px;
  height: var(--h);
  background: var(--red);
}

.bar-label {
  color: var(--muted);
  font-size: 12px;
}

.zone-grid,
.cards-grid,
.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.zone-grid {
  grid-template-columns: 1fr;
}

.pitch-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(92px, 1fr));
  gap: 0;
  min-height: 330px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(33.333% - 1px), rgba(255, 255, 255, 0.22) calc(33.333% - 1px), rgba(255, 255, 255, 0.22) calc(33.333% + 1px), transparent calc(33.333% + 1px)),
    linear-gradient(90deg, transparent calc(66.666% - 1px), rgba(255, 255, 255, 0.22) calc(66.666% - 1px), rgba(255, 255, 255, 0.22) calc(66.666% + 1px), transparent calc(66.666% + 1px)),
    linear-gradient(180deg, transparent calc(33.333% - 1px), rgba(255, 255, 255, 0.22) calc(33.333% - 1px), rgba(255, 255, 255, 0.22) calc(33.333% + 1px), transparent calc(33.333% + 1px)),
    linear-gradient(180deg, transparent calc(66.666% - 1px), rgba(255, 255, 255, 0.22) calc(66.666% - 1px), rgba(255, 255, 255, 0.22) calc(66.666% + 1px), transparent calc(66.666% + 1px)),
    #102116;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.thirds-pitch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(260px, 1fr);
  min-height: 300px;
  background:
    linear-gradient(90deg, transparent calc(33.333% - 1px), rgba(255, 255, 255, 0.34) calc(33.333% - 1px), rgba(255, 255, 255, 0.34) calc(33.333% + 1px), transparent calc(33.333% + 1px)),
    linear-gradient(90deg, transparent calc(66.666% - 1px), rgba(255, 255, 255, 0.34) calc(66.666% - 1px), rgba(255, 255, 255, 0.34) calc(66.666% + 1px), transparent calc(66.666% + 1px)),
    #102116;
}

.pitch-map::before,
.pitch-map::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.pitch-map::before {
  top: 50%;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-map::after {
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.pitch-zone {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  color: var(--white);
  text-align: center;
  background: rgba(224, 0, 0, calc(0.08 + (var(--heat) * 0.48)));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pitch-zone span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.pitch-zone strong {
  font-size: 24px;
}

.pitch-zone small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.zone-meter {
  width: min(150px, 78%);
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.zone-meter i {
  display: block;
  width: var(--w);
  height: 100%;
  background: #fff;
}

.compact-pitch {
  min-height: 230px;
  grid-template-rows: minmax(210px, 1fr);
}

.compact-pitch .pitch-zone strong {
  font-size: 20px;
}

.entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.form-grid.compact {
  padding-bottom: 0;
}

.form-grid label,
.event-form label {
  min-width: 0;
}

.form-grid input,
.form-grid select,
.event-form input,
.event-form select {
  width: 100%;
  min-width: 0;
}

.asset-upload input {
  padding-top: 8px;
}

.participation-quick-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.participation-quick-head,
.participation-quick-row {
  display: grid;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #151519;
}

.participation-quick-head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.participation-quick-head span,
.participation-empty,
.participation-quick-row small,
.participation-quick-row label {
  color: var(--muted);
  font-size: 12px;
}

.participation-quick-row {
  grid-template-columns: minmax(0, 1fr) 96px auto;
  padding: 12px;
}

.participation-quick-row b,
.participation-quick-row small {
  display: block;
  min-width: 0;
}

.participation-quick-row label {
  display: grid;
  gap: 4px;
}

.participation-quick-row input {
  width: 100%;
}

.participation-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--line);
  background: #111115;
}

.auto-asset-preview {
  min-height: 84px;
  border: 1px solid var(--line);
  background: #101014;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.auto-asset-preview img {
  width: 54px;
  height: 62px;
  object-fit: contain;
  background: #050505;
  border: 1px solid #2d2d34;
  padding: 4px;
}

.span-2 {
  grid-column: span 2;
}

.agency-admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.agency-admin-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.agency-admin-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #101014;
  padding: 10px;
}

.agency-admin-logo {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2d2d34;
  background: #050505;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
}

.agency-admin-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.agency-admin-card strong,
.agency-admin-card span,
.agency-admin-card small {
  display: block;
}

.agency-admin-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.agency-admin-card small {
  color: var(--soft);
  font-size: 11px;
  margin-top: 5px;
}

.actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}

.action-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #0d0d10;
  border: 1px solid #29292f;
}

.action-group h3 {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
}

.action-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.action-field {
  display: grid;
  gap: 5px;
  padding: 10px;
  background: #101013;
  border: 1px solid #27272d;
}

.action-field input {
  height: 34px;
}

.quick-entry {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.quick-context {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.quick-context label {
  min-width: 0;
}

.quick-context input,
.quick-context select {
  width: 100%;
  min-width: 0;
}

.quick-context .check-field,
.form-grid .check-field {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 42px;
  color: var(--text);
  font-weight: 800;
}

.quick-context .check-field input,
.form-grid .check-field input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--red);
}

.quick-toolbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: #0d0d10;
  border: 1px solid #29292f;
}

.quick-actions {
  display: grid;
  gap: 8px;
}

.quick-action-group {
  display: grid;
  gap: 8px;
  padding: 8px;
  background: #0d0d10;
  border: 1px solid #29292f;
}

.quick-action-group h3 {
  margin: 0;
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
}

.quick-action {
  min-height: 44px;
  border: 1px solid #34343a;
  background: #17171b;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 8px;
  cursor: pointer;
  text-align: left;
}

.quick-action:hover,
.quick-action.active {
  border-color: var(--red);
  background: #250b0d;
}

.quick-action span {
  font-weight: 800;
  line-height: 1.15;
  font-size: 12px;
}

.quick-action strong {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
}

.quick-summary {
  border: 1px solid var(--line);
  background: #101014;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.quick-summary span {
  color: var(--muted);
  font-size: 12px;
}

.quick-summary strong {
  color: var(--white);
  font-size: 14px;
}

.primary-action,
.secondary-action,
.danger-action,
.file-action,
.pdf-action {
  min-height: 40px;
  padding: 0 14px;
  color: var(--white);
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-action {
  grid-column: span 2;
  background: var(--red);
  border-color: var(--red);
  font-weight: 800;
}

.quick-save-action,
.inline-primary-action {
  grid-column: auto;
}

.quick-save-action {
  min-width: 190px;
}

.pdf-action {
  align-self: end;
  background: var(--red);
  border-color: var(--red);
  font-weight: 800;
}

.secondary-action,
.file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #171719;
  border-color: var(--line);
}

.danger-action {
  background: #230808;
  border-color: #7a1515;
}

.file-action input {
  display: none;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.data-actions p {
  color: var(--muted);
  font-size: 13px;
}

.editable-events-wrap input,
.editable-events-wrap select {
  width: 100%;
  min-width: 110px;
  height: 34px;
  background: #101014;
  border: 1px solid #34343a;
  color: var(--white);
  padding: 0 8px;
}

.editable-events-wrap td {
  vertical-align: middle;
}

.tiny-action {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.featured-toggle-action {
  display: block;
  margin-top: 6px;
  border-color: var(--red);
}

.metric-edit-list {
  display: grid;
  gap: 6px;
  min-width: 160px;
}

.metric-edit {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 54px;
  gap: 6px;
  align-items: center;
}

.metric-edit span,
.muted-cell {
  color: var(--muted);
  font-size: 12px;
}

.editable-events-wrap .metric-edit input {
  min-width: 0;
  text-align: right;
}

.inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 14px;
}

.filters-strip {
  border-bottom: 1px solid var(--line);
}

.zone-card,
.entity-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid #2b2b32;
}

.entity-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zone-card strong,
.entity-card strong {
  font-size: 18px;
}

.entity-card span,
.zone-card span {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 0 8px;
  color: #fff;
  background: #19191d;
  border: 1px solid #3b3b42;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-completo {
  color: #eaffef;
  background: #0f2415;
  border-color: #2d7a45;
}

.status-faltan-videos,
.status-faltan-datos {
  color: #fff;
  background: #2b1010;
  border-color: var(--red);
}

.status-en-revision {
  color: #f5f0dc;
  background: #25210f;
  border-color: #766322;
}

.evolution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.evolution-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid #2b2b32;
}

.evolution-card > span,
.evolution-card small,
.evolution-line em {
  color: var(--muted);
}

.evolution-card strong {
  color: var(--white);
  font-size: 18px;
}

.evolution-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  align-items: center;
}

.evolution-line em {
  font-style: normal;
  font-size: 12px;
}

.evolution-line b {
  color: var(--white);
}

.evolution-line i {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  background:
    linear-gradient(90deg, var(--red) var(--w, 0%), transparent 0),
    #2b2b32;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.video-card {
  min-width: 0;
  background: var(--panel-2);
  border: 1px solid #2b2b32;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.video-frame iframe,
.video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  display: grid;
  place-items: center;
  color: var(--white);
  background: #1a0808;
  text-decoration: none;
  font-weight: 800;
}

.video-fallback[hidden] {
  display: none;
}

.video-meta {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.video-meta strong {
  font-size: 15px;
}

.video-meta span,
.video-meta small,
.empty-state {
  color: var(--muted);
}

.video-meta span,
.video-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #3b3b42;
  color: var(--muted);
  background: #151518;
  font-size: 12px;
  font-weight: 800;
}

.result-badge.ok {
  color: #f7f7f8;
  background: #102416;
  border-color: #2d7a45;
}

.result-badge.bad {
  color: #fff;
  background: #320d0d;
  border-color: var(--red);
}

.empty-state {
  margin: 0;
  padding: 14px;
}

.table-wrap {
  overflow: auto;
  max-width: 100%;
}

.editable-events-wrap {
  overscroll-behavior: contain;
}

.save-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  min-width: 150px;
  padding: 12px 16px;
  color: #fff;
  background: #111;
  border: 1px solid var(--red);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.save-toast.show {
  opacity: 1;
  transform: translateY(0);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

.compact-table table {
  min-width: 760px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #29292f;
  white-space: nowrap;
  text-align: right;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--white);
  background: #030303;
  border-bottom: 1px solid var(--red);
  font-size: 12px;
}

td {
  color: #e8e8ea;
  background: #151518;
}

tr:hover td {
  background: #1d1d22;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--white);
  background: #320d0d;
  border: 1px solid var(--red);
  font-size: 12px;
  text-decoration: none;
}

button.pill {
  font: inherit;
  cursor: pointer;
}

.link-pill {
  background: #15151a;
  border-color: var(--red-2);
}

.link-pill:hover {
  background: #2a0909;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
}

.video-modal.active {
  display: grid;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.video-modal-card {
  position: relative;
  z-index: 1;
  width: min(820px, 92vw);
  background: var(--panel);
  border: 1px solid var(--red);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.video-modal.expanded .video-modal-card {
  width: min(1180px, 96vw);
}

.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #050505;
  border-bottom: 1px solid var(--red);
}

.video-modal-head span {
  color: var(--muted);
  font-size: 12px;
}

.video-modal-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.video-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-action {
  min-width: 36px;
  padding: 0;
}

.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.video-modal-frame iframe,
.video-modal-frame .video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.print-report {
  display: none;
}

.print-page {
  width: 100%;
  color: #111;
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.print-header {
  display: grid;
  grid-template-columns: 270px 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  background: #fff;
  border-bottom: 4px solid #e00000;
}

.print-header img {
  width: 270px;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.print-header p {
  color: #e00000;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.print-header h1 {
  margin-top: 4px;
  color: #111;
  font-size: 30px;
}

.print-header span,
.print-header small {
  display: block;
  margin-top: 4px;
  color: #4a4a4a;
}

.print-player-card {
  display: grid;
  grid-template-columns: 124px 1fr 88px;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  background: #f4f4f5;
  border: 1px solid #d7d7da;
  border-left: 4px solid #e00000;
}

.print-player-card span {
  color: #e00000;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.print-player-card strong {
  display: block;
  margin-top: 4px;
  color: #111;
  font-size: 26px;
}

.print-player-card small {
  display: block;
  margin-top: 4px;
  color: #4a4a4a;
  font-size: 12px;
}

.print-player-card .player-photo.print-profile-photo {
  width: 112px;
  height: 112px;
  background: #240707;
  border: 2px solid #e00000;
}

.print-player-card .player-photo.print-profile-photo strong {
  color: #fff;
}

.print-asset-row {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-content: end;
  min-width: 0;
}

.print-asset-row .asset-logo-wrap {
  width: 42px;
  height: 42px;
}

.print-asset-row .asset-logo-wrap.agency-logo {
  width: 52px;
}

.print-logo-stack {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.print-summary,
.print-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.print-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.print-stats-grid.single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.print-stat {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 12px;
  background: #f4f4f5;
  border: 1px solid #d7d7da;
}

.print-summary .print-stat {
  background: #f4f4f5;
  border-color: #d7d7da;
}

.print-stat span {
  color: #5b5b64;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.print-stat strong {
  color: #111;
  font-size: 22px;
}

.print-summary .print-stat span,
.print-summary .print-stat small {
  color: #5b5b64;
}

.print-summary .print-stat strong {
  color: #111;
}

.print-stat small {
  color: #62626b;
  font-size: 12px;
}

.print-section {
  margin-top: 14px;
}

.print-section h2 {
  margin-bottom: 10px;
  padding-bottom: 7px;
  color: #111;
  border-bottom: 2px solid #e00000;
  font-size: 16px;
}

.print-professional .professional-summary {
  padding: 0;
  gap: 8px;
}

.print-professional .professional-lead {
  padding: 10px;
}

.print-professional .professional-lead strong {
  font-size: 16px;
  line-height: 1.25;
}

.print-professional .scout-kpis {
  gap: 6px;
}

.print-professional .scout-kpis article {
  padding: 8px;
}

.print-professional .professional-columns {
  gap: 8px;
}

.print-professional .professional-columns article {
  padding: 10px;
}

.print-professional .professional-lead,
.print-professional .professional-columns article {
  color: #111;
  background: #f4f4f5;
  border-color: #d7d7da;
}

.print-professional .scout-kpis article {
  background: #111115;
  border-color: #303038;
}

.print-professional .scout-kpis strong {
  color: #fff;
}

.print-professional .scout-kpis span,
.print-professional .scout-kpis small {
  color: #c8c8ce;
}

.print-professional .professional-lead strong,
.print-professional .professional-columns h3,
.print-professional .professional-columns li {
  color: #111;
}

.print-professional .professional-lead span,
.print-professional .professional-lead small {
  color: #5b5b64;
}

.print-two-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.print-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 11px;
}

.print-table th,
.print-table td {
  padding: 7px;
  color: #111;
  background: #fff;
  border: 1px solid #d4d4d8;
  text-align: right;
  white-space: normal;
}

.print-table th {
  color: #fff;
  background: #111;
  border-color: #111;
  font-weight: 800;
}

.print-table th:first-child,
.print-table td:first-child,
.print-table th:nth-child(2),
.print-table td:nth-child(2),
.print-table th:nth-child(5),
.print-table td:nth-child(5) {
  text-align: left;
}

.print-pitch {
  min-height: 280px;
  grid-template-rows: repeat(3, minmax(78px, 1fr));
}

.print-pitch.thirds-pitch {
  grid-template-rows: minmax(230px, 1fr);
}

.print-pitch .pitch-zone {
  color: #fff;
}

.print-pitch .pitch-zone strong {
  font-size: 19px;
}

.page-break-avoid {
  break-inside: auto;
}

/* Agency & Player separation */
.agency-hero {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(110deg, rgba(228, 0, 0, 0.28), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.09), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.01)),
    #101014;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  position: relative;
}

.agency-hero::after {
  content: "PLAYER & AGENCY";
  position: absolute;
  right: 24px;
  top: 22px;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(54px, 8vw, 128px);
  font-weight: 1000;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.agency-hero > div {
  position: relative;
  z-index: 1;
}

.agency-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.agency-hero-logo {
  width: clamp(96px, 12vw, 150px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.30);
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
}

.agency-hero-logo img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
}

.agency-hero-logo b {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 1000;
}

.agency-hero span,
.agency-player-card span,
.agency-readiness span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agency-hero h2 {
  margin: 10px 0 12px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.agency-hero p {
  max-width: 720px;
  margin: 0;
  color: #e7e9ef;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.agency-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agency-hero-stats article {
  min-height: 104px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.agency-hero-stats strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.agency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.agency-panel {
  padding: 0;
  overflow: hidden;
}

.agency-filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(150px, 1fr));
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.agency-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.agency-filters input,
.agency-filters select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101014;
  color: var(--text);
  padding: 0 12px;
}

.agency-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.agency-player-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  min-height: 230px;
  padding: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 55%),
    #15151a;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.agency-player-card:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 0, 0, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.agency-player-photo .player-photo {
  width: 150px;
  height: 198px;
  object-fit: cover;
  border-radius: 0;
  border: 2px solid rgba(228, 0, 0, 0.9);
}

.agency-player-body {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.agency-player-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.agency-player-top h3 {
  margin: 5px 0 8px;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 0.96;
}

.agency-player-top p,
.agency-player-foot small {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.profile-status {
  align-self: start;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.profile-status.complete {
  color: #b7ffd0;
  border-color: rgba(34, 197, 94, 0.5);
}

.profile-status.pending {
  color: #ffd3d3;
  border-color: rgba(228, 0, 0, 0.55);
}

.agency-player-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.agency-player-meta span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.agency-player-meta strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-readiness {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.agency-readiness strong {
  color: var(--red);
}

.agency-readiness i {
  grid-column: 1 / -1;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.agency-readiness i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--red);
}

.agency-player-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agency-player-foot .pdf-action {
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .dashboard-layout,
  .agency-hero,
  .agency-filters,
  .agency-player-grid,
  .summary-grid,
  .zone-grid,
  .cards-grid,
  .entry-grid,
  .form-grid,
  .quick-context,
  .actions-grid,
  .action-group-grid,
  .quick-action-grid,
  .compact-metrics,
  .evolution-grid,
  .video-grid,
  .professional-columns,
  .scout-kpis,
  .profile-hero,
  .photo-crop-box {
    grid-template-columns: 1fr;
  }

  .agency-identity {
    grid-template-columns: 1fr;
  }

  .profile-media {
    grid-template-columns: 112px 56px 56px;
  }

  .pro-player-hero {
    min-height: auto;
    padding: 18px;
  }

  .pro-hero-topline {
    display: grid;
  }

  .pro-hero-main,
  .pro-hero-stats {
    grid-template-columns: 1fr;
  }

  .pro-hero-main {
    gap: 16px;
    min-height: 0;
  }

  .pro-hero-photo .player-photo {
    width: 100%;
    max-width: 260px;
    height: 300px;
  }

  .pro-hero-logos {
    justify-content: flex-start;
  }

  .span-2,
  .primary-action {
    grid-column: span 1;
  }

  .filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .topbar-logo {
    width: min(100%, 520px);
  }

  .video-modal {
    padding: 12px;
  }

  .video-modal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-modal-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .agency-player-card,
  .agency-player-meta {
    grid-template-columns: 1fr;
  }

  .agency-player-photo .player-photo {
    width: 100%;
    height: 260px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .login-screen {
    padding: 18px;
  }

  .login-card {
    width: 100%;
    gap: 14px;
    padding: 24px 18px;
  }

  .login-card img {
    max-height: 58px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 10px;
    padding: 12px 14px 10px;
    border-right: 0;
    border-bottom: 1px solid #2b2b30;
  }

  .brand {
    height: 46px;
    justify-content: center;
    border-bottom: 0;
  }

  .brand img {
    max-height: 34px;
    object-position: center;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0 8px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .sidebar-foot {
    display: none;
  }

  .workspace {
    padding: 14px;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .topbar-logo {
    width: min(100%, 360px);
    max-height: 56px;
    margin-bottom: 8px;
  }

  h1 {
    font-size: 24px;
  }

  .filters,
  .inline-filter,
  .video-modal-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .filters label,
  .inline-filter,
  .filters select,
  .filters input,
  .inline-filter select,
  select,
  input {
    width: 100%;
    min-width: 0;
  }

  .summary-grid,
  #dashboard .summary-grid,
  #player-report .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .summary-card {
    min-height: 96px;
    padding: 14px;
  }

  .summary-card strong {
    font-size: 26px;
  }

  .pro-player-hero {
    gap: 14px;
    padding: 16px;
  }

  .hero-bg-word {
    left: 14px;
    top: 18px;
    font-size: 48px;
  }

  .pro-hero-topline {
    gap: 6px;
    font-size: 11px;
  }

  .pro-hero-main {
    gap: 14px;
  }

  .pro-hero-copy {
    order: 1;
    padding-bottom: 0;
  }

  .pro-hero-photo {
    order: 2;
  }

  .pro-hero-logos {
    order: 3;
    justify-content: flex-start;
  }

  .pro-hero-copy h2 {
    font-size: clamp(36px, 13vw, 54px);
    line-height: 0.95;
  }

  .pro-hero-copy p {
    font-size: 15px;
  }

  .pro-hero-photo .player-photo {
    width: min(100%, 220px);
    height: 260px;
  }

  .pro-hero-logos .asset-logo-wrap,
  .pro-hero-logos .asset-logo-wrap.agency-logo {
    width: 62px;
    height: 62px;
  }

  .player-tag-row span {
    padding: 6px 8px;
    font-size: 11px;
  }

  .pro-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stat {
    min-height: 98px;
    padding: 12px;
  }

  .hero-stat strong {
    font-size: 24px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .cards-grid,
  .entry-grid,
  .form-grid,
  .compact-metrics,
  .video-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .metric-card {
    padding: 12px;
  }

  .pitch-map {
    min-height: 230px;
    grid-template-rows: repeat(3, minmax(72px, 1fr));
  }

  .thirds-pitch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(190px, 1fr);
    min-height: 210px;
  }

  .pitch-map::before {
    width: 58px;
    height: 58px;
  }

  .pitch-zone {
    padding: 8px 4px;
  }

  .pitch-zone span {
    font-size: 10px;
  }

  .pitch-zone strong {
    font-size: 18px;
  }

  .pitch-zone small {
    font-size: 10px;
  }

  .zone-meter {
    width: 72%;
  }

  .quick-toolbar {
    position: static;
  }

  .quick-save-action,
  .pdf-action,
  .primary-action {
    width: 100%;
    min-width: 0;
  }

  .agency-player-top,
  .agency-player-foot {
    align-items: stretch;
    flex-direction: column;
  }

  table {
    min-width: 760px;
  }

  .compact-table table {
    min-width: 640px;
  }

  th,
  td {
    padding: 9px;
  }

  .video-modal {
    padding: 8px;
  }

  .video-modal-card {
    max-height: 94vh;
  }
}

@media (max-width: 420px) {
  .workspace {
    padding: 12px;
  }

  .summary-grid,
  #dashboard .summary-grid,
  #player-report .summary-grid,
  .pro-hero-stats {
    grid-template-columns: 1fr;
  }

  .pro-hero-copy h2 {
    font-size: clamp(32px, 14vw, 46px);
  }

  .pro-hero-photo .player-photo {
    width: min(100%, 200px);
    height: 238px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    min-height: auto;
    background: #fff;
  }

  body {
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body > .app-shell {
    display: none;
  }

  .print-report {
    display: block;
  }

  .video-modal {
    display: none !important;
  }

  .print-page {
    display: block;
  }
}
