/**
 * common.css - Общие стили для всех страниц сайта
 * Извлечено из inline стилей для улучшения кэширования и поддержки
 */

/* ====== STICKY FOOTER ====== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
}

main {
    flex: 1;
}

footer {
    flex-shrink: 0;
}

/* ====== МОБИЛЬНОЕ МЕНЮ ====== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: black;
    border-top: 2px solid blue;
    z-index: 40;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.mobile-menu a:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

/* ====== КАРТОЧКИ ИГРОКОВ ====== */
.player-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.15);
}

.player-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

@media (min-width: 768px) {
    .player-image-container {
        height: 260px;
    }
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.player-card:hover .player-image {
    transform: scale(1.05);
}

/* ====== МЕДИА КАРТОЧКИ ====== */
.media-card {
    transition: all 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.play-button {
    transition: all 0.3s ease;
}

.media-card:hover .play-button {
    transform: scale(1.1);
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
}

.photo-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.gallery-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
    height: 0;
}

.video-thumbnail iframe,
.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== НОВОСТИ КАРТОЧКИ ====== */
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover::before {
    opacity: 1;
}

.main-news-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308);
    z-index: 1;
}

.main-news-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

/* ====== ТАБЛИЦА НА МОБИЛЬНЫХ ====== */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .table-container table {
        min-width: 600px;
    }
}

/* ====== НЕДЕЛЬНЫЙ КАЛЕНДАРЬ ====== */
.match-day {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    color: white !important;
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    position: relative;
    transition: all 0.3s ease;
}

.match-day:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
    z-index: 20;
}

/* ====== АДАПТИВНЫЕ КНОПКИ ====== */
.lineup-button-mobile {
    display: block;
    margin-bottom: 1rem;
}

.lineup-button-desktop {
    display: none;
}

@media (min-width: 640px) {
    .lineup-button-mobile {
        display: none;
    }
    
    .lineup-button-desktop {
        display: block;
    }
}

/* ====== YOUTUBE PLAYER ====== */
#featured-video-iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

@media (max-width: 768px) {
    #featured-video-iframe {
        min-height: 200px;
    }
}
