/* General HTML Tags */
A {
    text-underline: none;
}

.player-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
}

.player-overlay-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none; /* Allow clicks to go through to player, re-enable on children */
}

/* Video Player classes */
#bits-player {
    z-index: 1000;
    background-color: #111111;
}

#main-player {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    background-color: #111111;
    position: absolute;
}

.videoInsert {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Corrected from -100 to ensure video is visible */
    background-size: cover;
    overflow: hidden;
    background-color: #000;
}

/* override the default overlay card */
.vjs-overlay.vjs-overlay-bottom-left {
    width: 100%;
    height: 100%;
    text-align: left;
    background:
            linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.85) 100%),
            linear-gradient(to top, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    left: 0;
    bottom: 0;
    padding: 0px;
    align-content: end;
    z-index: 1200; /* Ensure overlay is on top of video element */
}

.video-js {
    font-family: Avenir, Arial, Helvetica, sans-serif;
}

/*  Video Player Controls */
.delayed-fadeout {
    opacity: 1;
    animation: fadeOut 1s forwards;
    animation-delay: 1s;
    /* total 2sec delay+fadeout, since the fullscreen is set for 2secs) */
}

.delayed-fadeout-half {
    opacity: 1;
    animation: fadeOut 1s forwards;
    animation-delay: .5s;
}

.delayed-fadein-half {
    animation: fadeIn .5s forwards;
    animation-delay: .5s;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Overlay Card DIVs and classes  */
/* Start: Overlay Primary Containers */
#overlayContentCard {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-rows: 100px minmax(0, 1fr) 80px 150px;
    pointer-events: auto; /* Make the overlay interactive */
}

.overlay-card {
    background-color: rgba(40, 40, 40, 0.0);
}

.overlay-card-header {
    height: 48px;
    margin-top: 52px;
    align-content: end;
    padding-left: 64px;
}

.overlay-card-body {
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    padding: 10px 64px;
    height: 80px;
}

#overlayContentMeta {
    display: flex;
    justify-content: flex-start;
    align-content: center;
}

#overlayContentAction {
    display: flex;
    justify-content: flex-end;
    align-content: center;
}
/* End: Overlay Primary Containers */

/* These two may be deprecated */
#overlayLinearCard {
    width: 9.5rem;
    background-color: rgba(40, 40, 40, 0.80);
    color: white;
    display: none;
}

#overlayAdCard {
    background-color: rgba(40, 40, 40, 0.80);
    color: white;
    display: none;
}
/* These two may be deprecated */

/* Channel Indicator */
#overlayCardChannelTitle {
    border-radius: 8px;
    background-color: rgba(40, 40, 40, 0.60);
    padding: 5px 15px;
    height: 48px;
    width: fit-content;
    min-width: 174px;
    font-family: Inter-Bold;
    font-size: 18px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlayCardChannelTitle SPAN.channel_color {
    padding-right: 8px;
    font-size: 9px;
}

#overlayCardChannelTitle IMG {
    width: 30px;
    height: 30px;
}
#overlayCardChannelTitle * {
    pointer-events: auto;
}

/* TVBits title */
.card-title {
    font-size: 21px;
    line-height: 28px;
    text-align: left;
    color: white;
    font-family: Inter-Bold;
    align-content: center;
    margin: 0px 0px 0px 20px;
    padding-left: 4px; /* to accommodate the shadow */
    width: 424px;
    min-width: 230px;
    max-height: 56px;
    display: -webkit-box;       /* establish a flex‐box in WebKit */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* channel name and more like this*/
.card-subtitle {
    font-size: 30px;
    line-height: 32px;
    text-align: left;
    direction: ltr;
    color: black;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    font-family: FiraSans-Bold;
}

/* Start: Call to Action button */
#overlayCallToAction {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#overlayActionLabel {
    color: #808080;
    font-family: Inter-SemiBold;
    font-size: 16px;
    position: relative;
}

#actionButton {
    float: right;
    font-size: 16px;
    border-radius: 4px;
    height: 48px;
    font-family: Inter-SemiBold;
    padding-left: 40px;
    padding-right: 16px;
    margin-left: 16px;
}

#actionButton.watchShow {
    background-color: rgba(94, 227, 185, 1.0);
    color: black;
    background-image: url('../images/play_arrow_24dp_000000.svg');
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 40px;
}

/* this is also the default class for unknown resource labels */
#actionButton.moreLikeThis {
    background-color: rgba(0, 0, 0, 1.0);
    color: white;
    border: 2px solid rgba(80, 80, 80, 1.0);
    background-image: url('../images/team_dashboard_24dp_E3E3E3.svg');
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    padding-left: 44px;
}

#actionButton.watchLive,
#actionButton.watchVideo {
    background-color: rgba(255, 255, 255, 1.0);
    color: black;
    background-image: url('../images/fiber_manual_record_24dp_FF0000.svg');
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    padding-left: 42px;
}

#actionButton.installNow {
    background-color: rgba(255, 184, 84, 1.0);
    color: black;
    background-image: url('../images/save_alt_24dp_000000.svg');
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    padding-left: 42px;
}

#actionButton.learnMore {
    background-color: rgba(75, 182, 148, 1.0);
    color: black;
    background-image: url('../images/shopping_bag_24dp_000000.svg');
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    padding-left: 44px;
}

 /* button highlighting */
#actionButton.moreLikeThis.active {
    border: 2px solid white;
}

#actionButton.watchShow.active,
#actionButton.watchLive.active,
#actionButton.watchVideo.active,
#actionButton.installNow.active,
#actionButton.learnMore.active {
    filter: brightness(0.7);
}

/* End: Call to Action button */

.overlay_channel_image {
    border: 0;
    min-height: 56px;
    min-width: 99px;
    width: 99px;
    height: 56px;
    border-radius: 4px;
    background-color: rgba(40, 40, 40, 0.2);
}

/* Start: Bits Navigation Arrow Card */
#bitsNavigationCard {
    width: 100%;
    height: 80px;
    bottom: 0;
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    z-index: 1020;
    padding: 2px;
}

#bitsPreviousCard {
    width: 100%;
    padding-left: 68px;
}

#bitsNextCard {
    width: 100%;
}

#bitsPreviousCard IMG,
#bitsNextCard IMG {
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 50%;
    border: 2px solid rgba(100, 100, 100, 1.0);
    margin: 5px;
}

#bitsPreviousCard IMG.active,
#bitsNextCard IMG.active {
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 1.0);
    background-color: white;
    margin: 5px;
}

.bitsNavigationCardText {
    color: white;
    display: block;
    font-size: 12px;
    font-family: Inter-Regular;
    padding: 8px 8px 8px 12px;
}
/* End: Bits Navigation Arrow Card */


.no-scroll {
    overflow: hidden;
}

/* Player positioning for smooth navigation */
.player-positioned-right {
    transform: translateX(100%);
    opacity: 1;
    z-index: 999;
}

.player-positioned-left {
    transform: translateX(-100%);
    opacity: 1;
    z-index: 999;
}

/* Smooth transition animations */
.slide-transition {
    transition: transform 0.6s ease-in-out, 0.6s ease-in-out;
    z-index: 1001;
}

/* Transition states */
.slide-out-left {
    transform: translateX(-100%);
    opacity: 1;
}

.slide-out-right {
    transform: translateX(100%);
    opacity: 1;
}

.slide-in-center {
    transform: translateX(0);
    opacity: 1;
}


/* End: Slide Animations */
