@charset "utf-8";
/***************************************
    Video Gallery Styles - ATOP
    copyright by MakeWeb.com.tw 
***************************************/

/*-------------------------------------------------
 Video Cards Grid (使用 iframe 嵌入)
--------------------------------------------------*/
.video-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .video-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .video-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/*-------------------------------------------------
 Video Card
--------------------------------------------------*/
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/*-------------------------------------------------
 Video Embed (iframe 容器)
--------------------------------------------------*/
.video-embed {
    position: relative;
    width: 100%;
    background: #1a1a2e;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

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

/*-------------------------------------------------
 Video Content (標題、標籤、描述)
--------------------------------------------------*/
.video-content {
    padding: 20px;
}

.video-card-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #92c83e;
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.video-card-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.video-card-description {
    font-size: var(--fs-sm);
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/*-------------------------------------------------
 Video Detail Page
--------------------------------------------------*/
.video-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.video-detail-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #92c83e;
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.video-detail-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: #1a1a2e;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.video-detail-description {
    font-size: var(--fs-base);
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.video-detail-content {
    margin-bottom: 32px;
}

.video-detail-content iframe {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .video-detail-content iframe {
        height: 300px;
    }
    
    .video-detail-title {
        font-size: var(--fs-xl);
    }
}

.video-back-link {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.video-back-link a {
    display: inline-flex;
    align-items: center;
    color: #92c83e;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-back-link a:hover {
    color: #80b435;
}

/*-------------------------------------------------
 No Data
--------------------------------------------------*/
.no-data {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: var(--fs-base);
}
