/* =========================================================
   JMFCool Analytics
   COMPLETE TURNKEY style.css

   Built specifically for:
   - index.html supplied by user
   - current JMFCool Analytics script.js
   - JMFCool.org visual language
   - Light / Dark theme via [data-theme]

   LIVE INDICATOR:
   - 8px round dot
   - Pulsating dot
   - Expanding glow
   - LIVE text pulses/glows
   - NO layout/dimension changes
   ========================================================= */


/* =========================================================
   ROOT / THEME TOKENS
   ========================================================= */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #fafbfd;
  --surface-raised: #ffffff;

  --border: #dfe5ee;
  --border-strong: #cbd4e1;

  --text: #0f1420;
  --text-soft: #293246;
  --muted: #57617a;
  --muted-light: #7a8498;

  --primary: #1c5fd9;
  --primary-hover: #144aac;
  --primary-soft: rgba(28, 95, 217, 0.10);

  --success: #16834b;
  --danger: #c93434;
  --warning: #a96b00;

  --shadow-sm: 0 4px 14px rgba(15, 20, 32, 0.05);
  --shadow: 0 12px 30px rgba(15, 20, 32, 0.07);
  --shadow-lg: 0 22px 55px rgba(15, 20, 32, 0.10);

  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;

  --content-width: 1200px;

  --header-height: 72px;

  --font:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color-scheme: light;
}


html[data-theme="dark"] {
  --bg: #0b0f16;
  --surface: #111722;
  --surface-soft: #151c28;
  --surface-raised: #192231;

  --border: #273244;
  --border-strong: #354156;

  --text: #f5f7fb;
  --text-soft: #dbe1eb;
  --muted: #9ba7ba;
  --muted-light: #7d899d;

  --primary: #4b86ed;
  --primary-hover: #6a9bf2;
  --primary-soft: rgba(75, 134, 237, 0.13);

  --success: #45c986;
  --danger: #ef6262;
  --warning: #e2a943;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.18);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.34);

  color-scheme: dark;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
  background: var(--bg);
}


body {
  margin: 0;
  min-width: 320px;

  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(28, 95, 217, 0.055),
      transparent 38%
    ),
    var(--bg);

  color: var(--text);

  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  transition:
    background-color 180ms ease,
    color 180ms ease;
}


button,
input,
select {
  font: inherit;
}


button {
  cursor: pointer;
}


button:disabled {
  cursor: not-allowed;
}


a {
  color: inherit;
  text-decoration: none;
}


img {
  max-width: 100%;
  display: block;
}


::selection {
  background: var(--primary);
  color: #ffffff;
}


/* =========================================================
   HEADER
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;

  height: var(--header-height);

  background: var(--surface);

  border-bottom: 1px solid var(--border);

  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}


.nav__inner {
  width: min(
    calc(100% - 40px),
    var(--content-width)
  );

  height: 100%;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    auto
    1fr
    auto;

  align-items: center;

  gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;

  white-space: nowrap;

  font-weight: 800;
  letter-spacing: -0.03em;
}


.nav__mark,
.footer-mark {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border-radius: 10px;

  background: var(--primary);
  color: #ffffff;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;

  box-shadow:
    0 6px 16px
    rgba(28, 95, 217, 0.22);
}


.nav__wordmark {
  font-size: 16px;
  color: var(--text);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;

  min-width: 0;
}


.nav__links a {
  color: var(--muted);

  font-size: 14px;
  font-weight: 600;

  transition:
    color 150ms ease;
}


.nav__links a:hover {
  color: var(--primary);
}


/* =========================================================
   THEME TOGGLE
   ========================================================= */

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


.theme-toggle {
  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--surface-soft);
  color: var(--text);

  font-size: 20px;
  line-height: 1;

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}


.theme-toggle:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);

  transform: rotate(10deg);
}


.theme-toggle:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 3px;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
  width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  width: min(
    calc(100% - 40px),
    var(--content-width)
  );

  margin: 0 auto;

  padding:
    82px 0
    72px;

  display: grid;

  grid-template-columns:
    minmax(0, 0.86fr)
    minmax(500px, 1.14fr);

  align-items: center;

  gap: 70px;
}


