/* ==========================================================================
   Player Image Styles
   ========================================================================== */

.player-image {
    position: relative;
}

.player-image .emblem-wrapper svg {
    pointer-events: none;
}

.player-image .emblem-wrapper:hover {
    transform: none;
}

/* Article Player Image */
.article .player-image svg {
    height: 150px;
}

.article .player-image {
    height: 150px;
    overflow: hidden;
    margin: 0 1rem 1rem 0;
}

/* Color Picker */
.color-picker-item {
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: inline-block;
}

/* Scorer/Suspended/Market Image Container */
.scorer-image,
.suspended-image,
.market-player-image,
.player-list-image {
    width: 48px;
    height: 20px;
    margin-top: -32px;
    display: inline-block;
}

/* Captain Badge — yellow armband with black "C" */
.captain-badge {
    position: absolute;
    top: 6%;
    right: 4%;
    pointer-events: none;
    background: var(--app-captain-band);
    color: rgb(var(--app-black-rgb));
    font-weight: 900;
    font-family: Arial, sans-serif;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(var(--app-black-rgb), 0.5), inset 0 -1px 0 rgba(var(--app-black-rgb), 0.15);
    transform: translateX(50%);
}

/* Player Modal */
.player-modal__image {
    flex-shrink: 0;
    position: relative;
}

.player-modal__full-btn {
    position: absolute;
    top: 0;
    right: 0;
}

/* The whole player, head to boots — scales down to fit short screens */
.player-full {
    display: flex;
    justify-content: center;
}

.player-full .player-image--full svg {
    display: block;
    width: auto;
    max-width: 100%;
    height: calc(100vh - 12rem);
    height: calc(100dvh - 12rem);
    max-height: 726px;
}

.player-modal__section {
    clear: both;
}

/* Retirement Icon */
.retirement-icon {
    color: var(--bs-secondary);
    cursor: help;
    font-size: 0.85em;
}

/* Player list name cell — name + status icons with consistent spacing */
.player-name-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.player-name-cell__icon {
    display: inline-flex;
    align-items: center;
}

/* Its own flex row, so the gap also holds outside the squad list's name
   cell — in the player picker the icon and the days stood glued together. */
.injury-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.injury-badge__days {
    color: var(--bs-danger);
    font-weight: bold;
    font-size: 0.85em;
}

/* The injured-player slot in the league and cup tables (#706). It carries the
   same portrait as `.suspended-image` but not its crop — the box is what the
   markup used to set inline, kept as it renders today. */
.injured-image {
    width: 48px;
    display: inline-block;
}

/* The list's own heading sits next to a floated expand button, so it has to
   clear it (#706). */
.player-list-title {
    clear: both;
}

/* Career table (#471): the club cell carries its emblem in front of the name,
   so a career of several clubs is scanned by crest rather than by reading. */
.player-career__club {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.player-career__club > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
