/* Tabs */
.trendtube-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.trendtube-tab {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
}

.trendtube-tab.active {
    background: #000;
    color: #fff;
}

/* Sort dropdown */
.trendtube-sort {
    padding: 8px 12px;
    margin-bottom: 16px;
    border-radius: 6px;
}

/* Grid */
.trendtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

/* Card */
.yt-card {
    cursor: pointer;
    transition: transform .2s ease;
}

.yt-card:hover {
    transform: translateY(-4px);
}

/* Thumbnail */
.yt-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
}

.yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}

.yt-card:hover .yt-thumb {
    transform: scale(1.05);
}

/* Duration */
.yt-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 6px;
    background: rgba(0,0,0,.85);
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
}

/* Info */
.yt-info { margin-top: 10px; }
.yt-title {
    font-size: 15px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yt-channel,
.yt-meta {
    color: #666;
    font-size: 13px;
}

/* More button */
.yt-more-btn {
    display: block;
    margin: 24px auto;
    padding: 10px 26px;
    background: #f0f0f0;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.yt-more-btn:hover {
    background: #e2e2e2;
}

/* Skeleton loading */
.skeleton {
    animation: skeleton-loading 1.1s linear infinite alternate;
}

.skeleton-box {
    background: #e3e3e3;
    width: 100%;
    height: 100%;
}

.skeleton-text {
    height: 12px;
    background: #e3e3e3;
    margin-top: 8px;
}

.skeleton-text.small {
    width: 60%;
}

@keyframes skeleton-loading {
    0% { background-color: #e0e0e0; }
    100% { background-color: #cfcfcf; }
}
