/*------------ Collections on Collection ----------------*/
#collectionShows {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
    width: 100%;
}

.collectionItem {
    flex: 0 1 calc(25% - 30px); /* 4 items per row (25% each) with margin adjustment */
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 400px;
    margin: 15px; /* Increased margin */
}

.collectionItem:hover {
    border-color: yellow;
}

a:hover {
    text-decoration: unset;
}

#publisher .attributeItem {
    text-decoration: none !important; /* Ensure no text decoration on links inside collectionItem */
    color: inherit !important; /* Ensure link color is inherited */
}

#publisher .attributeItem:hover
{
    text-decoration: none !important;
    color: inherit !important; 
}
#publisher .attributeItem:focus
{
    text-decoration: none !important; 
    color: inherit !important; 
}
#publisher .attributeItem:active {
    text-decoration: none !important; 
    color: inherit !important; 
}

.collectionItem span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collectionItem img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.collectionShowsText {
    color: #fff !important;
    text-decoration: none !important;
    margin-left: 15px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .collectionItem {
        flex: 0 1 calc(33.33% - 60px); /* Adjusted calculation */
    }
}

@media (max-width: 900px) {
    .collectionItem {
        flex: 0 1 calc(50% - 60px);
        width: 315px;
        max-width: 315px;
    }
}

@media (max-width: 600px) {
    .collectionItem {
        flex: 0 1 calc(33.33% - 60px); /* 3 items per row */
        width: 180px;
        max-width: 180px;
    }
}

.contentContainer {
    position: relative;
    z-index: 5;
}

.publisherTabs {
    margin-top: -34%;
    position: relative;
    z-index: 10;
}

/* Adjust tabs when video player is active */
.testingContainer.video-active .publisherTabs {
    margin-top: 3% !important;
}

