/* =========================
   PRIME / AMAZON STYLE CAROUSEL
========================= */
.prime-carousel {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background: linear-gradient(to right, #050505 0%, #120a05 45%, #241208 70%, #000 100%);
}

.prime-list {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ALL ITEMS */
.prime-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 260px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    transition: all 0.8s ease;
    overflow: hidden;
}

/* BIG HERO ITEM = ONLY FIRST ITEM */
.prime-item:nth-child(1) {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 62% center;
    z-index: 1;
}

/* Right-side small thumbnails */
.prime-item:nth-child(2) {
    left: 68%;
    z-index: 5;
}

.prime-item:nth-child(3) {
    left: calc(68% + 200px);
    z-index: 5;
}

.prime-item:nth-child(4) {
    left: calc(68% + 400px);
    z-index: 5;
}

.prime-item:nth-child(5) {
    left: calc(68% + 600px);
    z-index: 5;
}

.prime-item:nth-child(n+6) {
    left: calc(68% + 800px);
    opacity: 0;
    pointer-events: none;
}

/* Overlay only for big hero */
.prime-item:nth-child(1)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.86) 0%,
        rgba(0,0,0,0.68) 22%,
        rgba(0,0,0,0.30) 42%,
        rgba(0,0,0,0.08) 62%,
        rgba(0,0,0,0.08) 100%
    );
    z-index: 1;
}

/* content hidden for all by default */
.prime-content {
    display: none;
}

/* show content ONLY for active hero */
.prime-item:nth-child(1) .prime-content {
    display: block;
    position: absolute;
    top: 50%;
    left: 90px;
    transform: translateY(-50%);
    width: 430px;
    z-index: 3;
    color: #fff;
    animation: fadeSlideIn 0.8s ease;
}

/* TEXT */
.prime-author {
    font-size: 56px;
    color: #ff14b8;
    line-height: 1.05;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prime-title {
    font-size: 40px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 3px 4px 8px rgba(255,255,255,0.35);
    word-break: break-word;
    overflow-wrap: break-word;
}

.prime-synopsis {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 26px;
    max-width: 95%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prime-btn button {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid #ff14b8;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.prime-btn button:hover {
    background: #ff14b8;
    border-color: #ff14b8;
}

/* Arrows */
.prime-arrows {
    position: absolute;
    left: 360px;
    bottom: 70px;
    z-index: 10;
    display: flex;
    gap: 14px;
}

.prime-arrows button {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #ff14b8;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s ease;
}

.prime-arrows button:hover {
    background: #fff;
    color: #000;
}

/* Timer */
.prime-timer {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #ff14b8;
    z-index: 10;
    animation: primeTimer 7s linear forwards;
}

@keyframes primeTimer {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-30px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
        filter: blur(0);
    }
}

/* Mobile */
@media (max-width: 900px) {
    .prime-carousel {
        display: none;
    }
}