/* --- ОБЩИЕ СТИЛИ КАРТОЧКИ МАТЧА --- */
.ry-match-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    padding: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ry-match-card:hover {
    background: rgba(30, 30, 30, 0.85);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.ry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-family: "Unbounded", sans-serif;
}

.ry-header-left {
    width: 60%;
    text-align: left;
}

.ry-header-center {
    display: none;
}

.ry-header-right {
    width: 40%;
    text-align: right;
}

.ry-card-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 10px;
}

.ry-card-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 8px;
    min-width: 0;
}

.ry-card-team.home {
    flex-direction: column-reverse;
}

.ry-card-team.away {
    flex-direction: column;
}

.ry-card-team img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.ry-card-name {
    font-size: 8px;
    font-weight: 600;
    color: #eee;
    line-height: 2;
    font-family: "Onder", sans-serif;
    text-transform: uppercase;
}

.ry-card-center-block {
    justify-self: center;
    margin-top: 8px;
}

.ry-score-box {
    background: #000;
    color: #fff;
    padding: 8px 12px;
    width: auto;
    border-radius: 0px;
    font-weight: 800;
    font-size: 10px;
    white-space: nowrap;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 90px;
    font-family: "Onder", sans-serif;
}

.ry-score-box.live {
    color: #fff;
    background: #dc2525;
    border-color: #dc2525;
    animation: ryPulse 1.5s infinite;
}

.ry-score-box.scheduled {
    color: #aaa;
    background: transparent;
    border: 1px dashed #444;
    font-size: 10px;
    letter-spacing: 2px;
}

@keyframes ryPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 37, 37, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 37, 37, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 37, 37, 0);
    }
}

@media (max-width: 768px) {
    .ry-match-card {
        padding: 10px;
    }

    .ry-card-body {
        gap: 2px;
    }

    .ry-card-team {
        width: auto;
        gap: 4px;
    }

    .ry-card-team img {
        width: 30px;
        height: 30px;
    }

    .ry-card-name {
        font-size: 8px;
        line-height: 1.2;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: none;
        padding: 0 2px;
    }

    /* Убираем лишние отступы у центрального блока */
    .ry-card-center-block {
        margin: 15px 2px 0 2px;
    }
}

.ry-match-card.ry-widget-mode .ry-card-team {
    flex-direction: column;
    /* Ставим вертикально */
    text-align: center !important;
    justify-content: flex-start !important;
    gap: 5px;
}

/* Меняем порядок: Логотип (1), Имя (2) */
.ry-match-card.ry-widget-mode .ry-card-team img {
    order: 1;
    margin: 0 auto;
    width: 55px;
    height: 55px;
}

.ry-match-card.ry-widget-mode .ry-card-name {
    order: 2;
    font-size: 8px;
    line-height: 2;
}

/* Доп. стили для виджетов (Стадион, Таймер, Кнопки) */
/* --- СТАДИОН --- */
.ry-card-stadium {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #999;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 0 10px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Unbounded", sans-serif;
}

/* КНОПКИ */
.ry-card-footer {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    position: relative;
    z-index: 20;
}

.ry-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    min-height: 30px;
    box-sizing: border-box;
    font-size: 8px;
    text-transform: uppercase;
    border-radius: 0px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 2;
    letter-spacing: 0.5px;
    font-family: "Onder", sans-serif;
    text-align: center;
}

.ry-btn:hover {
    transform: translateY(-2px);
}

/* Трансляция и Билеты: Фирменный красный */
.ry-btn-broadcast,
.ry-btn-ticket {
    background: #d82e40;
    color: #fff !important;
    border: 1px solid #d63638;
    box-shadow: 0 4px 10px rgba(214, 54, 56, 0.3);
}

.ry-btn-broadcast:hover,
.ry-btn-ticket:hover {
    background: #b02325;
    border-color: #b02325;
}