/* Responsive video-active tabs for smaller screens */
@media (min-width: 1600px) and (max-width: 1919px) {
    .testingContainer.video-active .publisherTabs {
        margin-top: 8% !important;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .testingContainer.video-active .publisherTabs {
        margin-top: 12% !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .testingContainer.video-active .publisherTabs {
        margin-top: 18% !important;
    }
}

@media (min-width: 481px) and (max-width: 1199px) {
    .testingContainer.video-active .publisherTabs {
        margin-top: 45% !important;
    }
}

@media (max-width: 991px) {
    .testingContainer.video-active .publisherTabs {
        margin-top: 15% !important;
    }
}

/* Desktop responsive breakpoints - ensure tabs stay below favorites button */
@media (min-width: 1600px) and (max-width: 1919px) {
    .publisherTabs {
        margin-top: -405px !important;
    }
}


@media (min-width: 1400px) and (max-width: 1599px) {
    .publisherTabs {
        margin-top: -240px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .publisherTabs {
        margin-top: -200px !important;
    }
}

/* Fix overlap around 511px - small desktop/tablet range */
@media (min-width: 481px) and (max-width: 1199px) {
    .publisherTabs {
        margin-top: 131px !important;
    }
}

/* Mobile devices - iPhone SE, Pixel 7, and similar devices */
@media (max-width: 480px) {
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    #publisher {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .publisher-header-content {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .publisher-logo {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }
    
    .publisher-text-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .posterImageContainer {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .publisher-poster-image {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .publisher-details {
        padding-top: calc(135px + (480px - 100vw) * 0.3) !important;
    }
    
    .publisherTabs {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        white-space: nowrap !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    
    .publisherTabs::-webkit-scrollbar {
        display: none !important;
    }
    
    .publisherTab {
        flex: 0 0 auto !important;
        min-width: 120px !important;
    }
}

/* Tablet and larger devices - Continue proportional scaling */
@media (min-width: 481px) and (max-width: 768px) {
    .publisher-details {
        padding-top: calc(135px + (100vw - 480px) * 0.2) !important;
    }
}

/* Desktop scaling - Fix publisher tabs overlap with favorites button */
@media (min-width: 576px) and (max-width: 767px) {
    .publisherTabs {
        margin-top: 168px !important;
    }
}

/* iPad specific fix - Prevent publisher tabs from overlapping favorites button */
@media (min-width: 768px) and (max-width: 1024px) {
    .publisherTabs {
        margin-top: 120px !important;
    }
}

/* iPad poster image height adjustment */
@media (min-width: 768px) and (max-width: 991px) {
    .publisher-poster-image {
        height: 198px !important;
        object-fit: cover;
    }
}

#publisher {
    position: relative;
    margin: 0;
    padding: 0;
}

.contactUsWrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: 30px;
    margin-right: 30px;
}

.contactUsContainer {
    flex-basis: calc(100% / 3);
    padding: 10px;
    margin-right: 10px;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.contactUsHeader {
    color: #03C2DD;
}

.contact {
    margin-bottom: 10px;
}

.contact p {
    font-size: 18px;
    color: #fff
}

.contactUsContainer h3 {
    font-size: 21px!important;
}

/*------------ poster image ------------- */

.posterImageContainer {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    padding-right: 0;
    aspect-ratio: 16/9;
}

.publisher-poster-image {
    z-index: 1;
    height: auto;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.no-image {
    height: 220px;
}

.publisher-details .show-image {
    max-width: 100%;
}

.poster-image-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to top, 
            #000051 0%,    
            #000051e6 10%,     
            #000051cc 20%,   
            #000051b3 33%,   
            #00005199 46%,     
            #00005180 57%,
            #00005166 63%,
            #0000514d 70%,
            #00005133 80%,
            #0000511a 90%,
            #00005100 100%),

        linear-gradient(
            92deg,
            #022649 0%,
            rgba(2, 76, 109, 0.9) 4%,
            rgba(2, 116, 147, 0.6) 16%,
            rgba(3, 194, 221, 0.35) 36%,
            rgba(3, 194, 221, 0.2) 46%,
            rgba(3, 194, 221, 0.1) 52%,
            rgba(216, 238, 248, 0.08) 58%,
            rgba(235, 245, 250, 0.04) 62%,
            rgba(250, 252, 255, 0.02) 68%,
            rgba(255, 255, 255, 0) 70%
            );

    z-index: 2;
    pointer-events: none;
    display: block !important;
}

.publisher-header-image-details {
    display: block;
    position: relative;
    width: 100%;
}

#publisher .showPublisherTitle {
    font-size: 40px;
    overflow-wrap: break-word;
}

#publisher .publisherDescription {
    font-size: 17px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}

/*-------- end of poster image -------- */

@font-face {
    font-family: 'favIcons';
    src:  url('/fonts/favIcons.eot');
    src:  url('/fonts/favIcons.eot') format('embedded-opentype'),
      url('/fonts/favIcons.ttf') format('truetype'),
      url('/fonts/favIcons.woff') format('woff'),
      url('//dwidio-cdn.s3.amazonaws.com/img/fonts/favIcons.svg') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
  
[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'favIcons' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
  
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
  
.icon-fav-star-active:before {
    content: "\e900";
}
.icon-fav-star-inactive:before {
    content: "\e901";
}

#publisher .mobile-detail {
    display: none;
    margin-left: 24px;
}

.move-fav-left {
    margin-left: 0px;
    margin-top: 15px;
}

.fav-btn:hover {
    border: 3px solid #eeff41;
    background: #eeff41 !important;
}

.fav-btn:hover .icon-fav-star-active {
    /* color: #eeff41; */
}

.fav-btn:hover .icon-fav-star-inactive {
    /* color: #eeff41; */
}

.fav-btn:active,
.fav-btn:focus:active,
.fav-btn:focus {
    background-color: #000024;
    border: 2px solid #03C2DD;
    color: #000024;
    outline: unset;
}

.icon-fav-star-active,
.icon-fav-star-inactive {
    font-size: 18px;
    color: #000024;
}

.fav-btn .icon-fav-star-active {
    color: #000024;
}

.fav-btn.is-fav:hover {
    /* color: #EEFF41; */
    border: 3px solid #EEFF41;
}

.fav-btn.is-fav {
    background-color: #000024;
    color: #000024;
    border: 3px solid #03C2DD;
}

#publisher #showSorting {
    margin-bottom: 0;
}

#marqueeWrapper {
    margin-bottom: 40px;
}

#publisher .groupContainer {
    position: relative;
}

#publisher .no-content {
    margin-left: 24px;
}

#publisher .horizontalGroupHeader {
    font-size: 1em;
    margin-left: 24px;
    color: #aaa;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: .05em;
}

#publisher .groupItem {
    margin-bottom: 1em;
    padding: 0 10px;
}

#publisher .stationChannelGroup {
    border-top: solid 1px #444;
    padding: 20px 0 0;
}

#publisher .groupItem a:hover {
    text-decoration: none;
}

#publisher .groupItem .thumb {
    display: block;
    width: 100%;
    position: relative;
    height: 0;
    padding: 56.25% 0 0 0;
    overflow: hidden;
    border: 2px solid transparent;
}

#publisher .groupItem .thumb img {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    transition: transform .3s ease-out, opacity .3s ease;
    /* Animation */
}

#publisher .thumb:hover {
    border: 3px solid #EEFF41;
    text-decoration: none;
}

#publisher .groupItem .info {
    display: none;
    padding: 4px 8px;
    clear: both;
    font-size: .8em;
    background: #555;
}

