.youtube-channel-feeds {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
    position: relative;
}

/* Feed Header */
.ycf-feed-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ycf-feed-title {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: #333;
}

.ycf-feed-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.ycf-feed-title a:hover {
    color: #ff0000;
}

.ycf-feed-description {
    color: #666;
    font-size: 1em;
    line-height: 1.5;
}

/* Layout Styles */
.ycf-list-layout .ycf-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ycf-grid-layout .ycf-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Item Styles */
.ycf-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.ycf-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Styles */
.ycf-thumbnail {
    position: relative;
    overflow: hidden;
}

.ycf-thumbnail-container {
    position: relative;
    overflow: hidden;
}

.ycf-thumbnail-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ycf-thumbnail:hover .ycf-thumbnail-img {
    transform: scale(1.05);
}

/* Play Button */
.ycf-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    padding: 0;
}

.ycf-thumbnail-container:hover .ycf-play-button {
    opacity: 1;
}

.ycf-play-button svg {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.ycf-play-button:hover svg {
    transform: scale(1.1);
}

/* Video Embed Container */
.ycf-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20;
}

.ycf-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
}

.ycf-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.ycf-close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 30;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ycf-close-video:hover {
    background: rgba(0, 0, 0, 0.9);
}

.ycf-item.ycf-video-active {
    z-index: 100;
    position: relative;
}

/* Content Styles */
.ycf-content {
    padding: 20px;
}

.ycf-item-title {
    margin: 0 0 12px 0;
}

.ycf-item-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.ycf-item-title a:hover {
    color: #ff0000;
}

/* Meta Styles */
.ycf-meta {
    display: flex;
    flex-wrap: wrap;
    color: #666;
}

.ycf-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Description Styles */
.ycf-description {
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}

/* Action Styles */
.ycf-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ycf-play-embedded-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 0.6em;
    font-weight: 500;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.ycf-play-embedded-button:hover {
    background: #005a87;
    color: white;
}

.ycf-watch-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.6em;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.ycf-watch-button:hover {
    background: #cc0000;
    color: white;
}

/* Feed Footer */
.ycf-feed-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.ycf-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ycf-channel-link:hover {
    color: #ff0000;
}

/* Error and Loading States */
.ycf-error,
.ycf-loading {
    text-align: center;
    padding: 40px 20px;
}

.ycf-error-message {
    color: #d63638;
}

.ycf-error-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.ycf-loading-spinner {
    color: #666;
}

.ycf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: ycf-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes ycf-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ycf-no-items {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ycf-grid-layout .ycf-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .ycf-content {
        padding: 15px;
    }

    .ycf-feed-title {
        font-size: 1.5em;
    }

    .ycf-actions {
        flex-direction: column;
    }

    .ycf-play-button svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .ycf-grid-layout .ycf-items {
        grid-template-columns: 1fr;
    }

    .ycf-meta {
        flex-direction: column;
        gap: 8px;
    }

    .ycf-play-button svg {
        width: 40px;
        height: 40px;
    }
}
