:root {
  --bg: #08111f;
  --panel: rgba(12, 25, 46, 0.76);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef3fb;
  --muted: #9eafc8;
  --accent: #9ae6b4;
  --accent-warm: #f6c177;
  --danger: #ff7b72;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max: 1440px;
  --attribute-icon-size: 46px;
  --attribute-card-min-height: 104px;
  --attribute-card-padding: 10px 8px;
  --attribute-card-gap: 8px;
  --attribute-label-size: 0.88rem;
  --attribute-group-gap: 12px;
  --attribute-stack-gap: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI Variable Display", "Aptos", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(72, 187, 120, 0.22), transparent 26%),
    radial-gradient(circle at top right, rgba(246, 193, 119, 0.2), transparent 24%),
    linear-gradient(160deg, #07101c, #0a1528 40%, #06101f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 90%);
}

.app-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  margin-bottom: 26px;
  background: rgba(6, 13, 24, 0.75);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(72, 187, 120, 0.95), rgba(246, 193, 119, 0.95));
  color: #04101b;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text { display: grid; }
.brand-text small { color: var(--muted); }

.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin-left: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.topnav a,
.ghost-button,
.primary-button,
.icon-button {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
}

.topnav a:hover,
.topnav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.ghost-button,
.primary-button,
.icon-button,
.danger-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
}

.ghost-button:hover,
.primary-button:hover,
.icon-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.ghost-button { padding: 10px 14px; }

.primary-button {
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), #d9f99d);
  color: #06111f;
  border-color: rgba(0, 0, 0, 0.08);
  font-weight: 700;
  text-decoration: none;
}

.primary-button.block { width: 100%; }
.icon-button { width: 42px; height: 42px; font-size: 1.6rem; }

.danger-button {
  padding: 12px 16px;
  border-color: rgba(255, 123, 114, 0.35);
  background: rgba(255, 123, 114, 0.1);
  color: #ffb4ae;
}

.session-badge {
  display: inline-grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(72, 187, 120, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(72, 187, 120, 0.28);
  color: #eaf8ef;
  font-size: 0.88rem;
  min-width: 200px;
}

.session-badge strong {
  font-size: 0.82rem;
  color: #a6e7bc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.session-badge span {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hidden { display: none !important; }
#app { display: grid; gap: 24px; }

.hero-panel,
.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 24px;
}

.single-hero {
  grid-template-columns: 1fr;
}

.single-hero .hero-copy {
  min-height: 72vh;
  display: grid;
  align-content: center;
}

.login-layout {
  align-items: stretch;
}

.login-layout.single-hero {
  min-height: 72vh;
  place-items: center;
}

.login-layout.single-hero .login-card {
  width: min(100%, 520px);
}

.hero-copy,
.login-card,
.matrix-wrapper,
.spotlight-card,
.about-copy,
.about-card,
.attributes-card,
.player-header,
.facts-card,
.stats-card,
.coaches-card,
.strengths-card,
.profile-side-card,
.roles-card,
.highlights-card,
.testimonials-card,
.profile-bio,
.section-header {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: fadeUp 380ms ease;
}

.hero-copy,
.about-copy,
.player-header,
.facts-card,
.stats-card,
.coaches-card,
.strengths-card,
.profile-side-card,
.highlights-card,
.testimonials-card,
.profile-bio,
.section-header {
  padding: 32px;
}

.login-card,
.spotlight-card,
.about-card,
.attributes-card {
  padding: 28px;
}

.card-glow {
  position: absolute;
  inset: auto auto -80px -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 187, 120, 0.28), transparent 68%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bahnschrift", "Segoe UI Variable Display", sans-serif;
  line-height: 1;
}

