.moments-page-container {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 40px 50px 80px;
    position: relative;
}

.moments-header {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--accent-subtle);
}

.moments-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.moments-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.moments-timeline {
    position: relative;
    padding-left: 30px;
}

.moments-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background: var(--accent-subtle);
}



.moment-date-group {
    position: relative;
}





.moment-date-label {
    margin-bottom: 20px;
    position: relative;
}

.moment-date-label::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    z-index: 1;
}

.moment-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
}

.moment-date-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.moment-date-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 30px;
}

.moment-card {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: var(--tile-bg-1);
    border: 1px solid var(--accent-subtle);
    border-radius: 12px;
    transition: all 0.25s ease;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    box-sizing: border-box;
    width: 100%;
}

.moment-card:nth-child(1) { animation-delay: 0.05s; }
.moment-card:nth-child(2) { animation-delay: 0.1s; }
.moment-card:nth-child(3) { animation-delay: 0.15s; }
.moment-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.moment-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.12);
}

.moment-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--tile-bg-2);
    border: 1px solid var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.moment-content {
    flex: 1;
    min-width: 0;
}

.moment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 6px;
}

.moment-time-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.moment-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.moment-body {
    margin-bottom: 10px;
}

.moment-text {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.92rem;
    word-wrap: break-word;
}

.moment-images {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.moment-images.single {
    grid-template-columns: 1fr;
    max-width: 260px;
}

.moment-images.multi {
    grid-template-columns: repeat(2, 1fr);
}

.moment-image-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--tile-bg-2);
}

.moment-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.moment-card:hover .moment-image-item img {
    transform: scale(1.05);
}

.moment-video {
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.moment-video-cover {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--tile-bg-2);
}

.moment-video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moment-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.moment-video-play svg {
    margin-left: 3px;
}

.moment-video-cover:hover .moment-video-play {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.moment-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--tile-bg-2);
    border: 1px solid var(--accent-subtle);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.moment-link:hover {
    border-color: var(--accent-color);
    background: var(--hover-bg);
}

.moment-link-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.moment-link-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.moment-link-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.moment-link-icon {
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.moment-link:hover .moment-link-icon {
    color: var(--accent-color);
    transform: translateX(2px);
}

@media (max-width: 600px) {
    .moments-page-container {
        padding: 20px 16px 60px;
    }

    .moments-title {
        font-size: 1.8rem;
    }

    .timeline-track {
        left: 10px;
    }

    .moment-date-group {
        padding-left: 25px;
    }

    .moment-date-dot {
        left: -14px;
        width: 8px;
        height: 8px;
    }

    .moment-card {
        padding: 14px;
        gap: 10px;
    }

    .moment-avatar {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .moment-images.multi {
        grid-template-columns: 1fr;
    }
}
