/* static/css/events.css */

/* Общие стили */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 90px 0 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.content-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Заголовок */
.header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.top-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.top-bar .logo {
    margin: 0 auto;
}

.top-bar .logo img {
    height: 40px;
}

.menu-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
}

/* Нижний ярус */
.bottom-bar {
    background-color: #f9f9f9;
    padding: 10px 0;
}

.league-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.league-menu span {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    margin: 5px;
}

.league-menu img {
    height: 20px;
    margin-right: 5px;
}

/* Информация о матче */
.match-details-container {
    width: 100%;
    max-width: 1060px;
    padding: 20px;
    background-color: #fff;
    margin: 10px auto 0;
    box-sizing: border-box;
}

.league-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.league-title img {
    width: 24px;
    height: 16px;
    margin-right: 5px;
}

.match-date-time {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Логотипы команд и счёт */
.match-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Промежуток между логотипами и счётом */
    margin-bottom: 10px;
}

.match-info .team {
    text-align: center;
}

.match-info .team img {
    width: 80px;
    height: 80px;
}

.match-info .score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-score {
    font-size: 48px;
    color: #d32f2f;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

.match-minute {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    color: #666;
}

.live-minute-blink {
    display: inline-block;
    color: #d32f2f;
    font-weight: bold;
    animation: liveMinuteBlink 1.1s ease-in-out infinite;
}

@keyframes liveMinuteBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

/* Названия команд и статус */
.team-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.team-status .team-name {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.team-status .match-status {
    font-size: 16px;
    color: #666;
    text-align: center;
}

/* События */
#match-events {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#match-events li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

#match-events li:last-child {
    border-bottom: none;
}

.event-assist {
    color: inherit;
    font-weight: 700;
}

.match-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 18px 0 14px;
    padding: 5px;
    border-radius: 8px;
    background: #edf3f7;
}

.match-tab {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #225475;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.match-tab.is-active {
    background: #225475;
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 84, 117, 0.18);
}

.match-tab-panel {
    display: none;
}

.match-tab-panel.is-active {
    display: block;
}

.details-empty-state {
    margin: 0;
    padding: 18px;
    border-radius: 8px;
    background: #f4f8fb;
    color: #6a7782;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.details-source {
    margin-bottom: 10px;
    color: #6a7782;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stats-team-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
    color: #18384f;
    font-size: 13px;
}

.stats-team-head strong:last-child {
    text-align: right;
}

.stat-row {
    padding: 10px 0;
    border-bottom: 1px solid #e3ebf1;
}

.stat-row:last-child {
    border-bottom: 0;
}

.stat-values {
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    gap: 8px;
    align-items: center;
    margin-bottom: 7px;
}

.stat-values strong {
    color: #14212b;
    font-size: 15px;
}

.stat-values strong:last-child {
    text-align: right;
}

.stat-values span {
    color: #52616d;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.stat-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.stat-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef3;
}

.stat-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ff8200;
}

.stat-bar-left i {
    margin-left: auto;
    background: #225475;
}

.lineups-panel {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px;
    background: #0e1215;
    box-shadow: 0 10px 30px rgba(20, 33, 43, 0.18);
}

.lineups-team-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.lineups-team-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid #242b30;
    border-radius: 6px;
    background: #171d21;
    color: #fff;
}

