/* ===== GLOBAL RESET & VARS ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #4A90E2, #357ABD);
    --live-gradient: linear-gradient(135deg, #e91e63, #f06292);
    --dark-gradient: linear-gradient(135deg, #2c3e50, #34495e);
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --text-main: #333333;
    --text-light: #666666;
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
    --radius-main: 12px;
    --header-bg: linear-gradient(135deg, #4A90E2, #357ABD);
    --footer-bg: linear-gradient(135deg, #2c3e50, #34495e);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.4;
    transition: background-color 0.3s, color 0.3s;
    min-width: 320px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== HEADER ===== */
.header {
    background: var(--header-bg);
    padding: 12px 0;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    background: white;
    padding: 2px;
}

/* Кнопка темы */
.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

body.dark-theme .theme-toggle .sun-icon {
    display: block;
}

body.dark-theme .theme-toggle .moon-icon {
    display: none;
}

/* Навигация "Пилюля" */
.navigation {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    padding: 5px 10px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-link {
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: white;
    color: #357ABD;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Соцсети */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.social-link-icon {
    color: white;
    background: rgba(255,255,255,0.2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}
.social-link-icon:hover { 
    background: white; 
    color: #357ABD;
    transform: scale(1.1); 
}

/* Мобильное меню */
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1002; }
.hamburger-menu .bar { display: block; width: 25px; height: 3px; background: white; margin: 5px 0; transition: 0.3s; }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-navigation {
    display: none;
    position: fixed;
    top: 0;
    right: 0; 
    width: 250px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    z-index: 1001;
    padding-top: 60px;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}
.mobile-navigation.active { transform: translateX(0); display: flex; }
.mobile-nav-links { width: 100%; }
.mobile-nav-links a {
    color: var(--text-main);
    font-size: 16px;
    padding: 12px 20px;
    display: block;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    transition: background-color 0.2s;
}
.mobile-nav-links a:hover { background-color: rgba(0,0,0,0.05); }

/* Мобильная кнопка темы */
.mobile-theme-toggle {
    display: none;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    text-align: left;
}

.mobile-theme-toggle button {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.mobile-theme-toggle button:hover {
    background: #357ABD;
}

/* ===== MAIN LAYOUT ===== */
.main-content {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

.section-title {
    font-size: 26px;
    color: var(--text-main);
    margin-bottom: 25px;
    font-weight: 700;
    padding-left: 15px;
    border-left: 5px solid #e91e63;
}

/* ===== SLIDER & MOTD ===== */
.motd-slider-section {
    position: relative;
    margin-bottom: 40px;
}

.motd-slider-wrapper {
    overflow: hidden;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-card);
    background: var(--card-bg);
    position: relative;
    width: 100%;
}

.motd-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.motd-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 25px;
    flex-shrink: 0;
}

/* Кнопки слайдера */
.motd-prev-btn, .motd-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.motd-prev-btn:hover, .motd-next-btn:hover { background: var(--live-gradient); }
.motd-prev-btn { left: 0; border-radius: 0 8px 8px 0; }
.motd-next-btn { right: 0; border-radius: 8px 0 0 8px; }

.motd-card { position: relative; }

.motd-badge {
    text-align: center;
    margin-bottom: 15px;
}
.motd-badge span {
    background: var(--live-gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
}

/* Оригинальная структура MOTD (для ПК) */
.motd-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.motd-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 160px;
}

.motd-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}
.motd-logo:hover { transform: scale(1.05); }

.motd-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.motd-player-area {
    flex: 1;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 640px;
    margin: 0 auto;
}
.motd-match-title-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    padding: 15px;
    color: white;
    font-size: 14px;
    z-index: 5;
    font-weight: 500;
}

/* Стили для ленивой загрузки плееров */
.player-wrapper[data-loaded="true"] .player-placeholder-motd,
.player-container[data-loaded="true"] .player-placeholder {
    display: none;
}

.player-wrapper[data-loaded="false"] .player-placeholder-motd,
.player-container[data-loaded="false"] .player-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A90E2, #e91e63);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