.hero-copy {
  max-width: 520px;
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 22px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}


/* =========================================================
   JMFCool LIVE DOT
   ========================================================= */

/* =========================================================
PORTAL PILL DOT
========================================================= */

.status-dot 
{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#800000;
    display:inline-block;
    position:relative;
    flex-shrink:0;
    animation:status-dot 1.8s infinite ease-in-out;
}

.status-dot::after 
{
    content:"";
    position:absolute;
    inset:-5px;
    border-radius:50%;
    background:rgba(128,0,0,.18);
    animation:status-dot-glow 1.8s infinite ease-in-out;
}

@keyframes status-dot 
{
    0%, 100% {
        opacity:.45;
        transform:scale(1);
    }

    50% {
        opacity:1;
        transform:scale(1.35);
    }

}

@keyframes status-dot-glow 
{
    0%, 100% 
    {
        opacity:.15;
        transform:scale(.8);
    }

    50% 
    {
        opacity:.55;
        transform:scale(1.5);
    }
}


/* =========================================================
   HERO TYPOGRAPHY
   ========================================================= */

.hero h1 {
  margin: 0;

  max-width: 600px;

  font-size: clamp(
    48px,
    6vw,
    76px
  );

  line-height: 0.98;

  letter-spacing: -0.065em;

  font-weight: 800;
}


.hero h1 span {
  color: var(--primary);
}


.hero-copy > p {
  max-width: 500px;

  margin:
    28px 0
    0;

  color: var(--muted);

  font-size: 19px;
  line-height: 1.7;
}


/* =========================================================
   CARDS
   ========================================================= */

.analysis-card,
.ranking-card,
.spotlight-card,
.metric-card,
.management-card {
  background: var(--surface);

  border: 1px solid var(--border);

  box-shadow: var(--shadow);

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}


.analysis-card {
  border-radius: var(--radius-lg);

  padding: 30px;
}


/* =========================================================
   CARD HEADINGS
   ========================================================= */

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 28px;
}


.card-kicker {
  margin-bottom: 7px;

  color: var(--primary);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.10em;
  text-transform: uppercase;
}


.card-heading h2,
.card-heading h3,
.section-heading h2,
.metric-card h3,
.spotlight-card h3 {
  margin: 0;

  color: var(--text);

  letter-spacing: -0.035em;
}


.card-heading h2 {
  font-size: 27px;
  line-height: 1.15;
}


.card-heading h3 {
  font-size: 22px;
  line-height: 1.2;
}


/* =========================================================
   LIVE BADGE
   ========================================================= */

/* =========================================================
PORTAL PILL DOT
========================================================= */

.live-badge 
{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#800000;
    display:inline-block;
    position:relative;
    flex-shrink:0;
    animation:live-badge 1.8s infinite ease-in-out;
}

.live-badge::after 
{
    content:"";
    position:absolute;
    inset:-5px;
    border-radius:50%;
    background:rgba(128,0,0,.18);
    animation:live-badge-glow 1.8s infinite ease-in-out;
}

@keyframes live-badge 
{
    0%, 100% {
        opacity:.45;
        transform:scale(1);
    }

    50% {
        opacity:1;
        transform:scale(1.35);
    }

}

@keyframes live-badge-glow 
{
    0%, 100% 
    {
        opacity:.15;
        transform:scale(.8);
    }

    50% 
    {
        opacity:.55;
        transform:scale(1.5);
    }
}


/* =========================================================
   FORM
   ========================================================= */

.field-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}


.field {
  display: flex;
  flex-direction: column;

  min-width: 0;

  gap: 8px;
}


.field > span {
  color: var(--text-soft);

  font-size: 13px;
  font-weight: 700;
}


.field input,
.field select {
  width: 100%;
  min-height: 48px;

  padding:
    0 14px;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  background: var(--surface-soft);
  color: var(--text);

  font-size: 15px;
  font-weight: 500;

  outline: none;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}


.field input::placeholder {
  color: var(--muted-light);
}