.lineups-team-badge strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lineups-team-badge span {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #ff8200;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.lineups-shared-pitch {
    position: relative;
    display: grid;
    grid-auto-rows: minmax(42px, 1fr);
    gap: 1px;
    min-height: var(--pitch-min-height, 660px);
    max-width: 560px;
    overflow: hidden;
    margin: 0 auto 12px;
    padding: 42px 10px;
    border: 2px solid rgba(222, 238, 184, 0.86);
    border-radius: 8px;
    background:
        linear-gradient(to bottom, transparent 0 calc(50% - 1px), rgba(222, 238, 184, 0.82) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 64px, rgba(0, 0, 0, 0.06) 64px, rgba(0, 0, 0, 0.06) 128px),
        linear-gradient(135deg, #668626 0%, #52791d 54%, #456d18 100%);
}

.lineups-shared-pitch::before,
.lineups-shared-pitch::after {
    content: "";
    position: absolute;
    left: 50%;
    pointer-events: none;
    transform: translateX(-50%);
}

.lineups-shared-pitch::before {
    top: 50%;
    width: 96px;
    height: 96px;
    margin-top: -48px;
    border: 2px solid rgba(222, 238, 184, 0.72);
    border-radius: 50%;
}

.lineups-shared-pitch::after {
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2px;
    border-radius: 50%;
    background: rgba(222, 238, 184, 0.9);
    box-shadow:
        0 -292px 0 rgba(222, 238, 184, 0.9),
        0 292px 0 rgba(222, 238, 184, 0.9);
}

.pitch-marking {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-color: rgba(222, 238, 184, 0.68);
}

.pitch-box {
    left: 50%;
    width: 210px;
    height: 72px;
    border: 2px solid rgba(222, 238, 184, 0.68);
    transform: translateX(-50%);
}

.pitch-box-home {
    top: -2px;
    border-top: 0;
}

.pitch-box-away {
    bottom: -2px;
    border-bottom: 0;
}

.pitch-six {
    left: 50%;
    width: 92px;
    height: 27px;
    border: 2px solid rgba(222, 238, 184, 0.68);
    transform: translateX(-50%);
}

.pitch-six-home {
    top: -2px;
    border-top: 0;
}

.pitch-six-away {
    bottom: -2px;
    border-bottom: 0;
}

.pitch-arc {
    left: 50%;
    width: 78px;
    height: 38px;
    border: 2px solid rgba(222, 238, 184, 0.58);
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
}

.pitch-arc-home {
    top: 68px;
    border-top: 0;
}

.pitch-arc-away {
    bottom: 68px;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
}

.pitch-corner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(222, 238, 184, 0.68);
}

.pitch-corner-tl {
    top: -15px;
    left: -15px;
    border-radius: 50%;
}

.pitch-corner-tr {
    top: -15px;
    right: -15px;
    border-radius: 50%;
}

.pitch-corner-bl {
    bottom: -15px;
    left: -15px;
    border-radius: 50%;
}

.pitch-corner-br {
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
}

