/* Modern Recently Added Series Grid */
.latest-series-section {
    margin-bottom: 80px;
}

.genre-section {
    margin-top: -30px;
    /* Bring sections closer */
}

.tumunu-gor-btn-small {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.tumunu-gor-btn-small:hover {
    color: var(--primary);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    white-space: nowrap;
}

.section-line {
    height: 2px;
    flex: 1;
    background: linear-gradient(to right, var(--primary), transparent);
    opacity: 0.3;
}

.latest-series-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-top: 30px;
}

.latest-series-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 2/3;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    border: var(--glass-border);
}

.latest-series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.latest-series-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 0, 51, 0.3);
}

.latest-series-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.5) blur(2px);
}

.latest-series-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.3) 50%, transparent 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    /* Keep visible but dark part at bottom */
    transition: var(--transition);
}

.latest-series-card:hover .latest-series-overlay {
    background: linear-gradient(to top, rgba(255, 0, 51, 0.4) 0%, rgba(10, 10, 11, 0.8) 100%);
}

.latest-series-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.latest-series-imdb {
    background: rgba(255, 171, 0, 0.9);
    color: #000;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-series-year {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.latest-series-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-top: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.latest-series-genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.latest-series-genres .genre {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.latest-series-genres .genre:hover {
    color: #fff;
}

.genre-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

/* Status Badges for Latest Series */
.latest-series-card .status-badge-overlap {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.latest-series-card .status-badge-overlap.new {
    background: #00c853;
}
.latest-series-card .status-badge-overlap.season {
    background: #2979ff;
}
.latest-series-card .status-badge-overlap.final {
    background: var(--primary);
}
.latest-series-card .status-badge-overlap.popular {
    background: #ffab00;
}

.latest-series-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.8);
    z-index: 5;
}

.latest-series-card:hover .latest-series-play-center {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.latest-series-more-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 40px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.latest-series-more-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 0, 51, 0.3);
}

@media (max-width: 1200px) {
    .latest-series-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .latest-series-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .latest-series-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-title {
        font-size: 22px;
    }

    .latest-series-title {
        font-size: 15px;
    }
}