.player-wrapper[data-loaded="false"] .player-placeholder-motd:hover,
.player-container[data-loaded="false"] .player-placeholder:hover {
    background: linear-gradient(135deg, #e91e63, #4A90E2);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.player-wrapper[data-loaded="false"] .player-placeholder-motd:active,
.player-container[data-loaded="false"] .player-placeholder:active {
    transform: scale(0.98);
}

.player-wrapper[data-loaded="false"] .player-placeholder-motd::after,
.player-container[data-loaded="false"] .player-placeholder::after {
    content: "▶";
    margin-left: 8px;
    font-size: 1.2em;
}

/* ФИКС ДЛЯ ПЛЕЕРА */
.player-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.player-wrapper iframe,
.player-wrapper video,
.motd-player-area iframe,
.motd-player-area video {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.player-placeholder-motd {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #222;
    font-size: 16px;
}

/* ===== LIVE LIST ===== */
.live-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-row {
    background: var(--card-bg);
    border-radius: var(--radius-main);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-card);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.live-row:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: #d0d0d0;
}

.live-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 35%; 
}
.live-team-left { justify-content: flex-end; text-align: right; }
.live-team-right { justify-content: flex-start; text-align: left; }

.team-logo-small {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.team-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
}

.live-center {
    width: 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
}

.live-badge {
    background: var(--live-gradient);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 5px;
    box-shadow: 0 3px 8px rgba(233, 30, 99, 0.3);
    transition: 0.3s;
}
.live-badge:hover { transform: scale(1.05); }

.live-extra {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.live-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.action-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.action-btn:hover {
    background: white;
    color: #e91e63;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Спойлер */
.spoiler-content {
    margin-top: -10px;
    margin-bottom: 12px;
    background: #000;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 500px; } }

.player-container {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    background: #111;
    position: relative;
}

.player-container iframe,
.player-container video {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

.player-placeholder {
    padding: 40px;
    text-align: center;
}

/* ===== UPCOMING LIST ===== */
.upcoming-section { margin-top: 50px; }

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-row {
    background: var(--dark-gradient);
    border-radius: var(--radius-main);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    color: white;
    min-height: 80px;
    box-shadow: var(--shadow-card);
    transition: 0.3s;
}
.upcoming-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.upcoming-team { flex: 1; display: flex; align-items: center; gap: 20px; }
.upcoming-left { justify-content: flex-end; text-align: right; }
.upcoming-right { justify-content: flex-start; text-align: left; }

.u-logo { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.u-team-name { font-weight: 600; font-size: 16px; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

.upcoming-center {
    width: 150px;
    text-align: center;
    margin: 0 20px;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}
.u-date { font-size: 12px; opacity: 0.8; margin-bottom: 2px; }
.u-time { font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 4px; color: #fff; }
.u-meta { font-size: 11px; opacity: 0.7; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* ===== BUTTONS: SHOW MORE ===== */
.show-more-container {
    text-align: center;
    margin-top: 20px;
}

.show-more-btn {
    background: white;
    border: 2px solid #e91e63;
    color: #e91e63;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.show-more-btn:hover {
    background: #e91e63;
    color: white;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.hidden-match { display: none; }

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 40px 0;
    margin-top: 80px;
    font-size: 14px;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-info a { color: #fff; text-decoration: underline; }

/* ===== ТЕМНАЯ ТЕМА ===== */
body.dark-theme {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-light: #aaa;
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.4);
    --header-bg: linear-gradient(135deg, #2c3e50, #1a252f);
    --footer-bg: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

body.dark-theme .live-row {
    border-color: #333;
}

body.dark-theme .live-extra {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .action-btn {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .action-btn:hover {
    background: #2c3e50;
}

body.dark-theme .motd-slider-wrapper {
    background: #1e1e1e;
}

body.dark-theme .motd-name {
    color: #e0e0e0;
}

body.dark-theme .section-title {
    color: #e0e0e0;
}

body.dark-theme .player-wrapper[data-loaded="false"] .player-placeholder-motd,
body.dark-theme .player-container[data-loaded="false"] .player-placeholder {
    background: linear-gradient(135deg, #2c3e50, #e91e63);
}

body.dark-theme .player-wrapper[data-loaded="false"] .player-placeholder-motd:hover,
body.dark-theme .player-container[data-loaded="false"] .player-placeholder:hover {
    background: linear-gradient(135deg, #e91e63, #2c3e50);
}

body.dark-theme .show-more-btn {
    background: #1e1e1e;
    color: #e91e63;
    border-color: #e91e63;
}

body.dark-theme .show-more-btn:hover {
    background: #e91e63;
    color: #1e1e1e;
}

body.dark-theme .mobile-navigation {
    background: #1e1e1e;
}

body.dark-theme .mobile-nav-links a {
    border-bottom-color: #333;
    color: #e0e0e0;
}

body.dark-theme .mobile-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (Max-width: 850px) - ГОРИЗОНТАЛЬНЫЙ СЛАЙДЕР ДЛЯ MOTD ===== */
@media (max-width: 850px) {
    /* Общие мобильные стили */
    .navigation, .social-links { display: none; }
    .hamburger-menu { display: block; }
    
    .header { padding: 8px 0; }
    .header-container { padding: 0 10px; max-width: none; }
    .logo img { height: 40px; }
    
    .main-content { margin: 15px 0; padding: 0 10px; max-width: none; }
    .section-title { 
        font-size: 20px; 
        margin-bottom: 15px; 
        padding-left: 10px; 
        border-width: 3px; 
    }
    
    /* Кнопка темы на мобильных */
    .theme-toggle {
        margin-left: 0;
        margin-right: 10px;
    }
    
    .mobile-theme-toggle {
        display: block;
    }
    
    /* ===== ИСПРАВЛЕННАЯ ВЕРСИЯ MOTD С ГОРИЗОНТАЛЬНЫМ СКРОЛЛОМ ===== */
    .motd-slider-section { 
        margin-bottom: 20px;
        position: relative;
        overflow: visible;
        width: 100%;
    }
    
    /* Контейнер для горизонтального скролла */
    .motd-slider-wrapper {
        overflow-x: auto; /* Включаем горизонтальный скролл */
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-radius: 12px;
        cursor: grab;
        width: 100%;
        display: flex; /* Ключевое изменение: используем Flexbox */
        padding: 0; /* Убираем внутренние отступы */
    }
    
    .motd-slider-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    /* Контейнер для слайдов */
    .motd-slider {
        display: flex;
        flex-direction: row; /* Слайды в строку */
        width: auto; /* Ширина определяется содержимым */
        min-width: 100%;
        transition: none; /* Убираем трансформацию, так как скролл нативный */
    }
    
    /* КАЖДЫЙ СЛАЙД - фиксированная ширина */
    .motd-slide {
        min-width: calc(100vw - 20px); /* Ширина почти на весь экран */
        max-width: calc(100vw - 20px); /* Ширина почти на весь экран */
        scroll-snap-align: start;
        flex-shrink: 0; /* Не даем слайдам сжиматься */
        padding: 15px 10px; /* Уменьшаем боковые отступы */
        margin-right: 10px; /* Отступ между слайдами */
        box-sizing: border-box;
    }
    
    /* Скрываем кнопки навигации на мобильных */
    .motd-prev-btn, .motd-next-btn { 
        display: none !important;
    }
    
    /* Подсказка для свайпа */
    .motd-slider-section::after {
        content: '← свайп →';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: #e91e63;
        font-weight: 600;
        background: var(--card-bg);
        padding: 4px 12px;
        border-radius: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 5;
    }
    
    /* Структура карточки на мобильных */
    .motd-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%; /* Занимает всю ширину слайда */
    }
    
    .motd-content {
        flex-direction: column;
        gap: 10px;
        flex: 1;
        align-items: stretch; /* Растягиваем элементы по ширине */
        width: 100%;
    }
    
    /* Исправленная структура команд */
    .motd-teams-row {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Команды по краям */
        width: 100%;
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .motd-team-left,
    .motd-team-right {
        flex: 1;
        min-width: 0;
        display: flex;
    }
    
    .motd-team-left {
        justify-content: flex-end;
    }
    
    .motd-team-right {
        justify-content: flex-start;
    }
    
    .motd-team-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1;
    }
    
    .motd-team-left .motd-team-mobile {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    
    .motd-team-right .motd-team-mobile {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .motd-logo {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    
    .motd-name {
        font-size: 15px !important;
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 36px;
    }
    
    .motd-team-left .motd-name {
        text-align: right;
    }
    
    .motd-team-right .motd-name {
        text-align: left;
    }
    
    .motd-vs {
        font-weight: bold;
        color: #e91e63;
        font-size: 16px;
        padding: 0 8px;
        white-space: nowrap;
    }
    
    .motd-badge {
        margin-bottom: 12px;
        width: 100%;
        text-align: center;
    }
    
    /* ИСПРАВЛЕННЫЙ БЛОК ПЛЕЕРА - БЕЗ СМЕЩЕНИЯ */
    .motd-player-area {
        order: 4;
        width: 100% !important; /* Занимает всю ширину родителя */
        margin: 10px 0 0 0 !important; /* Убираем auto, оставляем только верхний отступ */
        border-radius: 10px;
        aspect-ratio: 16/9;
        flex-shrink: 0;
        display: block;
        padding: 0 !important;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .motd-match-title-overlay {
        display: none;
    }
    
    /* Улучшения для ленивой загрузки на мобильных */
    .player-wrapper[data-loaded="false"] .player-placeholder-motd,
    .player-container[data-loaded="false"] .player-placeholder {
        padding: 15px;
        font-size: 14px;
        min-height: 150px;
    }
    
    /* ===== LIVE LIST MOBILE ===== */
    .live-list { gap: 8px; }
    .live-row { 
        flex-wrap: nowrap; 
        justify-content: space-between; 
        padding: 8px 10px; 
        gap: 5px; 
        border-radius: 8px;
        min-height: 50px;
    }
    
    .live-team-left { 
        order: 1; 
        justify-content: flex-start;
        flex-direction: row; 
        text-align: left;
        flex-grow: 0; 
        flex-shrink: 0;
        width: 30%; 
    }
    
    .live-team-right { 
        order: 3; 
        justify-content: flex-end;
        flex-direction: row-reverse; 
        text-align: right;
        flex-grow: 0; 
        flex-shrink: 0;
        width: 30%; 
    }
    .team-logo-small { width: 30px; height: 30px; } 
    .team-name { 
        font-size: 12px; 
        line-height: 1.1; 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis;
        max-width: 70px; 
    } 

    .live-center { 
        order: 2; 
        width: auto; 
        margin: 0 5px; 
        flex-grow: 1; 
        flex-direction: column; 
        align-items: center;
        text-align: center; 
        min-width: 50px;
    } 
    .live-badge { 
        padding: 1px 6px; 
        font-size: 10px; 
        margin-bottom: 2px;
        line-height: 1;
    }
    .live-extra { 
        font-size: 10px; 
        padding: 0; 
        background: none; 
        color: var(--text-light); 
        font-weight: 500;
        margin-top: 0;
        gap: 2px;
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis;
        max-width: 100%; 
    }
    
    .live-actions { 
        order: 4; 
        margin-left: 5px; 
        gap: 5px; 
        align-self: center;
        flex-shrink: 0;
        width: auto;
        display: flex;
        flex-direction: row; 
    }
    .action-btn { 
        width: 30px; 
        height: 30px; 
        border-radius: 6px; 
    }
    
    /* ===== SPOILER MOBILE ===== */
    .spoiler-content { 
        border-radius: 0 0 8px 8px; 
        margin-bottom: 8px; 
        margin-top: -8px; 
    }
    
    .spoiler-content .player-container {
        width: 100%;
        overflow: hidden;
    }
    
    /* ===== КНОПКА "ПОКАЗАТЬ ЕЩЁ" MOBILE ===== */
    .show-more-container { 
        padding: 10px 0; 
        margin-top: 0; 
    }
    .show-more-btn { 
        width: 100%;
        border-radius: 6px; 
        padding: 8px 0;
        font-size: 14px;
        background: var(--card-bg);
        color: #e91e63;
        border: 1px solid #e0e0e0; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    body.dark-theme .show-more-btn {
        border-color: #333;
    }
    
    /* ===== UPCOMING LIST MOBILE ===== */
    .upcoming-section { margin-top: 30px; }
    .upcoming-list { 
        gap: 8px; 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
    }
    
    .upcoming-row { 
        flex-direction: column; 
        height: 180px; 
        padding: 8px; 
        gap: 5px; 
        border-radius: 8px;
        justify-content: space-between; 
    }
    
    .upcoming-center { 
        order: 1; 
        width: 100%; 
        margin: 0;
        background: none; 
        padding: 0;
        text-align: center;
        flex-shrink: 0;
    }
    .u-date { display: none; } 
    .u-time { 
        font-size: 18px; 
        margin-bottom: 0;
        background: rgba(255,255,255,0.15); 
        padding: 4px 8px;
        border-radius: 4px;
        display: inline-block;
        font-weight: 700;
    }
    .u-meta { font-size: 10px; margin-top: 3px; opacity: 0.9; }
    
    .upcoming-left { 
        order: 2; 
        flex: 1; 
        justify-content: flex-start;
        flex-direction: column; 
        text-align: center;
        align-items: center;
        padding-top: 5px; 
    }
    
    .upcoming-right { 
        order: 3; 
        flex: 1; 
        justify-content: flex-end;
        flex-direction: column; 
        text-align: center;
        align-items: center;
        margin-top: auto; 
    }

    .upcoming-team { flex-direction: column; align-items: center; gap: 3px; width: 100%; }
    .upcoming-left, .upcoming-right { flex-grow: 1; flex-basis: 0; } 
    
    .u-logo { width: 30px; height: 30px; } 
    .u-team-name { 
        font-size: 12px; 
        font-weight: 500; 
        line-height: 1.2;
        padding: 0 3px;
    }
    
    /* ===== FOOTER MOBILE ===== */
    .footer { padding: 20px 0; margin-top: 30px; }
    .footer-container { flex-direction: column; text-align: center; gap: 10px; }
}

/* ===== ФИКСЫ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ (360px И НИЖЕ) ===== */
@media (max-width: 360px) {
    .header-container {
        padding: 0 8px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .main-content {
        padding: 0 8px;
    }
    
    .section-title {
        font-size: 18px;
        padding-left: 8px;
        margin-bottom: 12px;
    }
    
    /* ===== МАТЧ ДНЯ - ОПТИМИЗАЦИЯ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ ===== */
    .motd-slider-section {
        margin-bottom: 15px;
    }
    
    .motd-slide {
        min-width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: 12px 8px;
        margin-right: 8px;
    }
    
    .motd-badge {
        margin-bottom: 8px;
    }
    
    .motd-badge span {
        padding: 4px 15px;
        font-size: 13px;
    }
    
    .motd-teams-row {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .motd-team-left,
    .motd-team-right {
        flex: 1;
        min-width: 0;
    }
    
    .motd-team-mobile {
        gap: 6px;
        align-items: center;
    }
    
    .motd-logo {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px;
    }
    
    .motd-name {
        font-size: 13px !important;
        min-height: 32px;
        line-height: 1.2;
    }
    
    .motd-vs {
        font-size: 13px;
        padding: 0 4px;
    }
    
    /* Плеер - во весь блок с небольшими отступами */
    .motd-player-area {
        margin: 8px 0 0 0 !important;
        border-radius: 8px;
    }
    
    .player-wrapper[data-loaded="false"] .player-placeholder-motd {
        font-size: 13px;
        padding: 12px;
        border-radius: 8px;
    }
    
    .motd-slider-section::after {
        font-size: 11px;
        padding: 3px 10px;
        bottom: -20px;
    }
    
    /* ===== LIVE LIST - ОПТИМИЗАЦИЯ ===== */
    .live-list {
        gap: 6px;
    }
    
    .live-row {
        padding: 6px 8px;
        border-radius: 6px;
        min-height: 44px;
        gap: 3px;
    }
    
    .live-team-left,
    .live-team-right {
        width: 28%;
    }
    
    .team-logo-small {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }
    
    .team-name {
        font-size: 11px;
        max-width: 60px;
    }
    
    .live-center {
        min-width: 40px;
        margin: 0 2px;
    }
    
    .live-badge {
        font-size: 9px;
        padding: 2px 6px;
        margin-bottom: 2px;
    }
    
    .live-extra {
        font-size: 9px;
    }
    
    .live-actions {
        gap: 4px;
        margin-left: 3px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        border-radius: 5px;
    }
    
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* ===== UPCOMING LIST - ОДНА КОЛОНКА ===== */
    .upcoming-list {
        grid-template-columns: 1fr !important;
        gap: 6px;
    }
    
    .upcoming-row {
        height: 150px;
        padding: 8px;
        border-radius: 8px;
    }
    
    .upcoming-center {
        margin-bottom: 6px;
    }
    
    .u-time {
        font-size: 16px;
        padding: 4px 8px;
    }
    
    .u-meta {
        font-size: 10px;
        margin-top: 2px;
    }
    
    .u-logo {
        width: 28px;
        height: 28px;
    }
    
    .u-team-name {
        font-size: 11px;
        margin-top: 2px;
    }
    
    /* ===== КНОПКА "ПОКАЗАТЬ ЕЩЁ" ===== */
    .show-more-btn {
        padding: 8px 0;
        font-size: 13px;
        border-radius: 6px;
    }
    
    /* ===== FOOTER ===== */
    .footer {
        padding: 15px 0;
        margin-top: 25px;
        font-size: 12px;
    }
    
    .footer-container {
        padding: 0 10px;
    }
    
    /* ===== МОБИЛЬНОЕ МЕНЮ ===== */
    .mobile-navigation {
        width: 220px;
    }
    
    .mobile-nav-links a {
        padding: 10px 15px;
        font-size: 15px;
    }
    
    .mobile-theme-toggle {
        padding: 12px 15px;
    }
    
    .mobile-theme-toggle button {
        padding: 7px 12px;
        font-size: 14px;
    }
}

/* ===== ФИКСЫ ДЛЯ ЭКРАНОВ 361px - 480px ===== */
@media (min-width: 361px) and (max-width: 480px) {
    .motd-slide {
        min-width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }
    
    .motd-logo {
        width: 40px !important;
        height: 40px !important;
    }
    
    .motd-name {
        font-size: 14px !important;
    }
    
    .motd-vs {
        font-size: 14px;
    }
    
    .live-row {
        padding: 7px 9px;
    }
    
    .team-logo-small {
        width: 28px;
        height: 28px;
    }
    
    .team-name {
        font-size: 12px;
    }
    
    .upcoming-row {
        height: 165px;
    }
}

/* ===== ФИКСЫ ДЛЯ ГОРИЗОНТАЛЬНОЙ ОРИЕНТАЦИИ ===== */
@media (max-height: 500px) and (max-width: 850px) {
    .motd-slider-section {
        margin-bottom: 15px;
    }
    
    .motd-teams-row {
        margin-bottom: 8px;
    }
    
    .motd-player-area {
        margin-top: 8px !important;
    }
    
    .live-row {
        min-height: 40px;
        padding: 5px 8px;
    }
    
    .upcoming-row {
        height: 140px;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЙ CSS ДЛЯ ЛУЧШЕГО СВАЙПА ===== */
@media (max-width: 850px) {
    /* Плавный скролл */
    .motd-slider-wrapper {
        scroll-behavior: smooth;
    }
    
    /* Эффект при активном свайпе */
    .motd-slider-wrapper:active {
        cursor: grabbing;
    }
    
    /* Убираем выделение текста при свайпе */
    .motd-slider-wrapper {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
}

/* ===== АНИМАЦИИ ДЛЯ ЗАГРУЗКИ ПЛЕЕРОВ ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.player-wrapper[data-loaded="false"] .player-placeholder-motd,
.player-container[data-loaded="false"] .player-placeholder {
    animation: pulse 2s infinite;
}

/* ===== LOADING STATES ===== */
.player-loading {
    position: relative;
}

.player-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* В конец файла styles.css добавьте: */

/* ===== ИСПРАВЛЕНИЯ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ (320px и меньше) ===== */
@media (max-width: 320px) {
    .main-content {
        padding: 0 5px;
    }
    
    .section-title {
        font-size: 18px;
        padding-left: 8px;
        margin-bottom: 12px;
    }
    
    /* MOTD слайдер */
    .motd-slide {
        min-width: calc(100vw - 10px);
        max-width: calc(100vw - 10px);
        padding: 10px 5px;
        margin-right: 5px;
    }
    
    .motd-badge span {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .motd-team-mobile {
        gap: 5px;
    }
    
    .motd-logo {
        width: 35px !important;
        height: 35px !important;
    }
    
    .motd-name {
        font-size: 12px !important;
        min-height: 30px;
    }
    
    .motd-vs {
        font-size: 12px;
        padding: 0 3px;
    }
    
    /* LIVE трансляции */
    .live-row {
        padding: 6px 8px;
        min-height: 40px;
        gap: 3px;
    }
    
    .team-logo-small {
        width: 25px;
        height: 25px;
    }
    
    .team-name {
        font-size: 11px;
        max-width: 55px;
    }
    
    .live-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .live-extra {
        font-size: 9px;
    }
    
    .action-btn {
        width: 26px;
        height: 26px;
    }
    
    /* БЛИЖАЙШИЕ трансляции - ФИКС ДЛЯ 20:9 */
    .upcoming-list {
        grid-template-columns: 1fr !important; /* На очень узких экранах одна колонка */
        gap: 6px;
    }
    
    .upcoming-row {
        height: 140px;
        padding: 8px 6px;
        border-radius: 8px;
    }
    
    .u-time {
        font-size: 15px;
        padding: 3px 6px;
    }
    
    .u-meta {
        font-size: 9px;
    }
    
    .u-logo {
        width: 28px;
        height: 28px;
    }
    
    .u-team-name {
        font-size: 11px;
        padding: 0 2px;
    }
    
    /* Кнопки */
    .show-more-btn {
        padding: 8px 0;
        font-size: 13px;
    }
    
    /* Хедер */
    .header-container {
        padding: 0 8px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        margin-left: 5px;
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ ЭКРАНОВ 321px-360px ===== */
@media (min-width: 321px) and (max-width: 360px) {
    .upcoming-list {
        grid-template-columns: 1fr 1fr !important; /* Две колонки для узких экранов */
        gap: 8px;
    }
    
    .upcoming-row {
        height: 200px;
        padding: 8px;
    }
    
    .motd-slide {
        min-width: calc(100vw - 15px);
        max-width: calc(100vw - 15px);
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ ЭКРАНОВ 361px-480px ===== */
@media (min-width: 361px) and (max-width: 480px) {
    .upcoming-list {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
    }
    
    .upcoming-row {
        height: 200px;
    }
}

/* Дополнительные стили для мобильных устройств */
@media (max-width: 850px) {
    .player-placeholder-motd, .player-placeholder {
        -webkit-tap-highlight-color: rgba(74, 144, 226, 0.3);
        tap-highlight-color: rgba(74, 144, 226, 0.3);
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    .motd-slider-wrapper {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Улучшаем зону клика для кнопок действий */
    .action-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Для очень маленьких экранов (320px и меньше) */
@media (max-width: 320px) {
    .upcoming-list {
        grid-template-columns: 1fr !important;
    }
  /* ===== ИСПРАВЛЕНИЯ ДЛЯ БЛОКА "БЛИЖАЙШИЕ ТРАНСЛЯЦИИ" НА МОБИЛЬНЫХ ===== */
@media (max-width: 850px) {
    .upcoming-section { 
        margin-top: 30px; 
    }
    
    .upcoming-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        width: 100%;
    }
    
    .upcoming-row {
        background: var(--dark-gradient);
        border-radius: 10px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        color: white;
        min-height: 200px;
        height: auto;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        transition: transform 0.3s, box-shadow 0.3s;
        position: relative;
        overflow: hidden;
        width: 100%;
    }
    
    .upcoming-row:hover { 
        transform: translateY(-3px); 
        box-shadow: 0 6px 12px rgba(0,0,0,0.3); 
    }
    
    .upcoming-center {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    .u-time {
        font-size: 18px;
        font-weight: 800;
        color: #fff;
        background: rgba(255, 255, 255, 0.15);
        padding: 6px 12px;
        border-radius: 6px;
        display: inline-block;
        margin-bottom: 4px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .u-meta {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.85);
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        padding: 0 5px;
        margin-top: 2px;
    }
    
    .upcoming-left, 
    .upcoming-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    .upcoming-left {
        order: 2;
        margin-bottom: 8px;
    }
    
    .upcoming-right {
        order: 3;
    }
    
    .u-logo {
        width: 36px;
        height: 36px;
        object-fit: contain;
        margin-bottom: 6px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        flex-shrink: 0;
    }
    
    .u-team-name {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
        width: 100%;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
        hyphens: auto;
        padding: 0 2px;
        margin: 0;
    }
    
    /* Убираем дату на мобильных */
    .u-date {
        display: none;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (320px и меньше) ===== */
@media (max-width: 320px) {
    .upcoming-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    
    .upcoming-row {
        min-height: 200px;
        padding: 10px;
        border-radius: 8px;
    }
    
    .u-time {
        font-size: 16px;
        padding: 5px 10px;
    }
    
    .u-meta {
        font-size: 10px;
    }
    
    .u-logo {
        width: 32px;
        height: 32px;
    }
    
    .u-team-name {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-height: 1.1;
    }
}

/* ===== ЭКРАНЫ 321px - 480px ===== */
@media (min-width: 321px) and (max-width: 480px) {
    .upcoming-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .upcoming-row {
        min-height: 165px;
        padding: 12px;
    }
    
    .u-time {
        font-size: 17px;
    }
    
    .u-team-name {
        font-size: 13px;
    }
}

/* ===== ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ (Landscape) для мобильных ===== */
@media (max-width: 850px) and (orientation: landscape) and (max-height: 500px) {
    .upcoming-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .upcoming-row {
        min-height: 140px;
        padding: 10px;
    }
    
    .u-team-name {
        font-size: 12px;
        -webkit-line-clamp: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .u-meta {
        font-size: 10px;
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ УЛЬТРА-УЗКИХ ЭКРАНОВ (20:9 и подобные) ===== */
@media (max-width: 850px) and (max-height: 700px) and (min-aspect-ratio: 2/1) {
    .upcoming-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .upcoming-row {
        min-height: 145px;
    }
    
    .u-team-name {
        -webkit-line-clamp: 1;
        font-size: 12px;
    }
    
    .u-logo {
        width: 30px;
        height: 30px;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ТЕКСТА ===== */
@media (max-width: 850px) {
    /* Убедимся, что текст никогда не выходит за пределы */
    .u-team-name,
    .u-meta {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Добавим фон для лучшей читаемости длинного текста */
    .u-meta {
        background: rgba(0, 0, 0, 0.2);
        padding: 2px 6px;
        border-radius: 4px;
        display: inline-block;
        max-width: 90%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Для очень длинных названий команд */
    .u-team-name.long-text {
        font-size: 12px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Подсказка при наведении на длинный текст */
    .upcoming-row {
        position: relative;
    }
    
    .u-team-name[title] {
        cursor: help;
    }
}

/* ===== АНИМАЦИИ И ЭФФЕКТЫ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upcoming-row {
    animation: fadeInUp 0.3s ease-out;
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ ТЕМНОЙ ТЕМЫ ===== */
body.dark-theme .upcoming-row {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .u-time {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark-theme .u-meta {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
}

/* ===== JavaScript-помощник для обрезки длинного текста ===== */
@media (max-width: 850px) {
    .upcoming-row {
        /* Эти стили будут применены динамически через JS если нужно */
    }
}
/* Дополнительные стили для исправления работы плейсхолдеров на мобильных */
@media (max-width: 850px) {
    .player-placeholder-motd {
        position: relative;
        z-index: 5;
        -webkit-tap-highlight-color: rgba(74, 144, 226, 0.3);
        touch-action: manipulation;
    }
    
    .player-placeholder-motd:active {
        background: linear-gradient(135deg, #357ABD, #e91e63) !important;
        transform: scale(0.98) !important;
    }
    
    /* Улучшаем видимость и доступность плейсхолдера */
    .motd-player-area {
        position: relative;
    }
    
    .player-wrapper {
        position: relative;
        z-index: 2;
    }
    
    /* Убираем конфликты со свайпом */
    .motd-slider-wrapper {
        touch-action: pan-y pinch-zoom;
    }
    
    .motd-slider {
        touch-action: pan-y;
    }
    
    .motd-slide {
        touch-action: pan-y;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
    .player-placeholder-motd {
        font-size: 14px !important;
        padding: 15px 10px !important;
    }
}

/* Индикатор загрузки */
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.player-placeholder-motd.loading {
    animation: pulse 1.5s infinite;
}

.player-placeholder-motd.loading::after {
    content: " ⏳";
}
/* ===== СТРАНИЦА ПОЛНОЭКРАННОГО МАТЧА ===== */
.match-fullscreen-page {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.single-match-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

.match-category-badge {
    margin-bottom: 30px;
}

.match-category-badge span {
    background: var(--primary-gradient);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.match-teams-fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 1200px;
}

.match-team-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.team-logo-fullscreen {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.team-logo-fullscreen:hover {
    transform: scale(1.05);
}

.team-name-fullscreen {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.match-vs-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 120px;
}

.vs-text {
    font-size: 32px;
    font-weight: 900;
    color: #e91e63;
    text-shadow: 0 2px 4px rgba(233, 30, 99, 0.3);
}

.match-status-fullscreen {
    background: var(--primary-gradient);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-status-fullscreen.live {
    background: var(--live-gradient);
}

.match-status-fullscreen.live .live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ffeb3b;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.match-date-fullscreen {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
}

.match-extra-fullscreen {
    color: var(--text-main);
    font-weight: 600;
}

.match-player-fullscreen {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.player-wrapper-fullscreen {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.player-wrapper-fullscreen iframe,
.player-wrapper-fullscreen video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no-player-fullscreen {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 16px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-player-icon {
    font-size: 80px;
    margin-bottom: 20px;
    color: #4A90E2;
}

.no-player-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.countdown {
    font-size: 18px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 10px;
}

.match-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.back-to-home-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.back-to-home-btn {
    background: var(--card-bg);
    color: var(--text-main);
    border: 2px solid var(--primary-gradient);
}

.share-btn {
    background: var(--primary-gradient);
    color: white;
}

.back-to-home-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

.share-btn:hover {
    background: linear-gradient(135deg, #357ABD, #4A90E2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ПОЛНОЭКРАННОГО МАТЧА ===== */
@media (max-width: 850px) {
    .match-fullscreen-page {
        padding: 0 15px;
        margin: 10px auto;
    }
    
    .single-match-fullscreen {
        min-height: calc(100vh - 150px);
        padding: 20px 0;
    }
    
    .match-category-badge {
        margin-bottom: 20px;
    }
    
    .match-category-badge span {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .match-teams-fullscreen {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 20px;
    }
    
    .team-logo-fullscreen {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .team-name-fullscreen {
        font-size: 22px;
    }
    
    .match-vs-fullscreen {
        order: -1;
        flex-direction: row;
        gap: 20px;
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .vs-text {
        font-size: 24px;
    }
    
    .match-status-fullscreen {
        padding: 8px 20px;
        font-size: 16px;
    }
    
    .match-date-fullscreen {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .match-player-fullscreen {
        margin-bottom: 30px;
        border-radius: 12px;
    }
    
    .no-player-fullscreen {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .no-player-icon {
        font-size: 60px;
    }
    
    .no-player-text {
        font-size: 20px;
    }
    
    .countdown {
        font-size: 16px;
        padding: 8px 15px;
    }
    
    .match-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 15px;
    }
    
    .back-to-home-btn,
    .share-btn {
        justify-content: center;
        padding: 15px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .team-logo-fullscreen {
        width: 80px;
        height: 80px;
    }
    
    .team-name-fullscreen {
        font-size: 18px;
    }
    
    .vs-text {
        font-size: 20px;
    }
    
    .match-status-fullscreen {
        font-size: 14px;
        padding: 6px 15px;
    }
    
    .no-player-fullscreen {
        padding: 30px 15px;
        min-height: 250px;
    }
    
    .no-player-icon {
        font-size: 50px;
    }
    
    .no-player-text {
        font-size: 18px;
    }
}

/* ===== ТЕМНАЯ ТЕМА ДЛЯ СТРАНИЦЫ МАТЧА ===== */
body.dark-theme .single-match-fullscreen {
    background: transparent;
}

body.dark-theme .no-player-fullscreen {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

body.dark-theme .back-to-home-btn {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #4A90E2;
}
/* ===== СТРАНИЦА ПОЛНОЭКРАННОГО МАТЧА ===== */
.match-fullscreen-page {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

.single-match-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    width: 100%;
}

.match-category-badge {
    margin-bottom: 30px;
}

.match-category-badge span {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.match-teams-fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.match-team-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.team-logo-fullscreen {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.team-name-fullscreen {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0;
}

.match-vs-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.vs-text {
    font-size: 28px;
    font-weight: 800;
    color: #e91e63;
}

.match-status-fullscreen {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-status-fullscreen.live {
    background: linear-gradient(135deg, #e91e63, #f06292);
}

.match-status-fullscreen.live .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ffeb3b;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.match-date-fullscreen {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

.match-extra-fullscreen {
    color: var(--text-main);
    font-weight: 600;
}

.match-player-fullscreen {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.player-wrapper-fullscreen {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.player-wrapper-fullscreen iframe,
.player-wrapper-fullscreen video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no-player-fullscreen {
    background: #111;
    color: white;
    padding: 50px 30px;
    text-align: center;
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-player-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #4A90E2;
}

.no-player-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.countdown {
    font-size: 16px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
}

.match-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.back-to-home-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.back-to-home-btn {
    background: var(--card-bg);
    color: var(--text-main);
    border-color: #4A90E2;
}

.share-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.back-to-home-btn:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

.share-btn:hover {
    background: linear-gradient(135deg, #357ABD, #4A90E2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 850px) {
    .match-fullscreen-page {
        padding: 0 15px;
        margin: 10px auto;
    }
    
    .single-match-fullscreen {
        padding: 20px 0;
    }
    
    .match-category-badge {
        margin-bottom: 20px;
    }
    
    .match-category-badge span {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .match-teams-fullscreen {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .team-logo-fullscreen {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .team-name-fullscreen {
        font-size: 18px;
    }
    
    .match-vs-fullscreen {
        order: -1;
        flex-direction: row;
        gap: 15px;
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .vs-text {
        font-size: 22px;
    }
    
    .match-status-fullscreen {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .match-date-fullscreen {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .match-player-fullscreen {
        margin-bottom: 30px;
    }
    
    .no-player-fullscreen {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .no-player-icon {
        font-size: 40px;
    }
    
    .no-player-text {
        font-size: 18px;
    }
    
    .countdown {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .match-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 15px;
    }
    
    .back-to-home-btn,
    .share-btn {
        justify-content: center;
        padding: 12px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .team-logo-fullscreen {
        width: 60px;
        height: 60px;
    }
    
    .team-name-fullscreen {
        font-size: 16px;
    }
    
    .vs-text {
        font-size: 20px;
    }
    
    .match-status-fullscreen {
        font-size: 13px;
        padding: 5px 12px;
    }
    
    .no-player-fullscreen {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    .no-player-icon {
        font-size: 35px;
    }
    
    .no-player-text {
        font-size: 16px;
    }
}

/* ===== ТЕМНАЯ ТЕМА ===== */
body.dark-theme .no-player-fullscreen {
    background: #1a1a1a;
}

body.dark-theme .back-to-home-btn {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #4A90E2;
}