  *{box-sizing:border-box;margin:0;padding:0}
  html,body{height:100%}
  body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;
    background:radial-gradient(circle at 20% 0%,#1a1f2e 0%,#0a0e14 60%);
    color:#e8ecf2;min-height:100vh;overflow-x:hidden;
  }
  header{
    padding:24px 32px 18px;border-bottom:1px solid rgba(255,255,255,0.06);
    display:flex;align-items:center;justify-content:space-between;
    backdrop-filter:blur(12px);position:sticky;top:0;
    background:rgba(10,14,20,0.85);z-index:50;
  }
  .logo{font-size:22px;font-weight:800;letter-spacing:-0.5px;
    background:linear-gradient(90deg,#ffa64d,#ff4d4d);
    -webkit-background-clip:text;background-clip:text;color:transparent}
  .logo span{color:#e8ecf2;-webkit-text-fill-color:#e8ecf2}
  .tagline{font-size:12px;color:#9aa3b2;letter-spacing:0.8px;text-transform:uppercase}
  .help-btn{background:transparent;border:1px solid rgba(255,255,255,0.14);color:#e8ecf2;
    font-size:12px;padding:7px 12px;border-radius:8px;cursor:pointer;margin-left:12px}
  .help-btn:hover{background:rgba(255,255,255,0.06)}
  .admin-btn{background:rgba(255,166,77,0.2);border:1px solid rgba(255,166,77,0.4);color:#ffa64d;
    font-size:12px;padding:7px 12px;border-radius:8px;cursor:pointer;margin-left:8px;font-weight:600}
  .admin-btn:hover{background:rgba(255,166,77,0.3);border-color:rgba(255,166,77,0.6)}
  .admin-panel{
    position:fixed;right:20px;top:80px;width:340px;max-height:calc(100vh - 96px);overflow-y:auto;overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    background:rgba(10,14,20,0.95);border:1px solid rgba(255,166,77,0.3);border-radius:12px;padding:16px;z-index:1000;
    box-shadow:0 12px 40px rgba(0,0,0,0.6);backdrop-filter:blur(12px)}
  .admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;border-bottom:1px solid rgba(255,255,255,0.08);padding-bottom:12px}
  .admin-header h3{font-size:16px;font-weight:700;color:#ffa64d}
  .close-admin{background:transparent;border:none;color:#7a8498;font-size:24px;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center}
  .close-admin:hover{color:#e8ecf2}
  .admin-content{display:flex;flex-direction:column;gap:16px}
  .admin-section{padding:12px 0;border-bottom:1px solid rgba(255,255,255,0.04)}
  .admin-section:last-child{border-bottom:none}
  .admin-section h4{font-size:12px;color:#ffa64d;text-transform:uppercase;letter-spacing:0.6px;font-weight:700;margin-bottom:6px}
  .admin-section p{font-size:12px;color:#9aa3b2;line-height:1.4;margin-bottom:10px}
  .save-btn{background:rgba(34,197,94,0.2);border:1px solid rgba(34,197,94,0.4);color:#4ade80;padding:7px 12px;border-radius:6px;font-size:11px;font-weight:600;cursor:pointer;margin-right:6px}
  .save-btn:hover{background:rgba(34,197,94,0.3)}
  .discard-btn{background:rgba(255,77,77,0.2);border:1px solid rgba(255,77,77,0.4);color:#ff6b6b;padding:7px 12px;border-radius:6px;font-size:11px;font-weight:600;cursor:pointer}
  .discard-btn:hover{background:rgba(255,77,77,0.3)}

  /* Edit mode roster dragging */
  body.edit-mode .roster-card,body.edit-mode .starter-card{cursor:move;transition:opacity 0.2s,border-color 0.15s,background 0.15s;user-select:none;-webkit-user-select:none;-webkit-user-drag:element}
  /* Inner images & inner divs are natively draggable in Chrome — disable so the parent card drag wins */
  body.edit-mode .roster-card img,body.edit-mode .starter-card img{-webkit-user-drag:none;user-drag:none;pointer-events:none}
  body.edit-mode .roster-card .rshot,body.edit-mode .roster-card .rinfo,
  body.edit-mode .starter-card .dshot,body.edit-mode .starter-card .sc-name,body.edit-mode .starter-card .sc-meta{-webkit-user-drag:none;pointer-events:none}
  /* Buttons inside draggable cards must not trigger their own drag ghost */
  body.edit-mode .roster-card button,body.edit-mode .starter-card button{cursor:pointer;pointer-events:auto;-webkit-user-drag:none}
  body.edit-mode .roster-card .inj-clickable{pointer-events:auto}
  body.edit-mode .roster-card.dragging,body.edit-mode .starter-card.dragging{opacity:0.4;background:rgba(255,166,77,0.15)}
  body.edit-mode .roster-card.drag-over,body.edit-mode .starter-card.drag-over{background:rgba(255,166,77,0.25)!important;border-color:rgba(255,166,77,0.7)!important;outline:2px dashed rgba(255,166,77,0.6)}
  /* Edit mode: make timeline logos show a pointer so they feel clickable */
  body.edit-mode #timeline .tlogo{cursor:pointer;transition:transform 0.15s}
  body.edit-mode #timeline .tlogo:hover{transform:scale(1.18)}

  /* ---- Logo picker popover ---- */
  .logo-picker{position:absolute;z-index:2000;background:rgba(10,14,20,0.97);border:1px solid rgba(255,166,77,0.35);border-radius:12px;padding:12px;box-shadow:0 16px 48px rgba(0,0,0,0.7);backdrop-filter:blur(14px);min-width:200px;max-width:340px}
  .lp-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,0.07);font-size:12px;font-weight:700;color:#ffa64d;letter-spacing:0.5px;text-transform:uppercase}
  .lp-header button{background:transparent;border:none;color:#7a8498;font-size:16px;cursor:pointer;padding:0;line-height:1}
  .lp-header button:hover{color:#e8ecf2}
  .lp-grid{display:flex;flex-wrap:wrap;gap:8px}
  .lp-loading{color:#7a8498;font-size:12px;font-style:italic;padding:6px 0}
  .lp-empty{font-size:12px;color:#7a8498;line-height:1.6;padding:4px 0}
  .lp-empty code{background:rgba(255,255,255,0.06);padding:1px 5px;border-radius:4px;font-size:11px;color:#c7cdd8}
  .lp-item{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px;border-radius:8px;border:2px solid transparent;cursor:pointer;transition:border-color 0.15s,background 0.15s;background:rgba(255,255,255,0.03)}
  .lp-item:hover{background:rgba(255,166,77,0.1);border-color:rgba(255,166,77,0.3)}
  .lp-item.active{border-color:#ffa64d;background:rgba(255,166,77,0.15)}
  .lp-item img{width:52px;height:52px;object-fit:contain}
  .lp-label{font-size:10px;color:#9aa3b2;letter-spacing:0.4px}
  main{padding:40px 32px 80px;max-width:1400px;margin:0 auto}

  /* ===== HOME VIEW / PLAYER OF THE DAY ===== */
  .home-view{display:none}
  .home-view.active{display:block}

  /* Empty state */
  .potd-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;
    min-height:60vh;gap:14px;text-align:center}
  .potd-empty-icon{font-size:64px;opacity:0.3}
  .potd-empty-title{font-size:22px;font-weight:700;color:#e8ecf2}
  .potd-empty-sub{font-size:14px;color:#7a8498;max-width:340px;line-height:1.6}

  .potd-hero-shell{
    max-width:1100px;margin:0 auto 8px;
    animation:potd-in 0.55s ease-out both;
  }
  @keyframes potd-in{
    from{opacity:0;transform:translateY(12px)}
    to{opacity:1;transform:translateY(0)}
  }

  /* Card */
  .potd-card{
    display:flex;align-items:stretch;justify-content:space-between;
    border-radius:24px;overflow:hidden;min-height:360px;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,0.14) 0%, transparent 45%),
      linear-gradient(145deg, var(--potdPrimary) 0%, color-mix(in srgb, var(--potdPrimary) 55%, #080c12) 55%, #06080e 100%);
    border:1px solid rgba(255,255,255,0.1);
    box-shadow:0 28px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.06);
    position:relative;overflow:hidden;
  }
  /* subtle diagonal stripe texture */
  .potd-card::before{
    content:'';position:absolute;inset:0;
    background:repeating-linear-gradient(135deg,transparent,transparent 40px,rgba(255,255,255,0.015) 40px,rgba(255,255,255,0.015) 41px);
    pointer-events:none;
  }

  .potd-left{
    flex:1;padding:44px 48px;display:flex;flex-direction:column;
    justify-content:center;gap:16px;position:relative;z-index:1;
  }
  .potd-eyebrow{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
  .potd-badge{
    font-size:11px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;
    background:rgba(255,255,255,0.15);color:var(--potdContrast);
    padding:5px 12px;border-radius:20px;
    border:1px solid rgba(255,255,255,0.2);
    backdrop-filter:blur(6px);
  }
  .potd-date{font-size:12px;color:rgba(255,255,255,0.55);font-weight:500}
  .potd-kicker{
    margin:0;font-size:11px;font-weight:800;letter-spacing:2.4px;text-transform:uppercase;
    color:rgba(255,255,255,0.45);
  }

  .potd-name{
    font-size:clamp(36px,5vw,68px);font-weight:900;line-height:1;
    color:var(--potdContrast);letter-spacing:-1.5px;
    text-shadow:0 2px 20px rgba(0,0,0,0.3);
  }
  .potd-sub{display:flex;align-items:center;gap:8px;font-size:15px;color:rgba(255,255,255,0.65);font-weight:500}
  .potd-dot{opacity:0.4}
  .potd-pos{font-weight:700;color:rgba(255,255,255,0.8)}

  .potd-chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
  .potd-chip{
    font-size:10px;font-weight:800;letter-spacing:0.6px;padding:4px 8px;border-radius:999px;
    border:1px solid rgba(0,0,0,0.15);box-shadow:0 1px 2px rgba(0,0,0,0.2);
  }

  .potd-reason{
    font-size:15px;font-weight:500;
    color:var(--potdContrast);opacity:0.92;
    background:rgba(0,0,0,0.22);
    display:inline-block;padding:14px 18px;border-radius:14px;
    border:1px solid rgba(255,255,255,0.12);
    backdrop-filter:blur(8px);
    max-width:520px;line-height:1.55;
    margin:4px 0 0;
  }

  .potd-cta{
    margin-top:10px;display:inline-flex;align-items:center;gap:8px;
    background:rgba(255,255,255,0.2);color:var(--potdContrast);
    border:1px solid rgba(255,255,255,0.35);
    font-size:14px;font-weight:800;letter-spacing:0.4px;
    padding:14px 26px;border-radius:14px;cursor:pointer;
    backdrop-filter:blur(8px);
    transition:background 0.15s,transform 0.12s,box-shadow 0.15s;
    width:fit-content;font-family:inherit;
  }
  .potd-cta:hover{
    background:rgba(255,255,255,0.28);
    transform:translateY(-1px);
    box-shadow:0 6px 20px rgba(0,0,0,0.25);
  }

  /* Right side: headshot + logo */
  .potd-right{
    position:relative;width:420px;flex-shrink:0;
    display:flex;align-items:flex-end;justify-content:flex-end;
    overflow:hidden;
  }
  .potd-logo-bg{
    position:absolute;right:-20px;top:50%;transform:translateY(-50%);
    width:280px;height:280px;opacity:0.08;
    display:flex;align-items:center;justify-content:center;
  }
  .potd-logo-bg .tlogo img{width:280px;height:280px;object-fit:contain;filter:brightness(0) invert(1)}
  .potd-headshot{
    position:relative;z-index:1;width:390px;height:400px;
    display:flex;align-items:flex-end;justify-content:center;
    overflow:hidden;
  }
  .potd-headshot img{width:100%;height:100%;object-fit:cover;object-position:top center}
  .potd-initials{
    font-size:100px;font-weight:900;
    color:rgba(255,255,255,0.06);
    align-self:center;user-select:none;letter-spacing:-4px;
  }

  /* Admin panel POTD search */
  .potd-admin-search{display:flex;flex-direction:column;gap:0}
  .potd-admin-input{
    width:100%;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);
    border-radius:8px;padding:8px 10px;color:#e8ecf2;font-size:12px;outline:none;
  }
  .potd-admin-input:focus{border-color:rgba(255,166,77,0.5)}
  .potd-admin-drop{
    display:none;position:absolute;top:100%;left:0;right:0;z-index:300;
    background:rgba(10,14,20,0.98);border:1px solid rgba(255,255,255,0.1);
    border-radius:8px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,0.5);
    margin-top:3px;
  }
  .potd-admin-drop.active{display:block}
  .potd-result{
    display:flex;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;
    border-bottom:1px solid rgba(255,255,255,0.04);transition:background 0.1s;
  }
  .potd-result:last-child{border-bottom:none}
  .potd-result:hover{background:rgba(255,166,77,0.1)}
  .potd-result-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
  .potd-result-name{font-size:12px;font-weight:600;color:#e8ecf2;flex:1}
  .potd-result-team{font-size:11px;color:#7a8498}

  @media(max-width:700px){
    .potd-right{display:none}
    .potd-left{padding:28px 24px}
    .potd-name{font-size:38px}
  }

  /* ===== NEWS TICKER ===== */
  .ticker-wrap{
    display:flex;align-items:center;gap:0;
    background:rgba(255,166,77,0.07);
    border:1px solid rgba(255,166,77,0.18);
    border-radius:10px;margin-top:16px;
    overflow:hidden;height:40px;
  }
  .ticker-label{
    flex-shrink:0;padding:0 14px;
    font-size:10px;font-weight:800;letter-spacing:1.8px;
    color:#ffa64d;text-transform:uppercase;
    border-right:1px solid rgba(255,166,77,0.25);
    height:100%;display:flex;align-items:center;
    background:rgba(255,166,77,0.1);
  }
  .ticker-inner{flex:1;overflow:hidden;height:100%;display:flex;align-items:center}
  .ticker-track{
    display:flex;align-items:center;width:max-content;
    animation:ticker-scroll 35s linear infinite;
    white-space:nowrap;
  }
  .ticker-track:hover{animation-play-state:paused}
  .ticker-item{font-size:13px;color:#c7cdd8;font-weight:500;padding:0 6px}
  .ticker-sep{color:#ffa64d;font-size:8px;margin-left:12px}
  @keyframes ticker-scroll{
    0%  {transform:translateX(0)}
    100%{transform:translateX(-50%)}
  }
  /* Ticker admin list in panel */
  .ticker-admin-item{
    display:flex;align-items:center;justify-content:space-between;
    padding:6px 8px;border-radius:6px;background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);margin-top:4px;gap:8px;
  }
  .ticker-admin-text{font-size:11px;color:#c7cdd8;flex:1;line-height:1.3}
  .ticker-admin-del{
    background:transparent;border:none;color:#7a8498;
    cursor:pointer;font-size:14px;padding:0;flex-shrink:0;
  }
  .ticker-admin-del:hover{color:#ff6b6b}

  /* Throwbacks admin (Edit Mode) */
  .tb-admin-row{
    margin-top:12px;padding:12px;border-radius:10px;
    background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);
  }
  .tb-admin-row-head{font-size:10px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:#ffa64d;margin-bottom:8px}
  .tb-admin-grid{display:grid;grid-template-columns:100px 1fr;gap:6px 10px;align-items:center}
  .tb-admin-lbl{font-size:10px;color:#7a8498;font-weight:700;text-transform:uppercase;letter-spacing:0.5px}
  .tb-admin-search-wrap{position:relative}
  select.potd-admin-input.tb-team-sel{cursor:pointer}

  /* ===== ON THIS DATE ===== */
  .otd-wrap{margin-top:28px}
  .otd-header{
    display:flex;align-items:baseline;gap:12px;
    margin-bottom:14px;
  }
  .otd-title{
    font-size:11px;font-weight:800;letter-spacing:1.6px;
    text-transform:uppercase;color:#ffa64d;
  }
  .otd-date{font-size:13px;color:#9aa3b2;font-weight:500}
  .otd-sub{
    font-size:12px;color:#7a8498;line-height:1.45;margin:-6px 0 12px;max-width:720px;
  }
  .otd-empty{
    font-size:13px;color:#7a8498;font-style:italic;
    padding:16px 0;line-height:1.6;
  }
  .otd-cards{
    display:grid;grid-template-columns:repeat(5,1fr);gap:12px;
  }
  .otd-card{
    width:100%;text-align:left;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.07);
    border-left:3px solid var(--otdColor,#ffa64d);
    border-radius:12px;padding:0 0 14px;overflow:hidden;
    cursor:pointer;transition:background 0.15s,transform 0.12s, border-color 0.15s;
    display:flex;flex-direction:column;gap:0;font-family:inherit;color:inherit;
  }
  .otd-card:hover{background:rgba(255,255,255,0.06);transform:translateY(-2px);border-color:rgba(255,166,77,0.25)}
  .otd-shot{
    height:165px;position:relative;overflow:hidden;isolation:isolate;
    background:
      linear-gradient(180deg,rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.45) 100%),
      linear-gradient(140deg,var(--otdSecondary,var(--otdColor)) 0%,var(--otdColor) 48%,#06080f 100%);
    border-bottom:1px solid color-mix(in srgb,var(--otdColor,#555) 28%,rgba(255,255,255,0.06));
  }
  .otd-shot::after{
    content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
    background:var(--otdColor,#333);
    opacity:0.14;
  }
  .otd-shot-fallback{
    position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;
    font-size:32px;font-weight:900;letter-spacing:-1px;color:rgba(255,255,255,0.32);user-select:none;
    text-shadow:0 1px 8px rgba(0,0,0,0.55);
  }
  .otd-shot-img{
    position:relative;z-index:2;width:100%;height:100%;object-fit:cover;
    /* Center the face in the crop (top anchor was cutting chins at the card fold) */
    object-position:center top;display:block;
  }
  .otd-card-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px}
  /* Player name — medium weight, sits above the stat */
  .otd-player{font-size:14px;font-weight:700;color:#9aa3b2;line-height:1.2;letter-spacing:0.1px;text-transform:uppercase}
  /* Stat / moment — this is the hero line */
  .otd-moment{
    font-size:13px;font-weight:600;color:#c7cdd8;
    line-height:1.4;letter-spacing:0.1px;
  }
  /* Team context row at the bottom */
  .otd-context{display:flex;align-items:center;gap:9px;margin-top:2px}
  .otd-team-logo{flex-shrink:0;line-height:0}
  .otd-team-logo .tlogo{width:30px;height:30px;box-shadow:0 2px 6px rgba(0,0,0,0.3)}
  .otd-context-info{display:flex;flex-direction:column;gap:1px;min-width:0}
  .otd-franchise{
    font-size:10px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;
    color:#6b7280;line-height:1.2;
  }
  .otd-stint-years{font-size:11px;font-weight:600;color:#4b5563;letter-spacing:0.2px}
  /* legacy / unused — keep to avoid breaking other references */
  .otd-year{font-size:22px;font-weight:900;letter-spacing:-0.5px;margin-bottom:4px}
  .otd-event{font-size:11px;color:#9aa3b2;line-height:1.4}
  .otd-dateline{font-size:11px;color:#7a8498;line-height:1.45;margin-top:4px}

  /* ===== TRANSACTIONS / TRADE NEWS ===== */
  .tn-wrap{margin-top:28px}
  .tn-header{
    display:flex;align-items:center;gap:10px;flex-wrap:wrap;
    margin-bottom:14px;
  }
  .tn-title{
    font-size:11px;font-weight:800;letter-spacing:1.6px;
    text-transform:uppercase;color:#ffa64d;
  }
  .tn-sub{font-size:12px;color:#7a8498;line-height:1.4}
  .tn-sub b{color:#9aa3b2;font-weight:700}
  /* Pulsing live dot */
  .tn-live-dot{
    display:inline-block;width:8px;height:8px;border-radius:50%;
    background:#ff4d4d;flex-shrink:0;align-self:center;
    box-shadow:0 0 0 0 rgba(255,77,77,0.6);
    animation:tn-pulse 2s ease-out infinite;
  }
  @keyframes tn-pulse{
    0%  { box-shadow:0 0 0 0 rgba(255,77,77,0.6); }
    60% { box-shadow:0 0 0 7px rgba(255,77,77,0); }
    100%{ box-shadow:0 0 0 0 rgba(255,77,77,0); }
  }
  /* NEW badge on the latest item */
  .tn-new-badge{
    display:inline-block;font-size:8px;font-weight:900;letter-spacing:1.2px;
    text-transform:uppercase;padding:2px 6px;border-radius:4px;
    background:rgba(255,77,77,0.18);border:1px solid rgba(255,77,77,0.45);
    color:#ff6b6b;vertical-align:middle;margin-left:6px;
    animation:tn-badge-in 0.3s ease;
  }
  @keyframes tn-badge-in{
    from{ opacity:0; transform:scale(0.75); }
    to  { opacity:1; transform:scale(1); }
  }
  .tn-list{display:flex;flex-direction:column;gap:20px}
  .tn-item{cursor:default}
  .tn-item--linked{cursor:pointer}
  .tn-item--linked:hover .trade-card{
    border-color:rgba(255,166,77,0.45);
    box-shadow:0 10px 32px rgba(0,0,0,0.32);
  }
  .tn-item-label{
    font-size:10px;font-weight:800;letter-spacing:1.6px;
    text-transform:uppercase;margin-bottom:6px;
  }
  /* reuse existing .trade-card — just reset its top margin inside .tn-list */
  .tn-item .trade-card{margin-top:0}
  /* Admin form helpers */
  .tn-admin-lbl{
    font-size:10px;color:#7a8498;font-weight:700;
    text-transform:uppercase;letter-spacing:0.5px;margin-bottom:4px;
  }
  .tn-mono{font-family:monospace;font-size:11px;resize:vertical}

  /* ===== GRID VIEW ===== */
  .intro{text-align:center;margin-bottom:44px}
  .intro h1{font-size:44px;font-weight:800;letter-spacing:-1.5px;margin-bottom:10px;line-height:1}
  .intro h1 em{font-style:normal;background:linear-gradient(90deg,#ffa64d,#ff4d4d);
    -webkit-background-clip:text;background-clip:text;color:transparent}
  .intro p{font-size:15px;color:#9aa3b2;max-width:620px;margin:0 auto;line-height:1.55}

  .pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
  .pcard{
    background:linear-gradient(160deg,#1a2030 0%,#0f1420 100%);
    border:1px solid rgba(255,255,255,0.08);border-radius:14px;
    cursor:pointer;overflow:hidden;transition:all 0.15s ease;padding:18px;
  }
  .pcard:hover{transform:translateY(-3px);border-color:rgba(255,166,77,0.4);
    box-shadow:0 12px 28px rgba(255,77,77,0.1)}
  .pcard h3{font-size:19px;font-weight:700;line-height:1.15;margin-bottom:4px}
  .pcard .psub{font-size:11px;color:#7a8498;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:16px}
  .pcard .trophies{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
  .trophy{font-size:10px;padding:3px 8px;border-radius:12px;font-weight:600;letter-spacing:0.4px;text-transform:uppercase}
  .trophy.ring{background:rgba(251,191,36,0.18);color:#fbbf24;border:1px solid rgba(251,191,36,0.3)}
  .trophy.mvp{background:rgba(168,85,247,0.18);color:#c084fc;border:1px solid rgba(168,85,247,0.3)}
  .trophy.record{background:rgba(255,255,255,0.06);color:#aeb6c8;border:1px solid rgba(255,255,255,0.1)}
  .trophy.years{background:rgba(255,255,255,0.06);color:#c7cdd8;border:1px solid rgba(255,255,255,0.08)}
  .team-strip{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}
  .team-strip .tchip{
    font-size:10px;font-weight:700;padding:4px 7px;border-radius:4px;color:#fff;letter-spacing:0.3px;
  }

  /* ===== DETAIL VIEW ===== */
  .detail{display:none}
  .detail.active{display:block}
  .grid-view.hidden{display:none}

  .back-btn{
    display:inline-flex;align-items:center;gap:8px;background:transparent;
    border:1px solid rgba(255,255,255,0.12);color:#e8ecf2;font-size:13px;
    padding:8px 14px;border-radius:8px;cursor:pointer;font-weight:500;margin-bottom:20px;
  }
  .back-btn:hover{background:rgba(255,255,255,0.06)}

  .hero{margin-bottom:28px}
  .hero h2{font-size:56px;font-weight:800;letter-spacing:-2px;line-height:0.95;margin-bottom:10px}
  .hero .hsub{font-size:14px;color:#9aa3b2;margin-bottom:18px}
  .hero .hsub b{color:#e8ecf2;font-weight:600}
  .hero-trophies{display:flex;gap:10px;flex-wrap:wrap}
  /* Pull paired purple accolades slightly closer */
  .hero-trophies .trophy.award-mvp + .trophy.award-mvp{margin-left:-5px}
  .pcard .trophies .trophy.award-mvp + .trophy.award-mvp{margin-left:-5px}
  .stint-draft-board-follow{margin-top:18px}
  .stint-draft-board-follow--lead{margin-top:0;margin-bottom:18px}
  .stint-draft-board-label{
    font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#9aa3b2;
    margin:0 0 10px;
  }

  /* Timeline */
  .timeline-wrap{margin:32px 0 28px}
  .timeline-title{font-size:11px;color:#7a8498;letter-spacing:1.5px;text-transform:uppercase;font-weight:700;margin-bottom:14px}
  .timeline{
    display:flex;gap:2px;height:78px;border-radius:12px;overflow:hidden;
    border:1px solid rgba(255,255,255,0.08);
    background:#0a0e14;
  }
  .stint-bar{
    flex:var(--flex,1);min-width:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;
    cursor:pointer;position:relative;transition:all 0.2s;border-right:1px solid rgba(0,0,0,0.3);
    padding:8px 6px;gap:4px;
  }
  .stint-bar:last-child{border-right:none}
  .stint-bar:hover{filter:brightness(1.15)}
  .stint-bar.active{box-shadow:inset 0 -4px 0 #ffa64d, inset 0 0 0 1px rgba(255,255,255,0.15)}
  .stint-bar .tabbr{font-size:13px;font-weight:800;color:#fff;letter-spacing:0.5px;line-height:1}
  .stint-bar .tyears{font-size:10px;color:rgba(255,255,255,0.85);font-weight:500;letter-spacing:0.3px}

  /* Stint detail */
  .stint-detail{
    display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:36px;align-items:start;
  }

  /* ── Inline stint headshot card (OTD-style, between acquisition and stats) ── */
  .stint-hs-wrap{display:flex;flex-direction:column;align-items:center;margin-bottom:4px}
  .stint-hs-card{
    position:relative;width:220px;max-width:100%;border-radius:16px;overflow:hidden;
    aspect-ratio:3/4;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(140deg,var(--shSecondary,#333) 0%,var(--shBg,#111) 55%,#06080f 100%);
    border:2px solid rgba(255,255,255,.08);transition:border-color .3s,box-shadow .3s;
  }
  .stint-hs-card::after{
    content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
    background:var(--shBg,#333);opacity:.12;
  }
  .stint-hs-fallback{
    font-size:64px;font-weight:900;color:rgba(255,255,255,.22);user-select:none;
    text-shadow:0 2px 12px rgba(0,0,0,.6);position:relative;z-index:1;
  }
  .stint-hs-img{
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
    object-position:top center;z-index:2;
  }
  /* Rarity glows on headshot card */
  .stint-hs-card.rarity-dnp      {border:2px solid rgba(170,170,170,.55);box-shadow:0 0 14px rgba(170,170,170,.2),0 0 28px rgba(170,170,170,.08)}
  .stint-hs-card.rarity-rotation {border:2px solid rgba(30,255,0,.6);box-shadow:0 0 16px rgba(30,255,0,.24),0 0 32px rgba(30,255,0,.1)}
  .stint-hs-card.rarity-starter  {border:2px solid rgba(0,112,255,.72);box-shadow:0 0 18px rgba(0,112,255,.3),0 0 36px rgba(0,112,255,.14)}
  .stint-hs-card.rarity-key      {border:2px solid rgba(163,53,238,.82);box-shadow:0 0 22px rgba(163,53,238,.38),0 0 44px rgba(163,53,238,.18)}
  .stint-hs-card.rarity-star     {border:2px solid rgba(255,128,0,.88);box-shadow:0 0 24px rgba(255,128,0,.44),0 0 50px rgba(255,128,0,.2),0 0 3px rgba(255,128,0,.85)}
  /* Tier badge below card */
  .stint-hs-badge{
    margin-top:10px;display:inline-flex;align-items:center;
    padding:7px 18px;border-radius:20px;font-size:11px;font-weight:700;
    letter-spacing:1.3px;text-transform:uppercase;white-space:nowrap;
    position:relative;cursor:default;
  }
  .stint-hs-badge::after{
    content:attr(data-desc);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);
    background:#1a2035;color:#c7cdd8;font-size:11px;font-weight:400;letter-spacing:.3px;
    text-transform:none;padding:7px 13px;border-radius:7px;white-space:nowrap;
    opacity:0;pointer-events:none;transition:opacity .2s;
    border:1px solid rgba(255,255,255,.1);z-index:10;box-shadow:0 4px 16px rgba(0,0,0,.5);
  }
  .stint-hs-badge:hover::after{opacity:1}
  .stint-hs-badge.dnp     {color:#aaa;  background:rgba(170,170,170,.07);border:1px solid rgba(170,170,170,.22)}
  .stint-hs-badge.rotation{color:#1eff00;background:rgba(30,255,0,.06); border:1px solid rgba(30,255,0,.22)}
  .stint-hs-badge.starter {color:#4da6ff;background:rgba(0,112,255,.07); border:1px solid rgba(0,112,255,.26)}
  .stint-hs-badge.key     {color:#c060ff;background:rgba(163,53,238,.08);border:1px solid rgba(163,53,238,.28)}
  .stint-hs-badge.star    {color:#ff8000;background:rgba(255,128,0,.07); border:1px solid rgba(255,128,0,.28)}
  /* Picker sits right below the badge */
  #rarityPickerWrap .rarity-picker{margin-top:10px;justify-content:center}
  /* ─────────────────────────────────────────────────────────────── */
  .photo-panel{
    background:#0a0e14;border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;overflow:hidden;
    aspect-ratio:3/4;position:relative;
  }
  .photo-panel img{width:100%;height:100%;object-fit:cover;display:block}

  /* ── Rarity tier system ─────────────────────────────────────────── */
  .photo-panel-wrap{display:flex;flex-direction:column;align-items:stretch}
  .photo-panel-wrap .photo-panel{transition:border-color .3s,box-shadow .3s}

  /* Grey — Bench / DNP */
  .rarity-dnp      .photo-panel{border:2px solid rgba(170,170,170,.55);box-shadow:0 0 14px rgba(170,170,170,.2),0 0 28px rgba(170,170,170,.08)}
  /* Green — Rotation player */
  .rarity-rotation .photo-panel{border:2px solid rgba(30,255,0,.6);box-shadow:0 0 16px rgba(30,255,0,.24),0 0 32px rgba(30,255,0,.1)}
  /* Blue — Starter */
  .rarity-starter  .photo-panel{border:2px solid rgba(0,112,255,.72);box-shadow:0 0 18px rgba(0,112,255,.3),0 0 36px rgba(0,112,255,.14)}
  /* Purple — Key Player */
  .rarity-key      .photo-panel{border:2px solid rgba(163,53,238,.82);box-shadow:0 0 22px rgba(163,53,238,.38),0 0 44px rgba(163,53,238,.18),0 0 2px rgba(163,53,238,.8)}
  /* Orange — Star / Franchise Player */
  .rarity-star     .photo-panel{border:2px solid rgba(255,128,0,.88);box-shadow:0 0 24px rgba(255,128,0,.44),0 0 50px rgba(255,128,0,.2),0 0 3px rgba(255,128,0,.85)}

  /* Rarity badge pill below headshot */
  .rarity-badge{
    margin-top:10px;align-self:center;display:inline-flex;align-items:center;
    padding:7px 18px;border-radius:20px;font-size:11px;font-weight:700;
    letter-spacing:1.3px;text-transform:uppercase;cursor:default;position:relative;
    white-space:nowrap;
  }
  .rarity-badge.dnp     {color:#aaa;background:rgba(170,170,170,.07);border:1px solid rgba(170,170,170,.22)}
  .rarity-badge.rotation{color:#1eff00;background:rgba(30,255,0,.06);border:1px solid rgba(30,255,0,.22)}
  .rarity-badge.starter {color:#4da6ff;background:rgba(0,112,255,.07);border:1px solid rgba(0,112,255,.26)}
  .rarity-badge.key     {color:#c060ff;background:rgba(163,53,238,.08);border:1px solid rgba(163,53,238,.28)}
  .rarity-badge.star    {color:#ff8000;background:rgba(255,128,0,.07);border:1px solid rgba(255,128,0,.28)}
  /* Tooltip that appears above on hover */
  .rarity-badge::after{
    content:attr(data-desc);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);
    background:#1a2035;color:#c7cdd8;font-size:11px;font-weight:400;letter-spacing:.3px;
    text-transform:none;padding:7px 13px;border-radius:7px;white-space:nowrap;
    opacity:0;pointer-events:none;transition:opacity .2s;
    border:1px solid rgba(255,255,255,.1);z-index:10;box-shadow:0 4px 16px rgba(0,0,0,.5);
  }
  .rarity-badge:hover::after{opacity:1}

  /* Rarity picker (edit mode) */
  .rarity-picker{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
  .rarity-pick-btn{
    padding:7px 16px;border-radius:8px;font-size:11.5px;font-weight:700;
    letter-spacing:.8px;text-transform:uppercase;cursor:pointer;
    background:transparent;border:1px solid;transition:all .15s;line-height:1.2;
  }
  .rarity-pick-btn.rp-dnp      {color:#aaa;   border-color:rgba(170,170,170,.3)}
  .rarity-pick-btn.rp-rotation {color:#1eff00;border-color:rgba(30,255,0,.3)}
  .rarity-pick-btn.rp-starter  {color:#4da6ff;border-color:rgba(0,112,255,.35)}
  .rarity-pick-btn.rp-key      {color:#c060ff;border-color:rgba(163,53,238,.4)}
  .rarity-pick-btn.rp-star     {color:#ff8000;border-color:rgba(255,128,0,.4)}
  .rarity-pick-btn.rp-dnp.rp-active      {background:rgba(170,170,170,.13);border-color:rgba(170,170,170,.75);box-shadow:0 0 8px rgba(170,170,170,.15)}
  .rarity-pick-btn.rp-rotation.rp-active {background:rgba(30,255,0,.08); border-color:rgba(30,255,0,.75); box-shadow:0 0 8px rgba(30,255,0,.15)}
  .rarity-pick-btn.rp-starter.rp-active  {background:rgba(0,112,255,.1);  border-color:rgba(0,112,255,.8);  box-shadow:0 0 8px rgba(0,112,255,.2)}
  .rarity-pick-btn.rp-key.rp-active      {background:rgba(163,53,238,.1); border-color:rgba(163,53,238,.85);box-shadow:0 0 8px rgba(163,53,238,.2)}
  .rarity-pick-btn.rp-star.rp-active     {background:rgba(255,128,0,.09); border-color:rgba(255,128,0,.85); box-shadow:0 0 8px rgba(255,128,0,.2)}
  .rarity-pick-btn:hover:not(.rp-active){filter:brightness(1.25)}
  .rarity-pick-btn.rp-clear{color:#7a8498;border-color:rgba(255,255,255,.15);font-size:11px;letter-spacing:.5px}
  .rarity-pick-btn.rp-clear:hover{background:rgba(255,255,255,.05);color:#c7cdd8}
  /* ──────────────────────────────────────────────────────────────── */

  .photo-placeholder{
    width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
    text-align:center;padding:30px 24px;color:#fff;position:relative;
  }
  .photo-placeholder::before{
    content:"";position:absolute;inset:0;
    background:linear-gradient(135deg, var(--teamBg,rgba(255,255,255,0.06)) 0%, rgba(0,0,0,0.4) 100%);
  }
  .photo-placeholder > *{position:relative;z-index:1}
  .photo-placeholder .pabbr{font-size:68px;font-weight:900;letter-spacing:-3px;line-height:1;margin-bottom:12px;font-family:Impact,'Arial Black',sans-serif}
  .photo-placeholder .pname{font-size:16px;font-weight:600;margin-bottom:24px;line-height:1.3}
  .photo-placeholder .phint{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;opacity:0.85;margin-bottom:8px}
  .photo-placeholder .ppath{font-size:12px;font-family:'SF Mono',Monaco,monospace;background:rgba(0,0,0,0.4);padding:6px 10px;border-radius:4px;letter-spacing:0.3px;border:1px dashed rgba(255,255,255,0.25)}

  .stint-info{min-width:0}
  .stint-info h3{font-size:32px;font-weight:800;letter-spacing:-1px;margin-bottom:4px;line-height:1}
  .stint-info .sm{font-size:13px;color:#9aa3b2;margin-bottom:24px;letter-spacing:0.3px}

  .section{margin-bottom:24px}
  .section-title{
    font-size:11px;color:#7a8498;letter-spacing:1.5px;text-transform:uppercase;font-weight:700;
    margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .stint-info .section-lead{
    font-size:12px;color:#9aa3b2;line-height:1.55;margin:-2px 0 14px;max-width:720px;
  }
  .stint-info .section-lead code{font-size:11px;color:#ffa64d;font-family:'SF Mono',Monaco,monospace}
  .stint-info .section-lead b{color:#c7cdd8;font-weight:700}

  .acquired{
    background:rgba(255,255,255,0.03);border-left:3px solid #ffa64d;
    padding:12px 16px;border-radius:0 8px 8px 0;
  }
  .acquired .ahow{font-size:11px;color:#ffa64d;letter-spacing:1px;text-transform:uppercase;font-weight:700;margin-bottom:4px}
  .acquired .adetail{font-size:14px;color:#c7cdd8;line-height:1.55}

  .statgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
  .stint-stats-mount{display:block;width:100%;max-width:100%;min-width:0}
  .stat{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);
    border-radius:8px;padding:10px 8px;text-align:center}
  .stat .v{font-size:20px;font-weight:800;color:#ffa64d}
  .stat .l{font-size:9px;color:#7a8498;letter-spacing:0.5px;text-transform:uppercase;margin-top:2px}

  /* Year-by-year stint stats — same card + tile language as lineup ycards */
  .stint-stats-cards{display:flex;flex-direction:column;gap:8px;width:100%;max-height:480px;overflow-y:auto;padding-right:6px}
  .stint-stats-cards::-webkit-scrollbar{width:6px}
  .stint-stats-cards::-webkit-scrollbar-track{background:transparent}
  .stint-stats-cards::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.12);border-radius:3px}
  .stat-ycard.ycard{padding:12px 14px 14px}
  .stat-lineup{
    display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-top:10px;width:100%;
  }
  .stat-tile{
    background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:8px;
    padding:12px 6px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
    min-height:76px;min-width:0;
  }
  .stat-tile-k{font-size:9px;font-weight:800;color:#ffa64d;letter-spacing:0.65px;text-transform:uppercase;line-height:1.1}
  .stat-tile-v{font-size:15px;font-weight:800;color:#e8ecf2;font-variant-numeric:tabular-nums;line-height:1.15;white-space:nowrap}
  .stint-stat-fallback-card{max-height:none}
  @media (max-width:1100px){
    .stat-lineup{grid-template-columns:repeat(4,minmax(0,1fr))}
  }
  @media (max-width:560px){
    .stat-lineup{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .stat-tile{min-height:68px;padding:10px 4px}
    .stat-tile-v{font-size:14px}
  }

  .awards{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-start}
  .award{
    font-size:12px;font-weight:500;padding:6px 10px;border-radius:6px;
    background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);color:#c7cdd8;
    display:flex;align-items:center;gap:6px;white-space:nowrap;
  }
  .award.ring{background:rgba(251,191,36,0.15);border-color:rgba(251,191,36,0.3);color:#fbbf24;font-weight:700}
  .award-champion{background:rgba(251,191,36,0.15);border-color:rgba(251,191,36,0.3);color:#fbbf24;font-weight:700}
  .award-mvp{background:rgba(168,85,247,0.15);border-color:rgba(168,85,247,0.3);color:#c084fc;font-weight:700}
  .award-blue{background:rgba(59,130,246,0.15);border-color:rgba(59,130,246,0.3);color:#60a5fa;font-weight:700}
  .award-green{background:rgba(34,197,94,0.15);border-color:rgba(34,197,94,0.3);color:#4ade80;font-weight:700}
  .trophy.award-mvp{background:rgba(168,85,247,0.18);color:#c084fc;border:1px solid rgba(168,85,247,0.3)}
  .trophy.award-blue{background:rgba(59,130,246,0.18);color:#60a5fa;border:1px solid rgba(59,130,246,0.3)}
  .trophy.award-green{background:rgba(34,197,94,0.18);color:#4ade80;border:1px solid rgba(34,197,94,0.3)}
  .award-icon{font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0}
  .award-icon img{width:100%;height:100%;object-fit:contain;display:block}
  .award.ring .award-icon{filter:brightness(1.2)}

  .story{font-size:14.5px;line-height:1.65;color:#c7cdd8}

  .lineups-list{display:flex;flex-direction:column;gap:8px;max-height:520px;overflow-y:auto;padding-right:6px}
  .lineups-list::-webkit-scrollbar{width:6px}
  .lineups-list::-webkit-scrollbar-track{background:transparent}
  .lineups-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.12);border-radius:3px}
  .ycard{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);border-radius:8px;padding:11px 14px;transition:border-color 0.15s}
  .ycard:hover{border-color:rgba(255,166,77,0.25)}
  .ycard.missed{opacity:0.55;border-style:dashed}
  .ycard-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:7px;gap:10px}
  .ycard-year{font-size:12px;font-weight:700;color:#ffa64d;letter-spacing:0.6px}
  .ycard-rec{font-size:11px;color:#7a8498;letter-spacing:0.4px;font-weight:500;white-space:nowrap}
  .ycard-starters{font-size:13px;color:#c7cdd8;line-height:1.55}
  .ycard-starters .sn{color:#c7cdd8}
  .ycard-starters .sn.me{color:#ffa64d;font-weight:600}
  .ycard-starters .sep{color:#4a5364;margin:0 4px}
  .ycard-note{font-size:11.5px;color:#8892a4;margin-top:6px;font-style:italic;line-height:1.4}

  /* Stint view — teammate headshot strip (On This Day visual language) */
  .tm-stint-panel{width:100%}
  .ycard.tm-stint-card{padding:14px 16px 16px}
  .ycard.tm-stint-card.tm-stint-card--note{margin-top:10px;padding:12px 14px}
  .tm-strip-head{
    margin-top:2px;margin-bottom:8px;display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;
  }
  .tm-strip-label{
    font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#ffa64d;
  }
  .tm-strip-franchise{font-size:11px;font-weight:600;color:#7a8498;letter-spacing:0.2px}
  .tm-strip{
    display:flex;flex-wrap:wrap;gap:8px;margin-top:2px;align-items:stretch;
  }
  .tm-otd-btn{
    display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;
    background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);
    border-radius:12px;padding:8px 6px 7px;min-width:76px;max-width:104px;
    cursor:pointer;font:inherit;color:inherit;transition:background 0.15s,transform 0.12s,border-color 0.15s;
  }
  .tm-otd-btn:hover{background:rgba(255,255,255,0.06);transform:translateY(-2px);border-color:rgba(255,166,77,0.28)}
  .tm-otd-shot.otd-shot{
    width:56px;height:56px;border-radius:10px;flex-shrink:0;
    border-bottom:none;
  }
  .tm-otd-shot .otd-shot-fallback{font-size:15px}
  .tm-otd-name{
    font-size:10px;font-weight:700;color:#e8ecf2;line-height:1.2;max-width:96px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .tm-otd-meta{font-size:9px;font-weight:600;color:#7a8498;line-height:1.2}
  .tm-strip-hint{
    font-size:10px;color:#7a8498;font-style:italic;margin-top:8px;line-height:1.45;
  }
  .tm-strip-empty{
    font-size:11.5px;color:#8892a4;font-style:italic;margin-top:4px;line-height:1.45;
  }
  .tm-strip-missed{
    font-size:11px;color:#7a8498;font-style:italic;margin-top:12px;padding-top:10px;
    border-top:1px solid rgba(255,255,255,0.06);line-height:1.45;
  }

  /* Help modal */
  .modal-bg{
    position:fixed;inset:0;background:rgba(0,0,0,0.75);display:none;
    align-items:center;justify-content:center;z-index:100;padding:20px;
  }
  .modal-bg.open{display:flex}
  .modal{
    background:#1a2030;border:1px solid rgba(255,255,255,0.12);border-radius:14px;
    padding:28px;max-width:560px;width:100%;
  }
  .modal h4{font-size:20px;font-weight:700;margin-bottom:14px}
  .modal p{font-size:14px;color:#c7cdd8;line-height:1.6;margin-bottom:12px}
  .modal code{background:rgba(0,0,0,0.4);padding:2px 6px;border-radius:4px;font-family:'SF Mono',Monaco,monospace;font-size:12.5px;color:#ffa64d}
  .modal pre{
    background:rgba(0,0,0,0.4);padding:14px;border-radius:8px;font-family:'SF Mono',Monaco,monospace;
    font-size:12px;color:#c7cdd8;margin:8px 0 16px;overflow-x:auto;line-height:1.55;
  }
  .modal button{
    background:linear-gradient(90deg,#ffa64d,#ff4d4d);color:#1a0e06;font-weight:700;
    padding:10px 18px;border-radius:8px;border:none;cursor:pointer;font-size:13px;letter-spacing:0.4px;text-transform:uppercase;
  }

  @media (max-width:1100px){
    .otd-cards{grid-template-columns:repeat(3,1fr)}
  }
  @media (max-width:700px){
    .otd-cards{grid-template-columns:repeat(2,1fr)}
  }
  @media (max-width:900px){
    .stint-detail{grid-template-columns:1fr}
    .photo-panel{max-width:420px;margin:0 auto}
    .stint-hs-card{width:180px}
    .hero h2{font-size:36px}
    .statgrid{grid-template-columns:repeat(3,1fr)}
    .lineup ol{grid-template-columns:repeat(2,1fr)}
    main{padding:24px 16px 40px}
    header{padding:18px 16px 14px}
    .intro h1{font-size:30px}
  }

  /* Position-based lineup */
  .pos-lineup{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:8px}
  .pos-box{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);
    border-radius:6px;padding:8px 6px;text-align:center;display:flex;flex-direction:column;justify-content:center;min-height:64px}
  .pos-label{font-size:10px;font-weight:800;color:#ffa64d;letter-spacing:0.8px;margin-bottom:4px}
  .pos-name{font-size:11.5px;color:#c7cdd8;line-height:1.25;font-weight:500}
  .pos-name.clickable{color:#ffa64d;cursor:pointer;text-decoration:underline;text-decoration-color:rgba(255,166,77,0.3);text-underline-offset:2px}
  .pos-name.clickable:hover{color:#ffd089;text-decoration-color:#ffd089}
  .pos-name.me{color:#ffa64d;font-weight:700}

  /* Trade visualization */
  .trade-card{
    margin-top:10px;padding:2px;border-radius:14px;
    background:linear-gradient(135deg,rgba(255,166,77,0.22) 0%,rgba(255,166,77,0.04) 40%,rgba(10,14,20,0.6) 100%);
    border:1px solid rgba(255,166,77,0.28);
    box-shadow:0 8px 28px rgba(0,0,0,0.25);
  }
  .trade-multi-banner{
    font-size:10px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:#ffa64d;
    text-align:center;padding:8px 14px 0;margin:0;
  }
  .trade-viz{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:stretch;padding:12px 14px 14px}
  .trade-viz.trade-viz--multi{
    display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:12px 10px;
    grid-template-columns:unset;
  }
  .trade-viz.trade-viz--multi .trade-side{
    flex:1 1 168px;max-width:340px;min-width:150px;
  }
  .trade-viz.trade-viz--multi .trade-arrow{
    flex:0 0 auto;align-self:center;padding:0 4px;
  }
  .trade-side{
    background:rgba(8,10,16,0.72);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:16px 14px;
    border-top:4px solid var(--sideColor,#666);
  }
  .trade-side-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
  .trade-side .ts-team{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:0.7px;line-height:1.2;color:#fff}
  .trade-side .ts-got{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#8b95a8;margin-bottom:10px;font-weight:700}
  .trade-side ul{list-style:none;margin:0;padding:0}
  .trade-side li{font-size:13px;color:#e8ecf2;padding:10px 0 10px 16px;border-bottom:1px solid rgba(255,255,255,0.05);position:relative;line-height:1.45}
  .trade-side li:last-child{border-bottom:none}
  .trade-side li::before{content:"";position:absolute;left:0;top:16px;width:7px;height:7px;background:var(--sideColor,#666);border-radius:50%}
  .trade-side li.headline{font-weight:700;color:#ffa64d}
  .trade-arrow{display:flex;align-items:center;justify-content:center;font-size:22px;color:#ffa64d;font-weight:800;padding:0 2px;opacity:0.95}
  .trade-date{font-size:11px;color:#9aa3b2;letter-spacing:1.1px;text-transform:uppercase;margin:4px 16px 0;text-align:center;font-weight:600}
  .trade-detail-text{
    font-size:14px;color:#c2cad8;line-height:1.68;margin:0 14px 14px;padding:14px 14px 4px;
    border-top:1px solid rgba(255,255,255,0.07);max-width:68ch;
  }

  .stint-exit-trade{
    margin-top:22px;padding-top:16px;border-top:1px dashed rgba(255,166,77,0.22);
  }
  .stint-exit-trade-label{
    font-size:11px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;color:#8b95a8;margin:0 0 10px;
  }

  .trade-local-edit{
    margin-top:16px;padding:16px;border-radius:12px;
    background:rgba(255,166,77,0.06);border:1px dashed rgba(255,166,77,0.35);
  }
  .trade-local-edit-inner{max-width:100%}
  .trade-local-edit-title{font-size:11px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:#ffa64d;margin-bottom:8px}
  .trade-local-edit-hint{font-size:12px;color:#8b95a8;line-height:1.55;margin:0 0 14px}
  .trade-local-edit-hint code{font-size:11px;color:#c7cdd8;background:rgba(0,0,0,0.35);padding:1px 5px;border-radius:4px}
  .trade-local-label{display:block;font-size:10px;font-weight:700;letter-spacing:0.8px;text-transform:uppercase;color:#7a8498;margin:10px 0 6px}
  .trade-local-ta{
    width:100%;box-sizing:border-box;resize:vertical;min-height:64px;padding:10px 12px;border-radius:8px;
    border:1px solid rgba(255,255,255,0.1);background:rgba(0,0,0,0.35);color:#e8ecf2;font-size:13px;line-height:1.45;font-family:inherit;
  }
  .trade-local-ta-mono{font-family:'SF Mono',Consolas,Monaco,monospace;font-size:11.5px;line-height:1.4}
  .trade-local-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px}
  .trade-local-input{
    width:100%;box-sizing:border-box;padding:8px 10px;border-radius:8px;border:1px solid rgba(255,255,255,0.1);
    background:rgba(0,0,0,0.35);color:#e8ecf2;font-size:13px;
  }
  .trade-local-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
  .trade-local-btn{
    padding:9px 16px;border-radius:8px;border:1px solid rgba(255,255,255,0.12);background:rgba(255,255,255,0.06);
    color:#e8ecf2;font-size:12px;font-weight:600;cursor:pointer;
  }
  .trade-local-btn:hover{border-color:rgba(255,166,77,0.45);background:rgba(255,166,77,0.1)}
  .trade-local-btn-primary{
    border-color:rgba(255,166,77,0.5);background:linear-gradient(90deg,rgba(255,166,77,0.35),rgba(255,77,77,0.2));color:#1a1208;font-weight:700;
  }

  /* Logos in timeline */
  .tlogo{position:relative;width:38px;height:38px;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;box-shadow:0 1px 3px rgba(0,0,0,0.2)}
  .tlogo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
  .tlogo-fallback{font-size:11px;font-weight:800;color:#000;letter-spacing:0.3px}
  .stint-bar .tlogo{width:42px;height:42px}
  .stint-bar .tlogo-fallback{font-size:12px}

  @media (max-width:900px){
    .pos-lineup{grid-template-columns:repeat(5,1fr);gap:3px}
    .pos-box{padding:6px 3px;min-height:54px}
    .pos-label{font-size:9px}
    .pos-name{font-size:10px}
    .trade-viz{grid-template-columns:1fr;gap:10px}
    .trade-arrow{transform:rotate(90deg)}
    .trade-viz.trade-viz--multi{flex-direction:column}
    .trade-viz.trade-viz--multi .trade-side{max-width:none}
    .trade-viz.trade-viz--multi .trade-arrow{transform:rotate(90deg)}
  }

  /* ===== TEAMS HUB ===== */
  .teams-hub{display:none}
  .teams-hub.active{display:block}
  .tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;margin-top:24px}
  .tcard{
    background:linear-gradient(160deg,#1a2030 0%,#0f1420 100%);
    border:1px solid rgba(255,255,255,0.08);border-radius:12px;
    cursor:pointer;overflow:hidden;transition:all 0.15s ease;padding:18px 14px;
    display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;
    border-top:4px solid var(--tcardBorder,#666);
  }
  .tcard:hover{transform:translateY(-3px);border-color:rgba(255,166,77,0.45);box-shadow:0 12px 28px rgba(0,0,0,0.35)}
  .tcard .tlogo-lg{width:72px;height:72px;border-radius:50%;background:#fff;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,0.25)}
  .tcard .tlogo-lg img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
  .tcard .tlogo-lg .fb{font-size:18px;font-weight:900;color:#000;letter-spacing:0.5px}
  .tcard .tname{font-size:13px;font-weight:700;color:#e8ecf2;line-height:1.2}
  .tcard .tabbr-sub{font-size:10px;color:#7a8498;letter-spacing:1.2px;font-weight:600}

  /* ===== DRAFT HUB ===== */
  .draft-hub{display:none;padding-bottom:48px}
  .draft-hub.active{display:block}
  .playoffs-hub{display:none;padding-bottom:48px}
  .playoffs-hub.active{display:block}
  .draft-hero{
    position:relative;overflow:hidden;border-radius:18px;padding:28px 32px 26px;margin-bottom:22px;
    border:1px solid rgba(255,166,77,0.22);
    background:
      radial-gradient(ellipse 80% 120% at 90% 10%, rgba(255,166,77,0.18) 0%, transparent 52%),
      linear-gradient(145deg,#161d2c 0%,#0a0e14 72%);
    box-shadow:0 18px 48px rgba(0,0,0,0.38);
  }
  .draft-hero-badge{
    display:inline-flex;align-items:center;gap:8px;font-size:10px;font-weight:800;
    letter-spacing:2px;text-transform:uppercase;color:#ffa64d;
    background:rgba(255,166,77,0.12);border:1px solid rgba(255,166,77,0.35);
    padding:5px 12px;border-radius:999px;margin-bottom:14px;
  }
  .draft-hero h1{font-size:clamp(26px,4vw,34px);font-weight:800;color:#e8ecf2;letter-spacing:-0.6px;line-height:1.15;margin-bottom:10px}
  .draft-hero h1 em{font-style:normal;background:linear-gradient(90deg,#ffa64d,#ff6b6b);-webkit-background-clip:text;background-clip:text;color:transparent}
  .draft-hero-lead{font-size:14px;color:#9aa3b2;line-height:1.55;max-width:720px;margin-bottom:18px}
  .draft-lotto-wrap{margin-top:8px}
  .draft-lotto-label{font-size:10px;text-transform:uppercase;letter-spacing:1.4px;color:#7a8498;font-weight:700;margin-bottom:8px}
  .draft-lotto-bar{display:flex;height:14px;border-radius:8px;overflow:hidden;border:1px solid rgba(255,255,255,0.08);gap:2px;background:rgba(0,0,0,0.25)}
  .draft-lotto-seg{min-width:4px;transition:opacity 0.15s}
  .draft-lotto-seg:hover{opacity:0.85}
  .draft-lotto-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px;font-size:11px;color:#9aa3b2}
  .draft-lotto-legend span{display:inline-flex;align-items:center;gap:6px}
  .draft-lotto-dot{width:8px;height:8px;border-radius:2px;flex-shrink:0}
  .draft-lotto-disclaimer{font-size:11px;color:#7a8498;font-style:italic;margin-top:12px;line-height:1.45}

  .draft-segments{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}
  .draft-seg{
    background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.1);color:#9aa3b2;
    font-size:12px;font-weight:700;padding:9px 18px;border-radius:999px;cursor:pointer;
    letter-spacing:0.5px;text-transform:uppercase;transition:all 0.15s;
  }
  .draft-seg:hover{border-color:rgba(255,166,77,0.35);color:#e8ecf2}
  .draft-seg.active{background:rgba(255,166,77,0.14);border-color:rgba(255,166,77,0.45);color:#ffa64d}

  /* ----- Playoffs hub ----- */
  .playoffs-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 24px;margin-bottom:18px}
  .playoffs-year-label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#7a8498}
  .playoffs-year-select{
    padding:9px 14px;border-radius:10px;border:1px solid rgba(255,255,255,0.12);background:rgba(255,255,255,0.06);
    color:#e8ecf2;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;min-width:160px;
  }
  .playoffs-year-select:focus{outline:none;border-color:rgba(255,166,77,0.45)}
  .playoffs-source-note{flex:1;min-width:200px;font-size:11px;color:#7a8498;line-height:1.45;font-style:italic;margin:0}
  .playoffs-bracket{
    display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px) minmax(0,1fr);
    gap:12px 20px;align-items:start;
  }
  .playoff-conf-head{margin-bottom:10px;display:flex;flex-direction:column;gap:4px}
  .playoff-conf-label{font-size:12px;font-weight:900;letter-spacing:2.4px;text-transform:uppercase;color:#e8ecf2}
  .playoff-conf-sub{font-size:10px;color:#7a8498;text-transform:uppercase;letter-spacing:1.8px;font-weight:700}
  .playoff-conf--west .playoff-conf-sub{border-bottom:2px solid #e03a4d;padding-bottom:4px;display:inline-block;align-self:flex-start}
  .playoff-conf--east .playoff-conf-sub{border-bottom:2px solid #2966ff;padding-bottom:4px;display:inline-block;align-self:flex-start}

  .playoff-conf-rounds{display:flex;flex-direction:row;gap:clamp(10px,2vw,18px);align-items:flex-start}
  .playoff-conf--east .playoff-conf-rounds{flex-direction:row-reverse}

  .playoff-round{display:flex;flex-direction:column;gap:10px;align-self:flex-start}
  /* Pyramid: later rounds stepped toward vertical center vs first-round stacks */
  .playoff-round--r2{padding-top:clamp(40px,7vw,100px)}
  .playoff-round--r3{padding-top:clamp(88px,15vw,200px)}

  .playoff-round-label{
    font-size:9px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:#5a6272;text-align:center;
    white-space:nowrap;
  }
  .playoff-round-body{display:flex;flex-direction:column;gap:12px}

  .playoff-series{display:flex;flex-direction:column;gap:4px;background:rgba(0,0,0,0.2);padding:8px;border-radius:10px;border:1px solid rgba(255,255,255,0.06)}

  .playoff-slot{
    display:flex;align-items:center;gap:10px;width:100%;
    background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:8px;padding:8px 10px;
    cursor:pointer;font:inherit;color:inherit;text-align:left;transition:background 0.15s,border-color 0.15s;
  }
  .playoff-slot:hover{background:rgba(255,255,255,0.07);border-color:rgba(255,255,255,0.14)}
  .playoff-slot .tlogo{width:38px;height:38px;font-size:10px;border-radius:8px;background:#fff;}
  .playoff-slot-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;min-width:0}
  .playoff-slot-abbr{font-size:13px;font-weight:800;color:#e8ecf2;letter-spacing:0.3px}
  .playoff-slot-seed{font-size:11px;font-weight:900;color:rgba(232,236,242,0.5);border:1px solid rgba(255,255,255,0.12);border-radius:4px;padding:2px 6px;line-height:1}
  .playoff-slot--win{background:rgba(34,197,94,0.1);border-color:rgba(74,222,128,0.45);border-left:3px solid #22c55e}
  .playoff-slot--win:hover{background:rgba(34,197,94,0.16);border-color:rgba(74,222,128,0.55)}

  .playoffs-center{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;order:0}
  .playoffs-finals-pair{
    display:flex;align-items:center;justify-content:center;gap:10px 14px;flex-wrap:wrap;width:100%;
  }
  .playoffs-finals-team{
    flex:1;min-width:110px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 12px;border-radius:12px;
    border:1px solid rgba(255,255,255,0.1);background:rgba(255,255,255,0.03);cursor:pointer;font:inherit;color:inherit;
    transition:background 0.15s,border-color 0.15s;
  }
  .playoffs-finals-team:hover{background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.18)}
  .playoffs-finals-team--winner{background:rgba(34,197,94,0.1);border-color:rgba(74,222,128,0.42)}
  .playoffs-finals-team--winner:hover{background:rgba(34,197,94,0.16);border-color:rgba(74,222,128,0.55)}
  .playoffs-finals-team .tlogo{width:52px;height:52px;font-size:12px;background:#fff;border-radius:50%;}
  .playoffs-finals-tag{font-size:9px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:#7a8498}
  .playoffs-finals-abbr{font-size:13px;font-weight:900;color:#ffa64d;letter-spacing:1px}
  .playoffs-finals-long{font-size:10px;line-height:1.25;color:#9aa3b2;max-width:140px;text-align:center}
  .playoffs-finals-vs{font-size:12px;font-weight:900;color:#5a6272;text-transform:uppercase;flex-shrink:0}

  .playoffs-champion-card{
    width:100%;padding:22px 16px;border-radius:16px;
    border:1px solid rgba(255,200,110,0.35);
    background:
      radial-gradient(ellipse 100% 80% at 50% 10%,rgba(255,166,77,0.18) 0%,transparent 55%),
      linear-gradient(160deg,#1a2234 0%,#0f1420 100%);
    box-shadow:0 12px 40px rgba(0,0,0,0.4);
    display:flex;flex-direction:column;align-items:center;gap:8px;
  }
  .playoffs-champion-banner{font-size:10px;font-weight:900;letter-spacing:3px;text-transform:uppercase;color:rgba(255,200,140,0.85)}
  .playoffs-finals-trophy{font-size:46px;line-height:1;filter:drop-shadow(0 4px 12px rgba(0,0,0,0.4));}
  .playoffs-champion-ring{
    padding:14px;display:flex;justify-content:center;align-items:center;border-radius:50%;
    border:3px solid rgba(255,200,110,0.45);background:radial-gradient(circle,#fff 0%,#f0ede5 72%);
    cursor:pointer;margin-top:6px;line-height:0;transition:transform 0.15s;
    box-shadow:0 12px 32px rgba(0,0,0,0.35);
    font:inherit;
  }
  .playoffs-champion-ring:hover{transform:scale(1.06)}
  .playoffs-champion-ring .tlogo{width:80px;height:80px;background:transparent;font-size:16px;border-radius:0}
  .playoffs-champion-name{font-size:15px;font-weight:800;color:#e8ecf2;line-height:1.25;text-align:center}
  .playoffs-champion-titles{font-size:12px;font-weight:700;color:#9aa3b2;margin-top:2px;line-height:1.35;text-align:center;max-width:260px;padding:0 8px}
  .playoffs-champion-name--tbd{font-size:14px;color:#9aa3b2;font-weight:700}
  .playoffs-finals-hint{font-size:11px;line-height:1.45;color:#7a8498;margin:8px 0 0;text-align:center;max-width:280px;padding:0 8px}
  .playoffs-finals-hint code{font-size:10px;color:#ffa64d}

  @media (max-width:1024px){
    .playoffs-bracket{grid-template-columns:1fr;gap:24px;}
    .playoffs-center{order:-1;}
    .playoff-conf-rounds{flex-wrap:wrap;justify-content:center}
    .playoff-conf--east .playoff-conf-rounds{flex-direction:row-reverse}
    .playoff-conf--west .playoff-conf-rounds{flex-direction:row}
    .playoff-round--r2{padding-top:clamp(18px,4vw,40px)}
    .playoff-round--r3{padding-top:clamp(28px,6vw,72px)}
  }

  .draft-panel-intro{font-size:13px;color:#9aa3b2;line-height:1.45;margin-bottom:14px;max-width:780px}
  .draft-search{
    width:100%;max-width:400px;padding:11px 16px;border-radius:12px;
    border:1px solid rgba(255,255,255,0.1);
    background:rgba(255,255,255,0.04);color:#e8ecf2;font-size:13px;
    margin-bottom:20px;outline:none;font-family:inherit;
    transition:border-color 0.15s,background 0.15s;
  }
  .draft-search:focus{border-color:rgba(255,166,77,0.4);background:rgba(255,255,255,0.06)}
  .draft-search::placeholder{color:#4a5568}

  /* ── 2026 Prospect cards ────────────────────────────────────── */
  .draft-pro-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
  .draft-pro-card{
    position:relative;
    background:linear-gradient(160deg,#131c2e 0%,#0d1422 100%);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:16px;padding:0;overflow:hidden;
    transition:border-color 0.18s,transform 0.18s,box-shadow 0.18s;
    display:flex;flex-direction:column;cursor:pointer;
  }
  .draft-pro-card::before{
    content:'';position:absolute;top:0;left:0;right:0;height:3px;
    background:linear-gradient(90deg,rgba(255,166,77,0.7),rgba(255,80,80,0.5));
    opacity:0;transition:opacity 0.18s;
  }
  .draft-pro-card:hover{
    border-color:rgba(255,166,77,0.3);
    transform:translateY(-3px);
    box-shadow:0 16px 40px rgba(0,0,0,0.45);
  }
  .draft-pro-card:hover::before{opacity:1}
  .draft-pro-card.draft-card-hidden{display:none}
  .draft-pro-top{
    display:flex;justify-content:space-between;align-items:flex-start;gap:10px;
    padding:16px 16px 0;
  }
  .draft-pro-rank{
    font-size:32px;font-weight:900;
    color:rgba(255,166,77,0.25);
    line-height:1;letter-spacing:-2px;
    font-variant-numeric:tabular-nums;
  }
  .draft-pro-tier{
    font-size:9px;font-weight:800;letter-spacing:1.2px;
    text-transform:uppercase;padding:4px 9px;border-radius:6px;
    flex-shrink:0;white-space:nowrap;
  }
  .draft-tier-lottery{background:rgba(255,166,77,0.15);color:#ffc078;border:1px solid rgba(255,166,77,0.3)}
  .draft-tier-first{background:rgba(100,180,255,0.1);color:#8ec5ff;border:1px solid rgba(100,180,255,0.22)}
  .draft-tier-sleeper{background:rgba(160,120,255,0.1);color:#c9b8ff;border:1px solid rgba(160,120,255,0.22)}
  .draft-tier-tier1{background:rgba(255,166,77,0.18);color:#ffc078;border:1px solid rgba(255,166,77,0.35)}
  .draft-tier-tier2{background:rgba(100,180,255,0.13);color:#a8d4ff;border:1px solid rgba(100,180,255,0.28)}
  .draft-tier-rest{background:rgba(120,130,150,0.1);color:#9aa3b2;border:1px solid rgba(255,255,255,0.1)}
  .draft-pro-body{padding:10px 16px 16px;display:flex;flex-direction:column;gap:6px}
  .draft-pro-name{font-size:17px;font-weight:900;color:#e8ecf2;line-height:1.15;letter-spacing:-0.2px}
  .draft-pro-meta{font-size:11px;color:#5a6272;font-weight:600;letter-spacing:0.2px}
  .draft-pro-spec{
    font-size:10px;font-weight:700;color:#7a8498;
    letter-spacing:0.04em;line-height:1.4;
    padding-top:6px;border-top:1px solid rgba(255,255,255,0.05);
  }
  .draft-pro-stats{
    font-size:11.5px;font-weight:700;color:#c7cdd8;
    font-variant-numeric:tabular-nums;line-height:1.5;
  }
  .draft-pro-blurb{
    font-size:12px;color:#8b95a8;line-height:1.5;
    padding-top:6px;border-top:1px solid rgba(255,255,255,0.05);
  }

  /* ============================================================
     DRAFT HISTORY — premium arena board
     ============================================================ */
  .draft-bc{max-width:960px}
  .draft-bc-tv.draft-bc{max-width:1300px}

  /* "DRAFT HISTORY" kicker above year strip */
  .draft-bc-kicker{
    font-size:10px;font-weight:900;letter-spacing:3px;text-transform:uppercase;
    color:rgba(255,166,77,0.7);margin-bottom:10px;
  }

  /* ── Year strip ─────────────────────────────────────────────── */
  .draft-bc-years-wrap{
    overflow-x:auto;margin-bottom:18px;padding-bottom:6px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;scrollbar-color:rgba(255,166,77,0.25) transparent;
  }
  .draft-bc-years{display:flex;gap:5px;flex-wrap:nowrap;padding:2px 0}
  .draft-bc-year{
    flex-shrink:0;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.09);
    color:#5a6272;
    font-size:13px;font-weight:800;
    padding:7px 15px;
    border-radius:8px;
    cursor:pointer;
    font-variant-numeric:tabular-nums;
    letter-spacing:0.02em;
    transition:all 0.14s;
  }
  .draft-bc-year:hover{
    background:rgba(255,166,77,0.07);
    border-color:rgba(255,166,77,0.28);
    color:#c7cdd8;
  }
  .draft-bc-year.active{
    background:linear-gradient(135deg,rgba(255,166,77,0.2) 0%,rgba(255,100,40,0.12) 100%);
    border-color:rgba(255,166,77,0.55);
    color:#ffb86a;
    box-shadow:0 0 14px rgba(255,166,77,0.18),inset 0 1px 0 rgba(255,255,255,0.08);
  }

  /* ── Outer card wrapper ─────────────────────────────────────── */
  .draft-bc-card{
    border-radius:16px;border:1px solid rgba(255,255,255,0.08);
    background:linear-gradient(180deg,#141922 0%,#0e1218 100%);
    overflow:hidden;box-shadow:0 24px 64px rgba(0,0,0,0.5);
  }
  .draft-tv-card{
    border-radius:16px;
    background:#070d18;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 28px 72px rgba(0,0,0,0.6),0 0 0 1px rgba(255,255,255,0.03);
    overflow:hidden;
  }

  /* ── Banner (dark premium — replaces old white banner) ──────── */
  .draft-tv-banner{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:12px;
    align-items:center;
    padding:14px 22px;
    background:linear-gradient(135deg,#0d1828 0%,#122038 50%,#090f1c 100%);
    border-bottom:1px solid rgba(255,255,255,0.06);
    position:relative;overflow:hidden;
  }
  .draft-tv-banner::before{
    content:'';position:absolute;inset:0;
    background:radial-gradient(ellipse 70% 160% at 50% -20%,rgba(200,16,46,0.14) 0%,transparent 65%);
    pointer-events:none;
  }
  .draft-tv-banner-left{
    justify-self:start;
    font-size:10px;font-weight:800;letter-spacing:2.4px;
    text-transform:uppercase;color:rgba(255,255,255,0.28);
  }
  .draft-tv-banner-mid{
    justify-self:center;
    font-size:13px;letter-spacing:0.22em;
    color:#c7cdd8;text-transform:uppercase;
    white-space:nowrap;
  }
  .draft-tv-banner-mid strong{
    font-weight:900;font-size:24px;color:#fff;
    letter-spacing:0.04em;margin-left:10px;
    text-shadow:0 0 24px rgba(255,255,255,0.25);
  }
  .draft-tv-nba-accent{color:#e83a4a;font-weight:900}
  .draft-tv-banner-right{
    justify-self:end;text-align:right;
    color:rgba(255,255,255,0.32);font-size:10px;font-weight:600;
    letter-spacing:0.03em;text-transform:none;
    max-width:48%;line-height:1.4;
  }

  /* ── Round tabs (underline style) ───────────────────────────── */
  .draft-tv-round-tabs{
    display:flex;flex-wrap:nowrap;gap:0;
    padding:0 4px;
    background:#050b15;
    border-bottom:1px solid rgba(255,255,255,0.07);
  }
  .draft-tv-round-tab{
    flex:1;
    background:transparent;
    border:none;
    border-bottom:3px solid transparent;
    color:#4a5568;
    font-size:11px;font-weight:800;
    letter-spacing:0.16em;text-transform:uppercase;
    padding:13px 16px;
    cursor:pointer;font-family:inherit;
    transition:color 0.14s,border-color 0.14s,background 0.14s;
  }
  .draft-tv-round-tab:hover{color:#9aa3b2;background:rgba(255,255,255,0.025)}
  .draft-tv-round-tab.active{
    color:#e83a4a;
    border-bottom-color:#e83a4a;
    background:rgba(200,16,46,0.05);
  }

  /* ── Board shell + grid ─────────────────────────────────────── */
  .draft-tv-board-shell{
    background:linear-gradient(180deg,#06101e 0%,#050c18 100%);
    min-height:320px;
  }
  .draft-tv-grid{
    display:flex;gap:4px;padding:8px;flex:1;align-items:stretch;
  }
  .draft-tv-grid-mega{
    gap:12px;padding:16px 18px 20px;align-items:stretch;
  }
  .draft-tv-col{
    flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;
  }
  .draft-tv-col-mega{gap:6px}

  /* ── Column header labels ───────────────────────────────────── */
  .draft-tv-col-header{
    font-size:9px;font-weight:900;letter-spacing:1.8px;
    text-transform:uppercase;color:rgba(255,255,255,0.18);
    padding:0 4px 8px;
    border-bottom:1px solid rgba(255,255,255,0.07);
    margin-bottom:4px;
    user-select:none;pointer-events:none;
  }

  /* ── Pick cells ─────────────────────────────────────────────── */
  .draft-tv-cell{
    display:flex;align-items:center;gap:6px;
    width:100%;text-align:left;
    padding:5px 6px;border:0;border-radius:5px;
    background:rgba(255,255,255,0.025);
    color:#d8dde8;font-family:inherit;
    font-size:11px;font-weight:800;letter-spacing:0.03em;
    cursor:pointer;
    border-left:3px solid transparent;
    transition:background 0.13s,border-color 0.13s,box-shadow 0.13s;
    min-height:36px;
  }
  .draft-tv-cell-mega{
    gap:12px;
    padding:11px 14px;
    min-height:54px;
    border-radius:10px;
    border-left-width:3px;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
    border-left:3px solid transparent;
  }
  .draft-tv-cell:hover{background:rgba(255,255,255,0.06)}
  .draft-tv-cell-mega:hover{
    background:rgba(255,255,255,0.055);
    border-color:rgba(255,255,255,0.1);
    border-left-color:rgba(255,255,255,0.18);
    box-shadow:0 2px 10px rgba(0,0,0,0.3);
  }
  .draft-tv-cell.is-selected{
    background:rgba(200,16,46,0.1);
    border-left-color:#e83a4a;
  }
  .draft-tv-cell-mega.is-selected{
    background:linear-gradient(135deg,rgba(200,16,46,0.16) 0%,rgba(200,16,46,0.06) 100%);
    border-color:rgba(200,16,46,0.28);
    border-left-color:#e83a4a;
    box-shadow:0 0 0 0.5px rgba(200,16,46,0.18),0 4px 16px rgba(0,0,0,0.35);
  }

  /* Pick number */
  .draft-tv-pnum{
    flex-shrink:0;width:18px;
    font-variant-numeric:tabular-nums;
    color:rgba(255,255,255,0.2);
    font-size:10px;font-weight:900;
  }
  .draft-tv-cell-mega .draft-tv-pnum{
    width:28px;font-size:12px;
    color:rgba(255,255,255,0.22);
    text-align:right;letter-spacing:-0.02em;
  }
  .draft-tv-cell.is-selected .draft-tv-pnum{color:rgba(232,58,74,0.75)}
  .draft-tv-cell-mega.is-selected .draft-tv-pnum{color:rgba(232,58,74,0.8)}

  /* Team logo */
  .draft-tv-logo{
    flex-shrink:0;width:24px;height:24px;
    border-radius:5px;background:#fff;
    display:flex;align-items:center;justify-content:center;
    overflow:hidden;position:relative;
    box-shadow:0 1px 4px rgba(0,0,0,0.45);
    border:1px solid rgba(255,255,255,0.12);
  }
  .draft-tv-cell-mega .draft-tv-logo{
    width:38px;height:38px;
    border-radius:8px;
    box-shadow:0 3px 10px rgba(0,0,0,0.5);
    border:1px solid rgba(255,255,255,0.1);
  }
  .draft-tv-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
  .draft-tv-logo-fb{font-size:7px;font-weight:900;color:#333;width:100%;height:100%;display:flex;align-items:center;justify-content:center}
  .draft-tv-cell-mega .draft-tv-logo-fb{font-size:9px}
  .draft-tv-logo-empty{background:rgba(255,255,255,0.05);border:1px dashed rgba(255,255,255,0.1);color:#3d4455;font-size:8px;font-weight:800}

  /* Player name + main row */
  .draft-tv-main{
    flex:1;min-width:0;
    display:flex;align-items:center;justify-content:space-between;gap:8px;
  }
  .draft-tv-name{
    flex:1;min-width:0;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    font-size:10px;font-weight:700;letter-spacing:0.02em;
    color:#9aa3b2;
  }
  .draft-tv-cell-mega .draft-tv-name{
    font-size:13.5px;font-weight:800;
    color:#c8d0de;letter-spacing:0.01em;
  }
  .draft-tv-cell-mega:hover .draft-tv-name{color:#e2e8f2}
  .draft-tv-cell-mega.is-selected .draft-tv-name{color:#f0f4fa}

  /* ── Lottery picks (1-14) — golden left accent ──────────────── */
  .draft-tv-cell-mega.is-lottery{
    border-left-color:rgba(255,166,77,0.22);
  }
  .draft-tv-cell-mega.is-lottery .draft-tv-pnum{
    color:rgba(255,166,77,0.45);
  }
  .draft-tv-cell-mega.is-lottery:hover{
    border-left-color:rgba(255,166,77,0.5);
  }
  .draft-tv-cell-mega.is-lottery.is-selected{
    background:linear-gradient(135deg,rgba(255,140,40,0.18) 0%,rgba(200,16,46,0.08) 100%);
    border-color:rgba(255,166,77,0.32);
    border-left-color:#ffa64d;
    box-shadow:0 0 0 0.5px rgba(255,166,77,0.2),0 4px 16px rgba(0,0,0,0.35);
  }
  .draft-tv-cell-mega.is-lottery.is-selected .draft-tv-pnum{color:#ffc17a}
  .draft-tv-cell-mega.is-lottery.is-selected .draft-tv-name{color:#fff5e6}

  /* ── Career-linked picks (gold accent, matches site brand) ───── */
  .draft-tv-cell.has-career{border-left-color:rgba(255,166,77,0.35)}
  .draft-tv-cell.has-career:hover{background:rgba(255,166,77,0.06)}
  .draft-tv-cell-mega.has-career{border-left-color:rgba(255,166,77,0.4)}
  .draft-tv-cell-mega.has-career:hover{
    background:rgba(255,166,77,0.055);
    border-color:rgba(255,166,77,0.15);
    border-left-color:rgba(255,166,77,0.65);
  }
  .draft-tv-cell.has-career.is-selected,
  .draft-tv-cell-mega.has-career.is-selected{border-left-color:#ffa64d}
  .draft-tv-career-link{
    flex-shrink:0;
    display:inline-flex;align-items:center;justify-content:center;
    width:22px;height:22px;border-radius:6px;
    background:rgba(255,166,77,0.1);
    border:1px solid rgba(255,166,77,0.28);
    color:#ffa64d;font-size:10px;font-weight:900;
    cursor:pointer;
    transition:background 0.14s,border-color 0.14s,transform 0.1s,box-shadow 0.14s;
    line-height:1;
  }
  .draft-tv-career-link:hover{
    background:rgba(255,166,77,0.22);
    border-color:rgba(255,166,77,0.58);
    transform:scale(1.12);
    box-shadow:0 0 8px rgba(255,166,77,0.25);
  }
  .draft-tv-cell-mega .draft-tv-career-link{width:24px;height:24px;font-size:11px}

  /* ── Headshots ──────────────────────────────────────────────── */
  .draft-tv-shot-slot{
    flex-shrink:0;width:42px;height:46px;
    margin-left:4px;border-radius:8px;
    overflow:hidden;position:relative;align-self:center;
    border:1px solid rgba(255,255,255,0.09);
    background:rgba(255,255,255,0.04);
    box-sizing:border-box;
  }
  .draft-tv-shot-empty{opacity:0.25;background:transparent;border-style:dashed}
  .draft-tv-shot-nophoto{
    display:flex;align-items:center;justify-content:center;
    color:#3d4455;font-size:12px;font-weight:900;
  }
  .draft-tv-shot-img img{
    position:absolute;inset:0;width:100%;height:100%;
    object-fit:cover;object-position:center top;
  }
  .draft-tv-shot-monogram{
    position:absolute;inset:0;
    display:flex;align-items:center;justify-content:center;
    font-size:13px;font-weight:900;color:#4a5568;
    z-index:0;pointer-events:none;
    letter-spacing:-0.02em;
  }

  /* ── Responsive tweaks ──────────────────────────────────────── */
  @media(max-width:960px){
    .draft-tv-banner{grid-template-columns:1fr;gap:6px;text-align:center;padding:12px 16px}
    .draft-tv-banner-left,.draft-tv-banner-right{justify-self:center;max-width:100%}
    .draft-tv-banner-mid strong{font-size:20px}
  }
  @media(max-width:700px){
    .draft-hero{padding:22px 18px}
    .draft-tv-grid-mega{
      overflow-x:auto;-webkit-overflow-scrolling:touch;
      padding-bottom:14px;scrollbar-width:thin;
    }
    .draft-tv-col-mega{flex:0 0 min(240px,82vw)}
  }

  /* ── Pick spotlight header (appears in footer when a pick is clicked) ── */
  .draft-bc-pick-header{
    display:flex;align-items:center;gap:16px;
    padding:18px 22px 16px;
    background:linear-gradient(135deg,rgba(255,255,255,0.03) 0%,transparent 100%);
    border-bottom:1px solid rgba(255,255,255,0.07);
    margin-bottom:0;
  }
  .draft-bc-pick-num{
    flex-shrink:0;display:flex;flex-direction:column;
    align-items:center;justify-content:center;
    min-width:48px;
  }
  .draft-bc-pick-num-label{
    font-size:8px;font-weight:900;letter-spacing:2px;
    text-transform:uppercase;color:rgba(255,255,255,0.3);
    margin-bottom:1px;
  }
  .draft-bc-pick-num strong{
    font-size:30px;font-weight:900;color:#e8ecf2;
    letter-spacing:-1.5px;line-height:1;
    font-variant-numeric:tabular-nums;
    text-shadow:0 0 20px rgba(255,255,255,0.15);
  }
  .draft-bc-pick-num.is-lottery .draft-bc-pick-num-label{color:rgba(255,166,77,0.6)}
  .draft-bc-pick-num.is-lottery strong{color:#ffb86a;text-shadow:0 0 20px rgba(255,166,77,0.3)}
  .draft-bc-pick-logo-wrap{flex-shrink:0}
  .draft-bc-pick-logo-wrap .draft-tv-logo{
    width:46px !important;height:46px !important;
    border-radius:10px !important;
    box-shadow:0 4px 14px rgba(0,0,0,0.55) !important;
  }
  .draft-bc-pick-info{flex:1;min-width:0}
  .draft-bc-pick-name{
    font-size:20px;font-weight:900;color:#f0f4fa;
    letter-spacing:-0.4px;line-height:1.15;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  .draft-bc-pick-meta{
    font-size:12px;color:#5a6272;font-weight:600;
    margin-top:3px;letter-spacing:0.2px;
  }
  .draft-bc-lotto-badge{
    flex-shrink:0;
    font-size:9px;font-weight:900;letter-spacing:1.4px;
    text-transform:uppercase;color:#ffa64d;
    background:rgba(255,166,77,0.1);
    border:1px solid rgba(255,166,77,0.25);
    padding:5px 9px;border-radius:6px;
    align-self:flex-start;
  }

  /* ── Footer / pick detail panel ─────────────────────────────── */
  .draft-bc-foot{
    padding:0;
    border-top:1px solid rgba(255,255,255,0.06);
    background:linear-gradient(180deg,rgba(8,14,26,0.97) 0%,rgba(5,9,18,1) 100%);
  }
  .draft-bc-detail-wrap{padding:18px 22px 0;margin-bottom:0}
  .draft-bc-detail-wrap .draft-bc-detail{
    font-size:13.5px;color:#b8c0cc;line-height:1.7;
    margin:0 0 14px;white-space:pre-line;
  }
  .draft-bc-career-inline{
    align-self:flex-start;display:inline-flex;
    margin-bottom:12px;margin-top:-4px;
  }
  .draft-bc-actions{margin-top:12px}
  .draft-bc-profile-btn{
    background:linear-gradient(135deg,rgba(255,166,77,0.16) 0%,rgba(255,110,40,0.08) 100%);
    border:1px solid rgba(255,166,77,0.42);
    color:#ffa64d;font-size:12px;font-weight:800;
    letter-spacing:0.4px;padding:9px 20px;border-radius:9px;
    cursor:pointer;font-family:inherit;
    transition:all 0.14s;
  }
  .draft-bc-profile-btn:hover{
    background:linear-gradient(135deg,rgba(255,166,77,0.26) 0%,rgba(255,110,40,0.18) 100%);
    box-shadow:0 4px 14px rgba(255,166,77,0.22);
    transform:translateY(-1px);
  }
  .draft-bc-hint{font-size:11px;color:#3d4455;line-height:1.5;margin:14px 0 0;font-style:italic;padding:0 22px 18px}

  /* ===== TEAM DETAIL VIEW ===== */
  .team-view{display:none}
  .team-view.active{display:block}
  .team-hero{display:flex;align-items:center;gap:20px;padding:22px;border-radius:14px;margin-bottom:24px;border:1px solid rgba(255,255,255,0.08);background:linear-gradient(135deg,var(--thBgA,#1a2030) 0%,var(--thBgB,#0f1420) 100%)}
  .team-hero .thero-logo{width:96px;height:96px;border-radius:50%;background:#fff;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 3px 10px rgba(0,0,0,0.35)}
  .team-hero .thero-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
  .team-hero .thero-logo .fb{font-size:24px;font-weight:900;color:#000}
  .team-hero h2{font-size:36px;font-weight:800;letter-spacing:-1px;line-height:1;margin-bottom:6px}
  .team-hero .tsub{font-size:13px;color:#9aa3b2;letter-spacing:0.4px;margin-bottom:14px}
  .team-hero .tsub b{color:#e8ecf2}
  .coach-info{display:flex;align-items:center;gap:12px}
  .coach-shot{width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:1px solid rgba(255,255,255,0.12)}
  .coach-shot img{width:100%;height:100%;object-fit:cover}
  .coach-init{font-size:18px;font-weight:800;color:#9aa3b2}
  .coach-details{display:flex;flex-direction:column;gap:2px}
  .coach-label{font-size:10px;color:#7a8498;text-transform:uppercase;letter-spacing:0.6px;font-weight:700}
  .coach-name{font-size:14px;color:#e8ecf2;font-weight:600}
  .coach-info.vacant .coach-label{color:#ff6b6b}
  .coach-info.vacant .coach-name{color:#ff6b6b}

  .depth-section-title{font-size:11px;color:#7a8498;letter-spacing:1.5px;text-transform:uppercase;font-weight:700;margin:24px 0 12px}
  .depth-chart{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.dinjury{position:absolute;top:4px;right:4px;font-size:9px;font-weight:700;background:#ff4d4d;color:#fff;padding:2px 6px;border-radius:8px;letter-spacing:0.4px;text-transform:uppercase;line-height:1}
  .depth-col{display:flex;flex-direction:column;gap:6px}
  .depth-col-head{font-size:11px;font-weight:800;color:#fff;letter-spacing:1px;text-align:center;padding:8px 0;border-radius:8px;background:var(--colHead,#333)}
  .depth-slot{
    background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);
    border-radius:8px;padding:10px 8px;text-align:center;min-height:54px;
    display:flex;flex-direction:column;justify-content:center;cursor:pointer;
    transition:border-color 0.15s, background 0.15s;
  }
  .depth-slot:hover{border-color:rgba(255,166,77,0.5);background:rgba(255,166,77,0.05)}
  .depth-slot.empty{cursor:default;opacity:0.4}
  .depth-slot.empty:hover{border-color:rgba(255,255,255,0.06);background:rgba(255,255,255,0.04)}
  .depth-slot .dname{font-size:12.5px;color:#e8ecf2;font-weight:600;line-height:1.25}
  .depth-slot .drank{font-size:9px;letter-spacing:0.6px;color:#7a8498;text-transform:uppercase;margin-top:2px;font-weight:700}
  .depth-slot.starter .dname{color:#ffa64d}
  .depth-slot.starter{border-color:rgba(255,166,77,0.3)}

  /* ===== STUB PLAYER PAGE ===== */
  .stub-note{
    background:rgba(255,166,77,0.08);border:1px solid rgba(255,166,77,0.25);border-radius:10px;
    padding:14px 18px;font-size:13.5px;color:#ffd089;line-height:1.55;margin-top:18px;
  }
  .stub-note b{color:#ffa64d}

  /* Header nav */
  .nav-tabs{display:flex;gap:6px;margin:0 10px 0 24px}
  .nav-tab{
    background:transparent;border:1px solid rgba(255,255,255,0.1);color:#9aa3b2;
    font-size:12px;font-weight:600;padding:7px 14px;border-radius:8px;cursor:pointer;letter-spacing:0.4px;text-transform:uppercase;
  }
  .nav-tab.active{background:rgba(255,166,77,0.15);border-color:rgba(255,166,77,0.4);color:#ffa64d}
  .nav-tab:hover:not(.active){background:rgba(255,255,255,0.05);color:#e8ecf2}

  /* Search bar */
  .search-container{flex:1;max-width:360px;position:relative;margin:0 12px}
  .search-input{
    width:100%;padding:10px 16px;border:0.5px solid rgba(255,255,255,0.14);
    border-radius:8px;font-size:14px;background:rgba(255,255,255,0.04);
    color:#e8ecf2;height:36px;box-sizing:border-box;
    transition:border-color 0.15s,background 0.15s;font-family:inherit;
  }
  .search-input::placeholder{color:#7a8498}
  .search-input:hover{border-color:rgba(255,255,255,0.2);background:rgba(255,255,255,0.06)}
  .search-input:focus{outline:none;border-color:rgba(255,166,77,0.5);background:rgba(255,255,255,0.06)}
  .search-dropdown{
    position:absolute;top:100%;left:0;right:0;margin-top:6px;background:#1a2030;
    border:0.5px solid rgba(255,255,255,0.14);border-radius:8px;max-height:360px;
    overflow-y:auto;z-index:100;display:none;box-shadow:0 8px 16px rgba(0,0,0,0.3)
  }
  .search-dropdown.active{display:block}
  .search-result{
    padding:10px 16px;cursor:pointer;border-bottom:0.5px solid rgba(255,255,255,0.06);
    transition:background 0.1s;font-size:14px;color:#e8ecf2
  }
  .search-result:last-child{border-bottom:none}
  .search-result:hover{background:rgba(255,166,77,0.12)}
  .search-result-name{font-weight:500;color:#ffa64d}

  @media (max-width:900px){
    .depth-chart{grid-template-columns:repeat(5,1fr);gap:4px}
    .depth-slot{padding:6px 3px;min-height:48px}
    .depth-slot .dname{font-size:10.5px}
    .depth-col-head{font-size:10px;padding:6px 0}
    .nav-tabs{margin:0 8px}
    .nav-tab{padding:6px 10px;font-size:11px}
  }


  /* Headshots in depth chart */
  .depth-slot{position:relative;text-align:left;padding:8px 10px 8px 48px;min-height:54px}
  .dshot{position:absolute;left:7px;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;background:#2a3142;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:1.5px solid rgba(255,255,255,0.08)}
  .dshot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .dshot .dinit{font-size:11px;font-weight:800;color:#9aa3b2;letter-spacing:0.3px}
  .depth-slot.starter .dshot{border-color:rgba(255,166,77,0.5)}
  .depth-slot .dname{font-size:12.5px;line-height:1.2;text-align:left}
  .depth-slot .drank{font-size:9px;letter-spacing:0.6px;color:#7a8498;text-transform:uppercase;margin-top:2px;font-weight:700;text-align:left}
  .depth-slot.empty{padding:8px;text-align:center}
  .depth-slot.empty .dname{text-align:center}
  @media (max-width:900px){
    .depth-slot{padding:6px 4px 6px 38px;min-height:48px}
    .dshot{width:28px;height:28px;left:5px}
    .dshot .dinit{font-size:9px}
    .depth-slot .dname{font-size:10.5px}
  }


  /* Starters row */
  .starters-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
  .starter-card{
    background:rgba(255,255,255,0.04);border:1px solid rgba(255,166,77,0.25);
    border-radius:10px;padding:14px 10px 12px;text-align:center;cursor:pointer;
    display:flex;flex-direction:column;align-items:center;gap:8px;
    transition:transform 0.15s, border-color 0.15s, background 0.15s;
  }
  .starter-card:hover{transform:translateY(-2px);border-color:rgba(255,166,77,0.6);background:rgba(255,166,77,0.06)}
  .starter-card .dshot{position:relative;left:auto;top:auto;transform:none;width:54px;height:54px;border:2px solid rgba(255,166,77,0.5)}
  .starter-card .dshot .dinit{font-size:16px}
  .sc-name{font-size:13px;font-weight:700;color:#ffa64d;line-height:1.2;text-align:center}
  .sc-meta{font-size:10.5px;color:#9aa3b2;letter-spacing:0.3px;text-align:center}

  /* Roster cards (bench/inactive/G-league) */
  .roster-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
  .roster-card{
    background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);
    border-radius:8px;padding:10px 12px;cursor:pointer;display:flex;align-items:center;gap:10px;
    transition:border-color 0.15s, background 0.15s;position:relative;
  }
  .roster-card:hover{border-color:rgba(255,166,77,0.4);background:rgba(255,166,77,0.04)}
  .roster-card.dim{opacity:0.72}
  .roster-card.dim:hover{opacity:1}
  .rshot{width:38px;height:38px;border-radius:50%;background:#2a3142;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid rgba(255,255,255,0.08)}
  .rshot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .rinfo{flex:1;min-width:0}
  .rname{font-size:13px;font-weight:600;color:#e8ecf2;line-height:1.2;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
  .rnum{font-size:10px;color:#7a8498;font-weight:700;letter-spacing:0.3px}
  .rmeta{font-size:11px;color:#9aa3b2;margin-top:3px;letter-spacing:0.2px}

  @media (max-width:900px){
    .starters-row{grid-template-columns:repeat(5,1fr);gap:4px}
    .starter-card{padding:8px 4px}
    .starter-card .dshot{width:40px;height:40px}
    .sc-name{font-size:11px}
    .sc-meta{font-size:9px}
    .roster-grid{grid-template-columns:repeat(2,1fr)}
  }


  /* Timeline-year photos */
  .ycard{position:relative}
  .y-pic-icon{position:absolute;top:6px;right:8px;width:20px;height:20px;border-radius:50%;background:rgba(255,166,77,0.12);display:none;align-items:center;justify-content:center;font-size:11px;color:#ffa64d;border:1px solid rgba(255,166,77,0.3);pointer-events:none}
  .ycard.has-photo .y-pic-icon{display:flex}
  .ycard.has-photo:hover{border-color:rgba(255,166,77,0.5);cursor:zoom-in}
  .year-popup{position:fixed;z-index:9999;background:#0d1117;border:2px solid rgba(255,166,77,0.6);border-radius:12px;padding:6px;box-shadow:0 16px 50px rgba(0,0,0,0.7);pointer-events:none;display:none;max-width:280px}
  .year-popup img{display:block;max-width:260px;max-height:340px;border-radius:8px;object-fit:contain}
  .year-popup .y-pop-cap{font-size:11px;color:#ffa64d;text-align:center;padding:6px 4px 4px;letter-spacing:0.6px;font-weight:800;text-transform:uppercase}

  /* First-year / last-year polaroids per stint */
  .stint-photos{display:none;gap:14px;margin:0 0 14px;flex-wrap:wrap}
  .stint-photos.active{display:flex}
  .stint-photo{flex:1;min-width:140px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,166,77,0.25);border-radius:10px;padding:10px;display:none;flex-direction:column;gap:6px;align-items:center}
  .stint-photo.loaded{display:flex}
  .stint-photo img{width:100%;max-height:220px;object-fit:cover;border-radius:6px;display:block}
  .stint-photo .sp-label{font-size:10px;color:#ffa64d;letter-spacing:0.6px;font-weight:800;text-transform:uppercase}
  .stint-photo .sp-year{font-size:12px;color:#c7cdd8;font-weight:600;letter-spacing:0.3px}

  /* ===== HISTORICAL ROSTERS ACCORDION ===== */
  .hist-divider{
    display:flex;align-items:center;gap:12px;margin:36px 0 16px;
  }
  .hist-divider span{
    font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;
    color:#7a8498;white-space:nowrap;
  }
  .hist-divider::before,.hist-divider::after{
    content:'';flex:1;height:1px;background:rgba(255,255,255,0.08);
  }
  .hist-accordion{display:flex;flex-direction:column;gap:8px;margin-bottom:32px}
  .hist-row{
    background:#12192b;border:1px solid rgba(255,255,255,0.07);border-radius:10px;overflow:hidden;
  }
  .hist-row-head{
    display:flex;justify-content:space-between;align-items:center;
    padding:14px 18px;cursor:pointer;user-select:none;transition:background 0.15s;
  }
  .hist-row-head:hover{background:rgba(255,255,255,0.04)}
  .hist-season-label{font-size:14px;font-weight:700;color:#c8d0e0;letter-spacing:0.3px}
  .hist-chevron{
    font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;
    color:#ffa64d;padding:3px 8px;border:1px solid rgba(255,166,77,0.3);
    border-radius:4px;transition:all 0.15s;
  }
  .hist-body{padding:4px 18px 16px;border-top:1px solid rgba(255,255,255,0.06)}
  .hist-coach{font-size:12px;color:#7a8498;margin:10px 0 12px;font-style:italic}
  .hist-coach b{color:#c8d0e0;font-style:normal}
  .hist-section-label{
    font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;
    color:#7a8498;margin:12px 0 6px;
  }
  .hist-roster{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}
  .hist-player{
    display:flex;align-items:center;gap:7px;
    background:#1a2235;border:1px solid rgba(255,255,255,0.07);border-radius:7px;
    padding:7px 12px;cursor:pointer;transition:all 0.15s;min-width:140px;
  }
  .hist-player:hover{background:#21293f;border-color:rgba(255,166,77,0.25);transform:translateY(-1px)}
  .hist-player.hist-starter{border-left:2px solid #ffa64d}
  .hist-pos{font-size:10px;font-weight:800;color:#ffa64d;letter-spacing:0.8px;min-width:20px}
  .hist-pname{font-size:13px;font-weight:600;color:#e8ecf2}
  .hist-num{font-size:11px;color:#7a8498;margin-left:auto}
  .hist-avg{font-size:10px;font-weight:700;color:#8b95a8;font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:4px}
  .hist-note{
    font-size:12px;color:#7a8498;font-style:italic;
    margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,0.06);
    line-height:1.5;
  }
  .hist-empty{font-size:13px;color:#7a8498;font-style:italic;padding:14px 0}

  /* Search result sub-label for teams and seasons */
  .search-result-sub{font-size:11px;color:#7a8498;margin-top:2px}

  /* ===== EDIT-ONLY ELEMENTS (hidden by default, shown in edit mode) ===== */
  .edit-only{display:none!important}
  /* Default show is inline-flex; specific elements override below */
  body.edit-mode .edit-only{display:inline-flex!important}

  /* ===== BENCH SECTION HEADER (title + add button row) ===== */
  .bench-section-header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  .bench-title{margin:0!important}
  .bench-add-btn{
    background:rgba(255,166,77,0.15);color:#ffa64d;border:1px solid rgba(255,166,77,0.4);
    border-radius:6px;font-size:12px;font-weight:700;padding:3px 10px;cursor:pointer;
    transition:all 0.15s;letter-spacing:0.3px;align-items:center;gap:4px;
  }
  .bench-add-btn:hover{background:rgba(255,166,77,0.28);border-color:#ffa64d}

  /* ===== BENCH DROP ZONE ===== */
  .bench-drop-zone{
    margin-top:8px;border:2px dashed rgba(255,166,77,0.3);border-radius:8px;
    padding:10px 16px;font-size:12px;color:#7a8498;text-align:center;
    transition:all 0.2s;cursor:default;display:none;align-items:center;justify-content:center;
  }
  body.edit-mode .bench-drop-zone{display:flex!important}
  .bench-drop-zone.dz-over{
    border-color:#ffa64d;background:rgba(255,166,77,0.08);color:#ffa64d;
  }

  /* ===== INJURED DROP ZONE ===== */
  .injured-drop-zone{
    margin-top:6px;border:2px dashed rgba(255,77,77,0.3);border-radius:8px;
    padding:10px 16px;font-size:12px;color:#7a8498;text-align:center;
    transition:all 0.2s;cursor:default;display:none;align-items:center;justify-content:center;
  }
  body.edit-mode .injured-drop-zone{display:flex!important}
  .injured-drop-zone.dz-over{
    border-color:#ff4d4d;background:rgba(255,77,77,0.08);color:#ff6b6b;
  }

  /* ===== INJURED CARD — return button & clickable badge ===== */
  .inj-clickable{cursor:default}
  body.edit-mode .inj-clickable{cursor:pointer;outline:1px dashed rgba(255,77,77,0.5);border-radius:8px}
  body.edit-mode .inj-clickable:hover{background:#cc2222}
  .inj-return-btn{
    background:rgba(100,220,100,0.15);color:#66dd88;border:1px solid rgba(100,220,100,0.35);
    border-radius:5px;font-size:10px;font-weight:700;padding:2px 7px;cursor:pointer;
    transition:all 0.15s;white-space:nowrap;letter-spacing:0.2px;
    position:absolute;bottom:4px;right:4px;
  }
  .inj-return-btn:hover{background:rgba(100,220,100,0.28);border-color:#66dd88}

  /* ===== ADD PLAYER MODAL ===== */
  .add-player-modal{display:none;position:fixed;inset:0;z-index:9000}
  .add-player-modal.active{display:block}
  .apm-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.6)}
  .apm-box{
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
    background:#0d1117;border:1px solid rgba(255,166,77,0.3);border-radius:14px;
    width:min(90vw,420px);max-height:80vh;display:flex;flex-direction:column;overflow:hidden;
    box-shadow:0 24px 64px rgba(0,0,0,0.7);
  }
  .apm-header{
    display:flex;justify-content:space-between;align-items:center;
    padding:16px 20px 12px;border-bottom:1px solid rgba(255,255,255,0.07);
  }
  .apm-title{font-size:14px;font-weight:700;color:#e8ecf2;letter-spacing:0.3px}
  .apm-close{
    background:none;border:none;color:#7a8498;font-size:16px;cursor:pointer;
    padding:4px;border-radius:4px;transition:color 0.15s;
  }
  .apm-close:hover{color:#e8ecf2}
  .apm-search{
    margin:14px 16px 8px;padding:10px 14px;background:#12192b;
    border:1px solid rgba(255,255,255,0.1);border-radius:8px;
    color:#e8ecf2;font-size:13px;outline:none;transition:border-color 0.15s;
  }
  .apm-search:focus{border-color:rgba(255,166,77,0.5)}
  .apm-results{overflow-y:auto;padding:0 16px 16px;flex:1}
  .apm-result{
    display:flex;justify-content:space-between;align-items:center;
    padding:10px 12px;border-radius:8px;cursor:pointer;transition:background 0.15s;
    border:1px solid transparent;margin-bottom:4px;
  }
  .apm-result:hover{background:rgba(255,255,255,0.06);border-color:rgba(255,166,77,0.2)}
  .apm-new{border-color:rgba(255,166,77,0.15)!important}
  .apm-new:hover{background:rgba(255,166,77,0.08)!important}
  .apm-rname{font-size:13px;font-weight:600;color:#e8ecf2}
  .apm-rpos{font-size:11px;color:#7a8498}
  .apm-empty{font-size:12px;color:#7a8498;padding:12px 4px;font-style:italic}
