#modal-select-channel-record .modal-dialog {
    width: min(560px, calc(100% - 24px));
}

#modal-select-channel-record .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

#modal-select-channel-record .modal-header {
    padding: 18px 22px 12px;
    border-bottom: 0;
    background: #5F9E2E;
}

#modal-select-channel-record .modal-title {
    color: #fff;
}

#modal-select-channel-record .modal-header .close {
    color: #fff;
    opacity: 0.95;
    text-shadow: none;
}

#modal-select-channel-record .modal-body {
    padding: 20px 22px;
    background: #f6f8fb;
}

#modal-select-channel-record .record-modal-intro {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #5b6773;
}

#modal-select-channel-record .channel-btns-m {
    display: grid;
    gap: 12px;
}

#modal-select-channel-record .record-version-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    text-align: left;
    border: 1px solid #dfe6ee;
    border-radius: 14px;
    background: #fff;
    color: #24313d;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

#modal-select-channel-record .record-version-card:hover,
#modal-select-channel-record .record-version-card:focus {
    border-color: #79C142;
    box-shadow: 0 10px 24px rgba(121, 193, 66, 0.18);
    transform: translateY(-1px);
}

#modal-select-channel-record .record-version-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

#modal-select-channel-record .record-version-note {
    display: block;
    font-size: 13px;
    color: #6c7782;
}

#modal-select-channel-record .modal-footer {
    padding: 14px 22px 20px;
    border-top: 1px solid #e3e9f0;
    background: #f6f8fb;
}

@media only screen and (max-width: 767px) {
    #modal-select-channel-record .modal-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
    }
}

img.center-block{
    width: 100%;
}

.timeslot-channels-progs .record_btn{
    padding: 3px 5px !important;
    font-size: 12px !important;
}

.channel-btns-m .btn_record_selected_channel {
    margin-right: 4px;
    margin-left: 4px;
}

.cats-upper{
    padding: 13px 20px;
}

.cats-upper a{
    font-size: 16px;
}

.page-title-con{
    margin-bottom: 20px;
    margin-left: 25px;
}
.page-title-con span{
    font-size: 18px;
    font-family: 'Montserrat';
    font-weight: 400;
    display: inline-block;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    background: #79C142;
    color: #fff;
    border-radius: 3px 3px 0 0;
}
.header-section{
    background: #f5f5f5;
    padding: 13px 25px;
}

.prog_filter select{
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
}

.prog_filter select:hover{
    color: #63A235;
}

.prog_filter select option { color: #555; }

.prog_filter .filter-separator{
    display: inline-block;margin: 0 0 0 13px;
}

.prog_filter .btn_submit{
    margin: 0 20px;
    padding: 7px 25px;
    border: none !important;
    font-size: 17px;
    font-weight: 500;
    border-radius: 0;
}

#prog_table{
    background: #f5f5f5;
}

#prog_table .head-timeslots{
    position: relative;border: 1px solid #ddd;font-weight: 700;font-size: 18px;
    border-bottom-color: #b5b5b5;
    font-size: 0;
    -webkit-box-shadow: 0px 1px 4px #b5b5b5;
    -moz-box-shadow: 0px 1px 4px #b5b5b5;
    box-shadow: 0px 1px 4px #b5b5b5;
}

#prog_table .head-timeslots .timeslot-btn{
    top: 15px;
    padding: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 0;
    border-radius: 100%;
    opacity: 0.93;
    z-index: 100;
}

#prog_table .time-slot{
    /*width: 19.5%;*/
    width: calc(25% - 62.5px);
    display: inline-block;text-align: center;border-right: 1px solid #ccc;font-size: 18px;padding: 5px 0;
}

#prog_table .time-slot:last-child{
    border-right: 0;
}

#prog_table .channel-column{
    /*width: 22%;*/
    width: 250px;
}

#prog_table .timeslot-channels-progs .channel-column{
    border-right: 1px solid #ccc;
    height: 67px;
    line-height: 67px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

#prog_table .timeslot-channels-progs .channel-program-con{
    border-bottom: 1px solid #ccc;
}

#prog_table .timeslot-channels-progs .channel-program-con:last-child{
    border-bottom: 0;
}

#prog_table .timeslot-channels-progs .channels-prog-con{
    display: inline-block;
    height: 67px;
    overflow: hidden;
    /*width: 78%;*/
    width: calc(100% - 250px);
}

#prog_table .timeslot-channels-progs{
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-size: 0;
}

#prog_table .timeslot-channels-progs .program{
    font-size: 15px;
    display: inline-block;
    border: 1px solid #ddd;
    background: white;
    border-radius: 3px;
    margin: 2px 0;
    padding: 8px 10px;
    cursor: pointer;
    overflow: hidden;
}

#prog_table .timeslot-channels-progs .program span{
    height: 22.4px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#prog_table .timeslot-channels-progs .program.entertainment {
    background-color: #B0C4DE;
}

#prog_table .timeslot-channels-progs .program.news {
    background-color: #A9A9A9;
}

#prog_table .timeslot-channels-progs .program.family {
    background-color: #BDB76B;
}

#prog_table .timeslot-channels-progs .program.sports {
    background-color: #ADD8E6;
}

