/* TrendTok.ai Styles v2 */
.trendtok-trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.trendtok-trend-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.trendtok-trend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(0, 255, 136, 0.5);
}

.trendtok-trend-card {
    border: 1px solid transparent;
}

.trendtok-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0d0d1a;
}

.trendtok-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trendtok-platform-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 15px 20px 10px;
}

.trendtok-platform-youtube { background: #ff0000; color: #fff; }
.trendtok-platform-tiktok  { background: #ff0050; color: #fff; }
.trendtok-platform-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }

.trendtok-trend-title {
    font-size: 15px;
    margin: 0 20px 10px;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trendtok-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin: 0 20px 15px;
}

.trendtok-views, .trendtok-engagement {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trendtok-engagement {
    color: #ff6b6b;
}

.trendtok-open {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    margin-top: auto;
}

.trendtok-open:hover {
    opacity: 0.9;
    color: #fff;
}

/* Modal */
#trendtok-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.trendtok-modal-content {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 90%;
    max-width: 960px;
}

.trendtok-video-wrapper iframe {
    width: 100%;
    height: 540px;
    border: 0;
}

.trendtok-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}
