/* =========================================================
   MD POSTER TAG
   Small • Thin • Glass • Top Right
   ========================================================= */

/* Make sure the tag is positioned relative to the poster */
.module .content .items .item .poster,
.items .item .poster {
    position: relative;
}


/* =========================================================
   POSTER TAG
   ========================================================= */

.md-poster-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 20;

    /* Keep box only around the text */
    display: block;
    width: max-content;
    max-width: 65%;
    box-sizing: border-box;

    /* Very small / thin size */
    padding: 2px 5px;

    /* Thin glass border */
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;

    /* Light transparent glass - NOT heavy black */
    background: rgba(20, 20, 24, 0.32);

    color: rgba(255, 255, 255, 0.95);

    /* Small text */
    font-size: 10px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.05px;

    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Glass blur */
    -webkit-backdrop-filter: blur(8px) saturate(135%);
    backdrop-filter: blur(2px) saturate(135%);

    /* Small soft shadow */
    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    /* Slight text shadow */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);

    /* Prevent mouse interaction */
    pointer-events: none;
}


/* =========================================================
   SUBTLE GLASS SHINE
   ========================================================= */

.md-poster-tag::after {
    content: "";

    position: absolute;
    top: 0;
    left: -80%;

    width: 35%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );

    transform: skewX(-18deg);

    animation: mdPosterTagShine 4.5s ease-in-out infinite;

    pointer-events: none;
}


/* =========================================================
   SHINE ANIMATION
   ========================================================= */

@keyframes mdPosterTagShine {

    0%,
    65% {
        left: -80%;
        opacity: 0;
    }

    72% {
        opacity: 0.7;
    }

    88%,
    100% {
        left: 135%;
        opacity: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .md-poster-tag {
        top: 4px;
        right: 4px;

        max-width: 68%;

        padding: 2px 4px;

        border-radius: 3px;

        font-size: 7px;
        line-height: 1;
    }
}