/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap');
@import url('fonts/csd-block.css');
/* global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    /* padding: 20px; */
}

.bg-c-b {
    background-color: #1D1735;
}

/* game widget */

.container {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.back-link:hover {
    background: #f0f0f0;
}

h1 {
    
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.game-header {
    padding: 50px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 430px;
    display: flex;
    flex-direction: column;
}

.game-header.w-pro-division {
    background-color: #3C3859;
    background-image: url('/ui/images/game_desktop_pro.svg');
}

.game-header.w-space-division {
    background-color: #173E77;
    background-image: url('/ui/images/game_desktop_space.svg');
}

.game-header.w-prime-division {
    background-color: #00546C;
    background-image: url('/ui/images/game_desktop_prime.svg');
}

.live-player{
    position: relative;
    width: 100%;
    padding-top: 56.25%;

    height: 0;

}
.live-player iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.teams-display {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.game-header .teams-display {
    flex: 1;
    min-height: 0;
}

.game-header .game-meta {
    flex-shrink: 0;
}

.team-info {
    text-align: center;
    flex: 1;
}

.game-header .team-logo-large {
    height: 200px;
    
    object-fit: contain;
    margin-bottom: 10px;
}
#allrecords .game-header .team-info a,
.game-header .team-info a{
    text-decoration: none;
    color: #FFFFFF;
}

.game-header .team-name-large {
    

font-family: 'Dela Gothic One', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 36px;
line-height: 52px;
text-align: center;
text-transform: uppercase;
color: #FFFFFF;

}

.score-display-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.score-cycle-bg {
    position: absolute;
    width: 450px;
    height: 180px;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.score-display {
    position: relative;
    z-index: 2;
    min-width: 120px;
    text-align: center;

    /* 10 */

/* width: 100px; */
/* height: /80px; */

font-family: 'Dela Gothic One';
font-style: normal;
font-weight: 400;
font-size: 55px;
line-height: 80px;
/* identical to box height */
text-align: center;
text-transform: uppercase;

color: #FFFFFF;

}

@media (max-width: 1024px) {
    .game-header {
        padding: 40px;
    }
    .game-header.w-pro-division {
        background-image: url('/ui/images/game_tablet_pro.svg');
    }
    .game-header.w-space-division {
        background-image: url('/ui/images/game_tablet_space.svg');
    }
    .game-header.w-prime-division {
        background-image: url('/ui/images/game_tablet_prime.svg');
    }
    .game-header .score-cycle-bg {
        width: 350px;
        height: 140px;
    }
    .game-header .score-display {
        font-size: 48px;
    }
    .game-header .team-logo-large {
        width: 130px;
        height: 130px;
    }
    .game-header .team-name-large {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .game-header {
        padding: 40px 16px;
    }
    .game-header.w-pro-division {
        background-image: url('/ui/images/game_mobile_pro.svg');
    }
    .game-header.w-space-division {
        background-image: url('/ui/images/game_mobile_space.svg');
    }
    .game-header.w-prime-division {
        background-image: url('/ui/images/game_mobile_prime.svg');
    }
    .game-header .teams-display {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1px;
    }
    .game-header .teams-display .team-info {
        flex: 1;
        min-width: 0;
    }
    .game-header .teams-display .team-info:nth-child(1) {
        order: 1;
    }
    .game-header .teams-display .team-info:nth-child(3) {
        order: 2;
    }
    .game-header .teams-display .score-display-wrapper {
        order: 3;
        flex-basis: 100%;
        width: 100%;
    }
    .game-header .team-logo-large {
        width: 120px;
        height: 120px;
    }
    .game-header .team-name-large {
        font-size: 16px;
        line-height: 24px;
    }
    .game-header .score-cycle-bg {
        width: 200px;
        height: 80px;
    }
    .game-header .score-display {
        font-size: 24px;
    }
    .game-header .game-meta {
        margin-top: 30px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .game-header .game-meta .meta-item {
        align-items: center;
    }
    .game-header .game-meta .meta-value {
        text-align: center;
    }
    .game-header .game-meta__separator {
        display: none;
    }
    .match-stats-section.widget-wrapper::before,
    .match-stats-section.widget-wrapper::after {
        width: 51%;
        background-size: cover;
    }
}

.game-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    gap: 15px;
    /* margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0; */
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85em;
   
    margin-bottom: 5px;
}

.meta-value {
    font-weight: 600;
   
}

.stats-section {
    margin-top: 30px;
}

.section-title {
    font-size: 40px;
    text-transform: uppercase;
    
    margin-bottom: 20px;
    
}

.teams-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.team-stats-card {
    /* background: #f8f9fa; */
    border-radius: 8px;
    padding: 20px;
}

.team-stats-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
  
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.stats-table--team {
    width: auto;
    margin: 0 auto;
}
.stats-table--team tr td:first-child {
    text-align: right;
    width: 50%;
    color: rgba(255, 255, 255, 0.35);
}
.stats-table--team tr td:last-child {
    text-align: left;
    width: 50%;
}
.stats-table th,
.stats-table td {
    padding: 8px;
    text-align: left;
    padding: 16px 24px;
    /* border-bottom: 1px solid #e0e0e0; */
}

.stats-table th {
    /* background: #e8e8e8; */
    font-weight: 600;
    /* color: #555; */
}

.stats-table tr:hover {
    /* background: #f5f5f5; */
}
.player-widget__stats-td--team-name {
    display: flex;
    align-items: center;
    gap: 10px;
}
.player-widget__stats-td--team-name{
    opacity: 0.5;
}
.player-widget__stats-td--team-name.player-widget__stats-td--team--player{
    opacity: 1;
}

/* Match Stats Table */

.players-card{
    background-color: #3D375D;
    padding: 20px;
    
}
.match-stats-section {
    background: #1D1735;
    color: white;
    margin-top: 30px;
}

.match-stats-section.widget-wrapper {
    position: relative;
    overflow: hidden;
}

.match-stats-section.widget-wrapper::before,
.match-stats-section.widget-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background-image: url('/ui/images/treangle.svg');
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.match-stats-section.widget-wrapper::before {
    left: 0;
    background-position: left center;
    transform: scaleX(1);
}

.match-stats-section.widget-wrapper::after {
    right: 0;
    background-position: left center;
    transform: scaleX(-1);
}

.match-stats-section .widget-wrapper__inner {
    position: relative;
    z-index: 1;
}

.match-stats-table-wrapper {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.match-stats-columns {
    display: flex;
    width: 520px;
    gap: 0;
}

.match-stats-column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.match-stats-column--left {
    align-items: flex-start;
}

.match-stats-column--center {
    align-items: center;
    min-width: 150px;
}

.match-stats-column--right {
    align-items: flex-end;
}

.match-stats-value {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    padding: 16px 24px;
    white-space: nowrap;
}

.match-stats-label {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.35);
    padding: 16px 24px;
    text-align: center;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .match-stats-columns {
        width: 100%;
        max-width: 520px;
    }

    .match-stats-value {
        font-size: 16px;
        padding: 14px 20px;
    }

    .match-stats-label {
        font-size: 16px;
        padding: 14px 20px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .match-stats-columns {
        width: 100%;
    }

    .match-stats-value {
        font-size: 14px;
        padding: 12px 16px;
    }

    .match-stats-label {
        font-size: 14px;
        padding: 12px 16px;
    }
}
.player-widget__stats-td--team-logo {
    width: 20px;
    height: 20px;
}
.players-section {
    margin-top: 30px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.players-card {
    /* background: #f8f9fa; */
    /* border-radius: 8px; */
    padding: 20px;
}

.players-title {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 15px;
    font-family: 'CSD-Block', sans-serif;
    text-transform: uppercase;
}

.player-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1.5fr 0.8fr 0.8fr;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

.player-row:first-child {
    font-weight: 600;
    /* background: #e8e8e8; */
    border-radius: 4px;
}

.player-name {
    font-weight: 500;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
}

.players-table thead th {
    font-weight: 600;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.players-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.players-table tbody tr:last-child td {
    border-bottom: none;
}

.players-table th:nth-child(1),
.players-table td:nth-child(1) {
    width: 40%;
}

.players-table th:nth-child(2),
.players-table td:nth-child(2) {
    width: 15%;
}

.players-table th:nth-child(3),
.players-table td:nth-child(3) {
    width: 20%;
}

.players-table th:nth-child(4),
.players-table td:nth-child(4) {
    width: 15%;
}

.players-table th:nth-child(5),
.players-table td:nth-child(5) {
    width: 10%;
}

.box-score-widget {
    padding: 16px 0;
}
.box-score-widget__score {
    margin-bottom: 8px;
    font-size: 1rem;
}
.box-score-widget__periods {
    margin-bottom: 16px;
    font-size: 1rem;
    /* color: #666; */
}
.box-score-widget__team {

    background-color: #3D375D;
    padding: 30px;
    margin-bottom: 30px;
}
.box-score-widget__team {
    margin-bottom: 24px;
}
.box-score-widget__team:last-child {
    margin-bottom: 0;
}
.box-score-widget__team-title {
    font-weight: 600;
    margin-bottom: 8px;
}
.box-score-widget__table-wrapper {
    width: 100%;
    overflow-x: auto;
}
.box-score-widget__table {
    min-width: 640px;
}

#allrecords .box-score-widget__table a {
    color: #fff;
}
.box-score-widget__table a {
    text-decoration: none;
    color: #fff;
}
.box-score-widget__table th,
.box-score-widget__table td {
    padding: 8px 10px;
    text-align: center;
}
.box-score-widget__table th:first-child,
.box-score-widget__table td:first-child,
.box-score-widget__table th:nth-child(2),
.box-score-widget__table td:nth-child(2) {
    text-align: left;
}
.box-score-widget__total-row {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
}
.box-score-widget__total-row td {
    border-top: 1px solid #e0e0e0;
}
.box-score-widget__total-row td:nth-child(2) {
    text-align: center;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1em;
}

.live-section {
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 30px;
}

.live-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.live-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    
}

.live-label {
    font-weight: 500;
    opacity: .3;
    text-align: right;
    
}

.live-value {
    font-weight: 600;
    text-align: left;
    
    font-size: 1.1em;
}

.live-table {
    margin: 0 auto;
    border-collapse: collapse;
}

.live-table tbody tr {
    border-bottom: 1px solid transparent;
}

.live-table tbody tr:last-child {
    border-bottom: none;
}

.live-table td {
    padding: 10px;
    vertical-align: middle;
}

.live-table td.live-label {
   
}

.live-table td.live-value {
   
    
}

/* team widget */
.team-header {
    /* background: #f8f9fa; */
    /* border-radius: 8px; */
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
   
}
.team-header .widget-wrapper {
    background-color:transparent;
}
.team-header.w-pro-division{
    background-image: url('/ui/images/t-bg-pro-d.svg');
}

.team-header.w-space-division{
    background-image: url('/ui/images/t-bg-space-d.svg');
}

.team-header.w-prime-division{
    background-image: url('/ui/images/t-bg-prime-d.svg');
}

.team-header .team-division-logo {
    width: 200px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
}
.team-header.w-pro-division .team-division-logo {
    background-image: url('/ui/icons/pro.svg');
}
.team-header.w-space-division .team-division-logo {
    background-image: url('/ui/icons/space.svg');
}
.team-header.w-prime-division .team-division-logo {
    background-image: url('/ui/icons/prime.svg');
}
.team-header .team-logo-large {

    max-width: 100%;
    width: 360px; 
    height: 360px;
    object-fit: contain;
    margin-bottom: 10px;
}
.team-main-info {
    display: flex;
    
    align-items: center;
    gap: 15px;

  
   
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-between;
    min-height: 420px;
}
.team-header .team-info-wrapper {
    text-align: left;
}

.team-header .team-logo-large {

    /* height: 120px; */
    object-fit: contain;
    margin-bottom: 10px;
}
.widget-wrapper + .widget-wrapper{
    margin-top: 40px;
}
.widget-wrapper__inner .schedule-short-widget__title:last-child{
    margin-bottom: 0;
}
.team-header .team-name-large {
    
    font-weight: 600;
    /* color: #333; */
    margin-bottom: 5px;
    text-transform: uppercase;

    


font-family: 'Dela Gothic One';
font-style: normal;
font-weight: 400;
font-size: 80px;
line-height: 116px;
leading-trim: both;
text-edge: cap;
text-transform: uppercase;

color: #FFFFFF;

}

.team-location {
    font-size: 1.1em;
    /* color: #666; */
    margin-top: 5px;
}

.team-section {
    margin-top: 30px;
}

.coaches-list,
.officials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.coach-item,
.official-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid #667eea;
}

.coach-name,
.official-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.coach-role,
.official-role {
    font-size: 0.9em;
    color: #666;
}

.calendar-widget {
    max-height: 100%;
}

/* calendar widget */
.calendar-widget__accordion {
    height: 48px;
    background: #FA401F;
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top-right-radius: 4px;
}

.calendar-widget__accordion--collapsed {
    border-bottom-right-radius: 4px;
}

.calendar-widget__accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.calendar-widget__accordion-icon--left {
    width: 17px;
    height: 17px;
    margin-right: auto;
}

.calendar-widget__accordion-icon--right {
    width: 19px;
    height: 19px;
    margin-left: auto;
}

.calendar-widget__accordion-label {
    font-weight: 600;
    font-size: 18px;
    color: white;
    flex: 1;
    text-align: left;
}

.calendar-widget__list {
    /* height: 100%; */
    max-height: calc(100% - 48px);
    overflow-y: auto;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
    background: #CFE2F1;
    flex: 1;
}


.calendar-widget__list--hidden {
    max-height: 0;
    opacity: 0;
}

.calendar-widget__game {
    background: #CFE2F1;
    padding: 0 32px;
}

.calendar-widget__game-wrapper {
    border-bottom: 1px solid #3D39581A;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
}

.calendar-widget__game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.calendar-widget__game-row {
    display: flex;
    align-items: center;
    position: relative;
}

.calendar-widget__game-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-widget__game-side--left {
    padding-right: 15px;
}

.calendar-widget__game-side--right {
    padding-left: 15px;
}

.calendar-widget__game-divider {
    width: 1px;
    background: #3D39581A;
    height: 20px;
    flex-shrink: 0;
}

.calendar-widget__time {
    display: flex;
    flex-direction: column;
}

.calendar-widget__time-label {
    font-weight: 500;
    font-size: 14px;
}

.calendar-widget__time-value {
    font-weight: 500;
    font-size: 14px;
}

.calendar-widget__team {
    width: 62px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.calendar-widget__team-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 5px;
    display: block;
}

.calendar-widget__team-name {
    font-weight: 400;
    font-size: 12px;
    margin-top: 0;
    text-transform: uppercase;
}

.calendar-widget__division {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.calendar-widget__division-label {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    color: #1D173580;
}

.calendar-widget__division-value {
    font-weight: 500;
    font-size: 14px;
    color: #1D173580;
}

.calendar-widget__league {
    font-weight: 500;
    font-size: 14px;
    color: #1D173580;
    text-align: right;
}

.calendar-widget__empty {
    text-align: center;
    padding: 40px;
    color: #999;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.calendar-widget__empty-icon {
    width: 32px;
    height: 53px;
    object-fit: contain;
}

.calendar-widget__empty-title {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
}

.calendar-widget__empty-text {
    color: #999;
    max-width: 330px;
}

/* Адаптивность для calendar widget */
/* Планшет (max-width: 960px) */
@media (max-width: 960px) {
    .calendar-widget__game-wrapper {
        padding: 10px 0;
    }

    .calendar-widget__team-name {
        font-size: 10px;
    }

    .calendar-widget__time-label,
    .calendar-widget__time-value {
        font-size: 12px;
    }

    .calendar-widget__division-label,
    .calendar-widget__division-value {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .players-card__content{
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        &::-webkit-scrollbar {
            display: none;
        }
    }
    .players-grid{
        grid-template-columns: 100%;
    }
    .players-table{
        font-size: 12px;
    }
    .players-title{
        font-size: 32px;
    }
}

/* Мобилка (max-width: 480px) */
@media (max-width: 480px) {
  
    
    .calendar-widget__game-wrapper {
        padding: 0;
    }

    .calendar-widget__team-logo {
        width: 28px;
        height: 28px;
    }

    .calendar-widget__team-name {
        font-size: 8px;
    }

    .calendar-widget__time-label,
    .calendar-widget__time-value {
        font-size: 10px;
    }

    .calendar-widget__division-label,
    .calendar-widget__division-value {
        font-size: 10px;
    }
}

/* Division Selector Component */
.division-selector {
    width: 100%;
}

.division-selector__row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.division-selector__dropdown {
    position: relative;
}

.division-selector__button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 14px;
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    width: auto;
}

.division-selector__button:hover {
    opacity: 0.9;
}

.division-selector__button:focus {
    outline: none;
}


.division-selector__icon {
    width: auto;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.division-selector__arrow {
    width: auto;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.division-selector__menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #2D2848;
    border: none;
    border-radius: 4px;
    box-shadow: 0px 0px 8px 0px #FF2600;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    width: auto;
    min-width: fit-content;
    white-space: nowrap;
}

.division-selector__menu--open {
    display: block;
}

.division-selector__menu-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 36px;
}

.division-selector__menu-icon {
    width: auto;
    height: 20px;
    object-fit: contain;
}

.division-selector__menu-grid {
    display: grid;
    grid-template-columns: 220px 220px;
    gap: 20px;
    padding: 0px 36px 36px 36px;
}

.division-selector__menu-grid[data-columns="1"] {
    grid-template-columns: 220px;
}

.division-selector__menu-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
}

.division-selector__column-title {
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    color: rgba(255, 255, 255, 0.35);
    text-align: left;
    text-transform: uppercase;
}

.division-selector__column-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.division-selector__menu-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.division-selector__column-items .division-selector__menu-item:last-child {
    border-bottom: none;
}

.division-selector__menu-item:hover {
    color: #FA401F;
    background: transparent;
    transform: none;
}

.division-selector__menu-item:hover .division-selector__item-label {
    color: #FA401F;
}

.division-selector__item-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.division-selector__item-label {
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    color: #fff;
    word-break: break-word;
    transition: color 0.2s;
}

@media (min-width: 901px) {
    .division-selector__button {
        justify-content: space-between;
    }

    .division-selector__menu-grid {
        grid-template-columns: 220px 220px;
    }
}

@media (max-width: 900px) {
    .division-selector__row {
        flex-direction: column;
        gap: 10px;
    }

    .division-selector__dropdown {
        width: 100%;
    }

    .division-selector__button {
        width: 100%;
        justify-content: space-between;
    }

    .division-selector__menu {
        width: 100%;
        left: 0;
        right: 0;
    }

    .division-selector__menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .division-selector__menu-column {
        width: 100%;
    }
}

@media (min-width: 901px) and (max-width: 960px) {
    .division-selector__menu-grid {
        grid-template-columns: 220px 220px;
        gap: 15px;
    }
}

@media (max-width: 960px) {
    .division-selector__row {
        gap: 10px;
    }

    .division-selector__column-items {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .division-selector__button {
        font-size: 12px;
        padding: 8px 12px;
    }

    .division-selector__icon {
        width: auto;
        height: 20px;
    }

    .division-selector__menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .division-selector__column-items {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .division-selector__item-logo {
        width: 32px;
        height: 32px;
    }

    .division-selector__item-label {
        font-size: 11px;
    }
}

/* Division Selector — вариант 2 (альтернативный вид) */
.division-selector--variant-2 .division-selector__row {
    display: flex;
}

.division-selector--variant-2 .division-selector__dropdown {
    flex: 1;
}

.division-selector--variant-2 .division-selector__button {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    background: #2D2848;
    padding: 26px 20px;
}

@media (max-width: 960px) {
    .division-selector--variant-2 .division-selector__button {
        padding: 24px 20px;
    }
}

@media (max-width: 600px) {
    .division-selector--variant-2 .division-selector__button {
        padding: 16px 20px;
    }
}

@media (max-width: 900px) {
    .division-selector--variant-2 .division-selector__dropdown {
        flex: 0 0 auto;
    }

    .division-selector--variant-2 .division-selector__button {
        justify-content: space-between;
    }
}

/* Date Picker Widget */
.date-picker-widget {
    position: relative;
    width: 100%;
}

.date-picker-widget__trigger {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #3D375D;
    border-radius: 8px;
    overflow: hidden;
}

.date-picker-widget__trigger-main {
    margin: 0;
    padding: 12px 16px;
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #fff;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    transition: box-shadow 0.2s;
    text-align: left;
}

.date-picker-widget__trigger-main:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(250, 64, 31, 0.25);
}

.date-picker-widget__trigger-clear {
    margin: 0;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker-widget__trigger-clear:hover {
    background: rgba(255, 255, 255, 0.08);
}

.date-picker-widget__trigger-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

.date-picker-widget__trigger-value {
    flex: 1;
    min-width: 0;
}

.date-picker-widget__trigger-value--placeholder {
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.35);
}

.date-picker-widget__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    min-width: 280px;
    padding: 16px;
    background: #3D375D;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.date-picker-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.date-picker-widget__month {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.date-picker-widget__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.date-picker-widget__nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.date-picker-widget__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    background: #DADAF5;
    border-radius: 4px;
}

.date-picker-widget__weekday {
    text-align: center;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 18px;
    color: #3D375D;
    margin: 12px 0;
    padding: 0 8px;
}

.date-picker-widget__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.date-picker-widget__day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0;
    font-family: 'Geologica', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: default;
    padding: 0 12px;
}

.date-picker-widget__day--empty {
    visibility: hidden;
}

.date-picker-widget__day--active {
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.date-picker-widget__day--active:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.date-picker-widget__day--selected {
    color: #fff;
    background: #FA401F;
}

.date-picker-widget__day--selected:hover {
    background: #e63818;
}

/* schedule-short-widget */
/* Общий стиль для всех виджетов */
.game-banner-widget,
.game-widget,
.team-widget,
.league-widget,
.calendar-widget,
.player-widget,
.standings-widget,
.streams-widget,
.best-players-widget,
.schedule-short-widget,
.players-widget {
    width: 100%;
    max-width: none;
    margin: 0;
    /* min-height: 800px; */
}

.game-widget,
.team-widget{
    color: #fff;
}

/* Виджет баннера игры */
.game-banner-widget__container {
    width: 100%;
    min-height: 500px;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
}

/* Фоновые изображения для Prime Division */
.game-banner-widget__container--prime {
    background-image: url('/ui/images/prime_desktop.svg');
}

/* Фоновые изображения для Pro Division */
.game-banner-widget__container--pro {
    background-image: url('/ui/images/pro_desktop.svg');
}

/* Фоновые изображения для Space Division */
.game-banner-widget__container--space {
    background-image: url('/ui/images/space_desktop.svg');
}

.game-banner-widget__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.game-banner-widget__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.game-banner-widget__division-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-banner-widget__team-name {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 80px;
    font-weight: 400;
    line-height: 70px;
    font-style: normal;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.game-banner-widget__team-logo {
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 10px;
    margin-left: 16px;
    flex-shrink: 0;
    align-self: center;
}

.game-banner-widget__team-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.game-banner-widget__division-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .game-banner-widget__container {
        min-height: 400px;
        height: 400px;
    }
    
    .game-banner-widget__content {
        padding: 40px;
    }
    
    .game-banner-widget__division-icon {
        height: 54px;
    }
    
    .game-banner-widget__team-name {
        font-size: 54px;
        line-height: 60px;
    }
    
    .game-banner-widget__team-logo {
        width: 280px;
        height: 280px;
    }
    
    .game-banner-widget__container--prime {
        background-image: url('/ui/images/prime_tablet.svg');
    }
    
    .game-banner-widget__container--pro {
        background-image: url('/ui/images/pro_tablet.svg');
    }
    
    .game-banner-widget__container--space {
        background-image: url('/ui/images/space_tablet.svg');
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .game-banner-widget__container {
        min-height: 260px;
        height: 260px;
    }
    
    .game-banner-widget__content {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .game-banner-widget__division-icon {
        height: 28px;
    }
    
    .game-banner-widget__left {
        gap: 8px;
        align-items: center;
    }
    
    .game-banner-widget__team-name {
        font-size: 24px;
        line-height: 18px;
        text-align: center;
    }
    
    .game-banner-widget__team-logo {
        width: 120px;
        height: 120px;
        margin-top: 40px;
        margin-left: 0;
    }
    
    .game-banner-widget__container--prime {
        background-image: url('/ui/images/prime_mobile.svg');
    }
    
    .game-banner-widget__container--pro {
        background-image: url('/ui/images/pro_mobile.svg');
    }
    
    .game-banner-widget__container--space {
        background-image: url('/ui/images/space_mobile.svg');
    }
}

.schedule-short-widget__container {
    width: 100%;
    max-width: 1340px;
    margin: 0;
    padding-left: 0;
    box-sizing: border-box;
}

/* Специфичность повышена для встраивания в Tilda (# перебивает классы) */
.schedule-short-widget__title {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: #fff !important;
    font-family: 'Dela Gothic One', sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 40px !important;
    margin-bottom: 44px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.schedule-short-widget__container .schedule-short-widget__arrow-wrapper {
    width: 36px;
    height: 21px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 6px;
}

.schedule-short-widget__container .schedule-short-widget__arrow {
    width: 100%;
    height: 100%;
    transform: rotate(90deg);
    transform-origin: center;
    display: block;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.schedule-short-widget__container .schedule-short-widget__arrow--white {
    opacity: 1;
}

.schedule-short-widget__container .schedule-short-widget__arrow--red {
    opacity: 0;
}

a.schedule-short-widget__title:hover {
    color: #FA401F !important;
}

.schedule-short-widget__title:hover .schedule-short-widget__arrow--white {
    opacity: 0;
}

.schedule-short-widget__title:hover .schedule-short-widget__arrow--red {
    opacity: 1;
}

.schedule-short-widget__list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
}

.schedule-short-widget__item {
    width: 320px;
    height: 154px;
    background: #CFE2F1;
    border-radius: 4px;
    padding: 20px 24px;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ссылка для элемента списка */
.schedule-short-widget__list > a {
    text-decoration: none;
    display: block;
    color: inherit;
    width: 100%;
}

.schedule-short-widget__division {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    color: #1D173580;
    margin-bottom: 12px;
}

.schedule-short-widget__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.schedule-short-widget__team-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-short-widget__team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.schedule-short-widget__time-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #000;
}

.schedule-short-widget__time {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
}

.schedule-short-widget__today {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 12px;
}

.schedule-short-widget__item:hover {
    box-shadow: 0px 0px 13.2px 0px #FF2600;
    cursor: pointer;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .schedule-short-widget__title {
        font-size: 32px !important;
    }

    .schedule-short-widget__container .schedule-short-widget__arrow-wrapper {
        width: 24px;
        height: 14px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .schedule-short-widget__title {
        font-size: 20px !important;
        margin-bottom: 24px;
    }

    .schedule-short-widget__container .schedule-short-widget__arrow-wrapper {
        width: 19px;
        height: 11px;
        margin-top: 2px;
    }

    .schedule-short-widget__list {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        overflow-x: visible;
    }

    .schedule-short-widget__content {
        margin: 0 16px;
    }

    .schedule-short-widget__item {
        width: 100%;
        height: 92px;
        padding: 16px 20px;
    }

    .schedule-short-widget__teams {
        justify-content: space-around;
    }

    .schedule-short-widget__division {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .schedule-short-widget__team-logo {
        width: 40px;
        height: 40px;
    }

    .schedule-short-widget__time-block {
        width: 60px;
        flex: 0 0 60px;
        flex-shrink: 0;
    }

    .schedule-short-widget__time {
        font-size: 18px;
    }

    .schedule-short-widget__today {
        font-size: 12px;
    }
}

/* Виджет игроков */
.players-widget__container {
    width: 100%;
    margin: 0;
}

.players-widget__title {
    font-family: 'Dela Gothic One', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    margin-bottom: 44px;
    color: white;
}

.players-widget__content {
    width: 100%;
}

.players-widget__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: start;
    padding-bottom: 44px;
}
@media (max-width: 1200px) {
    .players-widget__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .players-widget__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 460px) {
    .players-widget__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 460px) {}
.players-widget__card {
    /* width: 320px; */
    height: 546px;
    background:  url('/ui/images/player_card_desktop.svg') no-repeat center;
    background-size: cover;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
    position: relative;
    justify-content: space-between;
}

.players-widget__card:hover {
    box-shadow: 0px 0px 18.8px 0px #FA401F;
}

.players-widget__card-photo {
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    order: 2;
}

.players-widget__card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.players-widget__card-photo img[src*="player_gag.svg"] {
    object-fit: contain;
}

.players-widget__card-photo--fallback {
    padding-top: 32px;
}

.players-widget__card-content {
    padding: 24px 24px 0px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    order: 1;
}

.players-widget__card-name {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    color: white;
    margin-bottom: 4px;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
}

.players-widget__card-stats-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.players-widget__card-stats-row:first-of-type {
    margin-top: 20px;
}

.players-widget__card-stat-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.players-widget__card-stat-value {
    font-size: 22px;
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
}

.players-widget__card-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {

    .team-name-large{
        font-size: 52px;
    }
    .players-widget__title {
        font-size: 32px;
    }

    .players-widget__grid {
        /* grid-template-columns: repeat(auto-fill, 280px); */
        justify-content: start;
    }

    .players-widget__card {
        /* width: 280px; */
        height: 450px;
        background-image: url('/ui/images/player_card_tablet.svg');
    }
    .players-widget__card a{
        height: 100%;
        display: flex!important;
        flex-direction: column-reverse;
        justify-content: space-between;
    }
    #allrecords .players-widget__card a,
    .players-widget__card a{
        color: #fff;
    }

    
    .players-widget__card-name {
        font-size: 18px;
    }

    .players-widget__card-stat-value {
        font-size: 18px;
    }

    .players-widget__card-photo {
        height: 280px;
    }

    .players-widget__card-photo--fallback {
        padding-top: 24px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .team-name-large{
        font-size: 32px;
    }
    .players-widget__title {
        font-size: 20px;
    }

    .players-widget__grid {
        /* grid-template-columns: repeat(auto-fill, 140px); */
        gap: 16px;
        justify-content: start;
    }

    .players-widget__card {
        /* width: 140px; */
        height: 310px;
        background-image: url('/ui/images/player_card_mobile.svg');
    }

    .players-widget__card-content {
        padding: 20px 15px 0px 15px;
    }

    .players-widget__card-name {
        font-size: 16px;
        font-weight: 400;
        font-style: normal;
    }

    .players-widget__card-stat-value {
        font-size: 16px;
    }

    .players-widget__card-stat-label {
        font-size: 10px;
    }

    .players-widget__card-stats-row {
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .players-widget__card-stats-row:first-of-type .players-widget__card-stat-block {
        flex: 0 0 calc(50% - 4px);
    }

    .players-widget__card-stats-row:first-of-type .players-widget__card-stat-block:nth-child(3),
    .players-widget__card-stats-row:first-of-type .players-widget__card-stat-block:nth-child(4) {
        margin-top: 8px;
    }

    .players-widget__card-photo {
        height: 140px;
    }

    .players-widget__card-photo--fallback {
        padding-top: 12px;
    }
}

/* Calendar Upcoming Widget */
.calendar-upcoming-widget {
    display: grid;
    gap: 15px;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
        display: none;
    }
}

.calendar-upcoming-widget__empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.calendar-upcoming-widget__date-group {
    margin-bottom: 20px;
}

.calendar-upcoming-widget__date-title {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.calendar-upcoming-widget__game-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
}

.calendar-upcoming-widget__game-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-upcoming-widget__game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.calendar-upcoming-widget__game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-upcoming-widget__game-time {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1em;
}

.calendar-upcoming-widget__game-status {
    font-size: 0.85em;
    color: #666;
    background: #e8e8e8;
    padding: 4px 10px;
    border-radius: 12px;
}

.calendar-upcoming-widget__game-league {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}

.calendar-upcoming-widget__game-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.calendar-upcoming-widget__game-team {
    flex: 1;
    text-align: center;
}

.calendar-upcoming-widget__game-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.calendar-upcoming-widget__game-team-name {
    font-weight: 600;
    font-size: 0.95em;
}

.calendar-upcoming-widget__game-vs {
    color: #999;
    font-weight: 600;
}

.calendar-upcoming-widget__game-score {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
    margin-top: 10px;
    margin-bottom: 5px;
}

.calendar-upcoming-widget__game-venue {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Адаптивность для планшетов */

@media (max-width: 1024px) {
    .team-main-info{
        flex-direction: column-reverse;
    }

    .team-header .team-division-logo
    {
        margin: 0 auto;
        background-position: center;
    }
    .calendar-upcoming-widget__date-title {
        font-size: 1.1em;
    }

    .calendar-upcoming-widget__game-team-logo {
        width: 35px;
        height: 35px;
    }
    .team-header .team-name-large{   
        text-align: center;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .team-header .team-name-large{
        font-size: 24px;
        line-height: 32px;
        margin-top: 16px;
    }
    .team-header .team-logo-large{
        height: auto;

    }
    .team-header .team-division-logo{
        height: 28px;
    }
    .calendar-upcoming-widget {
        gap: 10px;
    }


    .calendar-upcoming-widget__date-group {
        margin-bottom: 15px;
    }

    .calendar-upcoming-widget__date-title {
        font-size: 1em;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .calendar-upcoming-widget__game-card {
        padding: 12px;
        margin-bottom: 8px;
    }

    .calendar-upcoming-widget__game-header {
        margin-bottom: 8px;
    }

    .calendar-upcoming-widget__game-time {
        font-size: 1em;
    }

    .calendar-upcoming-widget__game-status {
        font-size: 0.75em;
        padding: 3px 8px;
    }

    .calendar-upcoming-widget__game-league {
        font-size: 0.85em;
        margin-bottom: 8px;
    }

    .calendar-upcoming-widget__game-teams {
        gap: 10px;
        margin-bottom: 8px;
    }

    .calendar-upcoming-widget__game-team-logo {
        width: 30px;
        height: 30px;
    }

    .calendar-upcoming-widget__game-team-name {
        font-size: 0.85em;
    }

    .calendar-upcoming-widget__game-vs {
        font-size: 0.9em;
    }

    .calendar-upcoming-widget__game-score {
        font-size: 1.1em;
        margin-top: 8px;
        margin-bottom: 4px;
    }

    .calendar-upcoming-widget__game-venue {
        font-size: 0.75em;
        margin-top: 8px;
        padding-top: 8px;
    }
}

/* Widget Wrapper — обёртка для виджетов, ширина 100% */
.widget-wrapper {
    width: 100%;
    margin-bottom: 24px;
    background-color: #1D1735;
    display: flex;
    justify-content: center;
}

/* Внутренний блок: ограничения по ширине, боковые марджины (сужаемый, по умолчанию) */
.widget-wrapper__inner {
    width: 100%;
    max-width: 1430px;
    padding-left: 50px;
    padding-right: 50px;
    
    box-sizing: border-box;
    color: #fff;
}

/* Адаптивность для сужаемого типа */
@media (max-width: 960px) {
    .widget-wrapper__inner {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 600px) {
    .widget-wrapper__inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Schedule Short Widget - обёртка для центрирования */
.schedule-short-widget__wrapper {
    width: 100%;
    background-color: #1D1735;
    box-sizing: border-box;
}

/* Скроллируемая область для списка */
.schedule-short-widget__scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

/* Внутренний блок: центрирующая обёртка */
.schedule-short-widget__inner {
    min-width: calc(1340px + 50px);
    box-sizing: border-box;
}

/* Контент внутри inner - фиксированная ширина 1340px */
.schedule-short-widget__content {
    width: 1340px;
    margin-left: 50px;
    box-sizing: border-box;
    color: #fff;
}

/* Отступы для экранов меньше 1340px */
@media (max-width: 1340px) {
    .schedule-short-widget__container {
        padding-left: 50px;
    }
    
    .schedule-short-widget__content {
        margin-left: 50px;
    }
}

/* Отступы для экранов меньше 960px */
@media (max-width: 960px) {
    .schedule-short-widget__container {
        padding-left: 40px;
    }
    
    .schedule-short-widget__content {
        margin-left: 40px;
    }
}

/* Отступы для экранов меньше 768px */
@media (max-width: 768px) {
    .schedule-short-widget__container {
        padding-left: 16px;
    }
    .schedule-short-widget__inner {
        min-width: auto;
    }
    .schedule-short-widget__content {
        width: auto;
        margin-left: 16px;
    }
    .schedule-short-widget__title {
        margin-bottom: 24px;
    }
}

/* Calendar Last Widget */
.calendar-last-widget__container {
    width: 100%;
    background: #1D1735;
    color: #000;
   
    border-radius: 4px;
}
.calendar-last-widget__full-name,
.alendar-last-widget__full-name{
    text-align: center;
    opacity: 0.6;
}

.calendar-last-widget__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Скрытые карточки (показываем только первые 4, по кнопке — все) */
.calendar-last-widget__item--hidden {
    display: none;
}
.calendar-last-widget__container--show-all .calendar-last-widget__item--hidden {
    display: block;
}

.calendar-last-widget__actions {
    text-align: center;
    margin-top: 20px;
}
.calendar-last-widget__show-more-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #1D1735;
    background: #CFE2F1;
    border: 1px solid rgba(29, 23, 53, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.calendar-last-widget__show-more-btn:hover {
    background: #b8d4eb;
    border-color: rgba(29, 23, 53, 0.5);
}

.calendar-last-widget__card {
    background: #CFE2F1;
    border-radius: 4px;
    padding: 20px 24px;
    transition: box-shadow 0.3s ease;
}

.calendar-last-widget__card:hover {
    box-shadow: 0px 0px 13.2px 0px #FF2600;
}

.calendar-last-widget__link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.calendar-last-widget__container  {
    color: #000!important;
}
.calendar-last-widget__container a{
    color: #000;
}
.calendar-last-widget__container a {
    color: #000;
}
.calendar-last-widget__content {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.calendar-last-widget__date {
    font-family: 'CSD-Block', sans-serif;
    font-weight: 400;
    font-size: 32px;
    letter-spacing: .01em;
    text-transform: uppercase;
    min-width: 130px;
    flex-shrink: 0;
    color: #1D1735;
}

.calendar-last-widget__match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    align-items: center;
    column-gap: 4px;
    flex: 1;
}

.calendar-last-widget__team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.calendar-last-widget__score {
    min-width: auto;
    width: 120px;
    justify-self: center;
}

.calendar-last-widget__team--left {
    justify-self: end;
}

.calendar-last-widget__team--right {
    justify-self: start;
    
}

.calendar-last-widget__team {
    min-width: 0; /* важно для text-overflow в grid */
}

.calendar-last-widget__team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-last-widget__team--left {
    justify-content: flex-start;
}

.calendar-last-widget__team--right {
    justify-content: flex-end;
   
}

.calendar-last-widget__team-name {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1D1735;
    text-transform: uppercase;
}

.calendar-last-widget__team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.calendar-last-widget__score {
    display: grid;
    grid-template-columns: minmax(2ch, 1fr) auto minmax(2ch, 1fr);
    align-items: center;
    column-gap: 1px;
    min-width: 120px;
    justify-content: center;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.calendar-last-widget__score-value {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 24px;
   
}

.calendar-last-widget__score-value--first {
    text-align: right;
    min-width: 3ch; /* под 0..120 */
    color: #1D1735;
}

.calendar-last-widget__score-value--second {
    text-align: left;
    min-width: 3ch; /* под 0..120 */
    color: #1D1735;
}

.calendar-last-widget__score-value.fail {
    opacity: 0.45;
}

.calendar-last-widget__score-separator-wrapper {
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 4px;
}

.calendar-last-widget__score-separator {
    width: 4px;
    height: 8px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.calendar-last-widget__score-separator--left {
    transform: rotate(0deg);
}

.calendar-last-widget__score-separator--right {
    transform: rotate(180deg);
}

.calendar-last-widget__score-separator--up {
    transform: rotate(90deg);
}

.calendar-last-widget__score-separator--down {
    transform: rotate(-90deg);
}

.calendar-last-widget__periods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-shrink: 0;
    min-width: 160px;
    justify-items: end;
}

.calendar-last-widget__live {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.calendar-last-widget__live-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    /* filter: brightness(0) saturate(100%) invert(11%) sepia(20%) saturate(1500%) hue-rotate(240deg) brightness(0.11) contrast(1.2); */
}

.calendar-last-widget__live-label {
    font-weight: 600;
    font-size: 18px;
    color: #fa401f;
    text-align: left;
}

.calendar-last-widget__period {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 70px;
}

.calendar-last-widget__period-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.calendar-last-widget__period-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: white;
}

.calendar-last-widget__period-score {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1D1735;
}

.calendar-last-widget__empty {
    text-align: center;
    padding: 40px;
    color: #1D1735;
    font-size: 14px;
}

/* Адаптивность для планшетов */
 @media (max-width: 1024px) {

    .calendar-last-widget__team--left {
        
        flex-direction: column-reverse;
    }

    .calendar-last-widget__team--right {
        order: 3;
        flex-direction: column;
    }
}
  /*  .calendar-last-widget__list {
        gap: 12px;
    }

    .calendar-last-widget__card {
        padding: 16px 20px;
    }

    .calendar-last-widget__content {
        gap: 16px;
    }

    .calendar-last-widget__date {
        font-size: 16px;
        min-width: 100px;
    }

    .calendar-last-widget__team-name {
        font-size: 12px;
    }

    .calendar-last-widget__team-logo {
        width: 32px;
        height: 32px;
    }

    .calendar-last-widget__score {
        width: 100px;
    }

    .calendar-last-widget__match {
        grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
        column-gap: 4px;
    }

    .calendar-last-widget__score-value {
        font-size: 20px;
    }

    .calendar-last-widget__periods {
        gap: 8px;
        min-width: 240px;
    }

    .calendar-last-widget__period {
        min-width: 54px;
    }

    .calendar-last-widget__period-icon {
        width: 18px;
        height: 18px;
    }

    .calendar-last-widget__period-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .calendar-last-widget__period-score {
        font-size: 10px;
    }
} */

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .calendar-last-widget__list {
        gap: 8px;
    }

    .calendar-last-widget__card {
        padding: 16px 28px;
        background-color: #ACABCF;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .calendar-last-widget__card .calendar-last-widget__link {
        min-width: 0;
    }

    .calendar-last-widget__content {
        flex-wrap: wrap;
        gap: 16px;
        min-width: 0;
    }

    .calendar-last-widget__date {
        font-size: 20px;
        min-width: 0;
        width: 100%;
        order: 1;
    }

    .calendar-last-widget__match {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
        column-gap: 8px;
        width: 100%;
        min-width: 0;
        order: 2;
    }

    .calendar-last-widget__team {
        flex: 0 1 auto;
        min-width: 0;
        /* flex-direction: column; */
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    

    .calendar-last-widget__score {
        order: 2;
        width: 100px;
        min-width: auto;
        justify-self: center;
        margin: 8px 0;
    }

    .calendar-last-widget__periods {
        order: 3;
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .calendar-last-widget__period {
        min-width: 0;
        flex-shrink: 1;
    }

    .calendar-last-widget__period-icon {
        width: 16px;
        height: 16px;
    }

    .calendar-last-widget__period-number {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }

    .calendar-last-widget__period-score {
        font-size: 12px;
    }

    .calendar-last-widget__team-name {
        font-size: 11px;
    }

    .calendar-last-widget__team-logo {
        width: 44px;
        height: 44px;
    }

    .calendar-last-widget__score-value {
        font-size: 18px;
    }

    .calendar-last-widget__score-separator {
        font-size: 18px;
    }

    .calendar-last-widget__live {
        justify-content: center;
    }
}

/* Division Stat Widget */
.division-stat-widget__container {
    width: 100%;
    background-color: #3D3958;
    padding: 30px 0;
    border-radius: 4px;
    /* padding: 32px 0; */
    color: white;
}

.division-stat-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    /* flex-wrap: wrap; */
    gap: 20px;
    max-width: 1400px;
    padding-left: 30px;
    padding-right: 50px;
}

.division-stat-widget__title {
    
    font-weight: 400;
    font-size: 18px;
    color: white;
    text-transform: uppercase;
}
.players-widget__card-position{
    text-align: center;
    font-size: 14px;
    opacity: .5;
    text-transform: lowercase;
    color: #FFFFFF;

}

.division-stat-widget__tabs {
    display: flex;
    gap: 0;
}

.division-stat-widget__tab {
    font-family: 'CSD-Block', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 26px;
line-height: 32px;

    color: white;
    background: transparent;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.division-stat-widget__tab--active {
    color: #FA401F;
}

.division-stat-widget__tab:hover {
    color: #FA401F;
}

.division-stat-widget__content {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    
   
}

.division-stat-widget__content--hidden {
    display: none;
}

.division-stat-widget__table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0 30px;
}

.division-stat-widget__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

.division-stat-widget__th {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 12px 8px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    /* background: #FA401F; */
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 1);

    /* border-right: 1px solid rgba(255, 255, 255, 0.2); */


}
.division-stat-widget__th.title{
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    
}


.division-stat-widget__th:first-child {
    /* padding-left: 0; */
    text-align: left;
}

.division-stat-widget__th:last-child {
    padding-right: 0;
}
.division-stat-widget__th.division-stat-widget__th--value{
    border-top: none;
    text-align: center;
}

.division-stat-widget__row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.division-stat-widget__row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.team-players-stats__row--hidden {
    display: none;
}

.team-players-stats--show-all .team-players-stats__row--hidden {
    display: table-row;
}

.team-players-stats__actions {
    text-align: center;
    margin-top: 20px;
}

.team-players-stats__show-more-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #1D1735;
    background: #CFE2F1;
    border: 1px solid rgba(29, 23, 53, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.team-players-stats__show-more-btn:hover {
    background: #b8d4eb;
    border-color: rgba(29, 23, 53, 0.5);
}

.division-stat-widget__td {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: white;
    padding: 16px 8px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);


}

.division-stat-widget__td:first-child {
    /* padding-left: 0; */
    text-align: left;
}

.division-stat-widget__td:last-child {
    padding-right: 0;
}

.division-stat-widget__td--team {
    /* display: flex; */
    align-items: center;
    gap: 12px;
}
.division-stat-widget__td--team__b{
    display: flex; 
    align-items: center;
    gap: 12px;
}
.division-stat-widget__td--player {
    /* display: flex; */
    align-items: center;
    gap: 12px;
}

.division-stat-widget__td--player a{
    display: flex;
    align-items: center;
    gap: 12px;
}
.division-stat-widget__table-wrapper{
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.division-stat-widget__team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.division-stat-widget__team-info {
    display: flex;
    flex-direction: column;
}


.division-stat-widget__team-name {
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.division-stat-widget__team-name:hover {
    color: #FA401F;
}

.division-stat-widget__player-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.division-stat-widget__player-info {
    display: flex;
    flex-direction: column;
} #allrecords .division-stat-widget__player-info a{
    color: white;
    display: flex;
    align-items: center;
    gap: 1em;
}
.division-stat-widget__player-info a{
    text-decoration: none;
    color: white;
}
.division-stat-widget__player-name {
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.division-stat-widget__player-name:hover {
    color: #FA401F;
}

.division-stat-widget__empty {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.division-stat-widget__arrows {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

/* Когда стрелки в контейнере рядом с таблицей */
.statistic-arrows-container .division-stat-widget__arrow {
    margin: 0;
}

.division-stat-widget__arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, transform 0.2s ease;
    border-radius: 4px;
    background-color: #FA401F;
}

.division-stat-widget__arrow:hover:not(:disabled) {
    color: #FA401F;
    background: rgba(250, 64, 31, 0.7);
}

.division-stat-widget__arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.division-stat-widget__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.division-stat-widget__arrow svg {
    width: 24px;
    height: 24px;
}

.division-stat-widget__info {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.section-static__title{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 25px;
        padding-left: 50px;
        padding-right: 50px;
max-width: 1440px;
margin-left: auto;
margin-right: auto;
}


/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .division-stat-widget__container {
        padding: 24px 0;
    }

    .division-stat-widget__table-wrapper{
        padding: 0 24px;
    }
    .division-stat-widget__header {
        padding-left: 24px;

        margin-bottom: 24px;
        padding-right: 80px;
    }
    .section-static__title{
        flex-wrap: wrap;
    }

    .section-static__title .division-selector__row{
        flex-wrap: wrap;
        flex-direction: row;
    }

    .division-stat-widget__title {
        font-size: 16px;
    }
    .division-stat-widget__tabs{
        gap: 24px;
    }

    .division-stat-widget__tab {
        /* font-size: 16px; */
        padding: 6px 0px;

font-family: 'CSD-Block', sans-serif;
font-style: normal;
font-weight: 400;

line-height: 32px;
/* leading-trim and text-edge are draft CSS properties.

Read more: https://drafts.csswg.org/css-inline-3/#leading-trim
*/
leading-trim: both;
text-edge: cap;

    }

    .division-stat-widget__th {
        font-size: 11px;
        padding: 10px 6px;
    }

    .division-stat-widget__td {
        font-size: 13px;
        padding: 12px 6px;
    }

    .division-stat-widget__team-logo,
    .division-stat-widget__player-photo {
        width: 32px;
        height: 32px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .section-static__title{
        margin-left: 0;
        padding-left: 16px;
        padding-right: 16px;
    }
    .division-stat-widget__container {
        padding: 16px 0;
    }

    .division-stat-widget__header {
        /* flex-direction: column; */
        /* align-items: flex-start; */
        margin-bottom: 20px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 16px;
    }
    .division-stat-widget__table-wrapper{
        padding: 0 16px;
    }

    .division-stat-widget__title {
        font-size: 14px;
    }

    .division-stat-widget__tabs {
        /* width: 100%; */
        justify-content: flex-start;
        gap: 1em;
    }

    .division-stat-widget__tab {
        font-size: 26px;
        padding: 6px 0px;
    }

    .division-stat-widget__table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
    }

    .division-stat-widget__th {
        font-size: 10px;
        padding: 8px 4px;
        white-space: nowrap;
    }

    .division-stat-widget__td {
        font-size: 12px;
        padding: 10px 4px;
        white-space: nowrap;
    }

    .division-stat-widget__team-logo,
    .division-stat-widget__player-photo {
        width: 28px;
        height: 28px;
    }
}
#allrecords .division-stat-widget__td--team__b a{
    color: white;
} 
/* Player Widget */
.player-widget__header {
    background: #1D1735;
    padding: 40px 40px 0 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.player-widget__header.w-pro-division {
    
    background-image: url('https://api1.ipbl.pro/ui/images/bg-pro-division.png');
} 
.player-widget__header.w-space-division {
    background-image: url('https://api1.ipbl.pro/ui/images/bg-space-division.png');
} 
.player-widget__header.w-prime-division {
    background-image: url('https://api1.ipbl.pro/ui/images/bg-prime-division.png');
} 
.player-widget__info {
    flex: 1;
    min-width: 300px;
}

.player-widget__name {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    margin-bottom: 40px;
    line-height: 1.2;
}

.player-widget__stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    max-width: 500px;
}

.player-widget__stat-cell {
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.player-widget__stat-cell:last-child,
.player-widget__stat-cell:nth-child(3),
.player-widget__stat-cell:nth-child(6) {
    border-right: none;
}

.player-widget__stat-cell:nth-child(4),
.player-widget__stat-cell:nth-child(5),
.player-widget__stat-cell:nth-child(6) {
    border-bottom: none;
}

.player-widget__stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.player-widget__stat-value {
    font-size: 32px;
    font-weight: 600;
    color: white;
}

.player-widget__photo-wrapper {
    flex-shrink: 0;
}

.player-widget__photo {
    width: 300px;
    height: 400px;
    object-fit: cover;
    /* border-radius: 8px; */
        object-position: bottom;
    display: block;
}

.player-widget__stats-section {
    background: #1D1735;
    padding: 40px;
    
}

.player-widget__stats-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    margin-bottom: 30px;
}



.player-widget__stats-table-wrapper {
    
    padding: 30px;
        background-color: #3D375D;
}

.player-widget__stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    
}

.player-widget__stats-thead {
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    border-top: 1px solid rgba(255, 255, 255, 1);
    /* background: #FA401F; */
}

.player-widget__stats-th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 400;
    font-size: 12px;
    color: white;
    text-transform: uppercase;
    white-space: nowrap;
    /* border-right: 1px solid rgba(255, 255, 255, 0.2); */
}

.player-widget__stats-th--center {
    text-align: center;
}

.player-widget__stats-th{
    position: sticky;
    z-index: 1;
    top: 71px;
    background-color: #3D375D;

}
tr:last-child th.player-widget__stats-th.player-widget__stats-th--sub.player-widget__stats-th--center {
    top:100px;
}
    

.player-widget__stats-th--sub {
    padding: 8px 4px;
    font-size: 11px;
}

.player-widget__stats-th:last-child {
    border-right: none;
}

/* Скрытые строки (все игры кроме последних 10) */
.player-widget__stats-row--hidden {
    display: none;
}
.player-widget__stats-section--show-all .player-widget__stats-row--hidden {
    display: table-row;
}

.player-widget__stats-actions {
    text-align: center;
    margin-top: 20px;
}
.player-widget__stats-show-all-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #3D375D;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.player-widget__stats-show-all-btn:hover {
    background: #4d476d;
    border-color: rgba(255, 255, 255, 0.5);
}

.player-widget__stats-tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-widget__stats-tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}
.player-widget__stats-td {
    padding: 12px 8px;
    color: white;
    font-size: 14px;
    /* border-right: 1px solid rgba(255, 255, 255, 0.1); */
}

#allrecords .player-widget__stats-td a,
.player-widget__stats-td a{
    color: #fff;
    display: flex;
    gap: .35rem;

}
.player-widget__stats-td--center {
    text-align: center;
}

.player-widget__stats-td--points {
    font-weight: 600;
}

.player-widget__stats-td:last-child {
    border-right: none;
}

.player-widget__plus-minus--positive {
    color: #28a745;
}

.player-widget__plus-minus--negative {
    color: #dc3545;
}

.player-widget__empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Адаптивность для Player Widget */
@media (max-width: 1024px) {
    .player-widget__header {
        padding: 30px 30px 0 30px;
        gap: 30px;
    }

    .player-widget__name {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .player-widget__stat-value {
        font-size: 28px;
    }

    .player-widget__photo {
        width: 250px;
        height: 333px;
    }

    .player-widget__stats-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .player-widget__stats-table-wrapper {
        overflow-x: auto;
        padding: 20px;
    }
    .player-widget__stats-th{
        position: static;
    }
    .player-widget__header {
        padding: 20px 20px 0 20px;
        gap: 20px;
        flex-direction: column;
    }

    .player-widget__info {
        min-width: auto;
        width: 100%;
    }
    .player-widget__photo-wrapper{
        width: 100%;
    }
    .player-widget__photo{
        margin: 0 auto;
    }


    .player-widget__name {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .player-widget__stat-cell {
        padding: 15px;
    }

    .player-widget__stat-label {
        font-size: 10px;
    }

    .player-widget__stat-value {
        font-size: 24px;
    }

    .player-widget__photo {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 3/4;
    }

    .player-widget__stats-section {
        padding: 20px;
    }

    .player-widget__stats-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .player-widget__stats-th {
        padding: 8px 4px;
        font-size: 10px;
    }

    .player-widget__stats-th--sub {
        padding: 6px 3px;
        font-size: 9px;
    }

    .player-widget__stats-td {
        padding: 8px 4px;
        font-size: 12px;
    }
}

/* Last Games Widget */
.last-games-team-section {
    margin-bottom: 60px;
}

.last-games-team-section:last-child {
    margin-bottom: 0;
}

.last-games-team-title {
    font-family: 'CSD-Block', sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.last-games-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
}

.last-games-columns--cards-3,
.last-games-columns--cards-4 {
    background-image:
        linear-gradient(
            to bottom,
            transparent calc(50% - 0.5px),
            #1D1735 calc(50% - 0.5px),
            #1D1735 calc(50% + 0.5px),
            transparent calc(50% + 0.5px)
        ),
        linear-gradient(
            to bottom,
            transparent calc(50% - 0.5px),
            #1D1735 calc(50% - 0.5px),
            #1D1735 calc(50% + 0.5px),
            transparent calc(50% + 0.5px)
        );
    background-size: calc(50% - 20px) 100%, calc(50% - 20px) 100%;
    background-position: left top, right top;
    background-repeat: no-repeat;
}

.last-games-columns--cards-5,
.last-games-columns--cards-6 {
    background-image:
        linear-gradient(
            to bottom,
            transparent calc(33.333% - 0.5px),
            #1D1735 calc(33.333% - 0.5px),
            #1D1735 calc(33.333% + 0.5px),
            transparent calc(33.333% + 0.5px)
        ),
        linear-gradient(
            to bottom,
            transparent calc(33.333% - 0.5px),
            #1D1735 calc(33.333% - 0.5px),
            #1D1735 calc(33.333% + 0.5px),
            transparent calc(33.333% + 0.5px)
        ),
        linear-gradient(
            to bottom,
            transparent calc(66.666% - 0.5px),
            #1D1735 calc(66.666% - 0.5px),
            #1D1735 calc(66.666% + 0.5px),
            transparent calc(66.666% + 0.5px)
        ),
        linear-gradient(
            to bottom,
            transparent calc(66.666% - 0.5px),
            #1D1735 calc(66.666% - 0.5px),
            #1D1735 calc(66.666% + 0.5px),
            transparent calc(66.666% + 0.5px)
        );
    background-size: calc(50% - 20px) 100%, calc(50% - 20px) 100%, calc(50% - 20px) 100%, calc(50% - 20px) 100%;
    background-position: left top, right top, left top, right top;
    background-repeat: no-repeat;
}

.last-games-columns::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 1px;
    background: #1D1735;
    pointer-events: none;
    opacity: 50%;
}

.last-games-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sample-section-games__history{
    background-color: #3D375D;
    padding: 30px;
    margin-bottom: 30px;
}
.last-game-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    align-items: center;
}

.last-game-date {
    font-family: 'CSD-Block', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.last-game-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60%;
}

.last-game-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.last-game-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.last-game-team-name {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    flex: 1;
}

.last-game-score {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.last-game-team--loss .last-game-team-name,
.last-game-team--loss .last-game-score {
    opacity: 0.45;
}

.last-game-status {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: white;
    border-radius: 4px;
}

.last-game-status--win {
    background: #FA401F;
}

.last-game-status--loss {
    
    background: rgba(0, 0, 0, 0.3);
}

.last-game-status--draw {
    color: #000;
    background: #fff;
}

.last-game-status--default {
    background: rgba(0, 0, 0, 0.3);
}

.last-game-status--hidden {
    visibility: hidden;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .sample-section-games__history {
        padding: 40px;
    }
    .last-games-team-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .last-game-content {
        width: 50%;
    }

    .last-games-column {
        gap: 12px;
    }

    .last-game-team-logo {
        width: 28px;
        height: 28px;
    }

    .last-game-team-name {
        font-size: 12px;
    }

    .last-game-score {
        font-size: 12px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .sample-section-games__history {
        padding: 20px;
    }
    .last-games-team-section {
        margin-bottom: 40px;
    }

    .last-games-team-title {
        
        margin-bottom: 20px;
    }

    .last-games-columns {
        grid-template-columns: 1fr;
        gap: 8px;
        background-image: none;
    }

    .last-games-columns::before {
        display: none;
    }

    .last-games-column {
        gap: 8px;
    }

    .last-game-card {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .last-game-date {
        order: 1;
        flex: 1 1 auto;
        font-size: 22px;
    }

    .last-game-status {
        order: 2;
        flex: 0 0 auto;
    }

    .last-game-content {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }

    .last-game-card:not(:last-child) {
        border-bottom: 1px solid #1D1735;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .last-game-team-logo {
        width: 35px;
        height: 35px;
    }

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

    .last-game-score {
        font-size: 16px;
    }
}

/* Schedule Widget - страница расписания */
#date-picker-container {
    margin-top: 15px;
    margin-bottom: 30px;
}

.schedule-games-list {
    margin-top: 24px;
}

.statistic-games-list {
    margin-top: 24px;
}

/* Когда таблица в обертке со скроллом */
.statistic-games-scroll-wrapper .statistic-games-list {
    margin-top: 0;
}

.statistic-games-list {
    margin-top: 24px;
}

/* Обертка для стрелок и таблицы статистики */
.statistic-arrows-wrapper {
    /* display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto 1fr;
    align-items: center;
    gap: 16px; */
    position: relative;
    width: 100%;
    margin: 0 auto 0 calc((100vw - 1340px) / 2);
    width: calc(100% - ((100vw - 1340px) / 2));
    padding-right: 20px;
}

.statistic-arrows-wsrapper .selected-division-info {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
}

/* Контейнер для header статистики */
.statistic-arrows-wrapper .statistic-games-scroll-wrapper .division-stat-widget__container {
    /* display: flex;
    flex-direction: column;
    min-width: min-content; */
}

.statistic-arrows-wrapper .statistic-games-scroll-wrapper .division-stat-widget__header {
    grid-column: 1 / -1;
    width: 100%;
    min-width: max-content;
    margin-bottom: 32px;
}

.statistic-arrow-left,
.statistic-arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* width: 100%;
    height: 100%; */
    z-index: 1;
}


/* Обертка для таблицы с горизонтальным скроллом */
.statistic-games-scroll-wrapper {
    grid-column: 2;
    grid-row: 2 / 4;
    /* overflow-x: auto;
    overflow-y: visible; */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    align-self: start;
}

/* Глобальное скрытие нативных скроллбаров (скролл работает, визуально скрыты) */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.statistic-games-scroll-wrapper .statistic-games-list {
    margin-top: 0;
    overflow-x: auto;
    /* min-width: min-content; */
    /* width: max-content; */
}

/* Стили для виджета статистики внутри скроллируемого контейнера */
.statistic-games-scroll-wrapper .division-stat-widget__container {
    /* min-width: min-content; */
}

.statistic-games-scroll-wrapper .division-stat-widget__content {
    /* min-width: min-content; */
    overflow-x: auto;
}

.statistic-arrow-left {
    left: 0;
}
.statistic-arrows-wrapper .statistic-arrow-right {
    right: 0;
}
.division-stat-widget__title,
.selected-division-info {
    /* margin-top: 15px; */
    /* padding: 12px 16px; */
    /* font-family: 'Dela Gothic One', sans-serif; */
    font-family: 'CSD-Block', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 26px;
    color: #fff;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    gap: 8px;
    width: 100%;
}

.selected-division-info img,
.selected-division-info__arrow {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    transform: rotate(90deg);
    flex-shrink: 0;
}
.division-stat-widget__title:empty,
.selected-division-info:empty {
    display: none;
}

@media (max-width: 1340px) {
    .statistic-arrows-wrapper {
        position: relative;
        width: 100%;
        margin: 0;
        width: 100vw;
        padding-left: 50px;
    }
    .schedule-short-widget__list{
        padding-right: 50px;
    }

}

@media (max-width: 768px) {
    .statistic-arrows-wrapper {
    padding-left:16px;

}
.schedule-short-widget__list{
        padding-right: 16px;
    }
}


.t795 .t-container{

    max-width: 1370px;
}


@media screen and (max-width: 1340px) {
    .t795  .t-container {
        /* max-width: 960px; */
        padding: 0 30px;
    }
}


@media screen and (max-width: 1024px) {
    .t795  .t-container {
        /* max-width: 960px; */
        padding: 0 15px;
    }
}
@media screen and (max-width: 960px) {
    .t795 .t-container {
        /* max-width: 640px; */
        padding: 0 15px;
    }
}

/* documents widget */
.documents-widget {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #333;
}

.documents-widget--empty .documents-widget__inner {
    padding: 16px 0;
    color: #666;
}

.documents-widget__item {
    padding: 12px 0;
    border-bottom: 2px solid #B3B2CE;
}

.documents-widget__title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: #1d1735;
}

.documents-widget__description {
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
}

.documents-widget__meta {
    font-size: 12px;
    color: #888;
}

.documents-widget__link {
    color: #4f7cff;
    text-decoration: none;
    margin-left: 6px;
}
.documents-widget__date {
    font-size: 16px;
    text-transform: uppercase;
    color: #1d1735;
    opacity: 0.5;
    font-family: var(--t-text-font, Arial);
    font-weight: 400;
}