/* Обзор: Прозрачный с белой рамкой */
.ry-btn-details {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.ry-btn-details:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.ry-score-box.timer-wrapper {
    background: transparent;
    border: none;
    padding: 0;
}

.ry-countdown-modern {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.ry-cnt-item {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 0px;
    min-width: 28px;
    padding: 6px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ry-cnt-val {
    font-size: 8px;
    color: #fff;
    line-height: 2;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    /* Моноширинные цифры */
}

.ry-cnt-lbl {
    font-size: 4px;
    text-transform: uppercase;
    color: #777;
    margin-top: 2px;
    line-height: 1;
}

@media (max-width: 768px) {
    .ry-cnt-item {
        min-width: 24px;
        padding: 4px 4px;
    }

    .ry-match-card.ry-widget-mode .ry-card-name {
        font-size: 6px;
    }

    .ry-card-header {
        font-size: 10px;
    }
}

@media (max-width: 1300px) {
    .ry-match-card.ry-widget-mode .ry-card-name {
        font-size: 6px;
        line-height: 2;
    }

    .ry-cnt-val {
        font-size: 6px;
    }
}

/* --- ВИДЖЕТ ТАБЛИЦЫ --- */
.ry-table-widget {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    padding: 10px 15px;
    font-family: "Onder", sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    /* Растягиваем на всю ширину */
    box-sizing: border-box;
}

table.ry-tw-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

table.ry-tw-table th {
    font-family: "Unbounded", sans-serif;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
    padding: 15px 10px 15px 10px;
    text-align: center;
}

table.ry-tw-table th.th-left {
    text-align: left;
}

table.ry-tw-table td {
    padding: 15px 10px;
    color: #ccc;
    font-size: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    font-family: "Onder", sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Чтобы цифры не прыгали */
}

table.ry-tw-table tr:last-child td {
    border-bottom: none;
}

.ry-tw-team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    overflow: hidden;
}

.ry-tw-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.ry-tw-name {
    font-size: 10px;
    color: #eee;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Выделение своей команды */
tr.ry-tw-my-row {
    background: rgba(220, 37, 37, 0.05);
}

tr.ry-tw-my-row td {
    color: #fff;
}

tr.ry-tw-my-row .ry-tw-name {
    color: #fff;
}

tr.ry-tw-my-row td:first-child {
    position: relative;
}

tr.ry-tw-my-row td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d82e40;
}

/* Ширина колонок */
.col-pos {
    width: 40px;
    color: #777;
}

.col-games {
    width: 50px;
}

.col-points {
    width: 50px;
    color: #fff;
}

@media (max-width: 768px) {
    table.ry-tw-table td {
        font-size: 6px;
        padding: 10px 5px;
    }

    table.ry-tw-table th {
        font-size: 10px;
        padding: 10px 5px;
    }

    .ry-tw-logo {
        width: 24px;
        height: 24px;
    }

    .ry-tw-name {
        font-size: 6px;
    }

    .col-games {
        width: 30px;
    }

    .col-points {
        width: 30px;
    }

    .col-pos {
        width: 30px;
    }

    tr.ry-tw-my-row td:first-child::before {
        width: 2px;
    }
}

/* --- ШОРТКОД ТУРНИРНОЙ ТАБЛИЦЫ --- */
/* Селект выбора таблицы */
.ry-select-wrapper {
    margin-bottom: 25px;
    position: relative;
    max-width: 400px;
}

.ry-table-select {
    width: 100%;
    padding: 12px 15px;
    font-family: "Unbounded", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0px;
    /* Прямые углы */
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    letter-spacing: 0.5px;
}

.ry-table-select:focus {
    border-color: #d82e40;
    background: #000;
}

.ry-select-wrapper .ry-select-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #dc2525;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ry-select-wrapper .ry-select-arrow svg {
    display: block;
    width: 10px;
    height: 6px;
}

/* Контейнер таблицы (стиль карточки) */
.ry-table-pane {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    overflow: hidden;
}

.ry-responsive-table {
    overflow-x: auto;
}

/* Сама таблица */
.ry {
    width: 100%;
    border-collapse: collapse;
    font-family: "Onder", sans-serif;
    color: #ededed;
}

/* Шапка */
.ry thead th {
    font-family: "Unbounded", sans-serif;
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ry thead th:nth-child(2) {
    text-align: left;
    padding-left: 15px;
}

/* Колонка Клуб */

/* Ячейки */
.ry td {
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
    font-size: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #ccc;
}

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

/* Команда */
.ry td.team {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px 12px 15px;
    font-family: "Onder", sans-serif;
    text-transform: uppercase;
    font-size: 10px;
    color: #eee;
}

.ry td.team img {
    width: 30px;
    height: 30px;
    flex: none;
    object-fit: contain;
    display: block;
}

.ry td.rank {
    color: #555;
    font-weight: bold;
    width: 40px;
    font-family: "Unbounded", sans-serif;
    font-size: 12px;
}

/* Особая настройка для Мячей (7-я колонка) */
.ry th:nth-child(7),
.ry td:nth-child(7) {
    width: 60px;
}

/* Выделение своей команды */
.ry tbody tr.highlight {
    background: rgba(220, 37, 37, 0.05);
}

.ry tbody tr.highlight td {
    color: #fff;
    font-weight: 600;
}

.ry tbody tr.highlight td.rank {
    color: #d82e40;
}

/* Красная полоска слева */
.ry tbody tr.highlight td:first-child {
    position: relative;
}

.ry tbody tr.highlight td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d82e40;
}

@media (max-width:640px) {
    .ry {
        font-size: 6px;
    }

    .ry td {
        font-size: 7px;
        padding: 10px 4px;
    }

    .ry th:nth-child(4),
    .ry td:nth-child(4),
    /* В */
    .ry th:nth-child(5),
    .ry td:nth-child(5),
    /* Н */
    .ry th:nth-child(6),
    .ry td:nth-child(6),
    /* П */
    .ry th:nth-child(7),
    .ry td:nth-child(7)

    /* Мячи */
        {
        display: none
    }

    .ry td.team {
        font-size: 7px;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 5px;
    }

    .ry thead th:nth-child(2) {
        padding-left: 5px !important;
    }
}

.ry-matches-wrapper {
    width: 100%;
    margin-bottom: 30px;
    font-family: "Unbounded", sans-serif;
    color: #fff;
}

.ry-col-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d82e40;
    text-transform: uppercase;
    font-family: "Onder", sans-serif;
}

