.btn-fb {
    color: #fff;
    background-color: #4267b2;
    border-color: #4267B3;
}
.btn-fb:active, .btn-fb:hover {
    background: #3B5CA0;
    color: #fff;
}

.btn-gplus {
    color: #fff;
    background-color: #E93F2E;
    border-color: #b72213;
}
.btn-gplus:active, .btn-gplus:hover {
    background: #b72213;
    color: #fff;
}


/* .video_quality, .total_episodes{
    position: absolute;
    top: 5px;
    left:5px;
    z-index: 111;
}

.video_year{
    position: absolute;
    top: 5px;
    left:35px;
    z-index: 111;
} */

.new-label{
    position: absolute;
    bottom: 30px;
    left: 0px;
    z-index: 111;
}

.imdb-rating{
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 111;
}

.label-primary {
    background-color: #673ab7;
}
/* #ff1db4 */
.label-year {
    background-color: #e10c9a;    
}

.label-imdb {
    color: rgb(0, 0, 0);
    background-color: #E2B616;
}

.label-new {
    color: rgb(0, 0, 0);
    background-color: #ff0000c2;
    /* background-color: #e21616; */
}

@media (max-width:380px) {  
    .video_year_movie{
        position: absolute;
        top: 5px;
        left:5px;
        z-index: 111;
    }  

    .video_year_tv{
        position: absolute;
        top: 25px;
        left:5px;
        z-index: 111;
    } 

    .video_quality_movie, .total_episodes{
        position: absolute;
        top: 25px;
        left:8px;
        z-index: 111;
    }

    .video_quality_tv, .total_episodes{
        position: absolute;
        top: 5px;
        left:5px;
        z-index: 111;
    }
  

}  


@media (min-width:381px) {  
    .video_year_movie{
        position: absolute;
        top: 5px;
        left:35px;
        z-index: 111;
    }  

    .video_year_tv{
        position: absolute;
        top: 5px;
        left:5px;
        z-index: 111;
    }


    .video_quality_movie, .total_episodes{
        position: absolute;
        top: 5px;
        left:5px;
        z-index: 111;
    }


    .video_quality_tv, .total_episodes{
        position: absolute;
        top: 5px;
        left:43px;
        z-index: 111;
    }
}





/* Trailer */

  
.trailer-container{
    width:408px;
    height: 230px;
    overflow:hidden;
    position:relative;
  }
  
  @media (max-width:420px) {
    .trailer-container{
    width: 218px !important;
    height: 120px !important;
  }
  
  }

  .trailer-container iframe{
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
  }
  /* .trailer-foreground{
    pointer-events: none;
  } */
  
  .popover {
     background-color: black;
     max-width:440px;
    
  }
  
  @media (max-width:420px) {
  
    .popover {
     max-width:250px!important;
    
  }
    }
  
  
  
  .popover.top .arrow:after {
    border-top-color: black;
  }
  .popover.bottom .arrow:after {
    border-bottom-color: #d50055;
  }
  
  .popover-content {
        background-color: black;
        color: white; 
     }
  
  .popover-title {
     background: #d50055;
     color: white;
     border-color: #d50055bf;
     font-size: 17px;
     font-weight: bold;
     text-align: center;
  
  }

    .input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group {
        z-index: 2;
        margin-left: 0;
        border-radius: 0 5px 5px 0;
    }

/* Fix for old Android WebView (8.0): Ensure parent has position relative */
.movie-img {
    position: relative !important;
    overflow: hidden;
}

/* Base positioning for SERIES badge */
.video_type_label_tv {
    position: absolute !important;
    top: 27px;
    left: 5px;
    z-index: 111;
}

.video_type_label_tv.has-trending-series {
    top: 48px !important;
    left: 5px !important;
}

.label-tvseries {
    background-color: #ff0066;
}

/* Trending Badge Styling */
.video_trending_badge {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 112;
}

.label-trending {
    background-color: #f90000 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 4px 10px !important;
    box-shadow: 0 2px 5px rgba(249, 0, 0, 0.4);
    text-transform: uppercase;
    border-radius: 4px !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.label-trending i {
    color: #fff !important;
    animation: flamePulse 1.2s infinite alternate ease-in-out;
}

@keyframes flamePulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.15); opacity: 1; }
}



