.highlight-container {
    padding: 40px 20px;
}

/* Highlight Circle */
/* Highlight Circle */
.highlight-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto 15px;
    position: relative;
    padding: 5px; /* thickness of gradient border */
    background: conic-gradient(
        from 0deg,
        #f58529,  /* orange */
        #dd2a7b,  /* pink */
        #8134af,  /* purple */
        #515bd4,  /* blue */
        #f58529   /* loop back to orange */
    );
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Poster Image Inside */
.highlight-circle img.highlight-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #111; /* inner separator (dark or white) */
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

/* Hover effect on circle */
.highlight-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}{
}


/* Label */
.highlight-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 16px;
    margin-top: 6px;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
/* Fullscreen modal overrides */
.story-fullscreen {
  background: black !important;   /* pure black bg */
  border-radius: 0 !important;   /* remove rounding */
  border: none !important;
  padding: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Story container = full viewport */
.story-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Poster = fill screen */
.story-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1); /* 0.6 = darker */
    transition: transform 0.4s ease;
}


.story-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* full bleed */
}

/* Progress bar on top */
.story-progress {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  gap: 5px;
  padding: 0 10px;
  z-index: 10;
}

/* Story counter on bottom */
.story-counter {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Bottom overlay */
.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  color: white;
  z-index: 2; /* always on top of overlay */
}
.movie-title-large {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8); /* stronger shadow */
}

.movie-rating-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,0.6); /* semi-transparent dark pill */
  backdrop-filter: blur(4px);   /* adds frosted-glass effect */
}

.rating-stars-large {
  font-size: 18px;
  color: #ffd700; /* bright gold */
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.rating-text-large {
    font-size: 16px;
}
.story-progress {
    display: flex;
    gap: 5px;
    padding: 12px 16px; /* space around the bars */
    background: rgba(0, 0, 0, 0.35); /* translucent bg like IG */
    backdrop-filter: blur(4px);
    border-radius: 8px;
    margin-top: 12px; /* space above the progress bar */
}

/* Each segment */
.progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.25); /* inactive */
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

/* Active segment (filling animation) */
.progress-segment.active {
    background: linear-gradient(to right, #f58529, #dd2a7b, #8134af, #515bd4);
    width: 0;
    animation: fillStory 5s linear forwards; /* sync with storyDuration */
}

/* Completed segments */
.progress-segment.completed {
    background: white;
}

/* Animation for filling bar */
@keyframes fillStory {
    from { width: 0; }
    to { width: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .highlight-circle {
        width: 65px;
        height: 65px;
        border-width: 3px;
    }

    .highlight-label {
        font-size: 11px;
    }
}

        .modal-content {
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background-color: rgba(4, 13, 24, 0.95) !important;
            backdrop-filter: blur(20px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            height: 80vh;
            max-height: 600px;
        }

        .modal-header {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 24px 24px 0 0;
            padding: 15px 20px;
        }

        .modal-title {
            color: white;
            font-weight: bold;
            font-size: 1.1rem;
        }

        .btn-close {
            filter: invert(1); /* makes it white */
            opacity: 1 !important; /* always visible */
        }
        
        .btn-close:hover,
        .btn-close:focus {
            background-color: transparent !important;
            color: white !important;
        }


        .story-progress {
            display: flex;
            gap: 4px;
            padding: 0 20px 15px;
            background: rgba(255, 255, 255, 0.05);
        }

        .progress-bar {
            flex: 1;
            height: 3px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: white;
            width: 0%;
            transition: width 0.3s ease;
        }

        .progress-fill.active {
            width: 100%;
        }

        .story-container {
            position: relative;
            height: calc(100% - 60px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .movie-story {
            text-align: center;
            max-width: 300px;
            width: 100%;
        }

        /* Poster styling - cinematic card */
.movie-poster-large {
    width: 220px;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    margin: 0 auto 25px;
    background: #111;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 
                0 0 0 1px rgba(255,255,255,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.movie-poster-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: transform 0.4s ease;
}

.movie-poster-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 
                0 0 0 1px rgba(255,255,255,0.2);
}

.movie-poster-large:hover img {
    transform: scale(1.05);
}

/* Movie Title */
.movie-title-large {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Rating container */
.movie-rating-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 4px rgba(255,255,255,0.1);
    margin-bottom: 25px;
}

/* Stars */
.rating-stars-large {
    color: #facc15; /* golden yellow */
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

/* Numeric rating */
.rating-text-large {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

        .story-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .story-nav:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-50%) scale(1.1);
        }

        .story-nav.prev {
            left: 20px;
        }

        .story-nav.next {
            right: 20px;
        }

        .story-nav i {
            color: white;
            font-size: 14px;
        }

        .story-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            .highlight-circle {
                width: 60px;
                height: 60px;
            }
            
            .highlight-icon {
                font-size: 18px;
            }
            
            .highlight-label {
                font-size: 10px;
            }
            
            .modal-content {
                height: 85vh;
            }
            
            .movie-poster-large {
                width: 160px;
                height: 220px;
                font-size: 48px;
            }
            
            .movie-title-large {
                font-size: 1.2rem;
            }
            
            .story-nav {
                width: 35px;
                height: 35px;
            }
        }