.ry-matches-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.ry-col-half {
    flex: 1;
    min-width: 0;
}

/* Группировка */
.ry-season-header {
    font-size: 12px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
    letter-spacing: 0.5px;
    font-family: "Onder", sans-serif;
}

.ry-month-header {
    font-size: 13px;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
    margin: 15px 0 10px 0;
    padding-left: 10px;
    border-left: 3px solid #d82e40;
    font-family: "Unbounded", sans-serif;
}

.ry-load-more {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 7px;
    font-family: "Onder", sans-serif;
    transition: all 0.2s;
}

.ry-load-more:hover {
    background: #333;
    border-color: #666;
}

/* Мобильные */
.ry-mobile-tabs {
    display: none;
}

@media (max-width: 768px) {
    .ry-matches-grid {
        display: block;
    }

    .ry-col-title {
        display: none;
    }

    .ry-mobile-tabs {
        display: flex !important;
        margin-bottom: 20px;
        background: #111;
        padding: 4px;
        border: 1px solid #333;
    }

    .ry-matches-wrapper .ry-tab-btn {
        flex: 1;
        padding: 12px;
        background: transparent;
        border: none;
        color: #777;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 7px;
        font-family: "Onder", sans-serif;
        cursor: pointer;
    }

    .ry-matches-wrapper .ry-tab-btn.active {
        background: #333;
        color: #fff;
    }

    .ry-col-half {
        display: none;
    }

    .ry-col-half.active-mobile {
        display: block;
        animation: ryFadeIn 0.3s;
    }

    /* Возвращаем стандартные стили для списка */
    .ry-card-team {
        width: auto;
        gap: 6px;
    }

    .ry-card-team img {
        width: 30px;
        height: 30px;
    }

    .ry-card-name {
        font-size: 6px !important;
        line-height: 2 !important;
    }

    .ry-score-box {
        font-size: 10px;
        padding: 4px 6px;
        min-width: 60px;
    }

    .ry-load-more {
        font-size: 8px;
    }

    .ry-card-center-block {
        margin-top: 5px;
    }
}

@keyframes ryFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ФИКС ОТ ТЕМЫ WORDPRESS --- */
.ry-matches-wrapper button.ry-tab-btn:hover,
.ry-matches-wrapper button.ry-tab-btn:focus,
button.ry-load-more:focus {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #999 !important;
    /* Цвет текста при наведении */
}

button.ry-load-more:focus {
    background: #2a2a2a !important;
    color: #fff !important;
}

.ry-matches-wrapper button.ry-tab-btn.active {
    background: #333 !important;
    color: #fff !important;
}

.ry-squad-wrapper {
    margin-bottom: 60px;
    font-family: "Onder", sans-serif;
}

.ry-team-section {
    margin-bottom: 50px;
}

/* Заголовок секции */
.ry-squad-wrapper .ry-section-header {
    font-family: "Onder", sans-serif;
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #d82e40;
    letter-spacing: 0.5px;
}

