html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
/* Header */
.navbar-brand img {
    height: 40px;
}

/* Custom logo in top-left */
.logo-watermark {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    opacity: 0.8;
}

/* Custom controls auto hide */
.custom-controls {
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: auto;
}

.custom-controls.hide {
    opacity: 0;
    pointer-events: none;
}

/* Show controls on hover (desktop fallback) */
.video-container:hover .custom-controls {
    opacity: 1;
    pointer-events: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

/*.video-container video {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*}*/

/* ===== Player ===== */
.video-container {
    position: relative;
    /*padding-top: 56.25%;*/
    background:#000;
}
.video-container video,
.video-container iframe {
    position:absolute;
    top: 0;
    left: 0;
    inset:0;
    width:100%;
    height:100%;
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.playlist-item {
    cursor: pointer;
}

.playlist-item.active {
    background-color: #0d6efd;
    color: #fff;
}




/* Styles for screens 768px and smaller (e.g., tablets and mobile) */
@media screen and (max-width: 768px) {
    
}

/* Styles for screens 480px and smaller (e.g., mobile phones only) */
@media screen and (max-width: 480px) {
    
    
    #iframePlayer {
        height: 330px;
    }
    
    .flowplayer {
    height: 191px !important;
    }
}

/*theme*/
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}
.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: #0000001a;
    border: solid rgba(0, 0, 0, 0.15);
    border-width: 1px 0;
    box-shadow:
        inset 0 0.5em 1.5em #0000001a,
        inset 0 0.125em 0.5em #00000026;
}
.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}
.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Width of the vertical scrollbar */
/*#playlist::-webkit-scrollbar {*/
/*  width: 10px;*/
/*}*/
/* Track and Thumb customization */
/*#playlist::-webkit-scrollbar-track {*/
/*  background: #f1f1f1;*/
/*}*/
/*#playlist::-webkit-scrollbar-thumb {*/
/*  background: #888;*/
/*}*/

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: scroll;
}
.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: auto;
}
/*.btn-bd-primary {*/
/*    --bd-violet-bg: #712cf9;*/
/*    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;*/
/*    --bs-btn-font-weight: 600;*/
/*    --bs-btn-color: var(--bs-white);*/
/*    --bs-btn-bg: var(--bd-violet-bg);*/
/*    --bs-btn-border-color: var(--bd-violet-bg);*/
/*    --bs-btn-hover-color: var(--bs-white);*/
/*    --bs-btn-hover-bg: #6528e0;*/
/*    --bs-btn-hover-border-color: #6528e0;*/
/*    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);*/
/*    --bs-btn-active-color: var(--bs-btn-hover-color);*/
/*    --bs-btn-active-bg: #5a23c8;*/
/*    --bs-btn-active-border-color: #5a23c8;*/
/*}*/
.bd-mode-toggle {
    z-index: 1500;
}
.bd-mode-toggle .bi {
    width: 1em;
    height: 1em;
}
.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}


/*news ticker*/
.news-ticker {
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    /*padding: 8px 0;*/
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

/* LEFT SIDE */
.time-box {
    background: rgba(255,255,255,0.1);
    text-align: center;
    height: 50px;
    overflow: hidden;
    position: relative;
    border-radius: 0 15px 15px 0;
}

.time-slider {
    position: absolute;
    width: 100%;
}

.time-item {
    height: 50px;
    line-height: 50px;
    font-weight: 600;
    font-size: 16px;
}

/* RIGHT SIDE */
.news-box {
    padding-left: 15px;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee 18s linear infinite;
}

.news-logo {
    width: 30px;
    margin-right: 10px;
}

.news-text {
    font-size: 15px;
}

.read-more {
    color: #ffd369;
    text-decoration: none;
    margin-left: 5px;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

@keyframes marquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* Mobile */
@media(max-width:768px){
    .time-box { display:none; }
}


/*//iframe*/
.responsive-iframe-container {
  position: relative; /* Essential for positioning the iframe inside */
  overflow: hidden; /* Hides any protruding content */
  width: 100%; /* Ensures the container takes the full width of its parent */
  padding-top: 56.25%; /* This sets the aspect ratio (e.g., 56.25% for 16:9 ratio) */
  height: 0; /* The padding-top creates the height, so height is set to 0 */
}

.responsive-iframe-container #iframePlayer {
  position: absolute; /* Positions the iframe relative to its parent container */
  top: 0;
  left: 0;
  width: 100%; /* Makes the iframe fill the container's width */
  height: 100%; /* Makes the iframe fill the container's height */
}

#iframePlayer {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9; /* Sets a 16:9 aspect ratio */
}

/* PLAYLIST SCROLL AREA */

.scrollable-list {
    max-height: 355px; /* Set a maximum height to enable scrolling */
    overflow-y: scroll; /* Show vertical scrollbar only when needed */
    
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
}

.scrollable-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

