 

/*карточка каналов*/
.tvp-page {
    padding: 0 20px 30px;
}

.tvp-list {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: start;
}

.tv-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;

    min-height: 235px;
    padding: 18px 14px 14px;

    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);

    transition: .2s ease;
}

.tv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.tv-card__logo {
    width: 100%;
    height: 95px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.tv-card__logo img {
    display: block;
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
}

.tv-card__body {
    margin-top: 16px;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.tv-card__title {
    min-height: 48px;
    font-size: 14px;
    line-height: 1.1;
    color: #222;
    font-family: SemiBold;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-card__country {
    /*margin-top: 3px;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;
    padding: 0 10px;
    border-radius: 4px;

    background: #c7ccd3;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-family: SemiBold;

    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tvp-nav {
    margin-top: 30px;
}

.tvp-description {
    margin-top: 30px;
    font-size: 15px;
    line-height: 1.6;
}
.tv-card__logo {
    height: 95px;
}

.tv-card__logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* ВАЖНО */
}
@media (max-width: 1199px) {
    .tvp-list {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    .tvp-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .tv-card {
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    .tvp-page {
        padding: 0 15px 25px;
    }

    .tvp-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .tv-card {
        min-height: 210px;
        padding: 14px 10px 12px;
    }

    .tv-card__logo {
        height: 85px;
    }

    .tv-card__title {
        font-size: 13px;
        min-height: 42px;
    }
}

@media (max-width: 480px) {
    .tvp-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tv-card__country {
        font-size: 11px;
        padding: 0 8px;
    }
}
/*карточка каналов*/

/*пагинация*/
 
.pager-wrap {
    margin-top: 38px;
    display: flex;
    justify-content: center;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* обычные страницы */
.pager li a {
    font-size: 16px;
    color: #000;
    text-decoration: none;
}

/* активная страница */
.pager li span {
    position: relative;
    z-index: 1;
    font-family: Bold;
    color: #fff;
}

/* круг под активной */
.pager li span::before {
    content: "";
    width: 35px;
    height: 35px;
    position: absolute;

    background: linear-gradient(180deg, #1480d9 0, #5887ae 99.79%);
    border-radius: 50%;

    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* стрелки как круг */
.pager li a[href*="‹"],
.pager li a[href*="›"] {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;

    border-radius: 50%;
    background: #f0f3f6;
    color: #000;

    transition: .2s ease;
}

/* hover стрелок */
.pager li a[href*="‹"]:hover,
.pager li a[href*="›"]:hover {
    background: linear-gradient(180deg, #1480d9 0, #5887ae 99.79%);
    color: #fff;
}

.pager-arrow {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;

    border-radius: 50%;
    background: #f0f3f6;
    color: #000;

    transition: .2s ease;
}

.pager-arrow:hover {
    background: linear-gradient(180deg, #1480d9 0, #5887ae 99.79%);
    color: #fff;
}
/*пагинация*/

/*полная страница канала*/

.tv-channel-page {
    padding: 0 20px 30px;
}

.tv-channel-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tv-channel-logo {
    width: 140px;
    height: 100px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tv-channel-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.tv-channel-meta {
    min-width: 0;
}

.tv-channel-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 36px;
    font-family: SemiBold;
    color: #000;
}

.tv-channel-country {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    line-height: 18px;
    color: #666;
}

.tv-channel-country a {
    color: #1c548b;
}

.tv-channel-flag {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.channel-description {
    margin: 0 0 30px;
    font-size: 15px;
    line-height: 1.65;
    color: #000;
}

.channel-description p:last-child {
    margin-bottom: 0;
}

.tv-program {
    margin-top: 25px;
}

.tv-program-title {
    font-size: 24px;
    line-height: 30px;
    font-family: SemiBold;
    color: #000;
    position: relative;
    margin-bottom: 20px;
}

.tv-program-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin-top: 8px;
    border-radius: 90px;
    background: #1480d9;
}

.tv-program-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tv-program-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 767px) {
    .tv-channel-page {
        padding: 0 15px 25px;
    }

    .tv-channel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tv-channel-logo {
        width: 120px;
        height: 90px;
    }

    .tv-channel-title {
        font-size: 24px;
        line-height: 30px;
    }
}

/*(скрытие)*/
.channel-description {
    position: relative;
    margin-bottom: 30px;
}

/* скрываем часть текста */
.channel-description__text {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

/* градиент снизу */
.channel-description__text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;

    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

/* кнопка */
.channel-description__more {
    margin-top: 10px;
    background: none;
    border: none;
    color: #1480d9;
    cursor: pointer;
    font-size: 14px;
}

/* открыто */
.channel-description.open .channel-description__text {
    max-height: none;
}

.channel-description.open .channel-description__text::after {
    display: none;
}


/*передачи список*/
.tv-program-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tv-program-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;

    padding: 14px;
    background: #fff;
    border: 1px solid #dfe5ea;
    border-radius: 6px;

    transition: .2s ease;
    cursor: pointer;
}

.tv-program-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.tv-program-item.is-now {
    border-color: #1480d9;
    box-shadow: 0 0 0 1px rgba(20,128,217,.08);
}

.tv-program-item__poster {
    width: 170px;
    min-width: 170px;
}

.tv-program-poster {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f5f7;
}

.tv-program-item__content {
    flex: 1;
    min-width: 0;
}

.tv-program-item__time {
    font-size: 13px;
    line-height: 16px;
    color: #1480d9;
    font-family: SemiBold;
    margin-bottom: 6px;
}

.tv-program-item__title {
    font-size: 18px;
    line-height: 22px;
    color: #000;
    font-family: SemiBold;
}

.tv-program-item__sub-title {
    margin-top: 6px;
    font-size: 14px;
    line-height: 18px;
    color: #666;
}

.program-cats {
    margin-top: 8px;
    font-size: 13px;
    line-height: 16px;
    color: #777;
}

.tv-program-item__actions {
    margin-top: 12px;
}

/* если кнопка watch внутри */
.tv-program-item__actions a,
.tv-program-item__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #1480d9 0, #5887ae 99.79%);
    color: #fff;
    font-size: 14px;
    font-family: SemiBold;
    text-decoration: none;
    cursor: pointer;
}

/* модалка */
.tv-program-modal[hidden] {
    display: none !important;
}

.tv-program-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.tv-program-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.tv-program-modal__dialog {
    position: relative;
    width: calc(100% - 30px);
    max-width: 760px;
    margin: 60px auto 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    overflow: hidden;
    z-index: 1;
}

.tv-program-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f4f7;
    color: #000;
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
}

.tv-program-modal__body {
    padding: 24px;
}

.tv-program-modal__loading {
    font-size: 15px;
    color: #666;
}

/* мобила */
@media (max-width: 767px) {
    .tv-program-item {
        flex-direction: column;
    }

    .tv-program-item__poster {
        width: 100%;
        min-width: 0;
    }

    .tv-program-poster {
        height: 180px;
    }

    .tv-program-item__title {
        font-size: 16px;
        line-height: 20px;
    }

    .tv-program-modal__dialog {
        margin-top: 20px;
    }

    .tv-program-modal__body {
        padding: 18px;
    }
}


.tv-program-inline {
    padding: 18px 0 6px;
}

.tv-program-inline__content {
    width: 100%;
}

.tv-program-inline__desc {
    font-size: 15px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 12px;
}

.tv-program-inline__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tv-program-inline__link,
.tv-program-inline__trailer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: SemiBold;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

/* More info */
.tv-program-inline__link {
    background: #f1f4f7;
    color: #000;
    border: 1px solid #d9e0e6;
}

.tv-program-inline__link:hover {
    background: #e7edf3;
    color: #000;
}

/* Trailer */
.tv-program-inline__trailer-btn {
    border: none;
    background: linear-gradient(180deg, #1480d9 0, #5887ae 99.79%);
    color: #fff;
}

.tv-program-inline__trailer-btn:hover {
    opacity: .92;
}

.tv-program-inline__trailer-btn.is-active {
    box-shadow: 0 0 0 2px rgba(20,128,217,.15);
}

/* блок трейлера */
.tv-program-inline__trailer {
    margin-top: 10px;
}

.tv-program-inline__trailer-box {
    width: 100%;
    max-width: 100%; /* убираем ограничение */

    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.tv-program-inline__trailer-box iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}


/*ДНИ*/
.tv-program-days a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;
    padding: 0 14px;

    border-radius: 6px;
    background: #f1f4f7;
    color: #000;
    font-size: 14px;

    text-decoration: none;
    transition: .2s ease;
}

.tv-program-days a:hover {
    background: #1480d9;
    color: #fff;
}

.tv-program-days a.active {
    background: linear-gradient(180deg, #1480d9 0, #5887ae 99.79%);
    color: #fff;
}

.tv-program-days {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tv-days-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 36px;
    padding: 0 16px;

    border-radius: 6px;
    background: #f1f4f7;
    color: #000;
    font-size: 14px;

    text-decoration: none;
    transition: .2s ease;
}

.tv-days-item.is-active {
    background: linear-gradient(180deg, #1480d9 0, #5887ae 99.79%);
    color: #fff !important;
    font-family: SemiBold;
}




/*full story*/

 /* ===== FULL STORY TV PROGRAM / NEW ===== */

.content_list {
    padding: 0 20px !important;
    box-sizing: border-box;
}

.tvpost-schedule {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.tvpost-schedule__item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 8px 10px !important;
    border: 1px solid #dfe5ea !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.tvpost-schedule__item--now {
    border-color: #1480d9 !important;
    box-shadow: 0 0 0 1px rgba(20,128,217,.08) !important;
}

.tvpost-schedule__poster {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;

    display: block !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background: #f3f5f7 !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.tvpost-schedule__img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border: 0 !important;
}

.tvpost-schedule__content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-top: 2px !important;
}

.tvpost-schedule__time {
    margin: 0 0 3px 0 !important;
    font-size: 13px !important;
    line-height: 15px !important;
    color: #1480d9 !important;
    font-family: SemiBold !important;
}

.tvpost-schedule__title {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 18px !important;
    color: #000 !important;
    font-family: SemiBold !important;
}

.tvpost-schedule__subtitle {
    margin: 3px 0 0 0 !important;
    font-size: 13px !important;
    line-height: 16px !important;
    color: #666 !important;
}

.tvpost-schedule__actions {
    margin-top: 6px !important;
}

.tvpost-schedule__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: linear-gradient(180deg, #1480d9 0, #5887ae 99.79%) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-family: SemiBold !important;
    text-decoration: none !important;
}

.tvpost-schedule__more {
    margin-top: 10px !important;
    text-align: center !important;
}

.tvpost-schedule__more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    border: 1px solid #d9e0e6 !important;
    border-radius: 8px !important;
    background: #f5f7fa !important;
    color: #000 !important;
    font-size: 14px !important;
    font-family: SemiBold !important;
    cursor: pointer !important;
}

@media (max-width: 767px) {
    .content_list {
        padding: 0 15px !important;
    }

    .tvpost-schedule__item {
        gap: 10px !important;
        padding: 8px !important;
    }

    .tvpost-schedule__poster {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
    }

    .tvpost-schedule__title {
        font-size: 13px !important;
        line-height: 17px !important;
    }

    .tvpost-schedule__subtitle {
        font-size: 12px !important;
        line-height: 15px !important;
    }
}

.tvpost-schedule__more-btn {
    transition: .2s ease;
}

.tvpost-schedule__more-btn.is-loading {
    opacity: .7;
    cursor: default;
}

.tvpost-schedule__item--enter {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.tvpost-schedule__item--enter.is-visible {
    opacity: 1;
    transform: translateY(0);
}



.tvpost-schedule__item {
    cursor: pointer;
}

.tvpost-schedule__item--open {
    border-color: #1480d9;
}

.tvpost-inline-wrap {
    margin-top: -2px;
    margin-bottom: 6px;
}

.tvpost-inline {
    padding: 12px 14px 14px;
   /* border: 1px solid #dfe5ea;*/
    border-top: 0;
   /* border-radius: 0 0 6px 6px;*/
    background: #fff;
}

.tvpost-inline--loading,
.tvpost-inline--error {
    font-size: 14px;
    color: #666;
}

.tvpost-inline__desc {
    font-size: 14px;
    line-height: 1.65;
    color: #000;
}

.tvpost-inline__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tvpost-inline__link,
.tvpost-inline__trailer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-family: SemiBold;
    text-decoration: none;
    cursor: pointer;
}

.tvpost-inline__link {
    background: #f1f4f7;
    color: #000;
    border: 1px solid #d9e0e6;
}

.tvpost-inline__trailer-btn {
    border: 0;
    background: linear-gradient(180deg, #1480d9 0, #5887ae 99.79%);
    color: #fff;
}

.tvpost-inline__trailer {
    margin-top: 12px;
}

.tvpost-inline__trailer-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.tvpost-inline__trailer-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}