.hm-mfg-section {
    overflow: hidden;
}

.hm-mfg-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.hm-mfg-video-card,
.hm-mfg-gallery-shell {
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 249, 0.98));
    border: 1px solid rgba(53, 88, 103, 0.12);
    border-radius: 28px;
    box-shadow: var(--hm-shadow-soft);
    padding: 18px;
}

.hm-mfg-video-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hm-mfg-video-frame {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 10;
}

.hm-mfg-video-poster {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.hm-mfg-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-mfg-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease;
}

.hm-mfg-yt-play {
    width: 68px;
    height: 48px;
    border-radius: 14px;
    background: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hm-mfg-yt-play::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
}

.hm-mfg-video-poster:hover .hm-mfg-video-overlay {
    background: rgba(0, 0, 0, 0.22);
}

.hm-mfg-video-poster:hover .hm-mfg-yt-play {
    transform: scale(1.06);
    background: #e62117;
}

.hm-mfg-video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hm-mfg-video-embed.is-visible,
.hm-mfg-video-embed:not([hidden]) {
    display: block;
}

.hm-mfg-video-placeholder {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--hm-muted);
    background: rgba(53, 88, 103, 0.06);
    border-radius: 20px;
}

.hm-mfg-video-placeholder i {
    font-size: 42px;
    color: var(--hm-brand);
}

.hm-mfg-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.hm-mfg-gallery-tab {
    border: 1px solid rgba(53, 88, 103, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--hm-ink);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-mfg-gallery-tab.is-active {
    background: var(--hm-brand);
    border-color: var(--hm-brand);
    color: #fff;
    box-shadow: 0 10px 24px rgba(53, 88, 103, 0.18);
}

.hm-mfg-gallery-panel {
    display: none;
}

.hm-mfg-gallery-panel.is-active {
    display: block;
}

.hm-mfg-stage {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    min-height: 320px;
}

.hm-mfg-slide {
    display: none;
}

.hm-mfg-slide.is-active {
    display: block;
}

.hm-mfg-slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.hm-mfg-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.88) 100%);
    color: #fff;
}

.hm-mfg-slide-caption strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.hm-mfg-slide-caption p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.hm-mfg-nav {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hm-mfg-nav button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hm-brand-deep);
    cursor: pointer;
}

.hm-mfg-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.hm-mfg-thumb {
    border: 1px solid rgba(53, 88, 103, 0.12);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-mfg-thumb strong {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: var(--hm-ink);
}

.hm-mfg-thumb.is-active {
    border-color: rgba(196, 123, 59, 0.45);
    background: rgba(196, 123, 59, 0.08);
    box-shadow: inset 0 0 0 1px rgba(196, 123, 59, 0.18);
}

@media (max-width: 991px) {
    .hm-mfg-split {
        grid-template-columns: 1fr;
    }

    .hm-mfg-slide img {
        height: 260px;
    }
}

@media (max-width: 575px) {
    .hm-mfg-video-card,
    .hm-mfg-gallery-shell {
        padding: 14px;
        border-radius: 22px;
    }

    .hm-mfg-gallery-tab {
        width: 100%;
        text-align: center;
    }
}
