body {
    font-family: Arial, sans-serif;
    margin: 0;
    text-align: center;
}

h1 {
    margin-bottom: 0;
}

.carousel-container {
    position: relative;
    max-width: 300px;
    /* Matches TikTok embed width */
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.post-embed {
    flex: 0 0 300px;
    /* Fixed width for each embed */
    min-width: 300px;
    display: none;
    /* Hide by default */
}

.post-embed.active {
    display: block;
    /* Show only active embed */
}

.arrow-container {
    max-width: 350px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    user-select: none;
}

.arrow.left {
    left: 0;
}

.arrow.right {
    right: 0;
}

.arrow:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error {
    color: red;
    padding: 10px;
    background: #ffe6e6;
    border-radius: 4px;
}