.absences-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.absences-count {
    flex-shrink: 0;
    padding-left: 10px;
    border-left: 2px solid var(--accent-border);
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-shadow: none;
    text-transform: uppercase;
}

.absences {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(176px, 1.05fr);
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.absence-hero {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 42%),
        var(--card-bg);
    box-shadow:
        inset 12px 0 24px rgba(220, 5, 45, .06);
}

.absence-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 3px;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong), #ffffff);
    box-shadow: 0 0 14px var(--accent-glow);
    animation: absence-progress var(--absence-rotation-duration, 10000ms) linear infinite;
    pointer-events: none;
}

.absence-photo-wrap {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
    overflow: hidden;
}

.absence-photo {
    width: 106%;
    height: 108%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, .55));
    transform: translateY(3%);
}

.absence-hero::after {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
    pointer-events: none;
}

.absence-hero-copy {
    position: relative;
    z-index: 1;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .42));
}

.absence-status {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.absence-hero h2 {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    overflow-wrap: anywhere;
}

.absence-hero p {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.absence-return {
    margin-top: 10px;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 900;
}

.absence-list {
    display: grid;
    grid-auto-rows: minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    gap: 5px;
}

.absence-player {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 0;
    padding: 4px 6px 4px 8px;
    border: 0;
    border-left: 2px solid transparent;
    background: linear-gradient(90deg, rgba(255, 255, 255, .035), transparent 82%);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.absence-player:disabled {
    cursor: default;
}

.absence-player.is-active {
    border-color: var(--accent);
    background: linear-gradient(90deg, var(--accent-bg), transparent 82%);
    box-shadow: inset 9px 0 16px rgba(220, 5, 45, .08);
}

.absence-player.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong), rgba(255, 255, 255, .96));
    box-shadow: 0 0 12px var(--accent-glow);
    animation: absence-progress var(--absence-rotation-duration, 10000ms) linear infinite;
}

.absence-player.is-context {
    border-left-style: dashed;
    background: rgba(255, 255, 255, .02);
}

.absence-shirt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--text-main);
    flex-shrink: 0;
}

.absence-shirt::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask: url("../../assets/SVG/shirt.svg") center / contain no-repeat;
    mask: url("../../assets/SVG/shirt.svg") center / contain no-repeat;
}

.absence-shirt span {
    position: relative;
    z-index: 1;
    margin-top: 3px;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 4px rgba(0, 0, 0, .95);
}

.absence-player-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.absence-player-text strong,
.absence-player-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.absence-player-text strong {
    color: var(--text-main);
    font-size: 17px;
    font-weight: 900;
}

.absence-player-text small {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.absence-other {
    margin-top: auto;
    min-height: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.absence-other-title {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.absence-other-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 5px 0;
}

.absence-other-row span,
.absence-other-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.absence-other-row span {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 800;
}

.absence-other-row small {
    color: var(--text-muted);
    font-size: 14px;
}

.absences-empty {
    grid-template-columns: 1fr;
}

.absence-empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 18px;
    border: 0;
    border-left: 3px solid var(--card-border);
    background: var(--card-bg);
}

.absence-empty-state strong {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
}

.absence-empty-state span {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 700;
}

@keyframes absence-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}
