@keyframes scroll-long-title {
    0% { transform: translateX(0); }
    /* Keeps short titles at left, scrolls long ones */
    100% { transform: translateX(min(0px, calc(-100% + 180px))); }
}

@keyframes red-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* --- 1. THE SLIDER CONTAINER --- */
.movie-item.slider-item-premium {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* --- 2. IMAGE ZOOM --- */
.slider-item-premium .mv-img img {
    width: 100%;
    transition: transform 0.6s ease;
}

.slider-item-premium:hover .mv-img img {
    transform: scale(1.1);
    filter: brightness(0.5);
}

/* --- 3. RED PLAY BUTTON (Centered) --- */
.slider-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.slider-item-premium .circle-play {
    width: 52px;
    height: 52px;
    background: #ff0000 !important;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);

    /* Hidden state */
    transform: scale(0);
    opacity: 0;

    /* RE-ADDED: The "Bounce" effect timing (cubic-bezier) */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* Stylings for icon inside */
.slider-item-premium .circle-play i {
    font-size: 22px !important;
    margin-left: 3px !important;
    position: relative;
    z-index: 2; /* Sits above the pulse */
}

.slider-item-premium:hover .circle-play {
    /* Pop to full size + slight overshoot for bounce */
    transform: scale(1.1);
    opacity: 1;
    animation: red-pulse 1.5s infinite;
}

/* --- 4. THE BOTTOM-EDGE INFO PANEL --- */
.slider-item-premium .title-in {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 15px 15px 12px 15px !important;

    /* Darker bottom for better text contrast, lighter top */
    /* MORE TRANSPARENT GRADIENT:
       Reduced from 0.95/0.8 to 0.7/0.4
    */
    background: linear-gradient(to top,
        rgba(0,0,0,0.7) 0%,   /* Darkest at the very bottom */
        rgba(0,0,0,0.4) 50%,  /* Becomes transparent faster */
        rgba(0,0,0,0) 100%) !important;

    /* Reduced blur for a "Light Glass" look */
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;

    /* Slide Up Animation */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    z-index: 50;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.slider-item-premium:hover .title-in {
    transform: translateY(0);
}

/* --- 5. GENRE TAG --- */
.slider-item-premium .cate .blue {
    background: #01131f !important;
    color: #fff !important;
    font-size: 10px !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2px;
}

/* --- 6. SCROLLING TITLE LOGIC --- */
.slider-item-premium h6 {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-align: left !important; /* Force text to the left */
}

.slider-item-premium h6 a {
    color: #f5b50a !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    display: inline-block !important;
    transform: translateX(0);
}

.slider-item-premium:hover h6 a {
    /* Smart scroll logic */
    animation: scroll-long-title 5s linear 1s infinite alternate !important;
}

/* --- 7. RATING & VIEWS --- */
.slider-item-premium .info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    justify-content: flex-start !important; /* Ensure icons stay left */
}

.slider-item-premium .info-row span {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.slider-item-premium .info-row .rating-color {
    color: #f5b50a !important; /* Gold Rating */
}


/*Fetcher & fetcher_pop sytle*/

/* --- 0. KEYFRAMES MUST BE DECLARED FIRST --- */
@keyframes smart-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This moves the text ONLY if the title width is greater than the box (approx 120px) */
        /* If title is short, the result is 0px (no movement) */
        transform: translateX(min(0px, calc(-100% + 120px)));
    }
}

@keyframes ghost-line-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.3); /* Start smaller */
        border: 2px solid rgba(255, 0, 0, 1); /* Sharp red line at start */
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4); /* Expands out */
        border: 1px solid rgba(255, 0, 0, 0); /* Fades to invisible */
        opacity: 0;
    }
}


/* --- 1. THE MAIN CONTAINER (FIXED GLOW & REFLECTION) --- */

.fetcher-item-premium,
.fetcher_pop-item-premium {
    cursor: pointer !important;
}

.movie-item.fetcher-item-premium,
.movie-item.fetcher_pop-item-premium {
    position: relative;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #0b1a2a;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    -webkit-box-reflect: below 2px linear-gradient(transparent, transparent, rgba(255, 255, 255, 0.1));
}

.movie-item.fetcher-item-premium:hover,
.movie-item.fetcher_pop-item-premium:hover {
    border-color: #5b97f0 !important;
    box-shadow: inset 0 0 15px rgba(10, 19, 22, 0.6);
}

/* --- 2. THE IMAGE WRAPPER & CLARITY --- */

