/* ==========================================
   Golf Swing Analyzer
   ========================================== */

.gsa-analyzer {
    width: 100%;
    max-width: 1100px;

    margin: 20px auto;

    background: #111;

    border-radius: 12px;

    overflow: hidden;

    box-sizing: border-box;
}


/* ==========================================
   Phase Navigation
   ========================================== */

.gsa-phase-bar {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 14px;

    padding: 15px;

    background: #181818;
}

.gsa-phase {
    width: 52px;
    height: 52px;

    border: 2px solid #555;

    border-radius: 50%;

    background: #222;

    color: #fff;

    font-size: 20px;

    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}

.gsa-phase:hover {
    border-color: #888;
}


/* ==========================================
   Video
   ========================================== */

.gsa-video-container {
    width: 100%;

    background: #000;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 10px;

    box-sizing: border-box;
}

.gsa-video-wrapper {
    position: relative;

    width: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    background: #000;
}

.gsa-video {
    display: block;

    width: auto;

    max-width: 100%;

    max-height: 70vh;

    object-fit: contain;

    background: #000;
}

.gsa-video-message {
    position: absolute;

    color: #888;

    font-size: 20px;

    pointer-events: none;
}


/* ==========================================
   Seek Bar
   ========================================== */

.gsa-seek-area {
    width: 100%;

    padding: 8px 14px 4px;

    background: #111;

    box-sizing: border-box;
}

.gsa-seek {
    display: block;

    width: 100%;

    height: 8px;

    margin: 0;

    cursor: pointer;

    accent-color: #4caf50;
}


/* ==========================================
   Time Information
   ========================================== */

.gsa-time-info {
    display: flex;

    justify-content: space-between;

    margin-top: 4px;

    color: #888;

    font-size: 12px;
}


/* ==========================================
   Frame Information
   ========================================== */

.gsa-frame-info {
    width: 100%;

    padding: 5px 0;

    background: #111;

    color: #aaa;

    text-align: center;

    font-size: 14px;
}


/* ==========================================
   Control Bar
   ========================================== */

.gsa-control-bar {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    padding: 12px;

    background: #181818;

    box-sizing: border-box;
}


/* ==========================================
   Control Buttons
   ========================================== */

.gsa-control {
    width: 54px;

    min-width: 54px;

    height: 48px;

    padding: 0;

    border: none;

    border-radius: 8px;

    background: #2b2b2b;

    color: #fff;

    font-size: 22px;

    cursor: pointer;

    display: flex;

    justify-content: center;
    align-items: center;

    white-space: nowrap;

    box-sizing: border-box;
}

.gsa-control:hover {
    background: #444;
}


/* ==========================================
   Speed
   ========================================== */

.gsa-speed {
    width: 65px;

    min-width: 65px;

    font-size: 18px;
}


/* ==========================================
   Select Video
   ========================================== */

.gsa-file-control {
    cursor: pointer;

    text-decoration: none;
}

.gsa-file-control:hover {
    background: #444;
}


/* ==========================================
   Repeat
   ========================================== */

.gsa-repeat {
    background: transparent;

    font-size: 24px;
}

.gsa-repeat:hover {
    background: #2b2b2b;
}

.gsa-repeat.active {
    background: transparent;

    color: #4caf50;
}


/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 700px) {

    .gsa-analyzer {
        margin: 0;

        border-radius: 0;
    }


    .gsa-phase-bar {
        gap: 6px;

        padding: 10px;
    }


    .gsa-phase {
        width: 42px;

        height: 42px;

        font-size: 17px;
    }


    .gsa-video {
        max-height: 65vh;
    }


    .gsa-control-bar {
        gap: 5px;

        padding: 8px;
    }


    .gsa-control {
        width: 44px;

        min-width: 44px;

        height: 44px;

        font-size: 19px;
    }


    .gsa-speed {
        width: 55px;

        min-width: 55px;

        font-size: 16px;
    }

}