/* === ВАРИАНТ 1: СЕТКА КАРТОЧЕК (ДЛЯ ИГРОКОВ) === */
.ry-squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* КАРТОЧКА-ССЫЛКА */
.ry-player-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    /* Прямые углы */
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    opacity: 0;
    animation: ryFadeInShortcode 0.6s ease forwards;
}

.ry-player-card:nth-child(1) {
    animation-delay: 0.1s;
}

.ry-player-card:nth-child(2) {
    animation-delay: 0.15s;
}

.ry-player-card:nth-child(3) {
    animation-delay: 0.2s;
}

.ry-player-card:nth-child(4) {
    animation-delay: 0.25s;
}

.ry-player-card:nth-child(5) {
    animation-delay: 0.3s;
}

.ry-player-card:nth-child(6) {
    animation-delay: 0.35s;
}

.ry-player-card:nth-child(7) {
    animation-delay: 0.4s;
}

.ry-player-card:nth-child(8) {
    animation-delay: 0.45s;
}

.ry-player-card:nth-child(9) {
    animation-delay: 0.5s;
}

.ry-player-card:nth-child(10) {
    animation-delay: 0.55s;
}

.ry-player-card:nth-child(n+11) {
    animation-delay: 0.6s;
}

.ry-player-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 30, 0.9);
    color: inherit !important;
}

.ry-player-photo {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: #111;
    padding: 10px;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.ry-player-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    height: 120px;
}

.ry-player-number {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: "Unbounded", sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #d82e40;
    /* Фирменный красный */
    line-height: 1;
    z-index: 2;
    text-shadow: 2px 2px 0px #000;
}

.ry-player-name {
    font-family: "Onder", sans-serif;
    font-size: 9px;
    color: #fff;
    line-height: 1.7;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0;
    z-index: 3;
    letter-spacing: 0.5px;
}

.ry-no-photo {
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #333;
    font-size: 60px;
}

/* === ВАРИАНТ 2: ГАЛЕРЕЯ (ДЛЯ ПЕРСОНАЛА) === */
.ry-main-stage {
    display: flex;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ry-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.ry-progress-bar {
    height: 100%;
    background: #d82e40;
    width: 0%;
}

.ry-main-photo-col {
    width: 45%;
    height: 100%;
    background: #111;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.ry-main-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    padding-top: 10px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    opacity: 0;
    animation: ryFadeInShortcode 0.6s forwards;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.ry-main-info-col {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at right top, #222 0%, #111 80%);
}

.ry-info-content {
    opacity: 0;
    animation: ryFadeInShortcode 0.6s 0.1s forwards;
    margin-bottom: 80px;
}

.ry-main-name-lg {
    font-family: "Onder", sans-serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.7;
}

.ry-main-meta-lg {
    font-family: "Unbounded", sans-serif;
    font-size: 14px;
    color: #d82e40;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ry-main-dob {
    font-family: "Unbounded", sans-serif;
    font-size: 11px;
    color: #888;
    font-weight: 500;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Миниатюры */
.ry-thumbs-track {
    position: absolute;
    bottom: 25px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px;
    scrollbar-width: none;
}

.ry-thumbs-track.is-overflowing {
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 40px), transparent 100%);
}

.ry-thumbs-track::-webkit-scrollbar {
    display: none;
}

.ry-thumb-item {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 0px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #444;
    background: #1a1a1a;
    flex-shrink: 0;
    box-sizing: border-box;
    filter: grayscale(100%) brightness(60%);
    padding: 5px 5px 0 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ry-thumb-item:hover {
    filter: grayscale(0%) brightness(90%);
    border-color: #777;
    transform: translateY(-3px);
}

.ry-thumb-item.active {
    filter: grayscale(0%) brightness(100%);
    border-color: #d82e40;
    transform: scale(1.1);
    z-index: 2;
    background: #222;
}

.ry-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.ry-no-photo-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #333;
}

.ry-no-photo-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #555;
}

