
        /* Optimized CSS for dyshorts-display.css */
/* Optimized CSS for dyshorts-display.css */
/* Updated CSS with No Box Shadows or Hover Effects */

:root {
    --ysd-primary-color: #ff0000;
    --ysd-primary-hover: #cc0000;
    --ysd-text-color: #333;
    --ysd-bg-color: #ffffff;
    --ysd-card-bg: #ffffff;
    --ysd-border-radius: 12px;
    --ysd-transition: all 0.3s ease;
}

/* Container Styles */
.ysd-container {
/*    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--ysd-text-color);*/
    line-height: 1.6;
    max-width: 100%;
/*    margin: 0 auto 40px; */
    padding: 2.25rem 0rem 0rem 3.125rem;
    background-color: var(--ysd-bg-color);
    border-radius: var(--ysd-border-radius);
}

/* Header Styles */
.ysd-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ysd-channel-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.ysd-channel-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.ysd-channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ysd-channel-details h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 0;
}

.ysd-channel-details p {
    margin: 0;
}

.ysd-channel-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--ysd-primary-color);
    color: white !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--ysd-transition);
}

.ysd-channel-link:hover {
    background-color: var(--ysd-primary-hover);
    /* Removed transform translateY from hover */
}

/* Shorts Section */
.ysd-shorts-container {
    margin-bottom: 0px;
}

.ysd-section-title {
    font-family: "Fira Sans",sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    margin-top: 0;
}
/*
.ysd-section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--ysd-primary-color);
    border-radius: 3px;
}
*/
/* Carousel Layouts */
.ysd-shorts-desktop-carousel,
.ysd-shorts-mobile-carousel {
    margin-bottom: 60px; /* Extra space for pagination dots */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ysd-shorts-desktop-carousel.slick-initialized,
.ysd-shorts-mobile-carousel.slick-initialized {
    visibility: visible;
    opacity: 1;
}

.ysd-carousel-slide {
    padding: 5px;
}

.ysd-slide-grid {
    margin: 0 auto;
}

/* Empty placeholder for grid balance */
.ysd-empty-item {
    background-color: transparent !important;
    visibility: hidden;
}

/* Removed transform from empty item hover */

/* Short Item Styles */
.ysd-short-item {
    background-color: var(--ysd-card-bg);
    border-radius: var(--ysd-border-radius);
    overflow: hidden;
    transition: var(--ysd-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    border: 1px solid rgba(0,0,0,0.05);
    /* Removed box-shadow */
    box-sizing: border-box;
}

.ysd-short-item:hover {
    /* Removed transform and box-shadow from hover */
}

        .ysd-video-container {
            position: relative;
            width: 100%;
            padding-top: 177.78%; /* 9:16 aspect ratio */
            background-color: #f5f5f5; /* Light background instead of black */
            overflow: hidden;
            border-radius: 12px 12px 0 0; /* Round the top corners only */
        }

        .ysd-video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            background-color: transparent;
        }

/* Placeholder for lazy loading iframe */
.ysd-video-container .lazy-iframe {
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center center;
}

.ysd-video-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.ysd-short-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ysd-short-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: 2.8em;
}

.ysd-short-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #777;
    font-size: 13px;
}

.ysd-short-meta div {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.ysd-short-meta i {
    margin-right: 5px;
}

.ysd-short-link {
    margin-top: auto;
    display: inline-block;
    padding: 8px 0;
    text-align: center;
    text-decoration: none !important;
    color: var(--ysd-primary-color) !important;
    font-weight: 500;
    transition: var(--ysd-transition);
    border-top: 1px solid #eee;
}

.ysd-short-link:hover {
    color: var(--ysd-primary-hover) !important;
}

/* Error Message */
.ysd-error-container {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: var(--ysd-border-radius);
    margin: 30px auto;
    max-width: 500px;
    border: 1px solid rgba(0,0,0,0.05);
}

.ysd-error-icon {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.ysd-error-message {
    font-size: 18px;
    margin-bottom: 20px;
    color: #555;
}

/* Slick Customization */
.slick-slider {
    margin-bottom: 0px;
}

.slick-slide {
    height: auto;
}

.slick-track {
    display: flex;
    align-items: stretch;
}

.slick-prev, .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    transition: var(--ysd-transition);
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-prev:hover, .slick-next:hover {
    background-color: white;
}

.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
    color: var(--ysd-text-color);
    opacity: 1;
}

.slick-prev:before {
    content: '053'; /* fa-chevron-left */
}

.slick-next:before {
    content: '054'; /* fa-chevron-right */
}

/* Desktop dots */
.ysd-shorts-desktop-carousel .slick-dots {
    bottom: -30px;
}

.ysd-shorts-desktop-carousel .slick-dots li button:before {
    font-size: 120px;
    color: #ccc;
}

.ysd-shorts-desktop-carousel .slick-dots li.slick-active button:before {
    color: var(--ysd-primary-color);
}

/* Optimized for mobile: hide dots, bigger arrows on mobile */
.ysd-shorts-mobile-carousel .slick-dots {
    display: none !important;
}

.ysd-shorts-mobile-carousel .slick-prev,
.ysd-shorts-mobile-carousel .slick-next {
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.9);
}