.pitch-team-caption {
    position: absolute;
    z-index: 2;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.pitch-team-caption-home {
    top: 9px;
}

.pitch-team-caption-away {
    bottom: 9px;
}

.pitch-team-caption strong,
.pitch-team-caption span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shared-pitch-line {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 0 16px;
}

.lineups-shared-pitch .player-chip {
    flex: 1 1 0;
    max-width: 82px;
}

.player-token {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
}

.lineups-shared-pitch .player-chip b {
    display: inline-grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: #050708;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 11px;
}

.lineups-shared-pitch .player-chip .player-name {
    font-size: 9.5px;
    line-height: 1.1;
}

.lineups-shared-pitch .player-chip .player-rating {
    position: absolute;
    top: -7px;
    right: -15px;
    min-width: 20px;
    padding: 1px 4px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: #173047;
    color: #fff;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.lineups-shared-pitch .player-chip .player-rating.is-best {
    background: #ffc928;
    border-color: #fff1a6;
    color: #14212b;
    box-shadow: 0 0 0 2px rgba(255, 201, 40, 0.25);
}

.player-chip-best .player-token b {
    box-shadow: 0 0 0 2px #ffc928, 0 2px 8px rgba(0, 0, 0, 0.45);
}

.player-marks {
    position: absolute;
    inset: -7px -9px -7px -9px;
    pointer-events: none;
}

.player-mark {
    position: absolute;
    display: inline-grid;
    place-items: center;
    min-width: 12px;
    height: 12px;
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.player-mark:nth-child(1) {
    right: -1px;
    bottom: 0;
}

.player-mark:nth-child(2) {
    left: -1px;
    bottom: 0;
}

.player-mark:nth-child(3) {
    right: -1px;
    top: 0;
}

.player-mark-goal {
    background: #fff;
    color: #101820;
}

.player-mark-sub-in,
.player-mark-sub-out {
    color: #fff;
    font-size: 10px;
}

.player-mark-sub-in {
    background: #08d985;
}

.player-mark-sub-out {
    background: #ee2e64;
}

.player-mark-yellow,
.player-mark-red {
    width: 8px;
    min-width: 8px;
    height: 12px;
    border-radius: 2px;
    color: transparent;
}

.player-mark-yellow {
    background: #ffd32a;
}

.player-mark-red {
    background: #f13242;
}

.shared-pitch-line-away .player-chip b {
    background: #fff;
    color: #101820;
}

.lineups-reserve-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lineup-reserve-column {
    min-width: 0;
    padding: 8px;
    border: 1px solid #242b30;
    border-radius: 7px;
    background: #12181c;
}

.lineup-reserve-column header {
    margin-bottom: 8px;
}

.lineup-reserve-column h3 {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lineup-reserve-column .player-section {
    margin-top: 10px;
}

.lineup-reserve-column .player-section:first-of-type {
    margin-top: 0;
}

.lineup-reserve-column .player-section h4 {
    color: #aeb8c0;
    font-size: 10px;
}

.lineup-reserve-column .compact-player-list {
    grid-template-columns: 1fr;
}

.lineup-reserve-column .compact-player-row {
    grid-template-columns: 23px minmax(0, 1fr) auto auto;
    min-height: 26px;
    padding: 5px 6px;
    border-color: #273138;
    background: #171f24;
}

.lineup-reserve-column .compact-player-row b,
.lineup-reserve-column .compact-player-row small {
    color: #aeb8c0;
}

.lineup-reserve-column .compact-player-row span {
    color: #fff;
    font-size: 11px;
}

.lineup-reserve-column .unavailable-player-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.unavailable-player-name {
    grid-column: 1;
    color: #fff;
}

.unavailable-player-position {
    grid-column: 2;
    justify-self: end;
    padding: 2px 5px;
    border-radius: 999px;
    background: #25323a;
    color: #c7d2da;
    font-size: 9px;
}

.unavailable-player-reason {
    grid-column: 1 / -1;
    display: block;
    margin-top: 4px;
    color: #aeb8c0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
}

.lineup-reserve-column .details-empty-state {
    padding: 10px;
    background: #171f24;
    color: #aeb8c0;
    font-size: 11px;
}

.lineups-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 16px;
    align-items: start;
}

.lineup-team {
    min-width: 0;
    border: 1px solid #dfe8ef;
    border-radius: 8px;
    background: #fbfdfe;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(24, 56, 79, 0.08);
}

.lineup-team header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 9px;
    border-radius: 7px;
    background: #132430;
}

.lineup-team h3,
.player-section h4 {
    margin: 0;
}

.lineup-team h3 {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.formation-badge {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #ff8200;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.lineup-pitch {
    position: relative;
    display: grid;
    grid-template-rows: repeat(4, minmax(74px, 1fr));
    gap: 5px;
    min-height: 392px;
    overflow: hidden;
    padding: 14px 10px;
    border: 2px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) 50% 50% / 100% 2px no-repeat,
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 38px, rgba(0, 0, 0, 0.06) 38px, rgba(0, 0, 0, 0.06) 76px),
        linear-gradient(135deg, #628a2d 0%, #446d21 100%);
}

.lineup-pitch::before,
.lineup-pitch::after {
    content: "";
    position: absolute;
    left: 50%;
    pointer-events: none;
    transform: translateX(-50%);
}

.lineup-pitch::before {
    top: 50%;
    width: 72px;
    height: 72px;
    margin-top: -36px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.lineup-pitch::after {
    bottom: 0;
    width: 150px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.lineup-pitch-team2::after {
    top: 0;
    bottom: auto;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.pitch-line {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pitch-line::before {
    content: attr(data-line);
    position: absolute;
    left: 0;
    top: 50%;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    transform: translateY(-50%);
}

.pitch-line-empty {
    min-height: 1px;
}

.player-chip {
    display: grid;
    flex: 1 1 0;
    justify-items: center;
    gap: 4px;
    max-width: 92px;
    min-width: 0;
    color: #fff;
    text-align: center;
}

.player-chip b {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #101820;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.player-chip .player-name {
    width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.player-chip em {
    padding: 2px 5px;
    border-radius: 999px;
    background: #fff;
    color: #1f7a5f;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.player-section {
    margin-top: 12px;
}

.player-section h4 {
    margin-bottom: 7px;
    color: #6a7782;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-section ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.compact-player-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-player-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    min-height: 30px;
    padding: 6px 7px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #edf2f5;
}

.compact-player-row b {
    color: #8a98a3;
    font-size: 12px;
    text-align: center;
}

.compact-player-row span {
    min-width: 0;
    overflow: hidden;
    color: #14212b;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-player-row small {
    color: #71808d;
    font-size: 10px;
    font-weight: 800;
}

.compact-player-row em {
    min-width: 28px;
    padding: 3px 5px;
    border-radius: 999px;
    background: #eaf4ef;
    color: #1f7a5f;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.player-row {
    display: grid;
    grid-template-columns: 30px 28px minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    min-height: 34px;
    padding: 6px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #edf2f5;
}

.player-row img,
.player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.player-avatar {
    display: inline-grid;
    place-items: center;
    background: #e7eff5;
    color: #225475;
    font-size: 10px;
    font-weight: 900;
}

.player-row b {
    color: #8a98a3;
    font-size: 12px;
    text-align: center;
}

.player-row span {
    display: grid;
    min-width: 0;
    color: #14212b;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.player-row small {
    margin-top: 2px;
    color: #71808d;
    font-size: 11px;
    font-weight: 700;
}

.player-row em {
    min-width: 28px;
    padding: 3px 5px;
    border-radius: 999px;
    background: #eaf4ef;
    color: #1f7a5f;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.back-button {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    padding: 10px;
    background-color: #d32f2f;
    color: #fff;
    text-align: center;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.back-button:hover {
    background-color: #b71c1c;
}

/* Подвал */
.footer {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background-color: #333;
    padding: 20px 0;
    margin-top: 20px;
    box-sizing: border-box;
}

.footer-content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px 50px;
    box-sizing: border-box;
}

.footer-first-row {
    padding: 10px;
    border-radius: 0;
    background: #444;
    font-size: 12px;
    color: #8c8c8c;
    text-align: center;
    line-height: 1.45;
    margin-bottom: 20px;
}

.footer-second-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-second-row img {
    height: 30px;
    margin: 5px;
}

.footer-third-row {
    padding: 10px;
    background: #222;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Медиазапросы для адаптивности */
@media (max-width: 768px) {
    .match-info {
        gap: 20px;
    }

    .match-info .team img {
        width: 60px;
        height: 60px;
    }

    .match-score {
        font-size: 36px;
    }

    .team-status {
        gap: 20px;
    }

    .team-status .team-name {
        font-size: 16px;
    }

    .team-status .match-status {
        font-size: 14px;
    }

    .content-wrapper {
        padding: 0 10px;
    }

    .match-details-container {
        padding: 12px;
    }

    .lineups-grid {
        grid-template-columns: 1fr;
    }

    .lineups-panel {
        padding: 8px;
    }

    .lineups-team-strip,
    .lineups-reserve-grid {
        gap: 7px;
    }

    .lineups-team-badge {
        padding: 6px 7px;
    }

    .lineups-team-badge strong {
        font-size: 11px;
    }

    .lineups-team-badge span {
        font-size: 9px;
    }

    .lineups-shared-pitch {
        grid-auto-rows: minmax(38px, 1fr);
        min-height: min(var(--pitch-min-height, 620px), 680px);
        max-width: 100%;
        padding: 34px 5px;
    }

    .shared-pitch-line {
        gap: 3px;
        padding: 0 8px;
    }

    .lineups-shared-pitch .player-chip {
        max-width: 60px;
    }

    .player-token {
        width: 24px;
        height: 24px;
    }

    .lineups-shared-pitch .player-chip b {
        width: 23px;
        height: 23px;
        font-size: 9px;
    }

    .lineups-shared-pitch .player-chip .player-name {
        font-size: 8px;
    }

    .lineups-shared-pitch .player-chip .player-rating {
        top: -7px;
        right: -13px;
        min-width: 17px;
        padding: 1px 3px;
        font-size: 7px;
    }

    .player-mark {
        min-width: 10px;
        height: 10px;
        font-size: 8px;
    }

    .player-mark-yellow,
    .player-mark-red {
        width: 7px;
        min-width: 7px;
        height: 10px;
    }

    .pitch-box {
        width: 170px;
        height: 62px;
    }

    .pitch-six {
        width: 78px;
        height: 24px;
    }

    .lineup-reserve-column {
        padding: 6px;
    }

    .lineup-reserve-column h3 {
        font-size: 11px;
    }

    .lineup-reserve-column .compact-player-row {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 4px;
        padding: 4px 5px;
    }

    .lineup-reserve-column .compact-player-row span {
        font-size: 10px;
    }

    .lineup-reserve-column .compact-player-row em {
        display: none;
    }

    .lineup-pitch {
        grid-template-rows: repeat(4, minmax(65px, 1fr));
        min-height: 348px;
        padding: 12px 8px;
    }

    .player-chip {
        max-width: 82px;
    }

    .player-chip .player-name {
        font-size: 10px;
    }

    .compact-player-list {
        grid-template-columns: 1fr;
    }

    .player-row {
        grid-template-columns: 30px 24px minmax(0, 1fr) auto;
    }
}
