/* V3: direct player-profile navigation without interfering with legacy EXPLORE row/card interactions. */
.projection-table tbody tr.projection-player-row>td.player-profile-zone{position:relative;background:linear-gradient(90deg,#dcecff,#edf6ff)!important;box-shadow:inset 4px 0 0 #6098d3;color:#153852;padding-right:26px}
.projection-table tbody tr.projection-player-row>td.player-profile-zone:hover{background:linear-gradient(90deg,#dcecff,#edf6ff)!important}
.projection-table tbody tr.projection-player-row>td.player-profile-zone strong,.projection-table tbody tr.projection-player-row>td.player-profile-zone .player-profile-link{color:#153f64!important}
.projection-table tbody tr.projection-player-row>td.player-profile-zone::after{content:'↗';position:absolute;right:9px;top:50%;transform:translateY(-50%);color:#4d7fb4;font-weight:900;font-size:.8rem;pointer-events:none;z-index:3}
.projection-table tbody tr.projection-player-row>td.player-profile-zone .fme-player-cell-hit{position:absolute;inset:0;z-index:2;border-radius:2px;text-decoration:none;background:transparent}
.projection-table tbody tr.projection-player-row>td.player-profile-zone .fme-player-cell-hit:focus-visible{outline:3px solid #78a9e8;outline-offset:-3px}
.projection-table tbody tr.projection-player-row>td.player-profile-zone .player-profile-link{background:transparent!important;border:0!important;padding:0!important;text-align:left;pointer-events:none}

/* Context cells remain a different pale family; heatmap/action cells keep their own semantic colours. */
[data-home-projection-panel] .projection-table tbody tr.projection-player-row>td:not(.heatmap-cell):not(.player-profile-zone),
[data-fpl-deep-panel] .projection-table tbody tr.projection-player-row>td:not(.heatmap-cell):not(.action-rate-cell):not(.player-profile-zone),
[data-defcon-panel] .projection-table tbody tr.projection-player-row>td:not(.heatmap-cell):not(.action-rate-cell):not(.player-profile-zone),
[data-next5-panel] .projection-table tbody tr.projection-player-row>td:not(.heatmap-cell):not(.player-profile-zone){background:#f5f2fb;color:#31423c}
[data-home-projection-panel] .projection-table tbody tr.projection-player-row>td.rank,
[data-fpl-deep-panel] .projection-table tbody tr.projection-player-row>td.rank,
[data-defcon-panel] .projection-table tbody tr.projection-player-row>td.rank,
[data-next5-panel] .projection-table tbody tr.projection-player-row>td.rank{background:#eee9f7;color:#4f4767;font-weight:900}
.projection-table .heatmap-cell,.projection-table .action-rate-cell{position:relative;z-index:1}

/* Expanded row: linked name and clearly visible full profile CTA beside it. */
.player-drawer-head>div{min-width:0;flex:1}
.fme-profile-heading-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:2px 0 3px}
.fme-profile-heading-row h2,.fme-profile-heading-row h3{margin:0!important;min-width:0}
.fme-profile-name-link,.fme-inline-player-name-link{color:inherit!important;text-decoration:none!important;font-weight:inherit}
.fme-profile-name-link:hover,.fme-inline-player-name-link:hover{text-decoration:underline!important;text-decoration-color:#78a9e8!important;text-decoration-thickness:2px!important;text-underline-offset:3px}
.fme-full-profile-cta{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:11px 18px;border-radius:10px;background:#dceeff;color:#174a74!important;font-size:.86rem;font-weight:900;letter-spacing:.025em;text-decoration:none!important;border:1px solid #acd0ee;box-shadow:0 3px 10px rgba(41,105,158,.08);white-space:nowrap}
.fme-full-profile-cta:hover{background:#cfe5fa;transform:translateY(-1px)}
.fme-linked-popout-name .fme-profile-name-link,.fme-linked-popout-name.fme-profile-name-link{text-decoration:underline!important;text-decoration-color:#78a9e8!important;text-decoration-thickness:2px!important;text-underline-offset:4px}

/* Captain/Comparison: only the name itself is a direct profile route; surrounding cards retain legacy click behaviour. */
[data-captain-list] .fme-inline-player-name-link,[class*="compar"] .fme-inline-player-name-link{position:relative;z-index:4;color:#174a74!important;text-decoration:underline;text-decoration-color:#a7cbea;text-underline-offset:3px}
[data-captain-list] .fme-inline-player-name-link:hover,[class*="compar"] .fme-inline-player-name-link:hover{color:#0f3656!important;text-decoration-color:#5f9ed2}

@media(max-width:760px){.fme-profile-heading-row{align-items:flex-start}.fme-full-profile-cta{font-size:.78rem;min-height:36px;padding:9px 12px}.projection-table tbody tr.projection-player-row>td.player-profile-zone{padding-right:22px}}

/* V4: native player-profile zones used by Predicted Points / Next5. */
td.player-profile-zone[data-player-profile-slug]{position:relative;background:linear-gradient(90deg,#dcecff,#edf6ff)!important;box-shadow:inset 4px 0 0 #6098d3;color:#153852}
td.player-profile-zone[data-player-profile-slug]:hover{background:linear-gradient(90deg,#cfe4fb,#e5f1ff)!important}
.profile-cell .profile-button{position:relative;z-index:6;pointer-events:auto}
