.tiktok-feed {
    margin: 2em 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tiktok-feed-header {
    text-align: center;
    margin-bottom: 1.5em;
}

.tiktok-feed-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.tiktok-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    max-width: 1200px;
    margin: 0 auto;
}

.tiktok-feed-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.tiktok-feed-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tiktok-feed-item a {
    display: block;
    position: relative;
    text-decoration: none;
}

.tiktok-feed-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.tiktok-feed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tiktok-feed-item:hover .tiktok-feed-overlay {
    opacity: 1;
}

.tiktok-feed-play {
    font-size: 3em;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tiktok-feed-meta {
    padding: 1em;
}

.tiktok-feed-likes {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #ff0050;
    font-size: 0.9em;
}

.tiktok-feed-desc {
    margin-bottom: 0.8em;
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
    min-height: 2.8em;
}

.tiktok-feed-share {
    display: inline-block;
    background: linear-gradient(45deg, #ff0050, #ff4081);
    color: white !important;
    padding: 0.4em 1em;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tiktok-feed-share:hover {
    background: linear-gradient(45deg, #e91e63, #ff4081);
    transform: translateY(-1px);
}

.tiktok-feed-error {
    background: #ffebee;
    color: #c62828;
    padding: 1.5em;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ffcdd2;
    font-weight: 500;
}

@media (max-width: 768px) {
    .tiktok-feed-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1em;
    }
    
    .tiktok-feed-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .tiktok-feed-grid {
        grid-template-columns: 1fr;
    }
}