.field input:hover,
.field select:hover {
  border-color: var(--border-strong);
}


.field input:focus,
.field select:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px
    var(--primary-soft);

  background: var(--surface);
}


.field input:disabled,
.field select:disabled {
  opacity: 0.60;
  cursor: not-allowed;
}


/* =========================================================
   SELECT ARROW
   ========================================================= */

.field select {
  appearance: none;

  padding-right: 42px;

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--muted) 50%
    ),
    linear-gradient(
      135deg,
      var(--muted) 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 17px) 20px,
    calc(100% - 12px) 20px;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;
}


/* =========================================================
   FORM NOTES / STATUS
   ========================================================= */

.form-note {
  margin: 14px 0 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.55;
}


#optionsStatus {
  margin:
    18px 0
    24px;

  padding:
    11px 13px;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  background: var(--surface-soft);
}


#optionsStatus.success {
  color: var(--success);
}


#optionsStatus.error {
  color: var(--danger);

  border-color:
    rgba(201, 52, 52, 0.25);

  background:
    rgba(201, 52, 52, 0.06);
}


/* =========================================================
   CRITERIA
   ========================================================= */

.criteria {
  margin-top: 26px;

  padding: 22px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface-soft);
}


.criteria-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}


.criteria-heading h3 {
  margin: 0;

  font-size: 18px;
  line-height: 1.25;

  letter-spacing: -0.025em;
}


.weight-total {
  min-width: 62px;

  padding: 7px 10px;

  border-radius: 999px;

  background: var(--primary-soft);

  color: var(--primary);

  text-align: center;

  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   SLIDERS
   ========================================================= */

.slider-row {
  display: grid;

  grid-template-columns:
    145px
    minmax(0, 1fr);

  align-items: center;

  gap: 18px;

  padding:
    13px 0;

  border-top: 1px solid var(--border);
}


.slider-row:first-of-type {
  border-top: 0;
}


.slider-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
}


.slider-row span {
  color: var(--text-soft);

  font-size: 14px;
  font-weight: 700;
}


.slider-row small {
  color: var(--primary);

  font-size: 13px;
  font-weight: 800;
}


.slider-row input[type="range"] {
  width: 100%;

  height: 6px;

  margin: 0;

  accent-color: var(--primary);

  cursor: pointer;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.primary-button {
  width: 100%;
  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-top: 25px;

  padding:
    0 17px;

  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);

  background: var(--primary);
  color: #ffffff;

  font-size: 15px;
  font-weight: 800;

  box-shadow:
    0 8px 18px
    rgba(28, 95, 217, 0.18);

  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}


.primary-button:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);

  transform: translateY(-1px);

  box-shadow:
    0 12px 22px
    rgba(28, 95, 217, 0.23);
}


.primary-button:active:not(:disabled) {
  transform: translateY(0);
}


.primary-button:disabled {
  opacity: 0.48;

  box-shadow: none;
}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.secondary-button {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding:
    0 15px;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  background: var(--surface-soft);
  color: var(--text);

  font-size: 13px;
  font-weight: 700;

  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}


.secondary-button:hover {
  border-color: var(--primary);

  background: var(--primary-soft);

  color: var(--primary);
}


.secondary-button:disabled {
  opacity: 0.50;
}


/* =========================================================
   RESULTS SECTION
   ========================================================= */

.results-section,
.metric-section,
.management-section {
  width: min(
    calc(100% - 40px),
    var(--content-width)
  );

  margin:
    0 auto;

  padding:
    72px 0;
}


.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 28px;
}


.section-heading h2 {
  font-size: 34px;
  line-height: 1.1;
}


.section-description {
  max-width: 470px;

  margin: 0;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.7;
}


.result-meta {
  display: flex;
  align-items: center;

  gap: 7px;

  color: var(--muted);

  font-size: 14px;
  font-weight: 600;
}


/* =========================================================
   RESULTS LAYOUT
   ========================================================= */

.results-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.6fr)
    minmax(310px, 0.8fr);

  gap: 22px;
}


/* =========================================================
   RANKING CARD
   ========================================================= */

