/* Main TV schedule grid */
.tv-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Creates a responsive number of columns */
    gap: 16px;
    /* Space between channel blocks */
    margin: 16px;
}

/* Channel block styling */
.channel {
    border: 1px solid #ddd;
    padding: 8px;
    background-color: #fff;
}

.channel-name {
    font-size: 1.2em;
    margin-bottom: 8px;
}

/* Individual program styling */
.program {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    margin-top: 8px;
    padding: 8px;
    background-color: #f8f8f8;
}

/* Styling for time, title, and genre */
.time,
.title,
.genre {
    margin-bottom: 4px;

    /* Spacing between elements */
}

.time {
    font-weight: bold;
}

.title {
    font-weight: 600;
    margin-left: 0.1rem;
}

.subtitle {
    font-style: italic;
    font-weight: 400;
    font-size: 0.8rem;
}

.title-0 {
    font-size: 1.2rem;
}

.title-1 {
    font-size: 1.0rem;
}

.title-2 {
    font-size: 1.0rem;
}


.genre {
    font-size: 0.9em;
    color: #666;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    /* Rounded corners for badge */
    background-color: #a3bcd6;
    /* Badge color */
    color: white;
    font-size: 0.75em;
    margin-top: 4px;
}

.programmi-tv-progress {
    background: #ddd;
    width: auto;
    height: 3px;
    top: auto;
    right: 20px;
    bottom: 16px;
    left: 18px;
}

.programmi-tv-progress-in {
    background: #c7a035;
    transition: width 1s;
    width: auto;
    height: 100%;
}

.logo-canale {
    height: 40px;
    max-width: 150px;
    width: auto;
    /* Ensures the width of the image is scaled proportionally */
    object-fit: contain;
    /* Ensures the image is scaled correctly without being cropped */
}

.logo-label-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.channel-label {
    margin-left: 10px;
    /* Space between logo and label */
    padding: 5px;
}

.channel-ch {
    margin-left: 5px;
    font-weight: bold;
    background-color: #ccc;
    border-radius: 5px;
    padding: 10px;
}

@media screen and (max-width: 768px) {

    /* Adjustments for tablets */
    .channel-label {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {

    /* Adjustments for mobile phones */
    .channel-label {
        font-size: 12px;
        /* Smaller font size for mobile */
    }

    .logo-canale {
        width: 80%;
        /* Adjust logo size for mobile */
    }
}

