.poem-carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.hide-all-elements .poem-carousel-container {
    opacity: 1 !important;
    visibility: visible !important;
}

.poem-carousel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: grab;
    pointer-events: auto;
}

.poem-carousel:active {
    cursor: grabbing;
}

.poem-scroll-track {
    position: absolute;
    width: 100%;
    will-change: transform;
}

.poem-item {
    width: 100%;
    text-align: center;
    padding: 8px 15px;
    opacity: 1;
    margin-bottom: 8px;
}

.poem-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poem-category {
    font-size: 12px;
    color: rgba(150, 150, 150, 0.8);
    margin-bottom: 2px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.poem-content {
    font-size: 17px;
    color: rgba(45, 45, 45, 1);
    line-height: 1.8;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'Georgia', serif;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
    margin: 4px 0;
}

.poem-line {
    margin: 2px 0;
}

.poem-source {
    font-size: 13px;
    color: rgba(140, 140, 140, 0.75);
    margin-top: 6px;
    padding-top: 6px;
    font-style: normal;
    font-family: 'STSong', 'SimSun', '宋体', serif;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .poem-carousel {
        width: 95%;
        max-width: 400px;
    }

    .poem-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .poem-content {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .poem-category {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .poem-source {
        font-size: 11px;
    }
}