.ranking-card {
  overflow: hidden;

  border-radius: var(--radius);
}


.table-head,
.ranking-row {
  display: grid;

  grid-template-columns:
    70px
    minmax(180px, 1fr)
    minmax(110px, 0.55fr)
    100px;

  align-items: center;
}


.table-head {
  min-height: 50px;

  padding:
    0 22px;

  background: var(--surface-soft);

  border-bottom: 1px solid var(--border);

  color: var(--muted);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.ranking-row {
  min-height: 78px;

  padding:
    13px 22px;

  border-bottom: 1px solid var(--border);

  transition:
    background-color 140ms ease;
}


.ranking-row:last-child {
  border-bottom: 0;
}


.ranking-row:hover {
  background: var(--surface-soft);
}


.rank {
  color: var(--primary);

  font-size: 18px;
  font-weight: 800;
}


.player-name {
  display: block;

  color: var(--text);

  font-size: 16px;
  font-weight: 800;
}


.player-position {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-size: 12px;
}


.team {
  color: var(--text-soft);

  font-size: 14px;
  font-weight: 600;
}


.score {
  color: var(--text);

  font-size: 18px;
  font-weight: 800;

  text-align: right;
}


/* =========================================================
   SPOTLIGHT
   ========================================================= */

.spotlight-card {
  border-radius: var(--radius);

  padding: 28px;

  background:
    linear-gradient(
      145deg,
      var(--surface),
      var(--surface-soft)
    );
}


.spotlight-rank {
  margin-top: 24px;

  color: var(--primary);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.10em;
}


.spotlight-card h3 {
  margin-top: 7px;

  font-size: 29px;
  line-height: 1.1;
}


.spotlight-card > p {
  margin:
    8px 0 0;

  color: var(--muted);

  font-size: 14px;
}


.score-display {
  margin:
    28px 0;

  padding:
    20px 0;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}


.score-display strong {
  display: block;

  color: var(--text);

  font-size: 42px;
  line-height: 1;

  letter-spacing: -0.05em;
}


.score-display span {
  display: block;

  margin-top: 8px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.08em;
}


/* =========================================================
   MINI METRIC BARS
   ========================================================= */

.mini-bars {
  display: grid;

  gap: 15px;
}


.mini-bars > div {
  display: grid;

  gap: 7px;
}


.mini-bars span {
  color: var(--text-soft);

  font-size: 12px;
  font-weight: 700;
}


.mini-bars i {
  display: block;

  width: 0%;
  height: 6px;

  overflow: hidden;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--primary-hover)
    );

  transition:
    width 400ms ease;
}


.mini-bars > div::after {
  content: "";

  display: block;

  height: 6px;

  margin-top: -13px;

  border-radius: 999px;

  background: var(--border);

  z-index: -1;
}


/* =========================================================
   METRICS
   ========================================================= */

.metric-section {
  border-top: 1px solid var(--border);
}


.metric-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}


.metric-card {
  min-height: 190px;

  border-radius: var(--radius);

  padding: 24px;
}


.metric-card > span {
  display: block;

  margin-bottom: 28px;

  color: var(--primary);

  font-size: 12px;
  font-weight: 800;
}


.metric-card h3 {
  font-size: 21px;
}


.metric-card p {
  margin:
    9px 0 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   PLAYER MANAGEMENT
   ========================================================= */

.management-section {
  border-top: 1px solid var(--border);
}


.management-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(360px, 0.85fr);

  gap: 22px;
}


.management-card {
  min-width: 0;

  border-radius: var(--radius);

  padding: 28px;
}


.management-card .card-heading {
  align-items: center;
}


.management-status {
  flex: 0 0 auto;

  color: var(--success);

  font-size: 12px;
  font-weight: 700;
}


.management-status.error {
  color: var(--danger);
}


.management-status.success {
  color: var(--success);
}


/* =========================================================
   MANAGEMENT FORM
   ========================================================= */

.player-form {
  width: 100%;
}


.manage-fields {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px;
}


.manage-fields .field:first-child,
.manage-fields .field:nth-child(2) {
  grid-column: span 1;
}


