
    :root {
      --bg: #0b111f;
      --text: #eef3ff;
      --muted: #9fb0d0;
      --red: #ff4655;
      --red-dark: #c93644;
      --green: #35d07f;
      --orange: #f88008;
      --border: rgba(255,255,255,0.11);
      --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
      --radius: 18px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: Inter, Segoe UI, Arial, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(255,70,85,0.25), transparent 28%),
        radial-gradient(circle at bottom right, rgba(53,208,127,0.12), transparent 25%),
        var(--bg);
      color: var(--text);
      min-height: 100vh;
    }

    header {
      padding: 42px 24px 30px;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
    }

    .badge {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      padding: 8px 14px;
      border: 1px solid rgba(247, 114, 6, 0.45);
      border-radius: 999px;
      color: #c27120;
      background: rgba(190, 62, 2, 0.12);
      font-size: 1.4rem;
      font-weight: 900;
      margin-bottom: 16px;
    }

    h1 {
      margin: 0;
      font-size: clamp(2rem, 5vw, 4rem);
      letter-spacing: -1.5px;
    }

    .subtitle {
      max-width: 900px;
      margin: 14px auto 0;
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.6;
    }

    nav {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
      padding: 14px 16px;
      background: rgba(11,17,31,0.90);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
    }

    nav a {
      color: var(--text);
      text-decoration: none;
      padding: 9px 13px;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      border: 1px solid transparent;
      font-size: 0.92rem;
      font-weight: 700;
    }

    nav a:hover {
      border-color: rgba(233, 3, 3, 0.55);
      background: rgba(255,70,85,0.14);
    }

    main.page-layout {
      width: min(1800px, calc(100% - 32px));
      margin: 28px auto 70px;
      display: grid;
      grid-template-columns: 500px 1fr;
      gap: 24px;
      align-items: start;
    }

    .main-content { min-width: 0; }

    .video-archive {
      position: sticky;
      top: 78px;
      height: calc(100vh - 96px);
      overflow-y: auto;
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px;
      box-shadow: var(--shadow);
      scroll-margin-top: 90px;
    }

    .video-archive h2 {
      position: sticky;
      top: -18px;
      z-index: 2;
      margin: -18px -18px 12px -18px;
      padding: 18px 18px 14px;
      background: #0b111f;
      border-bottom: 1px solid var(--border);
      font-size: 1.15rem;
    }

    .video-archive p {
      color: var(--muted);
      font-size: 0.9rem;
      line-height: 1.5;
      margin: 0 0 16px;
    }

    .archive-video {
      display: block;
      margin-bottom: 16px;
      color: var(--text);
      text-decoration: none;
      border-radius: 14px;
      overflow: hidden;
      background: rgba(255,255,255,0.045);
      border: 1px solid var(--border);
      transition: transform 0.15s ease, border 0.15s ease;
    }

    .archive-video:hover {
      transform: translateY(-2px);
      border-color: rgba(255,70,85,0.65);
    }

    .thumbnail-placeholder {
      width: 100%;
      aspect-ratio: 16 / 9;
      display: flex;
      align-items: center;
      justify-content: center;
      background:
        linear-gradient(135deg, rgba(255,70,85,0.28), rgba(255,255,255,0.04)),
        #111827;
      border-bottom: 1px solid var(--border);
      color: #ffd7dc;
      font-weight: 900;
      letter-spacing: 0.5px;
    }

    .archive-video-content { padding: 11px; }
    .archive-video-title { font-weight: 900; margin-bottom: 5px; }
    .archive-video-desc { color: var(--muted); font-size: 0.84rem; line-height: 1.4; }

    .dashboard {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }

    .stat-card,
    .section-card,
    .game-card,
    .note-box {
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .stat-card { padding: 18px; }
    .stat-label { color: var(--muted); font-size: 0.9rem; }
    .stat-value { font-size: 1.45rem; font-weight: 900; margin-top: 8px; }

    .tracker-button,
    .link-button {
      display: inline-block;
      margin-top: 15px;
      padding: 12px 18px;
      background: var(--red);
      color: white;
      text-decoration: none;
      border-radius: 10px;
      font-weight: 900;
      font-size: 0.9rem;
      transition: transform 0.15s ease, background 0.15s ease;
    }

    .tracker-button:hover,
    .link-button:hover {
      background: #000000;
      transform: translateY(-2px);
    }

    .section-card {
      margin: 18px 0;
      overflow: hidden;
      scroll-margin-top: 90px;
    }

    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 20px 22px;
      background: rgba(255,255,255,0.035);
      border-bottom: 1px solid var(--border);
    }

    .section-title { margin: 0; font-size: 1.35rem; }
    .section-desc { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }

    .pill {
      white-space: nowrap;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(53,208,127,0.12);
      color: #bcffd9;
      border: 1px solid rgba(53,208,127,0.32);
      font-weight: 800;
    }

    .section-body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      padding: 20px 22px 22px;
    }

    .full-width { grid-column: 1 / -1; }

    .note-box {
      padding: 16px;
      box-shadow: none;
      background: rgba(255,255,255,0.045);
    }

    .note-box h3,
    .game-card h3 {
      margin: 0 0 10px;
      font-size: 1.05rem;
    }

    .note-box p,
    .game-card p {
      color: var(--muted);
      line-height: 1.65;
      margin: 0;
    }

    .note-box ul,
    .game-card ul {
      color: var(--muted);
      line-height: 1.65;
      margin: 8px 0 0 20px;
      padding: 0;
    }

    .games-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      padding: 20px 22px 22px;
    }

    .game-card {
      padding: 16px;
      box-shadow: none;
      background: rgba(255,255,255,0.045);
    }

    .game-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 10px 0;
    }

    .tag {
      display: inline-block;
      padding: 5px 9px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      color: #d7e2ff;
      border: 1px solid var(--border);
      font-size: 0.78rem;
      font-weight: 800;
    }

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

    .footer-note {
      text-align: center;
      color: var(--muted);
      margin-top: 30px;
      line-height: 1.5;
    }

    code {
      color: #ffd1d6;
      background: rgba(255,70,85,0.12);
      padding: 2px 6px;
      border-radius: 6px;
    }

    @media (max-width: 1200px) {
      main.page-layout { grid-template-columns: 280px 1fr; }
      .dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .games-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 900px) {
      main.page-layout { grid-template-columns: 1fr; }
      .video-archive { position: static; height: auto; max-height: none; }
      .video-archive h2 { position: static; margin: 0 0 12px; padding: 0 0 12px; background: transparent; }
      .dashboard,
      .section-body,
      .warmup-grid { grid-template-columns: 1fr; }
      .section-head { align-items: flex-start; flex-direction: column; }
    }
    .rank-display {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rank-display img {
    width: 50px;
    height: 50px;
}

.thumbnail-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}

