.timeline-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.timeline-table {
    min-width: 2000px;
    margin: 0;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
}

.timeline-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.timeline-header th {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 1px 1px 2px rgba(0,0,0,0.9);
    font-weight: 800;
    font-size: 1.1em;
}

.channel-column {
    background-color: white !important;
    font-weight: bold;
    position: sticky;
    left: 0;
    z-index: 15;
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 50px;
    vertical-align: middle;
    padding: 4px;
}

.time-slot {
    min-width: 60px;
    text-align: center;
    border-left: 1px solid #dee2e6;
    padding: 0;
}

.program-cell {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    margin: 0;
    padding: 1px 3px;
    font-size: 0.8em;
    position: absolute;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
    vertical-align: top;
    height: 40px;
    min-width: 30px;
}

.program-cell:hover {
    background-color: #bbdefb;
}

.program-cell.short {
    background-color: #f3e5f5;
    border-color: #9c27b0;
}

.program-cell.medium {
    background-color: #e8f5e8;
    border-color: #4caf50;
}

.program-cell.long {
    background-color: #fff3e0;
    border-color: #ffcc02;
}

.program-cell.movie {
    background-color: #fce4ec;
    border-color: #e91e63;
}

.program-cell.news {
    background-color: #e8f5e8;
    border-color: #4caf50;
}

.program-title {
    font-weight: bold;
    color: #1976d2;
    line-height: 1.2;
    margin-bottom: 2px;
}

.program-time {
    font-size: 0.75em;
    color: #666;
}

.empty-slot {
    height: 60px;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
}

.timeline-controls {
    margin-bottom: 15px;
}

.current-time-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #4fc3f7;
    z-index: 15;
}

.timeline-time-header {
    text-align: left;
    padding: 0;
    position: relative;
}

.timeline-time-row {
    position: relative;
    height: 40px;
}

.time-marker {
    position: absolute;
    text-align: center;
    border-left: 1px solid #ccc;
    min-width: 60px;
}

.time-marker.is-current {
    border-left-color: #4fc3f7;
    background-color: rgba(79,195,247,0.12);
}

.time-marker-time {
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.time-marker-date {
    font-size: 0.7em;
    color: #cccccc;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.time-marker.is-current .time-marker-time,
.time-marker.is-current .time-marker-date {
    color: #4fc3f7;
}

.timeline-row-cell {
    padding: 0;
    margin: 0;
    min-height: 50px;
    position: relative;
    border-left: none;
}

.timeline-program-title {
    font-size: 0.75em;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1px;
}

.timeline-program-time {
    font-size: 0.65em;
    line-height: 1;
    margin-bottom: 1px;
}

.timeline-program-duration {
    font-size: 0.65em;
    color: #666;
    line-height: 1;
}

.timeline-program-category {
    font-size: 0.55em;
    color: #888;
    line-height: 1;
}