#prog_table .timeslot-channels-progs .program.movies {
    background-color: #8FBC8F;
}

.channel-program-con .watch-now-btn{
    padding: 3px 7px;
    position: absolute;
    right: 7px;
    top: 24px;
}

@media only screen and (max-width: 700px) {
    #prog_table .time-slot{
        font-size: 15px;
    }

    #prog_table .timeslot-channels-progs .channel-column img{
        display: none;
    }

    #prog_table .timeslot-channels-progs .channel-column{
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .prog_details_content img{
        float: none !important;
        display: table;
        margin: auto !important;
    }

    .channel-program-con .channel_sched_link{
        display: block;
        margin-top: -15px;
    }

    .channel-program-con .watch-now-btn{
        padding: 3px 7px;
        position: unset;
        margin-top: -89px;
    }
}

.tbl-program{
    margin-bottom: 0;
    padding: 0 !important;
    min-height: 53px;
    background: transparent !important;
    border: none;
    border-collapse: collapse;
    border-spacing: 0;
}

.tbl-program td{
    border-top: none !important;
    border-bottom: none !important;
}
#channelModal .prog_name{
    font-size: 20px;
    font-weight: 600;
}

#channelModal .modal-dialog {
    width: min(920px, calc(100% - 30px));
}

#channelModal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

#channelModal .modal-header {
    padding: 18px 22px 10px;
    border-bottom: 0;
    background: linear-gradient(135deg, #6eaf37 0%, #5F9E2E 55%, #4f8526 100%);
}

#channelModal .modal-header .modal-title{
    color: #fff;
}

#channelModal .modal-header .close {
    color: #fff;
    opacity: 0.95;
    text-shadow: none;
}

#channelModal .modal-body {
    padding: 0;
    background: #f4f7fb;
}

.program-modal-layout {
    display: flex;
    flex-wrap: wrap;
}

.program-modal-media {
    width: 32%;
    min-width: 220px;
    background: #e8f6ec;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.program-modal-media img {
    width: 100%;
    max-width: 260px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    background: #fff;
}

.program-modal-media.is-empty {
    display: none;
}

.program-modal-content {
    flex: 1;
    min-width: 280px;
    padding: 24px 24px 20px;
}

.program-modal-title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    color: #1d2733;
}

.program-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.program-modal-time,
.program-modal-category {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.program-modal-time {
    background: #e8f6ec;
    color: #25743b;
}

.program-modal-category {
    background: #eaf2fb;
    color: #2c5583;
    text-transform: capitalize;
}

.program-modal-description {
    font-size: 15px;
    line-height: 1.7;
    color: #465463;
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    max-height: 280px;
    overflow-y: auto;
}

.program-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.program-modal-actions .btn {
    margin: 0;
}

#channelModal .modal-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid #e4ebf3;
    background: #f4f7fb;
}

@media only screen and (max-width: 767px) {
    #channelModal .modal-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    .program-modal-media,
    .program-modal-content {
        width: 100%;
        min-width: 100%;
    }

    .program-modal-media {
        padding-bottom: 0;
    }

    .program-modal-title {
        font-size: 22px;
    }

    .program-modal-description {
        max-height: none;
    }

    .program-modal-actions .btn {
        width: 100%;
    }
}


.timezone-display{
    display: inline-block;
    max-width: 100%;
    /*margin-bottom: 5px;*/
    font-weight: normal;
}

.channel-btns-m a{
    margin-right: 10px;
}

.channel-btns-m a:last-child{
    margin-right: 0px;
}

@media only screen and (max-width: 588px) {
    .btn-header a{
    float: left;
    }

    #full_schedule .btn-header{
    display: table;
    }
}

@media only screen and (max-width: 688px) {
    #channelList thead{
    font-size: 15px;
    /*position: fixed;*/
    }

    #channelList thead a{
    font-size: 17px;
    margin-left: 5px;
    }

    #channelList thead .prev_btns, #channelList thead .next_btns{
    display: table;
    margin: auto;
    }

    #channelList .watch-now-btn{
    font-size: 13px;
    padding: 5px 8px;   
    }

    #prog_table{
    /*overflow: scroll;*/
    }
}

@media only screen and (max-width: 1269px) {
    #prog_table .time-slot{
        width: 19.5%;
    }

    #prog_table .channel-column{
        width: 22%;
    }

    #prog_table .timeslot-channels-progs .channels-prog-con{
        width: 78%;
    }
}

@media only screen and (max-width: 1303px) {
    .header-section{
        text-align: center;
        padding: 13px 43px;
    }

    /*.prog_filter .filter-separator{
        display: none;
    }*/

    .timezone-display{
        margin-top: 10px;
    }
}

@media only screen and (max-width: 817px) {
    .header-section{
        padding: 13px 25px;
    }

    .prog_filter .filter-separator{
        display: none;
    }

    .prog_filter .form-group, .prog_filter .form-group select {
        width: 100%;
        margin-bottom: 5px;
    }

    .prog_filter .form-group, .prog_filter .form-group input {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 15px;
    }

    .prog_filter .btn_submit{
        width: 100%;
        margin: 0;
    }
}