#g9day {
    display: flex;
    flex-flow: row wrap;
    margin-top: 18px;
}

#g9day_video {
    flex: 3;
}

#g9day_audio {
    flex: 1;
    display: flex;
    flex-flow: column;
}

#g9day_audio .main-header {
    height: 5px;
}

#g9day_audio ul {
    display: flex;
    flex-flow: column;
    flex-grow: 1;
    justify-content: space-around;
    padding-top: 10px;
}

#g9day_audio ul li {
    flex-grow: 1;
    white-space: nowrap;
    min-height: 30px;
    text-align: center;
}

#g9day_audio li a:before {
    content: " - ";
    color: rgba(0,0,0,0);
    display: inline-block;
    margin-left: 18px;
    width: 18px;
    height: 18px;
    background: url(../download-icon-128.png) no-repeat;
    background-size: 13px 13px;
}

.main-header {
    vertical-align: middle;
    text-align: center;
    padding: 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #59a5d8;
}

.video-audio-copyright {
    display: block;
    padding: 18px 0;
}

@media screen and (max-width: 768px) {

    #slidetabsmenu {
        height: auto;
        margin-bottom: 10px;
        line-height: 0;
        padding-bottom: 10px;
    }

    #slidetabsmenu a {
        float: none;
    }

    .row .content li {
        float: none;
    }
}

@media screen and (max-width: 480px) {
    #g9day {
        display: block;
    }
}

/* Shared exercise-video player */
.exercise-video-library {
    margin-top: 18px;
    width: 100%;
}

.exercise-video-heading,
.exercise-audio-heading {
    color: #59a5d8;
    font-size: 15px;
    font-weight: normal;
    line-height: 150%;
    margin: 0 0 8px;
    text-align: left;
}

.exercise-language-tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 8px 0 16px;
}

.exercise-language-button {
    background: #f4f4f4;
    border: 1px solid #777;
    border-radius: 0;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    margin: 0 4px;
    min-height: 44px;
    min-width: 138px;
    padding: 7px 22px;
}

.exercise-language-button.is-selected {
    background: #add8e6;
    border-color: #333;
}

.exercise-language-button:focus,
.exercise-video-item:focus,
.exercise-player-poster:focus {
    outline: 2px solid #459ad3;
    outline-offset: 2px;
}

.exercise-player {
    background: #17223d;
    border: 0;
    box-sizing: border-box;
    height: 0;
    overflow: hidden;
    padding-top: 56.25%;
    position: relative;
    -webkit-transition: opacity 180ms ease, -webkit-transform 180ms ease;
    transition: opacity 180ms ease, transform 180ms ease;
    width: 100%;
}

.exercise-player.is-switching {
    opacity: 0.42;
    -webkit-transform: translateY(3px);
    -ms-transform: translateY(3px);
    transform: translateY(3px);
}

.exercise-player-poster,
.exercise-player iframe {
    border: 0;
    height: 100%;
    left: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Crop one pixel so iframe rounding cannot expose the player's black canvas. */
.exercise-player iframe {
    height: calc(100% + 2px);
    left: -1px;
    top: -1px;
    width: calc(100% + 2px);
}

.exercise-player-poster {
    background: #17223d;
    cursor: pointer;
}

.exercise-player-poster img {
    display: block;
    height: 100%;
    object-fit: cover;
    padding: 0;
    width: 100%;
}

.exercise-player-play {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 37 37'%3E%3Ccircle cx='18.5' cy='18.5' r='18.5' fill='%23E57F38' fill-opacity='0.75'/%3E%3Cpath d='M13.95 10.918v15.77l12.739-7.884-12.738-7.886z' fill='%23fff'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 56px 56px;
    bottom: 20px;
    color: transparent;
    cursor: pointer;
    display: block;
    font-size: 0;
    height: 56px;
    left: auto;
    line-height: 0;
    opacity: 1;
    position: absolute;
    right: 20px;
    text-shadow: none;
    top: auto;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    width: 56px;
}

.exercise-video-panels {
    margin-top: 14px;
    -webkit-transition: opacity 180ms ease, -webkit-transform 180ms ease;
    transition: opacity 180ms ease, transform 180ms ease;
}

.exercise-video-panels.is-switching {
    opacity: 0.35;
    -webkit-transform: translateY(3px);
    -ms-transform: translateY(3px);
    transform: translateY(3px);
}

.exercise-video-panel[hidden] {
    display: none;
}

.exercise-video-item {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e2dfd8;
    box-sizing: border-box;
    color: #22638e;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.45;
    min-height: 78px;
    padding: 7px 14px;
    text-align: left;
    -webkit-transition: background-color 160ms ease, color 160ms ease;
    transition: background-color 160ms ease, color 160ms ease;
    width: 100%;
}

.exercise-video-item:nth-child(odd) {
    background: #f6f4ee;
}

.exercise-video-item:hover {
    color: #459ad3;
}

.exercise-video-item.is-selected {
    background: #e8f4f9;
    box-shadow: inset 4px 0 0 #59a5d8;
    color: #22638e;
}

.exercise-video-thumbnail {
    -ms-flex: 0 0 172px;
    -webkit-box-flex: 0;
    flex: 0 0 172px;
    margin-right: 18px;
}

.exercise-video-thumbnail img {
    display: block;
    height: auto;
    padding: 0;
    width: 100%;
}

.exercise-video-title {
    -ms-flex: 1 1 auto;
    -webkit-box-flex: 1;
    flex: 1 1 auto;
}

.exercise-video-play {
    border: 1px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    color: #59a5d8;
    display: block;
    -ms-flex: 0 0 28px;
    -webkit-box-flex: 0;
    flex: 0 0 28px;
    font-size: 0;
    height: 28px;
    line-height: 0;
    margin-left: 14px;
    position: relative;
    width: 28px;
    -webkit-transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.exercise-video-play:before {
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
    border-top: 5px solid transparent;
    content: "";
    left: 10px;
    position: absolute;
    top: 8px;
}

.exercise-video-item.is-current-video .exercise-video-play {
    -webkit-animation: exercise-video-icon-pulse 520ms ease-out 1;
    animation: exercise-video-icon-pulse 520ms ease-out 1;
    background: #459ad3;
    border-color: #459ad3;
    color: #fff;
}

@-webkit-keyframes exercise-video-icon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(69, 154, 211, 0.45);
    }

    100% {
        box-shadow: 0 0 0 7px rgba(69, 154, 211, 0);
    }
}