.fetcher-item-premium .mv-img img,
.fetcher_pop-item-premium .mv-img img {
    width: 100% !important;
    height: auto !important;
    display: block;
    transition: transform 0.6s ease-in-out, filter 0.4s ease;
}

.fetcher-item-premium:hover .mv-img img,
.fetcher_pop-item-premium:hover .mv-img img {
    transform: scale(1.1);
    filter: brightness(0.35);
}

/* --- 3. TITLE & INFO-ROW CONTAINER (PINNED POSITION) --- */

.fetcher-item-premium .title-in,
.fetcher_pop-item-premium .title-in {
    position: absolute !important;
    bottom: 8px !important;
    left: 12px !important;
    width: calc(100% - 24px) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 25;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    pointer-events: none;
}

.fetcher-item-premium h6,
.fetcher_pop-item-premium h6 {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: hidden;
    white-space: nowrap;
}

.fetcher-item-premium h6 a,
.fetcher_pop-item-premium h6 a {
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    opacity: 0.85; /* Fixed from 1.85 to 0.85 */
    transition: all 0.3s ease;
}

/* --- 4. TITLE HOVER ANIMATION --- */

.fetcher-item-premium:hover h6 a,
.fetcher_pop-item-premium:hover h6 a {
    color: #f5b50a !important;
    opacity: 1;
    filter: brightness(1.2);
    text-shadow: 2px 2px 5px rgba(0,0,0,1);
    /* Added the 2s delay you asked for earlier so it's easier to read first */
    animation: smart-scroll 6s linear 1.5s infinite alternate !important;
    padding-right: 60px;
}

/* --- 5. INFO-ROW: RATING & VIEWS --- */

.fetcher-item-premium .info-row,
.fetcher_pop-item-premium .info-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    margin-top: 4px !important;
    background: transparent !important;
    width: 100% !important;
    justify-content: flex-start !important;
}

.fetcher-item-premium .info-row span,
.fetcher_pop-item-premium .info-row span {
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,1);
    opacity: 0.85; /* Fixed from 1.85 to 0.85 */
    transition: all 0.3s ease;
}

.fetcher-item-premium:hover .info-row span,
.fetcher_pop-item-premium:hover .info-row span {
    opacity: 1;
    filter: brightness(1.5);
}

/* --- 6. CENTERED PLAY BUTTON (WITH HEARTBEAT) --- */

.fetcher-overlay,
.fetcher_pop-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 100 !important;
}

.fetcher-item-premium:hover .fetcher-overlay,
.fetcher_pop-item-premium:hover .fetcher_pop-overlay {
    opacity: 1;
}

.fetcher-item-premium .circle-play,
.fetcher_pop-item-premium .circle-play {
    all: unset !important;
    position: relative !important; /* CRITICAL for the pulse positioning */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 48px !important;
    height: 48px !important;
    background: #ff0000 !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
    pointer-events: auto !important;

    /* BOUNCE POP-IN */
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease !important;
}

/* THE TRIGGER: Card hover triggers the button pop AND the heartbeat pulse */
.fetcher-item-premium:hover .circle-play,
.fetcher_pop-item-premium:hover .circle-play {
    opacity: 1;
    transform: scale(1.1);
}

/* --- THE PULSE (Using ::after to avoid property conflicts) --- */
.fetcher-item-premium .circle-play::after,
.fetcher_pop-item-premium .circle-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #ff0000;
    border-radius: 50%;
    z-index: -1; /* Sits behind the play icon */
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

/* Trigger pulse on card hover */
.fetcher-item-premium:hover .circle-play::after,
.fetcher_pop-item-premium:hover .circle-play::after {
    animation: ghost-line-ripple 1.2s infinite ease-out !important;
}

/* Stylings for icon inside */
.fetcher-item-premium .circle-play i,
.fetcher_pop-item-premium .circle-play i {
    font-size: 18px !important;
    margin-left: 3px !important;
    position: relative;
    z-index: 2; /* Sits above the pulse */
}

.fetcher-item-premium .circle-play:hover,
.fetcher_pop-item-premium .circle-play:hover {
    background: #ff3333 !important;
    /* Do not add transform: scale here; it will kill the animation */
}


