/* YouTube-Style Card Components */
.youtube-card {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.youtube-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.4);
}

.youtube-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.youtube-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-card:hover .youtube-thumbnail img {
    transform: scale(1.05);
}

/* YouTube Play Button Overlay */
.youtube-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.youtube-play-button {
    width: 0;
    height: 0;
    border-left: 24px solid #fff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 4px;
}

.youtube-play-overlay:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Duration Badge */
.youtube-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    z-index: 5;
}

/* YouTube Meta Information */
.youtube-meta {
    padding: 12px;
    background: rgba(15, 15, 15, 0.95);
}

.youtube-channel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.youtube-channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.youtube-channel-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    flex: 1;
}

.youtube-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.youtube-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.youtube-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.youtube-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* YouTube Red Accent Colors */
.youtube-accent {
    color: #FF0000;
}

.youtube-accent-bg {
    background: linear-gradient(135deg, #FF0000, #CC0000);
}

/* Feed YouTube Cards */
.yt-feed-card {
    background: rgba(15, 15, 15, 0.95) !important;
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
}

.yt-feed-card .youtube-thumbnail {
    border-radius: 12px 12px 0 0;
}

.yt-feed-card:hover {
    border-color: rgba(255, 0, 0, 0.5) !important;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3) !important;
}

/* YouTube Carousel Cards */
.youtube-carousel-card {
    background: rgba(15, 15, 15, 0.98);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.youtube-carousel-card:hover {
    border-color: rgba(255, 0, 0, 0.6);
    box-shadow: 0 16px 48px rgba(255, 0, 0, 0.4);
}