#publisher .groupItem .info .title {
    color: #eee;
    display: block;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#publisher .groupItem .info .episodeCount,
#publisher .groupItem .info .runtime {
    font-size: .87em;
    color: #ccc;
    display: block;
}

#publisher .slick-initialized {
    display: block !important;
}

#publisher .contentTitle {
    padding-top: .3em;
    color: #ccc;
}

#publisher .episodeRuntime {
    font-size: .8em;
    color: #ccc;
    line-height: 0;
    text-align: left;
}

#publisher .singleShowSeasonControl {
    margin-left: 24px;
    color: #000024;
    padding: 4px 10px;
    background-color: #4db0d5;
    border-color: #03C2DD;
    border-radius: 2px;
}

#publisher .singleShowSeasonControl:hover {
    cursor: pointer;
}

#publisher .stationItem {
    cursor: pointer;
}

#publisher .videoPlayerArea {
    margin-left: auto;
    margin-top: 15px;
    margin-right: auto;
    margin-bottom: 50px;
    width: 75%!important;
    height: auto;
}

#publisher .publisher-header {
    position: relative;
    padding: 15px;
    padding: 0px;
    border-radius: 0px 0px 5px 5px;
}
 #publisher .publisher-header h1 {
    color: #fff;
 }

#publisher .scheduleHeader {
    border-top: 1px solid #333;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    padding-top: 5px;
}

#liveSchedule {
    width: 100%;
    height: 130px;
    white-space: nowrap;
    float: left;
}

#publisher .program {
    display: inline-block;
    background-color: #333;
    border-radius: 5px;
    margin: 5px 2px;
    height: 100px;
    width: 175px;
    overflow: hidden;
    cursor: pointer;
}

#publisher .program:hover {
    cursor: pointer;
}
#publisher .program:hover .programTimeHeader{
    background: #eeff41;
    border-bottom: 1px solid #eeff41;
 }

#publisher .programTimeHeader {
    text-align: center;
    border-bottom: 1px solid #03C2DD;
    background-color: #03C2DD;
    color: #000024;
    font-weight: bold;
    border-radius: 5px 5px 0px 0px;
}

#publisher .programName {
    background: #484764;
    padding: 3px;
}

#publisher .programName p {
    width: 175px;
    word-break: break-word;
    white-space: normal;
    height: 100px;
    overflow-y: hidden;
}

#publisher .show-publisher-header img {
    width: 100%;
}

#programDescription {
    margin-top: 10px;
}
#programDescription h1 {
    display: inline;
    margin: 0;
    font-size: inherit;
    font-weight: normal;
    color: inherit;
}

.banner-fav {
    display: flex;
    background-color: #333;
    width: 100px;
    height: 30px;
    cursor: pointer;
    border: solid #333333 2px;
    /* pointer-events: none; */
}

.banner-fav .star-icon {
    padding-right: unset;
    padding-left: 5px;
}

.banner-fav .banner-fav-text {
    font-weight: bold;
    font-size: 14px;
    color: #f1f1f1;
    margin-left: 8px;
    margin-right: 3px;
}

.banner-fav i {
    vertical-align: bottom;
}

.banner-fav:hover {
    border: solid #EEFF41 2px;
    background-color: #595959;
}

@media (min-width: 768px) {
    .contactUsContainer {
        flex-basis: calc(33.33% - 10px); /* Adjust for margin */
    }
}

@media (max-width: 767px) {
    .contactUsContainer {
        flex-basis: calc(50% - 10px); /* Adjust for margin */
    }
}

@media (max-width: 480px) {
    .contactUsContainer {
        flex-basis: 100%;
    }
}

/* REMOVED: Desktop scaling breakpoints - Sidebar always visible */

/* Date Navigation Dropdown - Alternative to sidebar */
.date-navigation-dropdown {
    display: none; /* Hidden by default, shown when needed */
    width: 100%;
    margin-bottom: 20px;
}

.date-navigation-dropdown select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #03C2DD;
    border-radius: 8px;
    background: linear-gradient(to right, #000024 0%, #1a1a3b 100%);
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303C2DD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.date-navigation-dropdown select:focus {
    outline: none;
    border-color: #eeff41;
    box-shadow: 0 0 0 3px rgba(238, 255, 65, 0.2);
}

.date-navigation-dropdown select option {
    background: #000024;
    color: #fff;
    padding: 8px;
}

/* Show dropdown on smaller screens when sidebar is hidden */
@media (max-width: 767px) {
    .date-navigation-dropdown {
        display: block;
    }
    
    .content-sidebar {
        display: none;
    }
}

/* Hide dropdown on larger screens when sidebar is visible */
@media (min-width: 768px) {
    .date-navigation-dropdown {
        display: none;
    }
    
    .content-sidebar {
        display: block;
    }
}