.management-actions {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 24px;
}


.management-actions .manage-submit {
  flex: 1;

  margin-top: 0;
}


.management-actions .secondary-button {
  min-width: 100px;
}


/* =========================================================
   MANAGEMENT RECORDS
   ========================================================= */

.management-rows {
  display: grid;

  gap: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}


.management-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  min-width: 0;

  padding:
    15px;

  border-bottom: 1px solid var(--border);

  background: var(--surface-soft);
}


.management-row:last-child {
  border-bottom: 0;
}


.management-row > div:first-child {
  min-width: 0;
}


.management-row strong {
  display: block;

  overflow: hidden;

  color: var(--text);

  font-size: 14px;
  font-weight: 800;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.management-row small {
  display: block;

  margin-top: 3px;

  overflow: hidden;

  color: var(--muted);

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.management-row-actions {
  display: flex;

  flex: 0 0 auto;

  gap: 7px;
}


.management-row-actions .secondary-button {
  min-height: 36px;

  padding:
    0 11px;

  font-size: 12px;
}


.danger-button {
  color: var(--danger) !important;
}


.danger-button:hover {
  border-color: var(--danger) !important;

  background:
    rgba(201, 52, 52, 0.08) !important;

  color: var(--danger) !important;
}


.empty-management {
  padding: 30px 20px;

  color: var(--muted);

  font-size: 14px;

  text-align: center;
}


/* =========================================================
   LEGACY / DYNAMIC MANAGEMENT UI
   ========================================================= */

.management-form {
  padding: 28px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);
}


.management-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 25px;
}


.management-form-header h3 {
  margin: 0;

  font-size: 22px;

  letter-spacing: -0.03em;
}


.management-close {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--surface-soft);
  color: var(--muted);

  font-size: 21px;

  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}


.management-close:hover {
  color: var(--danger);

  border-color: var(--danger);

  background:
    rgba(201, 52, 52, 0.07);
}


.management-form-actions {
  display: flex;

  gap: 10px;

  margin-top: 25px;
}


.management-form-actions .primary-button {
  flex: 1;

  margin-top: 0;
}


.management-form-actions .secondary-button {
  min-width: 100px;
}


.management-form-status {
  min-height: 20px;

  margin-top: 15px;

  color: var(--muted);

  font-size: 13px;
}


.management-form-status.success {
  color: var(--success);
}


.management-form-status.error {
  color: var(--danger);
}


.management-form-danger {
  border-color:
    rgba(201, 52, 52, 0.25);
}


.confirm-delete {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  margin-top: 20px;

  color: var(--muted);

  font-size: 13px;
}


.confirm-delete input {
  margin-top: 3px;

  accent-color: var(--danger);
}


/* =========================================================
   MANAGEMENT PLACEHOLDER
   ========================================================= */

.management-placeholder-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 15px;

  border: 1px dashed var(--border-strong);
  border-radius: 12px;

  color: var(--primary);

  font-size: 25px;
}


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


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  width: min(
    calc(100% - 40px),
    var(--content-width)
  );

  margin:
    0 auto;

  padding:
    30px 0
    40px;

  border-top: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  color: var(--muted);

  font-size: 13px;
}


.site-footer > div {
  display: flex;
  align-items: center;

  gap: 10px;
}


.site-footer strong {
  color: var(--text);

  font-size: 14px;
}


.footer-mark {
  width: 30px;
  height: 30px;

  border-radius: 8px;

  font-size: 10px;
}


/* =========================================================
   DARK MODE DETAILS
   ========================================================= */

html[data-theme="dark"] body {
  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(75, 134, 237, 0.09),
      transparent 38%
    ),
    var(--bg);
}


html[data-theme="dark"] .analysis-card,
html[data-theme="dark"] .ranking-card,
html[data-theme="dark"] .spotlight-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .management-card {
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.22);
}


html[data-theme="dark"] .nav {
  background:
    rgba(17, 23, 34, 0.94);

  backdrop-filter: blur(14px);
}


