   #ad-template-card {max-width: 300px}


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
      body {
    background-color: #1a0033;
    box-shadow: inset 0 0 100px rgba(138, 43, 226, 0.6);
    color: #e6ccff;
    line-height: 1.6;
    text-shadow: 0 0 10px #8a2be2;
}
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid #ddd;
            margin-bottom: 20px;
        }
        
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #222;
        }
        
        .copyright {
            font-size: 12px;
            color: #777;
        }
        
        .hero {
            margin-bottom: 30px;
        }
        
        .hero h1 {
            font-size: 28px;
            margin-bottom: 10px;
            color: #222;
        }
        
        .hero p {
            font-size: 16px;
            color: #555;
            margin-bottom: 15px;
        }
        
        .explore-btn {
            display: inline-block;
            background-color: #ff6b6b;
            color: white;
            padding: 8px 15px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: bold;
            margin-bottom: 25px;
        }
        
        nav {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        nav a {
            text-decoration: none;
            color: #555;
            font-weight: 500;
        }
        
        nav a:hover {
            color: #ff6b6b;
        }
        
        .video-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 25px;
        }
        
        .video-thumbnail {
            height: 200px;
            background-color: #ddd;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #777;
        }
        
        .video-info {
            padding: 15px;
        }
        
        .video-title {
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .video-channel {
            color: #777;
            font-size: 14px;
            margin-bottom: 15px;
        }
        
        .video-quote {
            font-style: italic;
            color: #555;
            margin-bottom: 15px;
            padding-left: 10px;
            border-left: 3px solid #ff6b6b;
        }
        
        .video-actions {
            display: flex;
            align-items: center;
            gap: 20px;
            color: #777;
            font-size: 14px;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }
        
        .action-btn:hover {
            color: #ff6b6b;
        }

     
        
        @media (max-width: 480px) {
            header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .hero h1 {
                font-size: 20px;
            }
            
            nav {
                gap: 10px;
            }
        }

        /**** Video detail
         *  .video-detail-container {
        margin-top: 120px;
        margin-bottom: 50px;
        max-width: 1800px;
        width: 95%;
    }

    /* Video Player Section */
    .video-player-section {
        display: flex;
        gap: 20px;
        margin-bottom: 4px;
    }

    .video-actions-column {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 60px;
    }

    .video-action-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: white;
        border: 1px solid #e0e0e0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .video-action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .video-action-btn i {
        font-size: 20px;
        margin-bottom: 3px;
    }

    .video-action-count {
        font-size: 10px;
        color: var(--text-light);
    }

    .view-action { color: var(--primary); }
    .like-action { color: #FF4757; }
    .share-action { color: var(--accent); }
    .save-action { color: var(--secondary); }

   /* Video Player Section - Updated styles */
.video-player-wrapper {
    flex: 1;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    max-height: 80vh; /* Maximum height */
    background: black;
}

.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to show full video */
}

/* For portrait videos, we'll add a class that can be added via JavaScript */
.video-player-wrapper.portrait video {
    object-fit: cover; /* For portrait videos, we'll cover to fill the container */
    width: auto;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

    /* Video Info Section */
    .video-info-section {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        margin-bottom: 30px;
    }

    .video-title {
        font-size: 24px;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 15px;
    }

    .video-description {
        color: var(--text);
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .video-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 14px;
        color: var(--text-light);
    }

    .meta-item i {
        font-size: 16px;
    }

    .vendor-info {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .vendor-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }

    .vendor-details h5 {
        font-size: 16px;
        margin-bottom: 3px;
        color: var(--dark);
    }

    .vendor-details p {
        font-size: 13px;
        color: var(--text-light);
        margin-bottom: 0;
    }

    /* Related Videos Section */
    .sidebar-section {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .section-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary);
    }

   /* Related Videos Section */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}



.related-video-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.related-video-item:hover {
    transform: translateY(-3px);
}

.related-video-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    margin-bottom: 0.75rem;
}

.related-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.related-video-item:hover .related-video-thumb video {
    opacity: 0.9;
}
#video-wrapper-contents {top:-40px;left:120px; border-left:1px solid black; padding: 10px;position: relative;}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.related-video-content {
    padding: 0 0.25rem;
}

.related-video-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-video-meta {
    font-size: 0.85rem;
    color: #666;
}

    /* Ad Sections */
    .ad-section {
        margin: 20px 0;
        padding: 15px;
        background: #f9f9f9;
        border-radius: 8px;
        text-align: center;
    }

    .ad-label {
        font-size: 10px;
        text-transform: uppercase;
        color: #999;
        margin-bottom: 5px;
        letter-spacing: 1px;
    }

    /* Autoplay Toggle */
    .autoplay-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 15px;
    }

    .autoplay-toggle input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary);
    }

    .autoplay-toggle label {
        font-size: 14px;
        color: var(--text);
        cursor: pointer;
    }

    /* Responsive Adjustments */
    @media (max-width: 1200px) {
        .video-player-section {
            flex-direction: column;
        }
        
        .video-actions-column {
            flex-direction: row;
            width: 100%;
            justify-content: center;
        }
    }

 
}

    @media (max-width: 576px) {
        #video-wrapper-contents {left:10px; }
        .video-info-section,
        .sidebar-section {
            padding: 15px;
        }
        
        .video-meta {
            gap: 10px;
        }
    }

    /* Ridoy April 28  */
     .active-like {
            background-color: #28a745 !important;
            color: white !important;
        }

        .active-dislike {
            background-color: #dc3545 !important;
            color: white !important;
        }

      

        .skip-ad-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
    display: none;
    z-index: 999;
}

.skip-ad-btn.ready {
    cursor: pointer;
    background-color: #f44336;
}

.ad-progress-bar {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    position: absolute;
    bottom: 0;
    left: 0;
}

.ad-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #ffcc00;
    transition: width 0.2s linear;
}
.sponsored-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: #ffcc00;
        color: #000;
        font-weight: bold;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        z-index: 9999;
        box-shadow: 0 0 5px rgba(0,0,0,0.3);
        text-decoration: none; /* Remove underline */
    }

    .sponsored-badge:hover {
        background-color: #ff9900; /* Slightly darker on hover */
    }