/* -----------------all_fetcher LOCKED VERSION----------------------------- */
/* --- 1. KEYFRAME FOR THE GHOST LINE (Common for all) --- */
@keyframes ghost-line-ripple-all {
    0% {
        transform: translate(-50%, -50%) scale(1);
        border: 2px solid rgba(255, 0, 0, 1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        border: 1px solid rgba(255, 0, 0, 0);
        opacity: 0;
    }
}

/* SMART SCROLL KEYFRAMES */
@keyframes genre-smart-scroll {
    0% { transform: translateX(0); }
    /* Moves text only if it's wider than the card (approx 150px) */
    100% { transform: translateX(min(0px, calc(-100% + 150px))); }
}

/* --- 1. CONTAINER SETTINGS --- */
.mv-grid-fw .all_fetcher-item-premium {
    width: 22.5%;
    margin: 0 1.2% 30px 1.2%;
    float: left;
    background: transparent;
}

/* --- 2. IMAGE CONTAINER (LOCKED) --- */
/* Added parent class so this doesn't affect Slider/Fetcher */
.all_fetcher-item-premium .mv-img-container {
    position: relative;
    border: 2px solid #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background: #000;
}

/* --- 3. INTERNAL GLOW --- */
.all_fetcher-item-premium:hover .mv-img-container {
    border-color: #5b97f0 !important;                        /* Changes transparent border to blue on hover */
    box-shadow: inset 0 0 15px rgba(10, 19, 22, 0.6);
}

/* Locked to all_fetcher images */
.all_fetcher-item-premium .mv-img-container img.zoom-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease-in-out;
}

.all_fetcher-item-premium:hover img.zoom-img {
    transform: scale(1.1);
}

/* --- 4. PLAY BUTTON OVERLAY --- */
.all_fetcher-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    background: rgba(0,0,0,0.4);
    transition: opacity 0.4s ease;
    z-index: 10;
    overflow: hidden !important;
}

.all_fetcher-item-premium:hover .all_fetcher-overlay {
    opacity: 1;
}

/* --- 5. TITLE: GLOW & ELLIPSIS (LOCKED) --- */
/* Added parent so Slider text can still scroll/wrap */
.all_fetcher-item-premium .movie-title {
    color: #ffffff !important;
    transition: color 0.3s ease-in-out;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Ensures the user knows it's hoverable for the full title */
    cursor: pointer;
}

.all_fetcher-item-premium:hover .movie-title {
    color: #d8ec1c !important;
}

/* --- 6. META ROW (LOCKED) --- */
/* Added parent so Fetcher rows don't accidentally turn blue */
.all_fetcher-item-premium .meta-below {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #abb8c3;
    margin-top: 5px;
}

.all_fetcher-item-premium .meta-below .ion-eye {
    color: #428bca !important;
}

.all_fetcher-item-premium .meta-below .ion-android-star {
    color: #f5b50a;
    margin-right: 2px;
}

/* --- 4.5 THE PLAY BUTTON STYLES --- */
.all_fetcher-item-premium .circle-play {
    all: unset !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 45px !important;
    height: 45px !important;
    background: #ff0000 !important; /* Pure vibrant red */
    border-radius: 50% !important;
    color: #fff !important;
    position: relative !important; /* Required for the ghost line */
    overflow: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;

    /* BOUNCE POP-IN EFFECT */
    transform: scale(0); /* Start hidden */
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease,
                background 0.3s ease !important;
}

/* Show button and start pulse when the item is hovered */
.all_fetcher-item-premium:hover .circle-play {
    transform: scale(1); /* Pops to normal size */
    opacity: 1;
}

/* --- THE GHOST LINE (The Ripple) --- */
.all_fetcher-item-premium .circle-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: 5px solid #ff0000;
    border-radius: 50%;
    z-index: -1;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
}


/* Trigger the Line Animation on Hover */
.all_fetcher-item-premium:hover .circle-play::after {
    animation: ghost-line-ripple-all 1.2s infinite ease-out !important;
}

.all_fetcher-item-premium .circle-play i {
    font-size: 18px !important;
    margin-left: 3px !important;
    color: #ffffff !important;
    display: block !important;
    position: relative;
    z-index: 2; /* Sits above the pulse */
}

/* Hover effect for the button itself (slight glow) */
.all_fetcher-item-premium .circle-play:hover {
    transform: scale(1.1); /* Extra pop when mouse is directly on circle */
    background: #ff3333 !important;
}

/* --- GENRE POPUP ANIMATION (all_fetcher) --- */

