/*
Theme Name: LGAKI TV
Description: Студенческий телеканал по макету
Version: 1.0
*/
* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #222;
    background: #f7f8fa
}

img {
    max-width: 100%;
    height: auto
}

.lgk-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

/* Верхняя панель */
.site-top {
    background: linear-gradient(90deg, #0a2f63 0%, #155091 55%, #8fc0dc 100%);
    color: #fff;
    padding: 16px 0
}

.site-top .lgk-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none
}

.site-logo img {
    height: 100%;
    width: auto
}

.site-logo b {
    font-size: 26px;
    letter-spacing: 2px
}

.site-logo small {
    display: block;
    font-size: 10px;
    line-height: 1.4;
    opacity: .9
}

.site-contacts {
    font-size: 13px;
    line-height: 1.55;
    margin-left: auto;
}

.site-social {
    margin-left: auto;
}

.site-social a {
    display: inline-block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px
}
.site-social img {
width: 100%;
    height: 50px;
}

/* Меню */
.site-nav {
    background: #2b56a5
}

.site-nav .lgk-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0
}

.nav-list li a {
    display: block;
    padding: 15px 24px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .6px;
    border-right: 1px solid rgba(255, 255, 255, .18)
}

.nav-list li a:hover {
    background: #1d458d
}

.nav-list li.current-menu-item a {
    background: #38b0e3
}

.site-nav form {
    margin-left: auto;
    padding: 8px 12px
}

.site-nav input[type=search] {
    border: 0;
    padding: 9px 14px;
    min-width: 220px;
    border-radius: 2px
}

/* Контент */
.site-content {
    padding: 34px 0 50px
}

/* Заголовки страниц — по центру */
.site-content h1 {
    text-align: center;
}

.lgk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.lgk-card {
    display: block;
    background: #e9e9e9;
    color: #333;
    text-decoration: none
}

.lgk-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block
}

.lgk-card h3 {
    margin: 0;
    padding: 10px 12px;
    font-size: 15px
}

.lgk-nothumb {
    padding-bottom: 56.25%;
    background: #b9b9bf
}

.lgaki-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 0 0 1.2em
}

.lgaki-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0
}

body {
    overflow-x: hidden
}

/* ===== ПРОГРАММЫ ===== */
.lgk-programs {
    background: #57575c;
    color: #fff;
    padding: 1px 0 30px 0;
    margin: 30px 0;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw
}

.lgk-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 40px);
    margin: 0 auto;
    padding: 0 20px
}

.lgk-carousel.lgk-static {
    padding: 0 20px
}

.lgk-static .lgk-half {
    display: flex;
    width: 100%;
    justify-content: center
}

.lgk-track-wrap {
    flex: 1;
    overflow: hidden
}

.lgk-track {
    display: flex;
    transition: transform .45s ease;
    will-change: transform
}

.lgk-half {
    display: flex;
    flex: none
}

.lgk-prog {
    flex: none;
    width: calc((100vw - 232px)/4);
    margin-right: 16px;
    position: relative;
    /* плашка позиционируется внутри карточки */
    overflow: hidden;
    /* всё держим в кадре обложки */
    background: transparent;
    color: #fff;
    text-decoration: none;
    display: block;
    transition: transform .2s;
}

.lgk-prog:hover {
    transform: translateY(-4px)
}

.lgk-prog img,
.lgk-prog .lgk-nothumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #0a2f63
}

/* Плашка ПОВЕРХ обложки, градиент растворяется вверх — границ не видно */
.lgk-prog-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 44px 14px 12px;
    /* высокий «фейд» сверху */
    text-align: left;
    background: linear-gradient(180deg, rgb(6 20 40 / 0%) 0%, rgb(6 20 40 / 67%) 50%, rgb(6 20 40 / 88%) 100%);
}

.lgk-prog-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55)
}

.lgk-prog-count {
    color: #7fd4f7;
    font-size: 14px;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
    transition: max-height .25s ease, opacity .25s ease, margin-top .25s ease;
}

.lgk-prog:hover .lgk-prog-count,
.lgk-prog:focus .lgk-prog-count {
    max-height: 22px;
    opacity: 1;
    margin-top: 2px
}

/* Стрелки */
.lgk-arrow {
    background: #17335f;
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s
}

.lgk-arrow:hover {
    background: #38b0e3
}
/* Мобильная версия: тот же слайдер, по две рубрики в кадре */
@media(max-width:900px) {
    .lgk-carousel {
        padding: 0 10px;
        gap: 6px
    }

    .lgk-arrow {
        width: 28px;
        height: 28px;
        font-size: 15px
    }

    /* две карточки в кадре + страховка от расползания */
    .lgk-prog {
        width: calc((100vw - 98px)/2);
        max-width: 48vw;
        margin-right: 10px
    }

    .lgk-prog img,
    .lgk-prog .lgk-nothumb {
        aspect-ratio: 16/9;
        max-height: 40vw
    }

    .lgk-prog-body {
        padding: 26px 10px 8px
    }

    .lgk-prog-name {
        font-size: 13px
    }

    .lgk-prog-count {
        font-size: 11px
    }

    /* если рубрик ≤4 и слайдер не строится — аккуратные пары с переносом */
    .lgk-static .lgk-half {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center
    }

    .lgk-static .lgk-prog {
        margin-right: 0
    }
}
/* ===== Страница «Программы»: крупные блоки по 3 в ряд, без серого фона ===== */
.lgk-programs-page {
    background: transparent;
    padding: 10px 0 40px
}

.lgk-progs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* ровно 3 рубрики на линии */
    gap: 24px;
    padding: 0 20px;
    text-align: left;
}

.lgk-progs-grid .lgk-prog {
    width: auto;
    margin-right: 0
}

@media(max-width:900px) {
    .lgk-progs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 12px
    }
}

@media(max-width:560px) {
    .lgk-progs-grid {
        grid-template-columns: 1fr
    }
}

/* Подвал */
.site-footer {
    background: #06263c;
    color: #c9d4e0;
    padding: 16px 0;
    font-size: 12px
}

.site-footer .lgk-wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center
}

.footer-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0
}

.footer-list li a {
    color: #c9d4e0;
    text-decoration: none;
    margin-left: 22px;
    text-transform: uppercase
}

.footer-list li a:hover {
    color: #fff
}

@media(max-width:900px) {
    .lgk-grid {
        grid-template-columns: 1fr 1fr
    }

    .site-nav form {
        margin-left: 0;
        width: 100%
    }
}