.mw-video-list table {
    margin-top: 20px;
}

.mw-video-thumb img {
    max-width: 120px;
    height: auto;
}

.mw-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.mw-add-video-form {
    background: #fff;
    padding: 15px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
}
/* Grid Layout */
.mw-youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 5%;
    padding: 0 15px;
}

/* Video Item Styling */
.mw-video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.mw-video-item:hover {
    transform: translateY(-5px);
}

/* Thumbnail Container */
.mw-video-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.mw-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Content Area */
.mw-video-content {
    padding: 20px;
}

.mw-video-title {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #B58C39;
    line-height: 1.4;
    font-family: "Poppins",Helvetica,Arial,Lucida,sans-serif;
}

.mw-video-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Tisa Pro", serif !important;
}

/* Modal Styling */
.mw-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mw-video-modal.active {
    display: flex;
}

.mw-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    margin: 0 auto;
}

.mw-video-modal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.mw-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

/* Play Button */
.mw-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mw-play-button:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
}

.mw-video-thumbnail-wrapper:hover .mw-play-button {
    opacity: 1;
}

/* Admin Styles */
.mw-add-video-form {
    background: #fff;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mw-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.mw-video-list {
    margin-top: 30px;
}

.mw-video-list table {
    margin: 20px 0;
}

.mw-video-list th,
.mw-video-list td {
    padding: 15px;
}

.mw-video-thumb img {
    border-radius: 4px;
}

.mw-video-id {
    font-family: monospace;
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .mw-youtube-grid {
        margin: 25px 4%;
        gap: 20px;
        padding: 0 12px;
    }
}

@media screen and (max-width: 992px) {
    .mw-youtube-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 20px 3%;
        gap: 18px;
        padding: 0 10px;
    }
    
    .mw-video-content {
        padding: 15px;
    }

    .mw-video-modal-content {
        width: 95%;
    }
}

@media screen and (max-width: 768px) {
    .mw-youtube-grid {
        margin: 15px 2%;
        gap: 15px;
        padding: 0 8px;
    }
    
    .mw-input-group {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .mw-youtube-grid {
        grid-template-columns: 1fr;
        margin: 10px 15px;
        padding: 0 5px;
    }
    
    .mw-video-title {
        font-size: 16px;
    }
    
    .mw-video-description {
        font-size: 13px;
    }
    
    .mw-play-button {
        width: 50px;
        height: 50px;
    }
}