/* Position the genre at the bottom of the overlay */
.all-fetcher-genre-popup {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 15px 10px 10px 10px;
    text-align: center;

    /* Animation: Start hidden and shifted down */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Slide up on hover */
.all_fetcher-item-premium:hover .all-fetcher-genre-popup {
    transform: translateY(0);
}

/* Genre Text Style: Forced to 1 line */
.all-fetcher-genre-popup span {
    color: #d8ec1c !important; /* Premium yellow/green color */
    font-size: 10px !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;

    /* THE FIX: Force 1 line only */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* --- GENRE GLASS BAR WITH SMART SCROLL --- */

.genre-popup-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;

    /* THE GLASS BLUR EFFECT */
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left; /* Starts at the left end */

    /* Animation: Slide up from bottom on hover */
    transform: translateY(100%);
    transition: transform 0.4s ease;

    /* Clipping for scroll */
    overflow: hidden;
    white-space: nowrap;
}

/* Trigger slide-up on card hover */
.all_fetcher-item-premium:hover .genre-popup-bar {
    transform: translateY(0);
}

.genre-popup-bar span {
    display: inline-block;
    color: #d8ec1c !important; /* Premium Yellow/Gold */
    font-size: 10px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 15px; /* Buffer space for the loop */
}

/* Apply scroll only on hover with a 1-second delay */
.all_fetcher-item-premium:hover .genre-popup-bar span {
    animation: genre-smart-scroll 1.5s linear 1s infinite alternate;
}

/* --- MOBILE PHONE FIX (LOCKED TO ALL_FETCHER) --- */
@media screen and (max-width: 480px) {
    /* Adjust the Ghost Line expansion for mobile */
    @keyframes ghost-line-ripple-all-mobile {
        0% {
            transform: translate(-50%, -50%) scale(1);
            border: 2px solid rgba(255, 0, 0, 1);
            opacity: 1;
        }
        100% {
            transform: translate(-50%, -50%) scale(1.5); /* Smaller expansion for mobile cards */
            border: 1px solid rgba(255, 0, 0, 0);
            opacity: 0;
        }
    }

    /* Inside your @media screen and (max-width: 480px) */
    @keyframes genre-smart-scroll-mobile {
        0% { transform: translateX(0); }
        /* Increase 130px to 145px if short words move too much */
        100% { transform: translateX(min(0px, calc(-100% + 150px))); }
    }

    /* 1. Target the parent container to fix the spacing clash */
    .flex-wrap-movielist.mv-grid-fw {
        gap: 0 !important; /* Remove the gap so our 46% math works */
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .mv-grid-fw .all_fetcher-item-premium {
        width: 46% !important;
        margin: 0 2% 30px 2% !important;
        display: block !important; /* Flex children work better as blocks */
        float: none !important;
    }

    /* Fix the text breaking out of the box */
    .all_fetcher-item-premium .movie-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important; /* Force 2 lines max */
        line-clamp: 2 !important; /* Standard property for compatibility */
        -webkit-box-orient: vertical;

        /* THE FIX: Hide anything that overflows the 2 lines */
        overflow: hidden !important;
        text-overflow: ellipsis;
        white-space: normal !important;

        /* Adjust height to match line-height exactly (1.3 x 2 = 2.6) */
        height: 2.6em !important;
        min-height: 2.6em !important;

        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-top: 8px !important;
        margin-bottom: 4px !important;
    }


    /* Force the meta row to stay underneath the hidden overflow */
    .all_fetcher-item-premium .meta-below {
        display: flex !important;
        clear: both !important; /* Forces it below the title box */
        gap: 8px !important;
        padding-top: 2px !important;
    }

    .all_fetcher-item-premium .meta-below span {
        font-size: 11px !important;
        white-space: nowrap;
    }

    /* Optimized Play Button for Mobile */
    .all_fetcher-item-premium .circle-play {
        width: 36px !important;   /* Slightly larger for thumb-tapping */
        height: 36px !important;
    }

    .all_fetcher-item-premium .circle-play i {
        font-size: 16px !important; /* Smaller icon for smaller button */
        margin-left: 2px !important;
    }

    .all_fetcher-item-premium:hover .circle-play::after {
        animation: ghost-line-ripple-all-mobile 1.2s infinite ease-out !important;
    }

    /* Apply it to mobile */
    .all_fetcher-item-premium .genre-popup-bar span {
        /* We use a shorter delay (0.5s) or no delay for mobile touch */
        animation: genre-smart-scroll-mobile 1.5s linear 0.5s infinite alternate !important;

        /* Ensure it's active even if not 'hovered' because touch stays active */
        display: inline-block !important;
        width: auto !important;           /* Allows text to define its own width */
        text-align: left !important;      /* Keeps words starting at the left */
    }

    /* 3. Make sure the container allows the scroll */
    .genre-popup-bar {
        display: block !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }



/* 2. SIDEBAR MOBILE FIX (New Code) */

    /* Ensure the sidebar takes full width when it drops below the grid */
    .col-md-3.col-sm-12.col-xs-12 .sidebar {
        padding-left: 0 !important;
        margin-top: 40px !important;
        width: 100% !important;
    }

    /* Make the Trending Title centered or more prominent on mobile */
    .side-title-wrapper h4 {
        font-size: 16px !important;
        letter-spacing: 2px !important;
        justify-content: center; /* Centers title on small screens */
    }

    /* Adjust sidebar items for better thumb-tapping */
    .side-fetcher-premium {
        background: rgba(255, 255, 255, 0.03); /* Subtle background for row feel */
        padding: 10px !important;
        border-radius: 8px;
        margin-bottom: 12px !important;
        gap: 15px !important;
    }

    /* Slightly larger text for sidebar titles on mobile */
    .side-content h6 a {
        font-size: 15px !important;
        white-space: normal !important; /* Allow 2 lines if needed */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Ensure images don't get too small */
    .side-img-box {
        width: 70px !important;
        height: 100px !important;
        min-width: 70px !important;
    }

    /* 1. Adjust the Glass Bar padding for smaller screens */
    .genre-popup-bar {
        padding: 5px 8px !important;
    }

    .genre-popup-bar span {
    display: inline-block !important; /* Required for the scroll math */
    width: auto !important;           /* Allows text to define its own width */
    text-align: left !important;      /* Keeps words starting at the left */
    white-space: nowrap !important;   /* Prevents wrapping to a second line */
    padding-right: 80px !important; /* Buffer space for the scroll */
}


}


/*side fetcher*/

/* Import a modern, clean font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=JetBrains+Mono:wght@500&display=swap');

.side-fetcher-premium {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
    padding: 6px;
    font-family: 'Inter', sans-serif;
    overflow: hidden !important;
}

/* --- THE FRAME FIX --- */
.side-fetcher-premium .side-img-box {
    width: 60px !important;
    height: 90px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: border-color 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.side-fetcher-premium .side-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease-out !important;
}

/* --- TEXT STYLING --- */
.side-fetcher-premium .side-content {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important; /* Critical for ellipsis to work */
    flex: 1 !important;
}

.side-fetcher-premium .side-content h6 {
    margin: 0 0 4px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* Single line with dots */
}

.side-fetcher-premium .side-content h6 a {
    color: #f5f5f7 !important;
    text-decoration: none !important;
}

/* --- DIGITAL YEAR LOOK --- */
.side-fetcher-premium .digital-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px !important;
    color: #428bca !important;
    letter-spacing: 0.5px;
}

/* --- THE INTERNAL GLOW FIX --- */
.side-fetcher-premium:hover .side-img-box {
    border-color: #428bca !important;
    box-shadow: inset 0 0 12px 2px rgba(66, 139, 202, 0.6) !important;
}

.side-fetcher-premium:hover .side-img-box img {
    transform: scale(1.15);
    opacity: 0.7; /* Fades slightly to show the glow more clearly */
}

.side-fetcher-premium:hover h6 a {
    color: #d8ec1c !important;
}

/* --- 1. SIDEBAR META ROW --- */
.side-fetcher-premium .side-meta {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin-top: 4px !important;
}

.side-fetcher-premium .side-meta span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px !important;
    color: #abb7c4 !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    line-height: 1 !important;
}

/* --- 2. SIDEBAR ICON & STAR COLORS --- */
.side-fetcher-premium .side-meta i {
    font-size: 11px !important;
}

.side-fetcher-premium .side-meta .ion-android-star {
    color: #f5b50a !important;
}

.side-fetcher-premium .side-meta .ion-eye {
    color: #428bca !important;
}


@view-transition {
  navigation: auto; /* This is the "magic" line for multi-page sites */
}

/* Define the look of the transition */
::view-transition-old(root) {
  animation: 0.4s ease-in both fade-out;
}

::view-transition-new(root) {
  animation: 0.4s ease-out both fade-in;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

#top-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #428bca; /* Your brand blue */
    z-index: 9999;
    animation: load-progress 2s forwards;
}

@keyframes load-progress {
    from { width: 0; }
    to { width: 90%; } /* Stays at 90% until page actually switches */
}