:root {
    --film-bg: #07080a;
    --film-bg-card: #12141a;
    --film-border: rgba(255, 255, 255, 0.12);
    --film-accent: #3b82f6;
    --film-gold: #f59e0b;
    --film-text: #e2e8f0;
    --film-text-muted: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body.bg-film-dark {
    background-color: var(--film-bg);
    color: var(--film-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.03em;
    overflow-x: hidden;
}

/* 隱藏 Joomla 預設產生之多餘標籤 */
.breadcrumb,
.page-header h1:empty,
.page-header h2:empty {
    display: none !important;
}

/* 頂部導航列 */
.film-navbar {
    background: rgba(7, 8, 10, 0.94);
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--film-border);
    z-index: 1050;
}

.film-navbar .navbar-brand {
    color: #ffffff !important;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
}

.film-navbar .navbar-brand .film-tag-badge {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.12em;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.film-navbar .nav-link {
    color: #cbd5e1 !important;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 0 0.75rem;
    transition: color 0.2s ease;
}

.film-navbar .nav-link:hover,
.film-navbar .nav-link.active {
    color: #ffffff !important;
}

.btn-back-photo {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #cbd5e1;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 0.45rem 1.1rem;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-back-photo:hover {
    background-color: #ffffff;
    color: #07080a;
    border-color: #ffffff;
}

/* =========================================
   Variant A: Video Hero Background
   ========================================= */
.hero-video-banner {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3.5rem;
    background-color: #000000;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    filter: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(7, 8, 10, 0.2) 0%,
        rgba(7, 8, 10, 0) 40%,
        rgba(7, 8, 10, 0) 70%,
        rgba(7, 8, 10, 0.85) 100%
    );
    z-index: 2;
}

/* =========================================
   Variant B: Cinematic Poster Hero with Play Button
   ========================================= */
.hero-poster-banner {
    position: relative;
    height: 92vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #000000;
}

.hero-poster-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    z-index: 1;
}

.hero-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(7, 8, 10, 0.25) 0%, rgba(7, 8, 10, 0.85) 100%),
                linear-gradient(180deg, rgba(7, 8, 10, 0.3) 0%, rgba(7, 8, 10, 0.95) 100%);
    z-index: 2;
}

.play-reel-btn {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.4);
}

.play-reel-btn:hover {
    transform: scale(1.1);
    background: rgba(59, 130, 246, 0.85);
    border-color: #ffffff;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.8);
    color: #ffffff;
}

.play-reel-btn svg {
    margin-left: 5px;
    fill: currentColor;
}

/* =========================================
   作品分類與 16:9 影音卡片網格
   ========================================= */
.film-filter-btn {
    background: transparent;
    border: 1px solid var(--film-border);
    color: #94a3b8;
    padding: 0.5rem 1.3rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 2px;
}

.film-filter-btn:hover,
.film-filter-btn.active {
    background: #ffffff;
    color: #07080a;
    border-color: #ffffff;
}

.video-card {
    position: relative;
    background-color: var(--film-bg-card);
    border: 1px solid var(--film-border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #000;
}

.video-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.video-card:hover .video-thumbnail-wrapper img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.video-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.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 3;
}

.video-card:hover .video-play-badge {
    background: rgba(59, 130, 246, 0.9);
    border-color: #ffffff;
    transform: translate(-50%, -50%) scale(1.15);
}

.video-meta {
    padding: 1.1rem 1.25rem;
    background: linear-gradient(180deg, #12141a 0%, #0b0c0f 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.video-cat-badge {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: 600;
}

.video-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.35rem 0 0.2rem 0;
}

.video-desc {
    color: var(--film-text-muted);
    font-size: 0.83rem;
    margin-bottom: 0;
}

/* =========================================
   全螢幕影音燈箱彈窗 (Video Lightbox Modal)
   ========================================= */
.film-modal .modal-content {
    background-color: #0b0c0f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.film-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1.4rem;
}

.film-modal-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000000;
}

.film-modal-video-container iframe,
.film-modal-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
   About & Services 區塊
   ========================================= */
.service-card {
    background-color: var(--film-bg-card);
    border: 1px solid var(--film-border);
    padding: 2rem 1.7rem;
    border-radius: 4px;
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-num {
    font-family: monospace;
    color: #93c5fd;
    font-weight: bold;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
}

/* 預約表單 */
.film-form .form-label {
    color: #e2e8f0;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.film-input {
    background-color: #141720 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 2px !important;
    color: #ffffff !important;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    color-scheme: dark;
}

.film-input:focus {
    background-color: #1a1e2a !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6 !important;
    outline: none;
    color: #ffffff !important;
}

.film-input::-webkit-input-placeholder { color: #64748b !important; }
.film-input::placeholder { color: #64748b !important; }

.film-btn {
    border-radius: 2px;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    padding: 0.9rem 2.5rem;
    transition: all 0.3s ease;
}

.film-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.film-alert {
    background-color: #141720;
    border-radius: 2px;
    font-size: 0.92rem;
}

/* Showreel 主畫面文字微調：縮小字體且強化陰影與微透底襯，突出動態背景 */
.hero-desc-highlight {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.04em;
    max-width: 680px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 3px #000000;
    padding: 0;
    margin-bottom: 1.5rem;
}

/* 頂部導航列多分類樣式優化 */
.film-navbar .nav-link.nav-filter-link {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.65rem;
    color: #cbd5e1;
    transition: all 0.25s ease;
}

.film-navbar .nav-link.nav-filter-link:hover,
.film-navbar .nav-link.nav-filter-link.active {
    color: #60a5fa !important;
}

/* =========================================
   About & Business Scope Cards (v16)
   ========================================= */
.about-scope-card {
    background: var(--film-bg-card);
    border: 1px solid var(--film-border);
    border-radius: 6px;
    padding: 1.5rem 1.65rem;
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
}

.about-scope-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    opacity: 0.6;
    transition: opacity 0.28s ease;
}

.about-scope-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.about-scope-card:hover::before {
    opacity: 1;
}

.about-scope-card .scope-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.1em;
}

.about-scope-card .scope-en {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--film-text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