h1 { font-size: clamp(3rem, 6vw, 5.8rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

.hero-text,
.about-copy p,
.spotlight-card p,
.profile-bio p,
.highlights-card p,
.hero-actions,
.section-actions,
.modal-actions,
.meta-line,
.profile-logo-row,
.logo-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-points li,
.player-chip,
.profile-logo-card,
.highlight-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-points li {
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.login-form,
.form-grid,
.facts-grid,
.highlights-list,
.about-cards,
.spotlight-grid,
.profile-layout,
.profile-side {
  display: grid;
  gap: 14px;
}

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

.highlights-editor {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.highlight-row-item,
.highlight-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight-row-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

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

.highlight-link-group {
  display: grid;
  gap: 10px;
}

.highlight-link-group h4 {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.highlight-link-list {
  display: grid;
  gap: 8px;
}

.highlight-link-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 8px;
  align-items: center;
}

.strength-item {
  grid-template-columns: minmax(0, 1fr) 96px auto;
}

.login-form label,
.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

select,
option,
optgroup {
  background: #0b1628;
  color: var(--text);
}

input::placeholder,
textarea::placeholder { color: #7c90ad; }
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(154, 230, 180, 0.25);
  border-color: rgba(154, 230, 180, 0.35);
}

.inline-message { min-height: 1.4em; margin: 14px 0 0; color: var(--accent-warm); }
.access-note {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.access-note h3 {
  margin-bottom: 8px;
}

.access-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.search-input { min-width: min(320px, 100%); }
.matrix-wrapper {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.matrix-scroll {
  overflow-x: auto;
  border-radius: 22px;
}

.player-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(7, 19, 31, 0.72);
}

.player-matrix th,
.player-matrix td {
  vertical-align: top;
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.player-matrix th {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.player-matrix th:last-child,
.player-matrix td:last-child {
  border-right: 0;
}

.player-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.player-matrix thead th:first-child {
  border-top-left-radius: 20px;
}

.player-matrix thead th:last-child {
  border-top-right-radius: 20px;
}

.player-matrix tbody tr:last-child td:first-child {
  border-bottom-left-radius: 20px;
}

.player-matrix tbody tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}

.year-cell {
  width: 90px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(154, 230, 180, 0.04);
}
.player-chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.player-chip { display: inline-grid; gap: 8px; min-width: 180px; padding: 12px; border-radius: 16px; }
.player-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.player-card-link:hover,
.player-card-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(154, 230, 180, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
.player-card-link:hover .player-link,
.player-card-link:focus-visible .player-link {
  color: var(--accent);
}
.player-link { color: var(--text); text-decoration: none; font-weight: 700; }
.player-link:hover,
.highlight-link:hover { color: var(--accent); }

.mobile-matrix {
  display: none;
  gap: 12px;
}

.mobile-matrix-section {
  display: grid;
  gap: 10px;
}

.mobile-year-filter-row {
  display: grid;
  gap: 10px;
}

.mobile-year-filter {
  width: 100%;
  display: flex;
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(154, 230, 180, 0.22);
  background: rgba(154, 230, 180, 0.08);
  color: #d8f7e3;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.mobile-year-filter.active,
.mobile-year-filter[aria-expanded="true"] {
  color: #07131f;
  -webkit-text-fill-color: #07131f;
  border-color: rgba(154, 230, 180, 0.55);
  background: linear-gradient(135deg, rgba(154, 230, 180, 0.95), rgba(217, 249, 157, 0.92));
}

.mobile-year-section {
  display: grid;
  gap: 10px;
}

.mobile-year-card-list {
  display: grid;
  gap: 10px;
  padding: 0 4px 2px;
}

.mobile-matrix-empty {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: center;
}

.mobile-year-filter:hover,
.mobile-year-filter:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(154, 230, 180, 0.4);
  background: rgba(154, 230, 180, 0.14);
}

.mobile-matrix-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.mobile-matrix-toggle-icon {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.mobile-matrix-table-wrap {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-player-matrix {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mobile-player-matrix th,
.mobile-player-matrix td {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}

.mobile-player-matrix thead th {
  border-top: 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-year-cell {
  width: 72px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.mobile-player-matrix .player-card-link {
  min-width: 0;
  width: 100%;
}

.mobile-empty-cell {
  color: var(--muted);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
}

.logo-badge img,
.profile-avatar,
.profile-club-logo,
.profile-league-logo { object-fit: cover; }

.logo-badge img,
.profile-club-logo,
.profile-league-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.empty-cell { color: #6f82a1; font-style: italic; }
.spotlight-grid,
.about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attributes-page {
  display: grid;
  gap: 24px;
}

.attributes-card h3 {
  margin-top: 4px;
}

.security-card {
  width: 100%;
}

.security-table th:not(:first-child),
.security-table td:not(:first-child) {
  text-align: center;
}

.security-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #9ae6b4;
}

.security-actions {
  margin-top: 18px;
}

.player-security-wrap {
  margin-top: 22px;
  max-height: 560px;
  overflow: auto;
}

.contact-layout {
  align-items: start;
}

.contact-card {
  width: 100%;
}

.profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.profile-top > .player-header,
.profile-top > .profile-bio,
.profile-top > .stats-card,
.profile-top > .coaches-card,
.profile-top > .highlights-card,
.profile-top > .testimonials-card {
  grid-column: 1;
}

.profile-top > .facts-card,
.profile-top > .strengths-card,
.profile-top > .profile-notes-card {
  grid-column: 2;
}

.profile-top > .player-header { grid-row: 1; }
.profile-top > .profile-bio { grid-row: 2; }
.profile-top > .facts-card { grid-row: 1 / span 2; }
.profile-top > .stats-card { grid-row: 3; }
.profile-top > .coaches-card { grid-row: 6; }
.profile-top > .strengths-card { grid-row: 3; }
.profile-top > .profile-notes-card { grid-row: 4; }
.profile-top > .highlights-card { grid-row: 4; }
.profile-top > .testimonials-card { grid-row: 5; }
.profile-top > .coaches-card { grid-row: 6; }

.player-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.profile-avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-meta { display: grid; align-content: start; gap: 16px; }
.meta-pill { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.player-number {
  color: var(--text);
  font-size: 1em;
  margin-left: 10px;
  white-space: nowrap;
}
.facts-card {
  padding: 24px;
}

.facts-card h3 {
  font-size: 1.18rem;
  margin-bottom: 16px;
}

.facts-subsection {
  margin-top: 22px;
}

.facts-subsection h3 {
  font-size: 1.18rem;
  margin: 0 0 16px;
}

.facts-grid {
  gap: 10px;
}

.fact-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.92rem; }
.fact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-row span:first-child { color: var(--muted); }
.fact-row span:last-child { text-align: right; }
.profile-logo-card { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; }
.highlight-link { display: block; padding: 14px 16px; border-radius: 16px; color: var(--text); text-decoration: none; }
.highlights-table td {
  vertical-align: top;
}

.highlights-table {
  table-layout: auto;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 18px;
  overflow: hidden;
}

.highlights-table th:nth-child(1),
.highlights-table td:nth-child(1) {
  width: 1%;
  white-space: nowrap;
}

.highlights-table th:nth-child(2),
.highlights-table td:nth-child(2),
.highlights-table th:nth-child(3),
.highlights-table td:nth-child(3) {
  text-align: left;
}

.highlights-table th {
  text-align: left;
  padding-bottom: 12px;
  color: #dfe8f6;
  background: rgba(255, 255, 255, 0.035);
}

.highlights-table th:last-child,
.highlights-table td:last-child {
  text-align: left;
}

.highlights-table th,
.highlights-table td {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.highlights-table tbody tr:last-child td {
  border-bottom: 0;
}

.highlights-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.video-cell-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-preview-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.video-preview-thumb-link,
.video-preview-frame,
.video-preview-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.video-preview-thumb-link {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.video-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-video-accordion {
  display: none;
  gap: 12px;
}

.mobile-video-section {
  display: grid;
  gap: 10px;
}

.mobile-video-toggle,
.mobile-video-type {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.mobile-video-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  text-align: left;
}

.mobile-video-panel {
  display: grid;
  gap: 10px;
}

.mobile-video-type-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-video-type {
  padding: 10px 12px;
  font-weight: 700;
}

.mobile-video-type.active {
  border-color: rgba(154, 230, 180, 0.35);
  background: rgba(154, 230, 180, 0.12);
  color: var(--accent);
}

.video-preview-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(7, 16, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.video-preview-play::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-38%, -50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid white;
}

.video-preview-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.video-preview-link {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.profile-links p {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-inline-link {
  color: var(--text);
  text-decoration: none;
}

.profile-inline-link:hover {
  color: var(--accent);
}

.testimonials-card p {
  color: var(--muted);
}

.testimonials-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.testimonial-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-meta h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.testimonial-meta p {
  margin: 0;
  font-size: 0.9rem;
}

.testimonial-card blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid rgba(154, 230, 180, 0.5);
  color: var(--text);
  line-height: 1.65;
}

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

.attribute-stack {
  display: grid;
  gap: var(--attribute-stack-gap);
  height: 100%;
  margin-top: 14px;
  padding-bottom: 10px;
}

.attribute-group {
  display: grid;
  align-content: start;
  gap: var(--attribute-group-gap);
}

.attribute-group:last-child {
  padding-bottom: 8px;
}

.attribute-group h4 {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-grid {
  margin-top: 0;
  gap: 10px;
}

.strength-card {
  display: grid;
  justify-items: center;
  gap: var(--attribute-card-gap);
  padding: var(--attribute-card-padding);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  min-height: var(--attribute-card-min-height);
  align-content: center;
}

.strength-card span {
  font-size: var(--attribute-label-size);
  line-height: 1.2;
}

.strength-image,
.strength-thumb,
.skill-library-image {
  width: var(--attribute-icon-size);
  height: var(--attribute-icon-size);
  border-radius: 20px;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.attribute-image-mono {
  filter: brightness(0) invert(1);
}

.attribute-image-color {
  filter: none;
}

.profile-side-card {
  padding: 24px;
}

.profile-side-card h3 {
  margin-bottom: 14px;
}

.accomplishments-list,
.seasons-overview-list,
.profile-notes-card {
  display: grid;
  gap: 14px;
}

.profile-notes-card {
  align-content: start;
}

.profile-notes-title {
  margin: 0;
  font-size: 1.18rem;
  color: var(--text);
  line-height: 1;
}

.season-overview-title {
  margin-top: 0;
}

.profile-notes-card .seasons-overview-list {
  margin-top: -4px;
}

.accomplishments-list {
  margin: -8px 0 0;
  padding-left: 20px;
}

.accomplishments-list li {
  line-height: 1.6;
  color: var(--text);
}

.season-overview-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.season-overview-item h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.season-overview-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.strength-thumb.placeholder {
  display: block;
}

.accomplishment-item input,
.season-overview-row input,
.season-overview-row textarea {
  width: 100%;
}

.skills-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
}

.skills-table th,
.skills-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.skills-table td {
  color: var(--text);
}

.skills-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skill-create-grid {
  align-items: end;
}

.compact-actions {
  margin-top: 16px;
  justify-content: flex-start;
}

.strength-preview {
  display: grid;
  place-items: center;
}

.stats-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.stats-table th,
.stats-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.92rem;
  white-space: nowrap;
}

.stats-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-table td:last-child,
.stats-table th:last-child {
  text-align: right;
}

.highlights-table.stats-table td:last-child,
.highlights-table.stats-table th:last-child {
  text-align: left;
}

.stats-table .stats-total-row td {
  font-style: italic;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.stats-table .stats-total-row:hover td {
  background: rgba(255, 255, 255, 0.07);
}

.stats-table th:first-child,
.stats-table td:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 1;
  background: #132033;
  box-shadow: 10px 0 14px rgba(6, 17, 31, 0.18);
}

.stats-table th:first-child {
  z-index: 2;
}

.stats-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.stats-empty {
  color: var(--muted);
}

.table-action {
  padding: 5px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 123, 114, 0.22);
  background: rgba(255, 123, 114, 0.08);
  color: #ffb4ae;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.15;
}

.table-action[disabled] {
  opacity: 0.45;
  cursor: default;
}

.row-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.player-modal {
  width: min(860px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

.player-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.player-form {
  padding: 24px;
  background: #0b1628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  max-height: min(88vh, 980px);
  overflow: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-span { grid-column: 1 / -1; }

.form-section-heading {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section-heading h4 {
  margin: 4px 0 0;
  font-size: 1rem;
}

[data-about-only].hidden,
[data-intro-only].hidden,
[data-contact-show].hidden {
  display: none !important;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero-panel,
  .about-layout,
  .profile-top,
  .profile-layout,
  .player-header,
  .spotlight-grid,
  .about-cards { grid-template-columns: 1fr; }
  .section-header { align-items: stretch; }
  .profile-top > .player-header,
  .profile-top > .profile-bio,
  .profile-top > .facts-card,
  .profile-top > .stats-card,
  .profile-top > .coaches-card,
  .profile-top > .strengths-card,
  .profile-top > .profile-notes-card,
  .profile-top > .testimonials-card,
  .profile-top > .roles-card,
  .profile-top > .highlights-card {
    grid-column: 1;
    grid-row: auto;
  }
  .strengths-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell { width: min(calc(100% - 20px), var(--max)); }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    position: static;
    border-radius: 28px;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
  }
  .topbar > .brand,
  .topbar > .mobile-nav-toggle {
    grid-row: 1;
  }
  .brand {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: 0;
  }
  .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    width: 100%;
    display: grid;
    gap: 8px;
  }
  .topnav a,
  .topnav button,
  .session-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-copy,
  .about-copy,
  .player-header,
  .facts-card,
  .stats-card,
  .coaches-card,
  .strengths-card,
  .profile-side-card,
  .roles-card,
  .highlights-card,
  .testimonials-card,
  .profile-bio,
  .section-header,
  .login-card,
  .spotlight-card,
  .about-card,
  .attributes-card,
  .player-form { padding: 22px; }
  .hero-actions,
  .section-actions,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-grid { grid-template-columns: 1fr; }
  .stats-fields-grid { grid-template-columns: 1fr 1fr; }
  .highlight-row-header,
  .highlight-row-columns,
  .highlight-link-item,
  .highlight-item { grid-template-columns: 1fr; }
  .video-cell-list { grid-template-columns: 1fr; }
  .mobile-video-accordion {
    display: grid;
  }
  .highlights-table-wrap {
    display: none;
  }
  .video-preview-card {
    padding: 8px;
  }
  .video-preview-thumb-link,
  .video-preview-frame,
  .video-preview-fallback {
    aspect-ratio: 16 / 9;
  }
  .strengths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-input { min-width: 100%; }
  .matrix-wrapper {
    padding: 10px;
    overflow: hidden;
  }
  .mobile-matrix {
    display: grid;
  }
  .topnav.mobile-collapsed {
    display: flex;
    justify-content: center;
    margin-top: 0;
  }
  .topnav.mobile-collapsed .mobile-current-link {
    width: auto;
    min-width: 0;
    justify-content: center;
    padding-inline: 16px;
    margin-top: -2px;
  }
  .topnav.mobile-open {
    justify-items: center;
  }
  .topnav.mobile-open a,
  .topnav.mobile-open button,
  .topnav.mobile-open .session-badge {
    max-width: 100%;
  }
  .topnav.mobile-collapsed .session-badge,
  .topnav.mobile-collapsed #logoutButton {
    display: none !important;
  }
  .player-chip {
    min-width: 100%;
  }
  .mobile-player-matrix th:first-child,
  .mobile-player-matrix td:first-child {
    width: 72px;
  }
  .mobile-player-matrix th:last-child,
  .mobile-player-matrix td:last-child {
    width: calc(100% - 72px);
  }
  .meta-line,
  .profile-logo-row,
  .logo-row {
    align-items: stretch;
  }
  .fact-row {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    font-size: 0.85rem;
  }
  .fact-row span:first-child {
    flex: 0 1 auto;
    white-space: nowrap;
  }
  .fact-row span:last-child {
    flex: 1 1 auto;
    text-align: right;
    white-space: nowrap;
  }
  .player-modal {
    width: calc(100% - 12px);
  }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.2rem, 12vw, 3.2rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .app-shell { width: min(calc(100% - 12px), var(--max)); }
  .brand {
    width: calc(100% - 52px);
  }
  .brand-mark {
    width: 44px;
    height: 44px;
  }
  .hero-copy,
  .about-copy,
  .player-header,
  .facts-card,
  .stats-card,
  .coaches-card,
  .strengths-card,
  .profile-side-card,
  .roles-card,
  .highlights-card,
  .testimonials-card,
  .profile-bio,
  .section-header,
  .login-card,
  .spotlight-card,
  .about-card,
  .attributes-card,
  .player-form {
    padding: 18px;
    border-radius: 22px;
  }
  .player-header {
    gap: 18px;
  }
  .profile-avatar {
    border-radius: 18px;
  }
  .strengths-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-year-filter-row {
    gap: 8px;
  }
  .mobile-year-filter {
    padding: 10px 10px;
    font-size: 0.8rem;
  }
  .player-matrix th,
  .stats-table th,
  .stats-table td,
  .stats-table th,
  .player-matrix td {
    padding: 10px;
  }
  .mobile-player-matrix th,
  .mobile-player-matrix td {
    padding: 8px;
  }
  .stats-fields-grid {
    grid-template-columns: 1fr;
  }
  .logo-badge,
  .meta-pill {
    width: 100%;
    justify-content: center;
  }
}
