/* ==========================================================================
   Video Theater Overlay (劇院模式全螢幕燈箱)
   ========================================================================== */

.video-theater-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 8, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.video-theater-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* 關閉按鈕 */
.video-theater-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10502;
}

.video-theater-close:hover {
    background: rgba(220, 53, 69, 0.85);
    border-color: rgba(220, 53, 69, 1);
    transform: scale(1.08);
}

/* 影片播放容器（16:9 比例） */
.video-theater-stage {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    position: relative;
    z-index: 10501;
}

.video-theater-aspect {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.video-theater-aspect iframe,
.video-theater-aspect video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    object-fit: contain;
}

/* 影片標題列 */
.video-theater-meta {
    margin-top: 1.25rem;
    color: #fff;
    text-align: left;
    max-width: 1050px;
    width: 100%;
}

.video-theater-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 0.35rem;
}

.video-theater-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    max-height: 3.5rem;
    overflow-y: auto;
}

.video-theater-ext-link {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: #ff4e45;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.video-theater-ext-link:hover {
    color: #fff;
    background: #e62117;
    border-color: #e62117;
}

/* 影音卡片樣式 */
.video-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.video-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #111;
    overflow: hidden;
}

.video-card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-card-thumb {
    transform: scale(1.05);
}

/* 播放小按鈕徽章 */
.video-card-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.video-card:hover .video-card-play-badge {
    background: #dc3545;
    transform: translate(-50%, -50%) scale(1.15);
    border-color: #dc3545;
}

/* 類型標籤 */
.video-card-type-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.video-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2b303a;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-desc {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.video-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8c98a4;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.6rem;
    margin-top: auto;
}