html[data-theme="dark"] .primary-button {
  box-shadow:
    0 8px 22px
    rgba(0, 0, 0, 0.28);
}


html[data-theme="dark"] .slider-row input[type="range"] {
  accent-color: var(--primary);
}


/* =========================================================
   FOCUS
   ========================================================= */

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 2px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1050px) {

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

    gap: 45px;

    padding-top: 60px;
  }


  .hero-copy {
    max-width: 700px;
  }


  .analysis-card {
    max-width: 760px;
  }


  .results-layout {
    grid-template-columns: 1fr;
  }


  .spotlight-card {
    max-width: none;
  }


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

}


/* =========================================================
   RESPONSIVE — TABLET / SMALL
   ========================================================= */

@media (max-width: 820px) {

  .nav__inner {
    grid-template-columns:
      auto
      auto;

    justify-content: space-between;
  }


  .nav__links {
    display: none;
  }


  .hero,
  .results-section,
  .metric-section,
  .management-section,
  .site-footer {
    width: min(
      calc(100% - 32px),
      var(--content-width)
    );
  }


  .hero {
    padding:
      55px 0
      50px;
  }


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


  .section-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 12px;
  }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 620px) {

  body {
    font-size: 15px;
  }


  .nav {
    height: 64px;
  }


  .nav__inner {
    width:
      calc(100% - 28px);
  }


  .nav__wordmark {
    font-size: 14px;
  }


  .nav__mark {
    width: 32px;
    height: 32px;
  }


  .theme-toggle {
    width: 36px;
    height: 36px;

    font-size: 18px;
  }


  .hero {
    padding:
      42px 0
      40px;

    gap: 32px;
  }


  .hero h1 {
    font-size: 48px;
  }


  .hero-copy > p {
    font-size: 17px;
  }


  .analysis-card,
  .management-card {
    padding: 20px;
  }


  .field-grid,
  .manage-fields {
    grid-template-columns: 1fr;
  }


  .criteria {
    padding: 17px;
  }


  .slider-row {
    grid-template-columns: 1fr;

    gap: 9px;
  }


  .slider-row > div {
    justify-content: space-between;
  }


  .table-head,
  .ranking-row {
    grid-template-columns:
      42px
      minmax(130px, 1fr)
      75px;
  }


  .table-head span:nth-child(3),
  .ranking-row .team {
    display: none;
  }


  .table-head span:last-child {
    text-align: right;
  }


  .ranking-row {
    padding:
      12px 15px;
  }


  .player-name {
    font-size: 14px;
  }


  .score {
    font-size: 16px;
  }


  .spotlight-card {
    padding: 22px;
  }


  .spotlight-card h3 {
    font-size: 25px;
  }


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


  .metric-card {
    min-height: auto;
  }


  .management-row {
    align-items: flex-start;

    flex-direction: column;
  }


  .management-row-actions {
    width: 100%;
  }


  .management-row-actions .secondary-button {
    flex: 1;
  }


  .management-actions {
    flex-direction: column;
  }


  .management-actions .manage-submit,
  .management-actions .secondary-button {
    width: 100%;
  }


  .site-footer {
    align-items: flex-start;

    flex-direction: column;

    padding-bottom: 28px;
  }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 390px) {

  .hero h1 {
    font-size: 42px;
  }


  .card-heading {
    flex-direction: column;
  }


  .live-badge {
    align-self: flex-start;
  }


  .result-meta {
    flex-wrap: wrap;
  }

}


/* =========================================================
   JMFCool ANALYTICS — LIVE PULSE ANIMATIONS
   ========================================================= */

/* Dot pulse */

@keyframes analytics-dot {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.35);
  }

}


/* Expanding dot glow */

@keyframes analytics-dot-glow {

  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.55;
    transform: scale(1.5);
  }

}


/* LIVE text glow */

@keyframes analytics-live {

  0%,
  100% {
    opacity: 0.55;

    text-shadow:
      0 0 0
      rgba(22, 131, 75, 0);
  }

  50% {
    opacity: 1;

    text-shadow:
      0 0 8px
      rgba(22, 131, 75, 0.38);
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;
  }

}
