/* UGC Infinite Scroll Track */
.ugc-section {
    position: relative;
    overflow: hidden;
    background: #08121a;
    /* Dark background */
}

.ugc-carousel {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    white-space: nowrap;
    /* Fade masks at edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ugc-track {
    display: inline-flex;
    gap: 30px;
    animation: scrollUGC 20s linear infinite;
    /* Faster speed */
    width: max-content;
    padding-left: 30px;
    /* Initial offset */
}

.ugc-carousel:hover .ugc-track {
    animation-play-state: paused;
}

/* 9:16 Phone Card Style (Original "Reels" Look) */
.ugc-card {
    width: 280px;
    height: 500px;
    /* 9:16 ratio */
    background: #1e293b;
    border-radius: 20px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    /* Reset flex */
    padding: 0;
    text-align: left;
}

.ugc-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(34, 113, 177, 0.3);
    border-color: var(--color-accent-teal);
}

/* Full Size Media Background */
.ugc-media {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    position: absolute;
    /* Fill card */
    top: 0;
    left: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0;
    z-index: 1;
}

.ugc-card:hover .ugc-media {
    border-color: transparent;
    transform: none;
}

/* Play Button Overlay */
.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.ugc-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(34, 113, 177, 0.8);
}

.play-triangle {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid #fff;
    margin-left: 6px;
}

/* Overlay Text */
.ugc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    /* More padding top */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    color: #fff;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Force gap between name and caption */
}

.ugc-user {
    display: none;
    /* User requested removal */
}

.ugc-caption {
    font-size: 1.1rem;
    /* Increased from 0.95rem */
    font-weight: 600;
    /* Made bolder */
    color: #fff;
    line-height: 1.4;
    font-style: normal;
    opacity: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Allow more lines since name is gone */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Hide floating hearts for original clean look */
.floating-hearts {
    display: none;
}

@keyframes scrollUGC {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half the length */
    }
}