/* VG Movie Section Styles */
#vg_lp_movie {
    position: relative;
    padding: 75px 0 90px;
    background: #e50019;
    overflow: hidden;
    max-width: 100vw;
}

@media screen and (max-width: 767px) {
    #vg_lp_movie {
        padding: 30px 0 60px;
    }
}

.inner {
    max-width: 1100px;
    width: 91.428571%;
    margin: 0 auto;
}

.sec_ttl {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 767px) {
    .sec_ttl {
        flex-direction: column;
        justify-content: center;
    }
}

.sec_ttl .ttl_en {
    margin-right: 34px;
}

@media screen and (max-width: 767px) {
    .sec_ttl .ttl_en {
        margin-right: 0;
    }
}

.sec_ttl .ttl_en img {
    width: auto;
    max-width: inherit;
    height: 88px;
}

@media screen and (max-width: 767px) {
    .sec_ttl .ttl_en img {
        height: 44px;
    }
}

.sec_ttl.white .ttl_ja {
    color: #e50019;
    background-color: #fff;
}

.sec_ttl .ttl_ja {
    color: #fff;
    font-weight: 700;
    font-size: 38px;
    line-height: 1;
    padding: 6px 10px;
    background-color: #e50019;
}

@media screen and (max-width: 767px) {
    .sec_ttl .ttl_ja {
        font-size: 18px;
        padding: 4px 8px;
        margin-top: 13px;
    }
}

/* Movie Container */
#vg_lp_movie .movie {
    position: relative;
    max-width: 980px;
    aspect-ratio: 16/9;
    margin: 50px auto 0;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 767px) {
    #vg_lp_movie .movie {
        margin: 25px 15px 0;
        max-width: calc(100% - 30px);
        border-radius: 8px;
    }
}

/* Video Element */
#vg_lp_movie .movie video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Custom Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie:hover .video-controls {
    opacity: 1;
}

.play-pause-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.play-icon, .pause-icon {
    width: 0;
    height: 0;
}

.play-icon {
    border-left: 15px solid #e50019;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
}

.pause-icon {
    width: 15px;
    height: 20px;
    position: relative;
}

.pause-icon::before,
.pause-icon::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 20px;
    background: #e50019;
}

.pause-icon::before {
    left: 0;
}

.pause-icon::after {
    right: 0;
}

.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.fullscreen-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 767px) {
    .video-controls {
        padding: 15px;
        gap: 10px;
    }

    .play-pause-btn {
        width: 40px;
        height: 40px;
    }

    .play-icon {
        border-left: 12px solid #e50019;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

    .pause-icon {
        width: 12px;
        height: 16px;
    }

    .pause-icon::before,
    .pause-icon::after {
        width: 3px;
        height: 16px;
    }
}

/* Loading State */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    font-size: 16px;
}

.error-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

@media screen and (max-width: 767px) {
    .video-loading {
        font-size: 16px;
    }

    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
        margin-bottom: 10px;
    }

    .video-error {
        font-size: 14px;
    }

    .error-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 10px;
    }
}