/* Ephemeral startings, on the packs page and the portfolio: the card's video,
   its time left, the buy button and the big preview */

/* Startings on sale: the video plays in the card, a click opens the preview */
.pk-starting .pk-play{
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pk-starting video{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Starting cards: the time left at the bottom of the video, over a bar
   that empties as the sale ends */
.pk-starting .im:after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #2a323a;
}

.pk-left{
    display: none;
}

.pk-left.on{
    display: block;
}

.pk-starting .pk-left{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 22px 12px 10px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .85));
    pointer-events: none;
}

.pk-left-t{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pk-left-bar{
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(var(--left, 1) * 100%);
    height: 3px;
    background: linear-gradient(90deg, #8f6bff, #d052d8, #ff7a6b);
    box-shadow: 0 0 10px rgba(208, 82, 216, .8);
}

.pk-sbody{
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
}

.pk-sinfo{
    flex: 1 1 90px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pk-sinfo .pn{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-sinfo .pk-prices{
    margin: 0;
    flex-wrap: nowrap;
}

.pk-sinfo .pk-prices .price-dual{
    font-size: 16px;
}

.pk-sinfo .pk-when{
    margin: 0;
    white-space: nowrap;
}

/* Buy button, like the one of the product pages */
.pk-buy{
    flex: none;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 25px;
    background: #7b48fc;
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
    cursor: pointer;
}

.pk-buy:hover{
    background: #8a5dfc;
}

.pk-buy:disabled{
    background: #2a323a;
    color: #8a97a3;
    cursor: default;
}

.starting-preview{
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 6, 8, .82);
}

.starting-preview[hidden]{
    display: none;
}

.starting-preview-box{
    width: min(1100px, 100%);
    border: 1px solid #1d2329;
    border-radius: 14px;
    overflow: hidden;
    background: #08090b;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}

.starting-preview-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px 12px 20px;
}

.starting-preview-head h2{
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.starting-preview-close{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #1d2429;
    color: #b8c0c8;
    cursor: pointer;
}

.starting-preview-close:hover{
    color: #fff;
}

.starting-preview-media{
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.starting-preview-media video{
    display: block;
    width: 100%;
    height: 100%;
}

/* Under the video: time left, price and buy button */
.starting-preview-foot{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 20px;
}

/* Never squeezed word by word: on a narrow screen it takes its own line,
   the price and the button go under it */
.starting-preview-left.on{
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 10px;
    isolation: isolate;
}

.starting-preview-left .pk-left-t{
    white-space: nowrap;
}

.starting-preview-left .pk-left-bar{
    width: calc(var(--left, 1) * 100%);
    border-radius: 3px;
}

.starting-preview-left:after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 3px;
    border-radius: 3px;
    background: #2a323a;
}

.starting-preview-price{
    margin-left: auto;
    font-size: 18px;
    white-space: nowrap;
}

.starting-preview-buy{
    min-height: 44px;
    padding: 0 24px;
    font-size: 14px;
}

.starting-preview-media video:not([src]){
    background: #2b3036;
}

/* Phones: more room for the price and the button, which fills its line */
@media screen and (max-width: 600px){
    .starting-preview{
        padding: 12px;
    }

    .starting-preview-foot{
        padding: 14px 16px;
    }

    .starting-preview-buy{
        flex: 1 1 auto;
    }
}
