/* ========================================
   GUIDE STYLES - Two-Column Layout
   Enhanced with doubled slot width, borders, and thicker scrollbar
   ======================================== */

/* Main Container */
.guide-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #171717;
    position: relative;
    flex: 1;
}

/* Main Body - Two Columns */
.guide-body {
    display: flex;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Left Column: Fixed Channel List */
.guide-channels-column {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    background: #0a0a0a;
    border-right: 1px solid #404040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.guide-channel-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.guide-channel-list::-webkit-scrollbar {
    display: none;
}

.guide-channel-item {
    height: 60px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #262626;
    cursor: pointer;
    transition: background-color 0.15s;
}

.guide-channel-item:hover {
    background: #1f1f1f;
}

.guide-channel-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #262626;
    border-radius: 4px;
    border: 1px solid #404040;
    flex-shrink: 0;
}

.guide-channel-details {
    flex: 1;
    min-width: 0;
}

.guide-channel-name {
    font-size: 11px;
    font-weight: 500;
    color: #e5e5e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-channel-number {
    font-size: 9px;
    color: #737373;
    margin-top: 2px;
}

/* Right Column: Scrollable Timeline */
.guide-timeline-column {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Date Header Row - Inside timeline, scrolls horizontally */
.guide-date-header {
    height: 24px;
    flex-shrink: 0;
    background: #0a0a0a;
    border-bottom: 1px solid #404040;
    position: sticky;
    top: 0;
    z-index: 40;
}

.guide-date-slots {
    display: flex;
    height: 100%;
}

.guide-date-slot {
    width: 7680px;
    min-width: 7680px;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    color: #e5e5e5;
    border-right: 1px solid #404040;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    position: relative;
}

.guide-date-slot::before {
    content: attr(data-date);
    position: sticky;
    left: 12px;
    display: inline-block;
    height: 24px;
    line-height: 24px;
}

/* Time Header Row - Inside timeline, scrolls horizontally */
.guide-time-header {
    height: 28px;
    flex-shrink: 0;
    background: #0a0a0a;
    border-bottom: 2px solid #404040;
    position: sticky;
    top: 24px;
    z-index: 40;
}

.guide-time-slots {
    display: flex;
    height: 100%;
}

.guide-time-slot {
    width: 160px;
    min-width: 160px;
    padding: 6px 4px;
    text-align: center;
    font-size: 10px;
    color: #737373;
    border-right: 1px solid #404040;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-time-slot.hour-marker {
    border-right: 2px solid #404040;
    color: #a3a3a3;
    font-weight: 500;
}

/* Timeline Content */
.guide-timeline {
    width: 53760px;
    position: relative;
    flex-shrink: 0;
}

.guide-program-row {
    height: 60px;
    position: relative;
    border-bottom: 1px solid #262626;
}

.guide-program-row:hover {
    background: #1a1a1a;
}

/* Program Blocks */
.guide-program-block {
    position: absolute;
    top: 0;
    height: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: 1px solid #1e40af;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.guide-program-block:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    z-index: 10;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.guide-program-block.is-live {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-color: #dc2626;
}

.guide-program-block.is-live:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
}

.guide-program-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.guide-program-title {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-program-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s;
}

/* Current Time Indicator */
.guide-time-indicator {
    position: absolute;
    top: 52px;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    z-index: 30;
    pointer-events: none;
}

.guide-time-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
}

/* Custom Scrollbar for timeline only - ENHANCED: Thicker horizontal scrollbar */
.guide-timeline-column::-webkit-scrollbar {
    width: 8px;
    height: 16px;
}

.guide-timeline-column::-webkit-scrollbar-track {
    background: #171717;
}

.guide-timeline-column::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

.guide-timeline-column::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

/* Category Filter Dropdown Styles - Spans Date + Time Headers */
.category-filter-container {
    height: 52px;
    padding: 10px 12px;
    background: #0a0a0a;
    border-bottom: 2px solid #404040;
    display: flex;
    align-items: center;
}

.category-filter-select {
    width: 100%;
    padding: 8px 10px;
    background: #171717;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #e5e5e5;
    font-size: 11px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.category-filter-select:hover {
    border-color: #525252;
}

.category-filter-select:focus {
    outline: none;
    border-color: #2563eb;
}

.category-filter-select option {
    background: #171717;
    color: #e5e5e5;
}
/* Current time slot highlighting */
.guide-time-slot.current-slot {
    background: #1e3a8a;
    color: #93c5fd;
    font-weight: 600;
}