@keyframes exercise-video-icon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(69, 154, 211, 0.45);
    }

    100% {
        box-shadow: 0 0 0 7px rgba(69, 154, 211, 0);
    }
}

.exercise-audio-list {
    margin-top: 36px;
}

.exercise-audio-row {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    min-height: 38px;
    padding: 7px 14px;
    width: 100%;
}

.exercise-audio-row:last-child {
    border-bottom: 1px solid #e2ded5;
}

.exercise-audio-note {
    margin: 15px 0 0;
    padding: 0;
}

.exercise-audio-row a,
.exercise-audio-row a:visited,
.exercise-audio-row a:active {
    -ms-flex: 0 0 209px;
    -webkit-box-flex: 0;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    box-sizing: border-box;
    color: #22638e !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex: 0 0 209px;
    font-size: 16px;
    line-height: 1.4;
    margin-right: 24px;
    text-decoration: none;
    width: 209px;
}

.exercise-audio-row a:hover {
    color: #459ad3 !important;
}

.exercise-audio-title {
    -ms-flex: 0 0 6.2em;
    -webkit-box-flex: 0;
    display: inline-block;
    flex: 0 0 6.2em;
    white-space: nowrap;
}

.exercise-audio-row a + a .exercise-audio-title {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.exercise-audio-size {
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    display: inline-block;
    flex: 0 0 auto;
    font-size: 0.9em;
    opacity: 0.72;
    white-space: nowrap;
}

.exercise-audio-size:before {
    border-top: 1px solid currentColor;
    content: "";
    display: inline-block;
    height: 0;
    margin: 0 6px;
    vertical-align: middle;
    width: 10px;
}

.exercise-audio-row a:before {
    -ms-flex: 0 0 18px;
    -webkit-box-flex: 0;
    background: url(../download-icon-128.png) no-repeat;
    background-position: left center;
    background-size: 13px 13px;
    color: rgba(0, 0, 0, 0);
    content: " - ";
    display: inline-block;
    flex: 0 0 18px;
    height: 18px;
    width: 18px;
}

@media screen and (max-width: 768px) {
    .exercise-video-library {
        margin-top: 12px;
    }

    .exercise-language-button {
        -ms-flex: 1 1 0;
        -webkit-box-flex: 1;
        flex: 1 1 0;
        max-width: 180px;
        min-width: 0;
    }

    .exercise-video-item {
        font-size: 15px;
        min-height: 70px;
        padding: 7px 10px;
    }

    .exercise-video-thumbnail {
        -ms-flex: 0 0 28%;
        -webkit-box-flex: 0;
        flex: 0 0 28%;
        margin-right: 13px;
        max-width: 154px;
    }

    .exercise-player-play {
        font-size: 62px;
    }
}

@media screen and (max-width: 480px) {
    .exercise-video-heading,
    .exercise-audio-heading {
        font-size: 14px;
    }

    .exercise-language-tabs {
        margin-bottom: 12px;
    }

    .exercise-language-button {
        font-size: 14px;
        margin: 0 3px;
        padding: 7px 12px;
    }

    .exercise-video-panels {
        margin-top: 10px;
    }

    .exercise-video-item {
        font-size: 14px;
        min-height: 62px;
        padding: 6px 7px;
    }

    .exercise-video-thumbnail {
        -ms-flex: 0 0 36%;
        -webkit-box-flex: 0;
        flex: 0 0 36%;
        margin-right: 9px;
    }

    .exercise-video-play {
        margin-left: 7px;
    }

    .exercise-player-play {
        font-size: 50px;
    }

    .exercise-audio-list {
        margin-top: 28px;
    }

    .exercise-audio-row {
        display: block;
        padding: 6px 10px;
    }

    .exercise-audio-row a {
        -ms-flex: 0 0 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        flex: 0 0 100%;
        font-size: 14px;
        margin: 2px 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exercise-player,
    .exercise-video-panels,
    .exercise-video-item {
        -webkit-transition: none;
        transition: none;
    }

    .exercise-video-item.is-current-video .exercise-video-play {
        -webkit-animation: none;
        animation: none;
    }
}
