.dpr {
    max-width: 1180px;
    margin: 0 auto 32px;
    font-size: 19px;
}

body.dpr-selector-open {
    overflow: hidden;
}

.dpr__selector-backdrop {
    position: fixed;
    z-index: 2147482999;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.75);
}

.dpr__selector-backdrop.is-active {
    display: block;
}

.dpr__banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    margin: 0 auto 18px;
    background: #111;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

.dpr__banner span {
    font-size: 12px;
    font-weight: 800;
}

.dpr__banner strong {
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
}

.dpr__banner em {
    color: #e0dd28;
    font-style: normal;
}

.dpr__status,
.dpr__actions,
.dpr__filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dpr__status {
    min-height: 22px;
    font-weight: 700;
}

.dpr__updated {
    color: #777;
    font-size: 12px;
    font-weight: 600;
}

.dpr__button,
.dpr__select,
.dpr__selector input {
    min-height: 32px;
    border: 0;
    border-radius: 4px;
    font-weight: 700;
}

.dpr__button,
.dpr__select {
    background: #e11218;
    color: #fff;
    text-transform: uppercase;
}

.dpr__button {
    padding: 7px 14px;
    cursor: pointer;
}

.dpr__button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.dpr__share-output {
    max-width: 420px;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 700;
}

.dpr__layout {
    display: block;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}

.dpr--share-mode .dpr__layout {
    display: block;
}

.dpr--share-mode .dpr__board {
    max-width: 1060px;
    margin: 0 auto;
}

.dpr--share-mode .dpr__slot {
    grid-template-columns: 100px 140px minmax(0, 1fr) 170px;
}

.dpr--share-mode .dpr__row-actions {
    display: none;
}

.dpr--share-mode .dpr__details strong {
    font-size: 26px;
}

.dpr--share-mode .dpr__details span {
    font-size: 17px;
}

.dpr__filter {
    justify-content: flex-end;
    color: #e11218;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.dpr__select {
    min-width: 110px;
    padding: 5px 10px;
}

.dpr__slots {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dpr .dpr__slot {
    display: grid;
    grid-template-columns: 72px 92px minmax(0, 1fr) 92px 70px;
    gap: 5px;
    min-height: 65px;
    background: #f0f0f0;
}

.dpr .dpr__rank {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e11218;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.dpr .dpr__photo,
.dpr .dpr__details,
.dpr .dpr__club-logo,
.dpr .dpr__row-actions {
    background: #f3f3f3;
}

.dpr .dpr__photo,
.dpr .dpr__club-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.dpr .dpr__photo img {
    display: block;
    max-width: 70px;
    max-height: 50px;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 8px;
    margin: 0 !important;
}

.dpr .dpr__club-logo img {
    display: block;
    max-width: 70px;
    max-height: 50px;
    object-fit: contain;
    margin: 0 !important;
}

.dpr .dpr__details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding: 0 8px;
    text-align: left;
    text-transform: uppercase;
}

.dpr .dpr__details strong {
    display: block;
    width: 100%;
    color: #e11218;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
    max-width: 100%;
    text-align: left !important;
}

.dpr .dpr__details span {
    display: block;
    width: 100%;
    color: #111;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left !important;
}

.dpr__row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    min-width: 0;
}

.dpr__row-actions button,
.dpr__add-slot {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: #e11218;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.dpr__row-actions button[data-dpr-remove] {
    grid-column: 1 / -1;
    background: #cfd4d7;
    color: #18212a;
}

.dpr__add-player {
    grid-column: 2 / -1;
    border: 0;
    background: #f3f3f3;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.dpr__add-slot {
    width: 100%;
    min-height: 32px;
    margin-top: 4px;
    background: #cfd4d7;
    color: #000;
}

.dpr__selector {
    position: fixed;
    z-index: 2147483000;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: min(520px, calc(100vw - 32px));
    height: min(720px, 90vh);
    height: min(720px, 90dvh);
    max-height: 90vh;
    max-height: 90dvh;
    overflow: hidden;
    padding: 16px;
    background: #f3f3f3;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
    display: none;
}

.dpr__selector-close {
    display: block;
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.dpr__selector.is-active {
    display: flex;
}

.dpr__selector h3 {
    margin: 0 0 14px;
    text-align: center;
    text-transform: uppercase;
}

.dpr__selector-controls {
    flex: 0 0 auto;
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.dpr__selector input {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #ddd;
}

.dpr__selector-context {
    flex: 0 0 auto;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
}

.dpr__player-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dpr__select-player {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 15px;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.dpr__select-player span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px !important;
    font-weight: 700;
    color: #FFF !important;
    background: #e11218 !important;
    padding: 5px 15px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 20px !important;
    background: #e11218;
    color: #fff;
    line-height: 15px !important;
    font-family: "Open Sans";
}

.dpr__selector-empty {
    color: #777;
    font-size: 12px;
    font-weight: 700;
}

.dpr__recent {
    margin-top: 24px;
}

.dpr__recent > h3 {
    text-align: center;
}

.dpr__recent-item {
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 14px;
}

.dpr__recent-details {
    display: flex;
    flex-direction: column;
}

.dpr__recent-details strong {
    font-size: 18px;
}

.dpr__recent-details span {
    color: #666;
    font-size: 13px;
}

.dpr__recent-actions {
    display: flex;
    gap: 10px;
}

.dpr__recent-actions button {
    background: #e11218;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding: 9px 16px;
    text-transform: uppercase;
}

.dpr__recent-actions button[disabled] {
    cursor: not-allowed;
    opacity: .45;
}

@media (max-width: 767px) {
    .dpr {
        max-width: none;
    }

    .dpr__banner {
        min-height: 82px;
    }

    .dpr__banner strong {
        font-size: 26px;
    }

    .dpr__status,
    .dpr__actions {
        flex-direction: column;
    }

    .dpr__filter {
        justify-content: flex-end;
    }

    .dpr .dpr__slot {
        grid-template-columns: 50px 70px minmax(0, 1fr) 65px; 
        min-height: 65px;
    }

    .dpr--share-mode .dpr__slot {
        grid-template-columns: 50px 70px minmax(0, 1fr);
    }

    .dpr--share-mode .dpr__details strong {
        font-size: 20px;
    }

    .dpr--share-mode .dpr__details span {
        font-size: 13px;
    }

    .dpr .dpr__details {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .dpr .dpr__details strong {
        font-size: 14px;
        white-space: normal;
        text-align: left !important;
    }

    .dpr .dpr__details span {
        font-size: 12px;
        line-height: 17px;
        text-align: left !important;
    }

    .dpr .dpr__club-logo {
        display: none;
    }

    .dpr .dpr__details {
        grid-column: 3;
        grid-row: 1;
    }

    .dpr__row-actions {
        grid-column: 4;
        grid-row: 1;
        background: #cfd4d7;
        padding: 0 4px;
        gap: 5px;
    }

    .dpr__add-player {
        grid-column: 2 / -1;
        font-size: 26px;
    }

    .dpr__selector {
        top: max(5vh, env(safe-area-inset-top));
        right: 12px;
        left: 12px;
        width: auto;
        height: 90vh;
        height: 90dvh;
        max-height: 90vh;
        max-height: 90dvh;
        transform: none;
    }

    .dpr__recent-item {
        align-items: stretch;
        flex-direction: column;
    }

    .dpr__recent-actions button {
        flex: 1 1 0;
    }
}
