/* General Page Styling for Full Width */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Base container for all frontend pages */
.container-fluid.p-0.vh-100 {
    width: 100%;
    height: 100vh; /* Full viewport height */
}

/* EPG Section Styling */
.epg-section {
    padding: 0;
}

.timeline-header {
    position: sticky;
    top: 0;
    background-color: #333;
    color: white;
    display: flex;
    z-index: 10;
}

.timeline-header div {
    flex: 1;
    text-align: center;
    padding: 0.5rem; /* Match Bootstrap's p-2 (8px) */
    min-width: 50px; /* Adjust based on your timeline scale */
}

.timeline-header .hour-blocks {
    display: flex; /* Ensure hour blocks are laid out horizontally */
    flex-grow: 1;
}

.channel-row {
    display: flex;
    height: 10vh; /* 10% of viewport height */
    border-bottom: 1px solid #ddd;
}

.channel-label {
    width: 150px;
    background-color: #444;
    color: white;
    display: flex;
    align-items: center;
    padding: 0.5rem; /* Match Bootstrap's p-2 (8px) */
    font-weight: bold;
    position: sticky;
    left: 0;
    z-index: 5;
}

.timeline-container {
    flex: 1;
    overflow-x: auto;
    position: relative;
    background-color: #fff;
}

.timeline {
    position: absolute;
    width: 7200px; /* 24 hours * 300px/hour = 7200px */
    height: 100%;
}

.video-block {
    position: absolute;
    height: 100%;
    /* background-color: #007bff; */
    background-color: rgb(150, 127, 1);
    color: white;
    padding: 0.5rem;
    box-sizing: border-box;
    border-right: 1px solid #0056b3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    z-index: 1; /* Ensure visibility */
}

.video-block:hover {
    background-color: #0056b3;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-all:hover {
    transform: scale(1.05);
    z-index: 10;
}

.scrollbar-thin::-webkit-scrollbar {
    height: 8px;
}

.scrollbar-primary::-webkit-scrollbar-thumb {
    background-color: #0d6efd;
    border-radius: 4px;
}

/* Logo & Guide Button */
/* =============================== */
/* =============================== */
/* =============================== */

/* Logo Overlay */
#logo-overlay {
    height: auto;
    width: 10vw;
}

#guide-button {
    height: auto;
    width: 7vw;
    max-width: 80px; /* Cap the width to prevent it from becoming too large */
}
@media (max-width: 350px) {
    #logo-overlay {
        height: auto;
        width: 32vw;
    }
    #guide-button {
        height: auto;
        width: 75px;
        max-width: 75px;
    }
}
@media (min-width: 350px) and (max-width: 500px) {
    #logo-overlay {
        height: auto;
        width: 30vw;
    }
    #guide-button {
        height: auto;
        width: 80px;
        max-width: 80px;
    }
}
@media (min-width: 499px) and (max-width: 737px) {
    #logo-overlay {
        height: auto;
        width: 25vw;
    }
    #guide-button {
        height: auto;
        width: 15vw;
        max-width: 110px;
    }
}

/* Streaming Guide Specific Styles */
/* =============================== */
/* =============================== */
/* =============================== */

.streaming-guide {
    min-height: 100vh;
}

.channel-column {
    min-height: 100%;
}

.channel-header {
    width: 7.8125vw; /* 150px / 1920px */
    height: 3.7037vh; /* 40px / 1080px */
}

.channel-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 7.8125vw; /* 150px / 1920px */
    height: 7.8704vh; /* 85px / 1080px */
    padding: 0.2604vw; /* 5px / 1920px */
    background-color: #000000;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.2604vw; /* 5px / 1920px */
}

.channel-title {
    flex: 1;
    font-size: 0.625vw; /* 12px / 1920px */
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    padding-right: 0.2604vw; /* 5px / 1920px */
}

.button-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.watch-btn {
    font-size: 0.5208vw; /* 10px / 1920px */
    padding: 0.1042vw 0.4167vw; /* 2px 8px / 1920px */
}

.schedule-block-title {
    cursor: pointer;
    width: 7.8125vw; /* 150px / 1920px */
    height: 7.8704vh; /* 85px / 1080px */
    font-size: 0.625vw; /* 12px / 1920px */
    padding: 0.1042vw; /* 2px / 1920px */
}

.chevron-icon {
    transition: transform 0.3s ease;
    cursor: pointer;
    font-size: 0.625vw; /* 12px / 1920px */
}

.chevron-icon.fa-chevron-up {
    transform: rotate(180deg);
}

.chevron-icon.fa-chevron-down {
    transform: rotate(0deg);
}

.timeline-column {
    min-height: 100%;
}

.timeline-header {
    width: 23040px;
    height: 3.7037vh; /* 40px / 1080px */
}

.time-block {
    width: 50vw; /* 960px / 1920px */
    flex: 0 0 50vw;
    height: 3.7037vh; /* 40px / 1080px */
    font-size: 0.8333vw; /* 16px / 1920px */
}

.video-timeline {
    width: 23040px;
    min-height: 7.8704vh; /* 85px / 1080px */
}

.video-row {
    min-height: 7.8704vh; /* 85px / 1080px */
}

.video-detail {
    height: 6.2963vh; /* 68px / 1080px */
    top: 0.5208vw; /* 10px / 1920px */
    left: 0;
    z-index: 1;
}

.video-detail p {
    font-size: 0.625vw; /* 12px / 1920px */
    margin-bottom: 0.0521vw; /* 1px / 1920px */
}

.video-detail div {
    font-size: 0.625vw; /* 12px / 1920px */
}

/* Mobile Width Adjustments for .video-timeline and .timeline-header */
@media (max-width: 737px) {
    .video-timeline,
    .timeline-header {
        width: 18432px; /* 80% of 23040px */
    }
}

@media (max-width: 600px) {
    .video-timeline,
    .timeline-header {
        width: 16128px; /* 70% of 23040px */
    }
}

@media (max-width: 500px) {
    .video-timeline,
    .timeline-header {
        width: 13824px; /* 60% of 23040px */
    }
}

@media (max-width: 400px) {
    .video-timeline,
    .timeline-header {
        width: 11520px; /* 50% of 23040px */
    }
}