* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
}

/* Five Boxes Section */
.nebula {
    width: 1450px;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 40px; /* Space below for article list */
    margin-bottom: 40px;
}

.star {
    width: 282px;
    height: 470px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover animation */
}

.star:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.star-glow {
    font-size: 20px;
    text-align: center;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    max-width: 90%;
    margin: 0 auto;
    white-space: normal;
    line-height: 1.2;
}

/* Article List Section */
.quixotic-vessel {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 15px;
}

.whimsical-tomes {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zestful-tale {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100px;
}

.zestful-tale:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.zestful-tale img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.tale-caption {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.tale-caption:hover {
    color: #ad0606;
}

.zestful-video {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 315px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zestful-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.zestful-loader {
    display: none;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
}

.zestful-loader.active {
    display: block;
}

.zestful-loader::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #b60505;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.peculiar-wing {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glimmer-poster {
    width: 300px;
    height: 250px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.glimmer-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anchored {
    position: sticky;
    top: 20px;
}

.mystic-revelry {
    position: relative;
    width: 300px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.revelry-core {
    display: flex;
    transition: transform 0.5s ease;
}

.revelry-piece {
    min-width: 300px;
    height: 150px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 10px;
}

.revelry-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.back {
    left: 10px;
}

.forth {
    right: 10px;
}

/* Responsive Design for Boxes */
@media (max-width: 1400px) {
    .nebula {
        width: 100%;
        padding: 0 10px;
    }

    .star {
        width: calc((100% - 30px) / 4);
        height: 400px;
    }
}

@media (max-width: 1024px) {
    .star {
        width: calc((100% - 20px) / 3);
        height: 350px;
    }

    .star-glow {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .star {
        width: calc((100% - 10px) / 2);
        height: 300px;
    }

    .star-glow {
        font-size: 16px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .star {
        width: 100%;
        height: 250px;
    }

    .star-glow {
        font-size: 14px;
        max-width: 95%;
    }
}

/* Responsive Design for Article List */
@media (max-width: 768px) {
    .quixotic-vessel {
        flex-direction: column;
    }

    .peculiar-wing {
        align-items: center;
    }

    .glimmer-poster, .mystic-revelry {
        width: 100%;
        max-width: 300px;
    }

    .zestful-tale {
        height: 80px;
    }

    .zestful-tale img {
        width: 120px;
        height: 80px;
    }

    .tale-caption {
        font-size: 14px;
    }

    .zestful-video {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .tale-caption {
        font-size: 12px;
    }

    .zestful-tale img {
        width: 100px;
        height: 80px;
    }

    .revelry-piece {
        font-size: 14px;
    }

    .zestful-video {
        height: 180px;
    }
}