.ysd-shorts-mobile-carousel .slick-prev:before,
.ysd-shorts-mobile-carousel .slick-next:before {
    font-size: 24px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ysd-dots-container.mobile-dots {
        order: 2; /* This ensures it appears after the carousel */
        position: relative;
        bottom: 0;
        margin-top: 15px;
        padding-top: 10px;
        padding-bottom: 15px;
        display: block !important;
    }
    
    /* Ensure carousel doesn't have extra bottom margin */
    .ysd-shorts-mobile-carousel {
        margin-bottom: 5px !important; /* Reduce margin to pull dots closer */
    }
    
    .ysd-carousel-wrapper {
        margin-bottom: 15px !important; /* Reduce wrapper margin */
        padding-bottom: 0px !important; /* Ensure enough space for dots but not excessive */
    }
    
    /* Adjust spacing for the container on mobile */
    .ysd-shorts-container {
        margin-bottom: 20px !important;
    }
    
    /* Ensure dots are still visible but closer to content */
    .ysd-carousel-wrapper .slick-dots {
        bottom: 0px !important;
        position: relative !important;
    }
    
    /* Reduce spacing between multiple shortcodes */
    .ysd-container {
        margin: 0 auto 0px !important; /* Reduce bottom margin from 40px to 15px */
        padding: 15px !important; /* Reduce padding for more compact display */
    }
    
    /* Further reduce unnecessary spacing in container elements */
    .ysd-container + .ysd-container {
        margin-top: 15px !important; /* Reduce from default 40px */
    }
    
    /* Make header more compact */
    .ysd-header {
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
    }
    
    /* Remove any excessive margin from slick elements */
    .slick-slider {
        margin-bottom: 0px !important;
    }
    
    /* Reduce section title spacing */
    .ysd-section-title {
        margin-bottom: 10px !important;
    }
    
    .ysd-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .ysd-channel-info {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .ysd-channel-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .ysd-shorts-desktop-carousel {
        display: none !important;
    }
    
    .ysd-shorts-mobile-carousel {
        display: block !important;
    }
    
    .ysd-section-title {
        text-align: center;
        display: block;
    }
    /*
    .ysd-section-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    */
    /* Ensure proper stacking order in mobile view */
    .ysd-carousel-wrapper.mobile-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    /* Position dots below content */
    .ysd-carousel-wrapper.mobile-wrapper .ysd-shorts-mobile-carousel {
        order: 1;
    }
    
    .ysd-carousel-wrapper.mobile-wrapper .ysd-dots-container.mobile-dots {
        order: 2;
        margin-top: 10px;
        padding-bottom: 15px;
        position: relative;
        display: block !important;
    }
    
    /* Make dots more visible and properly positioned */
    .slick-dots {
        position: relative !important;
        bottom: 0 !important;
        margin-top: 10px;
        padding: 0;
        display: block !important;
    }
    
}

@media (min-width: 769px) {
    .ysd-dots-container {
        margin: 0 !important;
    }
    .mobile-wrapper {
        display: none !important;
    }
    .ysd-shorts-mobile-carousel {
        display: none !important;
    }
    
    .ysd-shorts-desktop-carousel {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .ysd-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .ysd-channel-details h2 {
        font-size: 20px;
    }
    
    .ysd-short-content {
        padding: 12px;
    }
    
    /* Even larger arrows for very small screens */
    .ysd-shorts-mobile-carousel .slick-prev,
    .ysd-shorts-mobile-carousel .slick-next {
        width: 42px;
        height: 42px;
    }
}
/* Dot container styling */
.ysd-dots-container {
    margin-top: 10px;
    margin-bottom: 0px;
    width: 100%;
    text-align: center;
}

/* Remove custom dots styling to let slick-theme.css handle it */
.ysd-carousel-wrapper .slick-dots {
    position: relative !important; 
    bottom: 0 !important;
}

/* Hide mobile dots on desktop and vice versa */
@media (min-width: 769px) {
    #mobile-dots {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #desktop-dots {
        display: none !important;
    }
}

/* Ensure proper spacing and isolation between shortcodes */
.ysd-carousel-wrapper {
    position: relative;
    padding-bottom: 0px;
}

.ysd-carousel-wrapper .slick-dots {
    bottom: 0;
    position: absolute;
    width: 100%;
    text-align: center;
    display: block !important;
}

.ysd-carousel-wrapper .slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

/* Hide arrows since we're using dots for all instances */
.ysd-carousel-wrapper .slick-arrow {
    display: none !important;
}

/* Fix for mobile display */
@media (max-width: 768px) {
    .ysd-carousel-wrapper.mobile-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .ysd-carousel-wrapper.mobile-wrapper .ysd-shorts-mobile-carousel {
        order: 1 !important;
    }
    
    .ysd-carousel-wrapper.mobile-wrapper .ysd-dots-container.mobile-dots {
        order: 2 !important;
        margin-top: 15px !important;
        position: relative !important;
        bottom: 0 !important;
        display: block !important;
        z-index: 1 !important;
    }
    
    .slick-slider {
        margin-bottom: 0px !important;
    }
}

/* Hide mobile dots on desktop and vice versa */
@media (min-width: 769px) {
    #mobile-dots {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #desktop-dots {
        display: none !important;
    }
}