.game-buttons .link-button {
  margin-top: 0;
}

.game-text-block {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.game-text-block h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.game-text-block p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.coach-feedback textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: rgba(11,17,31,0.95);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
}

.coach-feedback textarea:focus {
  border-color: rgba(255,70,85,0.65);
  box-shadow: 0 0 0 3px rgba(255,70,85,0.12);
}
.coach-note-input {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: rgba(11,17,31,0.95);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    outline: none;
}

.coach-note-input:focus {
    border-color: rgba(255,70,85,0.65);
    box-shadow: 0 0 0 3px rgba(255,70,85,0.12);
}
.save-row {
  padding-top: 0;
}

button.link-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.game-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.game-input-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.game-input-grid input,
.game-line-input,
.game-text-block textarea,
.coach-feedback textarea,
.coach-note-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(9, 14, 26, 0.92);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.game-input-grid input::placeholder,
.game-line-input::placeholder,
.game-text-block textarea::placeholder,
.coach-feedback textarea::placeholder,
.coach-note-input::placeholder {
  color: #7f8cab;
}

.game-input-grid input:focus,
.game-line-input:focus,
.game-text-block textarea:focus,
.coach-feedback textarea:focus,
.coach-note-input:focus {
  border-color: rgba(255,70,85,0.72);
  box-shadow: 0 0 0 3px rgba(255,70,85,0.14);
  background: rgba(12, 18, 32, 0.98);
}

.game-line-input {
  min-height: 46px;
}

.game-text-block textarea {
  min-height: 110px;
  resize: vertical;
}

.game-card {
  padding: 18px;
}

.game-card h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.game-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 18px;
}

.game-buttons .link-button,
.game-card button.link-button {
  width: 100%;
  text-align: center;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
}

.game-text-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.game-text-block h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
}

.game-card button.link-button {
  margin-top: 16px;
}

@media (max-width: 700px) {
  .game-input-grid,
  .game-buttons {
    grid-template-columns: 1fr;
  }
}
/* Navigation Animation */

nav a {
  opacity: 0;
  transform: translateY(-20px);
  animation: navButtonIn 0.5s ease forwards;
}

nav a:nth-child(1) { animation-delay: 0.1s; }
nav a:nth-child(2) { animation-delay: 0.2s; }
nav a:nth-child(3) { animation-delay: 0.3s; }
nav a:nth-child(4) { animation-delay: 0.4s; }
nav a:nth-child(5) { animation-delay: 0.5s; }
nav a:nth-child(6) { animation-delay: 0.6s; }
nav a:nth-child(7) { animation-delay: 0.7s; }
nav a:nth-child(8) { animation-delay: 0.8s; }
nav a:nth-child(9) { animation-delay: 0.9s; }
nav a:nth-child(10) { animation-delay: 1s; }

@keyframes navButtonIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Slider */
.video-archive::-webkit-scrollbar {
    width: 12px;
}

.video-archive::-webkit-scrollbar-track {
    background: rgba(10, 18, 40, 0.9);
    border-radius: 20px;
}

.video-archive::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #ff4655,
        #ff7b4a
    );
    border-radius: 20px;
    border: 2px solid rgba(10, 18, 40, 0.9);
}

.video-archive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #ff5d6b,
        #ff8e63
    );
}