/* =========================================================
   FULLSTORY PAGE
   ========================================================= */

.fs-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.fs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    font-size: 12px;
    opacity: .65;
}

.fs-breadcrumb a {
    text-decoration: none;
}

.fs-breadcrumb strong {
    font-weight: 600;
    opacity: .9;
}

/* =========================================================
   TOP AREA
   ========================================================= */

.fs-top {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 18px;
    margin-bottom: 18px;
    align-items: stretch;
}

/* =========================================================
   POSTER
   ========================================================= */

.fs-poster {
    width: 220px;
    height: 330px;
    overflow: hidden;
    border-radius: 8px;
    background: #111820;
    border: 1px solid rgba(255,255,255,.06);
    box-sizing: border-box;
}

.fs-poster a {
    display: block;
    width: 100%;
    height: 100%;
}

.fs-poster img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
}

/* =========================================================
   INTRO
   ========================================================= */

.fs-intro {
    min-width: 0;
    padding: 4px 0;
}

.fs-intro h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
}

.fs-subtitle {
    margin-top: 5px;
    font-size: 13px;
    opacity: .6;
}

.fs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.fs-meta span {
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.06);
    font-size: 10px;
    line-height: 1;
}

.fs-meta .fs-imdb-mini {
    background: rgba(255,193,7,.12);
    color: #ffd21c;
}

.fs-description {
    max-width: 680px;
    margin: 15px 0;
    font-size: 13px;
    line-height: 1.65;
    opacity: .78;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.fs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    box-sizing: border-box;
}

.fs-btn-primary {
    background: #e50914;
    color: #fff;
}

/* =========================================================
   WHERE TO WATCH
   ========================================================= */

.fs-watch {
    max-width: 430px;
    padding: 12px 14px;
    border-radius: 7px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.04);
}

.fs-watch-title {
    margin-bottom: 9px;
    font-size: 10px;
    font-weight: 600;
}

.fs-watch-row {
    display: grid;
    grid-template-columns: 16px auto 1fr 15px;
    gap: 7px;
    align-items: center;
    font-size: 10px;
}

.fs-watch-row a {
    text-decoration: none;
}

.fs-watch-domain {
    justify-self: end;
    opacity: .6;
}

/* =========================================================
   RIGHT SIDE / IMDb
   ========================================================= */

.fs-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fs-rating-box {
    padding: 13px 15px;
    border-radius: 7px;
    background: rgba(255,255,255,.05);
    text-align: center;
}

.fs-rating {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.fs-rating > span {
    color: #ffc400;
    font-size: 25px;
}

.fs-rating strong {
    font-size: 27px;
}

.fs-rating small {
    font-size: 11px;
    opacity: .55;
}

.fs-rating-label {
    margin-top: 2px;
    font-size: 9px;
    opacity: .55;
}

.fs-votes {
    margin-top: 2px;
    font-size: 9px;
    opacity: .45;
}

/* =========================================================
   MAIN DETAILS
   ========================================================= */

.fs-details {
    flex: 1;
    padding: 13px 15px;
    border-radius: 7px;
    background: rgba(255,255,255,.04);
    box-sizing: border-box;
}

.fs-detail-row {
    display: grid;
    grid-template-columns: 17px 82px minmax(0,1fr);
    gap: 6px;
    align-items: start;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 10px;
}

.fs-detail-row:last-child {
    border-bottom: 0;
}

.fs-detail-row > span {
    opacity: .5;
}

.fs-detail-row label {
    opacity: .55;
}

.fs-detail-row strong {
    font-weight: 500;
    line-height: 1.4;
}

/* =========================================================
   MIDDLE AREA
   ========================================================= */

.fs-middle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    margin-bottom: 18px;
}

.fs-trailer {
    min-width: 0;
}

.fs-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fs-section-title h2 {
    margin: 0;
    font-size: 16px;
}

.fs-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px;
    background: #111;
    border: 1px solid rgba(255,255,255,.05);
}

.fs-video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.05),
            rgba(0,0,0,.55)
        );
}

.fs-video-title {
    position: absolute;
    top: 12px;
    left: 15px;
    right: 15px;
    font-size: 11px;
}

.fs-video-avatar {
    position: absolute;
    top: 11px;
    left: 12px;
    font-size: 15px;
}

.fs-play {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border-radius: 50%;
    background: #e50914;
    font-size: 20px;
}

.fs-video-placeholder > strong {
    margin-top: 10px;
    font-size: 10px;
    opacity: .75;
}

/* =========================================================
   MIDDLE RIGHT
   ========================================================= */

.fs-middle-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* Share */

.fs-share {
    padding: 13px 15px;
    border-radius: 7px;
    background: rgba(255,255,255,.04);
}