@keyframes ryFadeInShortcode {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- МОБИЛЬНЫЕ СТИЛИ --- */
@media (max-width: 768px) {

    /* Галерея */
    .ry-main-stage {
        flex-direction: column;
        height: auto;
    }

    .ry-main-photo-col {
        width: 100%;
        height: 320px;
        padding: 10px 5px;
    }

    .ry-main-info-col {
        width: 100%;
        height: auto;
        padding: 20px;
        justify-content: flex-start;
    }

    .ry-info-content {
        margin-bottom: 25px;
    }

    .ry-main-name-lg {
        font-size: 11px;
    }

    .ry-main-meta-lg {
        font-size: 9px;
    }

    .ry-main-dob {
        font-size: 9px;
    }

    .ry-thumbs-track {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        padding: 10px 15px !important;
        justify-content: flex-start !important;
        margin-top: auto;
        margin-bottom: 5px;
        overflow-y: visible !important;
    }

    /* Сетка игроков (2 колонки) */
    .ry-squad-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ry-player-photo {
        height: 220px;
    }

    .ry-player-info {
        height: 90px;
        padding: 10px;
    }

    .ry-player-number {
        font-size: 18px;
        top: 8px;
        left: 8px;
    }

    .ry-player-name {
        font-size: 6px;
    }

    .ry-no-photo {
        height: 220px;
        font-size: 40px;
    }

    .ry-thumb-item {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================================================
   МОДУЛЬ ГОЛОСОВАНИЙ (POLLS & AWARDS) STYLES
   ========================================================================== */
.ry-poll-wrapper {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-bottom: 40px;
    color: #fff;
    font-family: "Onder", sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ry-poll-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ry-poll-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ry-poll-award-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(216, 46, 64, 0.15);
    border: 1px solid #d82e40;
    color: #ff4d61;
    font-family: "Unbounded", sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ry-trophy-icon {
    width: 16px;
    height: 16px;
    color: #ff4d61;
}

.ry-poll-status-badge {
    font-family: "Unbounded", sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ry-poll-status-badge.active {
    background: rgba(0, 163, 42, 0.2);
    border: 1px solid #00a32a;
    color: #2ebd4f;
}

.ry-poll-status-badge.finished {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
}

.ry-poll-title {
    font-family: "Unbounded", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}

.ry-poll-desc {
    font-size: 13px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ry-poll-meta-info {
    font-size: 12px;
    color: #888;
    font-family: "Unbounded", sans-serif;
}

/* Грид кандидатов */
.ry-poll-candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.ry-poll-cand-card {
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ry-poll-cand-card:hover {
    border-color: rgba(216, 46, 64, 0.5);
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.ry-poll-cand-card.is-winner {
    border: 2px solid #d82e40;
    box-shadow: 0 0 20px rgba(216, 46, 64, 0.3);
}

.ry-winner-ribbon {
    position: absolute;
    z-index: 12;
    top: -1px;
    right: -1px;
    transform: none;
    width: 34px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    box-sizing: border-box;
    background:
        linear-gradient(rgba(216, 46, 64, .12), rgba(216, 46, 64, .12)),
        #161616;
    border: 1px solid #d82e40;
    color: #ff4d61;
    font-family: "Unbounded", sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    padding: 0 9px;
    text-transform: uppercase;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    overflow: hidden;
    cursor: default;
    outline: none;
    transition: width .28s cubic-bezier(.2,.75,.2,1), padding .28s ease;
}

.ry-winner-ribbon svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.ry-winner-ribbon-label {
    overflow: hidden;
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    transform: translateX(5px);
    white-space: nowrap;
    transition:
        max-width .28s cubic-bezier(.2,.75,.2,1),
        margin-left .28s ease,
        opacity .18s ease,
        transform .28s ease;
}

.ry-winner-ribbon:hover,
.ry-winner-ribbon:focus-visible {
    width: 132px;
    padding: 0 10px;
}

.ry-winner-ribbon:hover .ry-winner-ribbon-label,
.ry-winner-ribbon:focus-visible .ry-winner-ribbon-label {
    max-width: 92px;
    margin-left: 6px;
    opacity: 1;
    transform: translateX(0);
}

.ry-trophy-icon-sm {
    width: 12px;
    height: 12px;
}

/* Медиа блок */
.ry-cand-media-box {
    width: 100%;
    height: 200px;
    background: #111;
    position: relative;
    overflow: hidden;
}

.ry-cand-img-wrap {
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.ry-cand-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ry-media-overlay-icon {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ry-cand-img-wrap:hover .ry-media-overlay-icon {
    opacity: 1;
}

.ry-cand-video-placeholder {
    width: 100%;
    height: 100%;
    background: #141414;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ry-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.ry-play-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d82e40;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(216, 46, 64, 0.5);
    transition: transform 0.2s ease;
}

.ry-cand-video-placeholder:hover .ry-play-btn-circle {
    transform: scale(1.1);
}

.ry-play-btn-circle svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.ry-video-label {
    font-family: "Unbounded", sans-serif;
    font-size: 11px;
    color: #fff;
    margin-top: 10px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Инфо кандидатов */
.ry-cand-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ry-cand-title {
    font-family: "Unbounded", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ry-cand-player-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #d82e40;
    margin-bottom: 10px;
}

.ry-cand-player-link a {
    color: #d82e40;
    text-decoration: none;
    font-weight: 600;
}

.ry-cand-player-link a:hover {
    text-decoration: underline;
}

.ry-user-icon {
    width: 14px;
    height: 14px;
}

.ry-cand-desc {
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
    margin: 0;
}

/* ДЕЙСТВИЯ И ПРОГРЕСС БАРЫ */
.ry-cand-action-zone {
    padding: 15px 20px 20px 20px;
}

.ry-btn-vote {
    width: 100%;
    padding: 12px;
    background: #d82e40;
    color: #fff;
    border: none;
    font-family: "Unbounded", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ry-btn-vote:hover {
    background: #f0354b;
    box-shadow: 0 4px 15px rgba(216, 46, 64, 0.4);
}

.ry-btn-vote:disabled {
    background: #333;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
}

.ry-cand-result-bar-wrap {
    margin-top: 5px;
}

.ry-st-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 8px;
}

.ry-st-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d82e40 0%, #ff4d61 100%);
    width: 0%;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.ry-cand-result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Unbounded", sans-serif;
    font-size: 12px;
}

.ry-cand-percent {
    font-weight: 700;
    color: #fff;
}

.ry-cand-votes-count {
    color: #888;
    font-size: 11px;
}

/* МОДАЛЬНЫЕ ОКНА */
.ry-poll-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ry-poll-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.ry-poll-modal-content {
    position: relative;
    z-index: 2;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px;
    width: 90%;
    max-width: 480px;
    color: #fff;
    font-family: "Onder", sans-serif;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.ry-image-modal-content {
    max-width: 90vw;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.ry-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}

.ry-modal-close-btn:hover {
    color: #fff;
}

.ry-vk-modal-header {
    text-align: center;
}

.ry-vk-icon {
    width: 44px;
    height: 44px;
    color: #0077ff;
    margin-bottom: 12px;
}

.ry-vk-modal-header h3 {
    font-family: "Unbounded", sans-serif;
    font-size: 18px;
    margin: 0 0 8px 0;
}

.ry-vk-modal-header p {
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
    margin: 0;
}

.ry-poll-input {
    background: #101010;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}

.ry-poll-input:focus {
    border-color: #d82e40;
}

.ry-btn-primary-sm {
    background: #d82e40;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-family: "Unbounded", sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.ry-btn-primary-sm:hover {
    background: #f0354b;
}

/* ==========================================================================
   ЕДИНАЯ СИСТЕМА ТУЛТИПОВ (UNIFIED TOOLTIPS SYSTEM)
   ========================================================================== */
[data-ry-tooltip] {
    position: relative;
    display: inline-flex;
}

[data-ry-tooltip]::before {
    content: attr(data-ry-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #000000;
    border: 1px solid #444444;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 0px;
    font-family: "Unbounded", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[data-ry-tooltip]::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: auto;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%) translateY(4px);
    border-width: 6px;
    border-style: solid;
    border-color: #444444 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10001;
    pointer-events: none;
}

[data-ry-tooltip]:hover::before,
[data-ry-tooltip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

[data-ry-tooltip]:hover::after,
[data-ry-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .ry-poll-wrapper {
        padding: 20px 15px;
    }
    .ry-poll-title {
        font-size: 18px;
    }
    .ry-poll-candidates-grid {
        grid-template-columns: 1fr;
    }
}

/* Единая высота строки для всех компонентов, использующих Onder. */
.ry-card-name,
.ry-score-box,
.ry-btn,
.ry-table-widget,
table.ry-tw-table td,
.ry,
.ry td.team,
.ry-col-title,
.ry-season-header,
.ry-load-more,
.ry-matches-wrapper .ry-tab-btn,
.ry-squad-wrapper,
.ry-squad-wrapper .ry-section-header,
.ry-player-name,
.ry-main-name-lg,
.ry-poll-wrapper,
.ry-poll-modal-content {
    line-height: 1.7 !important;
}
