/**
 * Showtime Badge Styles
 * Style cho badge hiển thị giờ chiếu tĩnh
 */

/* Container badge */
.showtime-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: #1a237e;
    padding: 4px 8px;
    max-width: 80px;
    border-radius: 4px;
    z-index: 8;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Khi có cả live viewers và showtime, xếp chồng lên nhau */
.poster .live-viewers-badge {
    bottom: auto;
    top: 6px;
    right: 6px;
    z-index: 9;
}

.poster .showtime-badge {
    bottom: 6px;
    right: 6px;
    z-index: 8;
}

/* Display giờ */
.showtime-display {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.showtime-icon {
    font-size: 12px;
    line-height: 1;
}

.showtime-value {
    color: #ffeb3b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Note (nếu có) */
.showtime-note {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    text-align: center;
    line-height: 1.2;
}

/* Hover effect */
.showtime-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    background: #283593;
}

/* Đảm bảo poster có position relative */
article.movies .poster,
article.tvshows .poster {
    position: relative;
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
    .showtime-badge {
        bottom: 5px;
        right: 5px;
        padding: 3px 6px;
        max-width: 70px;
    }

    .poster .live-viewers-badge {
        top: 5px;
        right: 5px;
    }

    .poster .showtime-badge {
        bottom: 5px;
        right: 5px;
    }

    .showtime-icon {
        font-size: 11px;
    }

    .showtime-value {
        font-size: 11px;
    }

    .showtime-note {
        font-size: 8px;
    }
}

/* Animation fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.showtime-badge {
    animation: fadeIn 0.3s ease;
}