.fs-share h2,
.fs-tech h2 {
    margin: 0 0 12px;
    font-size: 15px;
}

.fs-share-buttons {
    display: flex;
    gap: 10px;
}

.fs-share-buttons a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* Technical details */

.fs-tech {
    padding: 13px 15px;
    border-radius: 7px;
    background: rgba(255,255,255,.04);
}

.fs-tech-row {
    display: grid;
    grid-template-columns: 17px 75px minmax(0,1fr);
    gap: 6px;
    padding: 6px 0;
    font-size: 10px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.fs-tech-row:last-child {
    border-bottom: 0;
}

.fs-tech-row > span {
    opacity: .5;
}

.fs-tech-row label {
    opacity: .55;
}

.fs-tech-row strong {
    font-weight: 500;
}

/* =========================================================
   SYNOPSIS
   ========================================================= */

.fs-synopsis {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 7px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.04);
}

.fs-tabs {
    grid-column: 1 / -1;
    display: flex;
    gap: 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.fs-tabs button {
    position: relative;
    padding: 0 0 9px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 10px;
    cursor: pointer;
    opacity: .55;
}

.fs-tabs button.active {
    opacity: 1;
}

.fs-tabs button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #e50914;
}

.fs-synopsis-content {
    min-width: 0;
}

.fs-synopsis-text p {
    margin: 0 0 10px;
    font-size: 10px;
    line-height: 1.7;
    opacity: .78;
}

.fs-synopsis-facts {
    display: grid;
    gap: 8px;
}

.fs-fact {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 10px;
    font-size: 10px;
}

.fs-fact span {
    opacity: .5;
}

.fs-fact strong {
    font-weight: 500;
}

/* =========================================================
   CAST
   ========================================================= */

.fs-cast-block {
    margin-bottom: 20px;
}

.fs-cast {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.fs-cast-card {
    min-width: 0;
}

.fs-cast-photo {
    width: 100%;
    aspect-ratio: 1 / 1.18;
    margin-bottom: 7px;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.fs-cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-cast-card strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
}

.fs-cast-card span {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    opacity: .5;
}

/* =========================================================
   RELATED
   ========================================================= */

.fs-related-block {
    margin-bottom: 25px;
}

.fs-related {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.fs-related > * {
    min-width: 0;
}

/* =========================================================
   FOOTER META
   ========================================================= */

.fs-footer-meta {
    display: flex;
    gap: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 9px;
    opacity: .45;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .fs-top {
        grid-template-columns: 180px minmax(0,1fr) 260px;
    }

    .fs-poster {
        width: 180px;
        height: 270px;
    }

    .fs-middle {
        grid-template-columns: minmax(0,1fr) 260px;
    }

    .fs-cast {
        grid-template-columns: repeat(5, minmax(0,1fr));
    }

    .fs-related {
        grid-template-columns: repeat(5, minmax(0,1fr));
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .fs-page {
        width: 100%;
    }

    .fs-breadcrumb {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .fs-top {
        grid-template-columns: 105px minmax(0,1fr);
        gap: 12px;
    }

    .fs-poster {
        width: 105px;
        height: 158px;
    }

    .fs-intro h1 {
        font-size: 21px;
    }

    .fs-subtitle {
        font-size: 10px;
    }

    .fs-meta {
        gap: 4px;
        margin-top: 8px;
    }

    .fs-meta span {
        padding: 4px 5px;
        font-size: 9px;
    }

    .fs-description {
        grid-column: 1 / -1;
        max-width: none;
        margin: 12px 0;
        font-size: 11px;
    }

    .fs-actions {
        grid-column: 1 / -1;
    }

    .fs-watch {
        grid-column: 1 / -1;
        max-width: none;
    }

    .fs-side {
        grid-column: 1 / -1;
    }

    .fs-rating-box {
        padding: 10px;
    }

    .fs-middle {
        grid-template-columns: 1fr;
    }

    .fs-middle-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .fs-synopsis {
        grid-template-columns: 1fr;
    }

    .fs-synopsis-facts {
        grid-column: auto;
    }

    .fs-cast {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }

    .fs-related {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }

}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .fs-top {
        grid-template-columns: 90px minmax(0,1fr);
        gap: 10px;
    }

    .fs-poster {
        width: 90px;
        height: 135px;
    }

    .fs-intro h1 {
        font-size: 18px;
    }

    .fs-description {
        font-size: 10px;
    }

    .fs-actions {
        flex-direction: column;
    }

    .fs-btn {
        width: 100%;
    }

    .fs-middle-side {
        grid-template-columns: 1fr;
    }

    .fs-cast {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .fs-related {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

}