/* Flex container for Quality and Year badges */
.video_badges_group_movie, .video_badges_group_tv {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 111;
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Cancel absolute positioning on child badges inside flex group */
.video_badges_group_movie > div, .video_badges_group_tv > div {
    position: static !important;
}

/* Fallback for legacy devices (Android 8.0 WebView / old Chrome) without flex gap support */
@supports not (gap: 4px) {
    .video_badges_group_movie > div:first-child,
    .video_badges_group_tv > div:first-child {
        margin-right: 4px;
    }
}

/* Offset lower badges when TRENDING is present above them */
.video_badges_group_movie.has-trending, .video_badges_group_tv.has-trending {
    top: 27px !important;
    left: 5px !important;
}

/* Responsive fixes for mobile and tablet grid (max-width: 767px) */
@media (max-width: 767px) {
    /* Make Trending badge slightly smaller to avoid overlap with IMDb, but not too thin */
    .label-trending {
        font-size: 10px !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
    }
    .label-trending i {
        font-size: 9px !important;
    }

    /* Make IMDb badge smaller on mobile */
    .label-imdb {
        font-size: 9px !important;
        padding: 3px 5px !important;
    }

}

/* Modern Download Buttons Design */
.download-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.modern-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1c1c1f;
    border: 1px solid rgba(255, 39, 125, 0.25);
    border-radius: 8px;
    padding: 8px 14px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.modern-download-btn:hover {
    background: #ff277d;
    border-color: #ff277d;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 39, 125, 0.4);
}

.modern-download-btn .dw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 39, 125, 0.15);
    color: #ff277d;
    border-radius: 50%;
    font-size: 11px;
    transition: all 0.25s ease-in-out;
}

.modern-download-btn:hover .dw-icon {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.modern-download-btn .dw-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modern-download-btn .dw-season {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.modern-download-btn:hover .dw-season {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.modern-download-btn .dw-title {
    font-weight: 600;
    color: #f1f1f1;
    text-transform: uppercase;
}

.modern-download-btn:hover .dw-title {
    color: #ffffff;
}

.modern-download-btn .dw-badge {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modern-download-btn .dw-res {
    background: rgba(255, 39, 125, 0.2);
    color: #ff5295;
    border: 1px solid rgba(255, 39, 125, 0.3);
}

.modern-download-btn:hover .dw-res {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.modern-download-btn .dw-size {
    background: #2b2b30;
    color: #b0b0b8;
}

.modern-download-btn:hover .dw-size {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* Player Control Bar & Server Buttons Design */
.player-control-bar {
    background: #18181c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    align-content: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    width: 100%;
}

.server-sources-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
}

.player-actions-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
    box-sizing: border-box;
}

.player-server-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 6px 14px;
    color: #d1d1d6 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease-in-out;
}

.player-server-btn:hover {
    background: rgba(255, 39, 125, 0.2);
    border-color: #ff277d;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.player-server-btn.active {
    background: linear-gradient(135deg, #ff277d 0%, #c2185b 100%);
    border-color: #ff277d;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 39, 125, 0.35);
}

.player-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    text-align: center;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

.player-action-btn.trailer-btn {
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #f87171 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.player-action-btn.trailer-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.player-action-btn.report-btn {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #eab308 !important;
    text-transform: capitalize;
}

.player-action-btn.report-btn:hover {
    background: #eab308;
    border-color: #eab308;
    color: #111827 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

@media (max-width: 600px) {
    .player-control-bar {
        padding: 8px 10px;
        gap: 6px;
    }
    .player-server-btn, .player-action-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Modern Notice / Disclaimer Bar Design */
.modern-notice-bar {
    background: linear-gradient(135deg, rgba(255, 39, 125, 0.08) 0%, rgba(20, 20, 24, 0.95) 100%);
    border: 1px solid rgba(255, 39, 125, 0.25);
    border-left: 4px solid #ff277d;
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.modern-notice-bar .notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 39, 125, 0.18);
    color: #ff277d;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.modern-notice-bar .notice-content {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.modern-notice-bar .notice-content b,
.modern-notice-bar .notice-content strong {
    color: #ff5295;
    font-weight: 700;
}

@media (max-width: 600px) {
    .modern-notice-bar {
        padding: 10px 12px;
        gap: 8px;
    }
    .modern-notice-bar .notice-content {
        font-size: 12px;
    }
}







/* ===== OTT Platform Section ===== */
.ott-section {
    position: relative;
    z-index: 5;
    clear: both;
    padding: 18px 0 20px;
    margin-top: 38px;
    margin-bottom: 12px;
}
.ott-scroll-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    align-items: flex-start;
    padding: 8px 4px;
}
.ott-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    min-width: 78px;
    transition: transform 0.2s ease;
}
.ott-item:hover {
    transform: translateY(-3px) scale(1.06);
}
.ott-circle-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.ott-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #e50914;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.ott-item:hover .ott-circle {
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}
.ott-badge {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    background: #e50914;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    border: 2px solid #16181e;
    white-space: nowrap;
    line-height: 1.25;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.ott-label {
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    margin: 2px 0 0;
    text-align: center;
    white-space: nowrap;
}
.ott-item:hover .ott-label {
    color: #ffffff;
}
@media (max-width: 768px) {
    .ott-scroll-wrap {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 16px;
        padding: 8px 6px 10px;
        -webkit-overflow-scrolling: touch;
    }
    .ott-scroll-wrap::-webkit-scrollbar { display: none; }
    .ott-item { min-width: 68px; }
    .ott-circle {
        width: 64px;
        height: 64px;
    }
}
/* ===== End OTT Platform Section ===== */
