@media (min-width: 761px) {
  body.playbook-page {
    background:
      radial-gradient(circle at 8% 13rem, rgba(0, 146, 189, 0.1), transparent 25rem),
      radial-gradient(circle at 94% 30rem, rgba(26, 66, 138, 0.08), transparent 31rem),
      linear-gradient(180deg, #f1f7fd 0, #f7faff 38rem, #f4f8fd 100%) !important;
  }

  body.playbook-page #main-content > .container {
    width: min(100% - 48px, 1540px);
    max-width: 1540px;
    padding: 30px 0 56px;
  }

  .ranking-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, 0.72fr);
    gap: 16px;
    margin-bottom: 16px;
  }

  body.playbook-page .ranking-overview .page-header,
  body.playbook-page .ranking-overview .info-box {
    min-height: 100%;
    margin: 0;
  }

  body.playbook-page .ranking-overview .page-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 3vw, 44px);
    border: 1px solid rgba(26, 66, 138, 0.13);
    border-radius: 26px;
    background:
      radial-gradient(circle at 93% 10%, rgba(0, 146, 189, 0.17), transparent 20rem),
      radial-gradient(circle at 5% 100%, rgba(26, 66, 138, 0.08), transparent 18rem),
      linear-gradient(140deg, #fff 0%, #f3faff 100%);
    box-shadow: 0 24px 60px -42px rgba(15, 44, 100, 0.62);
  }

  body.playbook-page .ranking-overview .page-header::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 26px;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(0, 146, 189, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 14px rgba(0, 146, 189, 0.04), 0 0 0 28px rgba(26, 66, 138, 0.025);
    pointer-events: none;
  }

  body.playbook-page .ranking-breadcrumb {
    justify-content: flex-start !important;
    margin-bottom: 17px !important;
    color: #4b6285;
    font-weight: 700;
  }

  body.playbook-page .ranking-breadcrumb a {
    border-bottom: 1px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
  }

  body.playbook-page .ranking-breadcrumb a:hover {
    color: #0f2c64 !important;
    border-color: rgba(0, 146, 189, 0.35);
  }

  .ranking-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
    margin-bottom: 13px;
    color: #1a428a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .ranking-eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0092bd;
    box-shadow: 0 0 0 6px rgba(0, 146, 189, 0.1);
  }

  body.playbook-page .ranking-overview .page-title {
    max-width: 860px;
    margin: 0;
    color: #0f2c64;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-align: left;
    text-wrap: balance;
  }

  body.playbook-page .ranking-overview .page-subtitle {
    max-width: 820px;
    margin: 18px 0 0;
    color: #4b6285;
    font-size: 0.94rem;
    line-height: 1.72;
    text-align: left;
  }

  body.playbook-page .ranking-overview .info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border: 1px solid rgba(26, 66, 138, 0.13);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 24px 60px -44px rgba(15, 44, 100, 0.55);
    text-align: left;
  }

  body.playbook-page .ranking-overview .summary-row {
    display: block;
  }

  body.playbook-page .ranking-overview .summary-item {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 20px 22px;
    border: 1px solid rgba(26, 66, 138, 0.11);
    border-left: 4px solid #0092bd;
    border-radius: 17px;
    background: linear-gradient(145deg, #f8fcff, #eef7ff);
    box-shadow: none;
  }

  body.playbook-page .ranking-overview .summary-item::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -44px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: rgba(0, 146, 189, 0.06);
  }

  body.playbook-page .ranking-overview .summary-item .label,
  body.playbook-page .ranking-overview .summary-item .value {
    position: relative;
    z-index: 1;
    text-align: left;
  }

  body.playbook-page .ranking-overview .summary-item .label {
    margin-bottom: 7px;
    color: #5b7190;
    font-size: 0.67rem;
    letter-spacing: 0.09em;
  }

  body.playbook-page .ranking-overview .summary-item .value {
    font-size: clamp(1rem, 1.25vw, 1.22rem);
    letter-spacing: -0.02em;
  }

  body.playbook-page .ranking-overview .legend {
    display: flex;
    width: 100%;
    margin: 13px 0 0;
    padding: 11px 12px;
    border: 0;
    border-radius: 13px;
    background: rgba(0, 146, 189, 0.075);
    color: #344f78;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  body.playbook-page .ranking-overview .legend-chip {
    width: 18px;
    height: 18px;
    border-radius: 5px;
  }

  html.ranking-mobile-enhanced .ranking-tools {
    display: grid;
  }

  .ranking-tools {
    grid-template-columns: minmax(250px, 0.72fr) minmax(330px, 1.28fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 16px;
    padding: 17px 18px;
    border: 1px solid rgba(26, 66, 138, 0.13);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px -34px rgba(15, 44, 100, 0.56);
    backdrop-filter: blur(14px);
  }

  .ranking-tools .ranking-mobile-field {
    display: grid;
    gap: 7px;
    min-width: 0;
  }

  .ranking-tools .ranking-mobile-label {
    color: #536b8d;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .ranking-tools .ranking-select-shell,
  .ranking-tools .ranking-search-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .ranking-tools .ranking-mobile-select,
  .ranking-tools .ranking-mobile-search {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 1px solid rgba(26, 66, 138, 0.15);
    border-radius: 13px;
    outline: 0;
    background: #f7fbff;
    color: #0f2c64;
    font: 700 0.83rem/1.2 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }

  .ranking-tools .ranking-mobile-select {
    padding: 0 43px 0 14px;
    appearance: none;
  }

  .ranking-tools .ranking-mobile-search {
    padding: 0 14px 0 44px;
  }

  .ranking-tools .ranking-select-shell > svg,
  .ranking-tools .ranking-search-shell > svg {
    position: absolute;
    z-index: 1;
    width: 19px;
    height: 19px;
    color: #0092bd;
    pointer-events: none;
  }

  .ranking-tools .ranking-select-shell > svg { right: 14px; }
  .ranking-tools .ranking-search-shell > svg { left: 14px; }

  .ranking-tools .ranking-mobile-select:hover,
  .ranking-tools .ranking-mobile-search:hover {
    border-color: rgba(0, 146, 189, 0.42);
    background: #fff;
  }

  .ranking-tools .ranking-mobile-select:focus,
  .ranking-tools .ranking-mobile-search:focus {
    border-color: #0092bd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 146, 189, 0.1);
  }

  .ranking-tools .ranking-mobile-search::placeholder {
    color: #7890ae;
    font-weight: 600;
  }

  .ranking-tools .ranking-mobile-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(0, 146, 189, 0.12);
    border-radius: 13px;
    background: rgba(0, 146, 189, 0.07);
    color: #1a428a;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
  }

  body.playbook-page .section-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid rgba(26, 66, 138, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.87);
    box-shadow: 0 16px 38px -34px rgba(15, 44, 100, 0.52);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 146, 189, 0.35) transparent;
  }

  body.playbook-page .section-tab {
    min-width: 64px;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: #35527d;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.015em;
  }

  body.playbook-page .section-tab:hover {
    border-color: rgba(0, 146, 189, 0.14);
    background: #f1f8fe;
    color: #0f2c64;
    box-shadow: none;
    transform: none;
  }

  body.playbook-page .section-tab:focus-visible {
    outline: 3px solid rgba(0, 146, 189, 0.24);
    outline-offset: 2px;
  }

  body.playbook-page .section-tab.active {
    border-color: transparent;
    background: linear-gradient(135deg, #1a428a 0%, #0877aa 58%, #0092bd 100%);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(0, 146, 189, 0.7);
  }

  body.playbook-page .section-box {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(26, 66, 138, 0.13);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 56px -42px rgba(15, 44, 100, 0.64);
  }

  body.playbook-page .section-title {
    justify-content: space-between;
    min-height: 68px;
    padding: 14px 20px 14px 23px;
    background: radial-gradient(circle at 82% -120%, rgba(255, 255, 255, 0.2), transparent 18rem), linear-gradient(112deg, #0f2c64 0%, #1a428a 52%, #0092bd 100%);
  }

  body.playbook-page .section-title-text {
    font-size: 1.03rem;
    letter-spacing: -0.012em;
    text-align: left;
  }

  body.playbook-page .section-count {
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.13);
    font-size: 0.7rem;
    backdrop-filter: blur(8px);
  }

  body.playbook-page .section-content { padding: 12px; }

  body.playbook-page .table-wrap {
    max-height: min(72vh, 850px);
    overflow: auto;
    border: 1px solid rgba(26, 66, 138, 0.1);
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 146, 189, 0.36) #edf5fb;
  }

  body.playbook-page .table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
  body.playbook-page .table-wrap::-webkit-scrollbar-track { border-radius: 999px; background: #edf5fb; }
  body.playbook-page .table-wrap::-webkit-scrollbar-thumb { border: 2px solid #edf5fb; border-radius: 999px; background: rgba(0, 146, 189, 0.42); }

  body.playbook-page .rank-table { min-width: 1290px; }
  body.playbook-page .rank-table th,
  body.playbook-page .rank-table td { padding: 13px 14px; }

  body.playbook-page .rank-table thead th {
    top: 0;
    height: 50px;
    background: linear-gradient(180deg, #f8fbff, #edf5fc);
    color: #244775;
    font-size: 0.66rem;
    letter-spacing: 0.075em;
    box-shadow: inset 0 -1px 0 rgba(26, 66, 138, 0.12);
  }

  body.playbook-page .rank-table tbody tr {
    transition: background-color 0.14s ease, box-shadow 0.14s ease;
  }

  body.playbook-page .rank-table tbody tr:hover {
    background: #edf7fd;
    box-shadow: inset 3px 0 0 #0092bd;
  }

  body.playbook-page .rank-table th:first-child,
  body.playbook-page .rank-table td:first-child { width: 72px; min-width: 72px; max-width: 72px; }

  body.playbook-page .rank-table th:nth-child(2),
  body.playbook-page .rank-table td:nth-child(2) { left: 72px; width: 310px; min-width: 310px; max-width: 310px; }

  body.playbook-page .rank-table th:nth-child(3),
  body.playbook-page .rank-table td:nth-child(3) {
    left: 382px;
    min-width: 132px;
    border-right: 1px solid rgba(26, 66, 138, 0.13);
    box-shadow: 10px 0 18px -18px rgba(15, 44, 100, 0.65);
  }

  body.playbook-page .rank-badge { width: 40px; height: 40px; border-radius: 13px; font-size: 0.88rem; }
  body.playbook-page .rank-badge.other { border-color: rgba(0, 146, 189, 0.13); background: #eef7fd; color: #1a428a; }
  body.playbook-page .athlete-cell { padding: 13px 15px !important; }

  body.playbook-page .athlete-name {
    color: #0f2c64;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
  }

  body.playbook-page .athlete-name a:focus-visible {
    outline: 3px solid rgba(0, 146, 189, 0.2);
    outline-offset: 3px;
    border-radius: 4px;
  }

  body.playbook-page .age-category-badge {
    padding: 3px 8px;
    border-color: rgba(0, 146, 189, 0.2);
    background: #eef9fc;
    color: #087293;
    font-size: 0.61rem;
  }

  body.playbook-page .chosen-meta {
    padding: 5px 9px;
    border-color: rgba(0, 146, 189, 0.13);
    background: rgba(0, 146, 189, 0.07);
    font-size: 0.64rem;
  }

  body.playbook-page details.chosen-panel {
    border-color: rgba(26, 66, 138, 0.11);
    border-radius: 11px;
    box-shadow: none;
  }

  body.playbook-page details.chosen-panel summary {
    padding: 9px 10px;
    background: #f5f9fd;
    color: #294c78;
    font-size: 0.68rem;
  }

  body.playbook-page details.chosen-panel summary:hover { background: #edf7fd; color: #0f2c64; }
  body.playbook-page details.chosen-panel summary:focus-visible { outline: 3px solid rgba(0, 146, 189, 0.2); outline-offset: -3px; }
  body.playbook-page .chosen-list { padding: 8px; }

  body.playbook-page .chosen-list li {
    padding: 7px;
    border-color: rgba(26, 66, 138, 0.09);
    border-radius: 8px;
    font-size: 0.69rem;
  }

  body.playbook-page .chosen-score { min-width: 52px; box-shadow: none; }

  body.playbook-page .rating-cell {
    color: #0f2c64;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
  }

  body.playbook-page .month-cell { min-width: 190px; padding: 10px 12px !important; }
  body.playbook-page .month-item { gap: 10px; padding: 7px 0; }

  body.playbook-page .month-item-name {
    color: #35557f;
    font-size: 0.69rem;
    line-height: 1.4;
  }

  body.playbook-page .month-item-score {
    min-width: 55px;
    padding: 4px 7px;
    border-color: rgba(26, 66, 138, 0.09);
    border-radius: 7px;
    background: #f0f6fb;
    color: #294c78;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
  }

  body.playbook-page .month-item-score.selected {
    border-color: transparent;
    background: linear-gradient(135deg, #1a428a, #0092bd);
    color: #fff;
    box-shadow: 0 7px 16px -10px rgba(0, 146, 189, 0.72);
  }

  body.playbook-page .ranking-mobile-empty {
    display: block;
    margin: 18px;
    padding: 34px;
    border: 1px dashed rgba(0, 146, 189, 0.28);
    border-radius: 15px;
    background: #f7fbff;
    color: #4b6285;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
  }

  body.playbook-page .ranking-mobile-empty[hidden] {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  body.playbook-page #main-content > .container { width: min(100% - 30px, 1540px); }
  .ranking-overview { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); }
  body.playbook-page .ranking-overview .page-header { padding: 28px; }
  body.playbook-page .ranking-overview .page-title { font-size: clamp(1.75rem, 3.8vw, 2.35rem); }
  .ranking-tools { grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr); }
  .ranking-tools .ranking-mobile-status { grid-column: 1 / -1; justify-self: start; width: auto; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  body.playbook-page .section-tab,
  body.playbook-page .rank-table tbody tr,
  .ranking-tools .ranking-mobile-select,
  .ranking-tools .ranking-mobile-search { transition: none !important; }
}
