/********************************************************
 * Movie Backdrop Banner
 ********************************************************/
.MovieBackdropBanner
{
    width         : 100%;
    aspect-ratio : 16 / 9;
    max-height   : 520px;
    margin        : 12px 0 18px 0;
    border-radius : 14px;
    overflow      : hidden;
    border        : 1px solid rgba(255,255,255,0.15);
    background    : rgba(0,0,0,0.45);
}

.MovieBackdropBanner img
{
    width           : 100%;
    height          : 100%;
    display         : block;
    object-fit      : cover;
    object-position : center center;
}

/********************************************************
 * HERO OVERLAY
 ********************************************************/
.MovieBackdropBanner
{
    position: relative;
}

.MovieBackdropBanner::after
{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.65) 35%,
        rgba(0,0,0,0.35) 60%,
        rgba(0,0,0,0.05) 85%,
        rgba(0,0,0,0.0) 100%
    );
    z-index: 1;
}

.MovieHeroContent
{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 22px 26px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.MovieHeroTitle
{
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.MovieHeroMeta
{
    font-size: 14px;
    opacity: 0.85;
    color: #ffffff;
}

.MovieHeroDirector
{
    font-size: 14px;
    opacity: 0.85;
    color: #ffffff;
}

.MovieHeroSummary
{
    font-size: 15px;
    line-height: 1.5;
    color: #ffffff;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/********************************************************
 * Movie Detail Header
 ********************************************************/
.MovieHeader
{
    display       : flex;
    gap           : 16px;
    align-items   : flex-start;
    padding       : 14px;
    margin        : 12px 0 16px 0;
    border        : 1px solid rgba(255,255,255,0.15);
    border-radius : 12px;
    background    : rgba(0,0,0,0.12);
}

.MoviePoster
{
    width         : 160px;
    min-width     : 160px;
    border-radius : 10px;
    overflow      : hidden;
    border        : 1px solid rgba(255,255,255,0.15);
    background    : rgba(255,255,255,0.06);
}

.MoviePoster img
{
    width   : 100%;
    height  : auto;
    display : block;
}

.MoviePosterNoImage
{
    height          : 240px;
    display         : flex;
    align-items     : center;
    justify-content : center;
    color           : var(--default_table_text_color);
    font-size       : 12px;
    opacity         : 0.75;
}

.MovieHeaderMain
{
    flex      : 1;
    min-width : 0;
}

.MovieBadges
{
    display       : flex;
    flex-wrap     : wrap;
    gap           : 8px;
    margin-bottom : 12px;
}

.MovieBadge
{
    display       : inline-block;
    padding       : 6px 10px;
    border-radius : 999px;
    background    : rgba(255,255,255,0.08);
    border        : 1px solid rgba(255,255,255,0.12);
    color         : var(--default_table_text_color);
    font-size     : 13px;
    line-height   : 1;
}

.MovieMetaGrid
{
    display               : grid;
    grid-template-columns : repeat(2, minmax(0, 1fr));
    gap                   : 10px 18px;
    margin-bottom         : 14px;
}

.MovieMetaItem
{
    color       : var(--default_table_text_color);
    font-size   : 15px;
    line-height : 1.4;
}

.MovieOverview
{
    color       : var(--default_table_text_color);
    font-size   : 15px;
    line-height : 1.55;
}

.MovieDetailSection
{
    margin        : 16px 0 0 0;
    padding       : 14px;
    border        : 1px solid rgba(255,255,255,0.12);
    border-radius : 12px;
    background    : rgba(0,0,0,0.08);
    color         : var(--default_table_text_color);
}

.MovieDetailSectionTitle
{
    margin      : 0 0 10px 0;
    font-size   : 20px;
    font-weight : 600;
    color       : var(--default_table_text_color);
}

/********************************************************
 * Movie Ratings Section
 ********************************************************/

.MovieRatingsSection
{
    padding: 0;
    margin-top: 18px;
    color: var(--default_table_text_color);
}

/********************************************************
 * TOP STATS LAYOUT
 ********************************************************/

.MovieRatingsTopLayout
{
    display: grid;
    grid-template-columns: 1.25fr 2fr;
    gap: 0;
    margin: 18px 0 36px;
}

.MovieRatingSideStats
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/********************************************************
 * TOP RATING ITEMS
 ********************************************************/

.MovieRatingHeroCard,
.MovieRatingMiniCard
{
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    padding: 18px 30px;
    min-height: 160px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: var(--default_table_text_color);
    text-align: left;
}

.MovieRatingSideStats .MovieRatingMiniCard:last-child
{
    border-right: none;
}

button.MovieRatingHeroCard,
button.MovieRatingMiniCard
{
    appearance: none;
    font-family: inherit;
    cursor: pointer;
}

button.MovieRatingHeroCard:hover,
button.MovieRatingMiniCard:hover
{
    background: rgba(255,255,255,0.035);
}

/********************************************************
 * RATING TEXT
 ********************************************************/

.MovieRatingLabel
{
    display: block;
    font-size: 15px;
    opacity: 0.72;
    margin-bottom: 12px;
}

.MovieRatingValue
{
    display: block;
    font-size: 56px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.04em;
}

.MovieRatingHint
{
    display: block;
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.65;
}

/********************************************************
 * BROWSE HEADER
 ********************************************************/

.MovieRatingsBrowser
{
    margin-top: 6px;
}

.MovieRatingsBrowserHeader
{
    display: grid;
    grid-template-columns: 1fr minmax(260px, 420px);
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.MovieRatingsBrowserHeader h4
{
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.MovieRatingsFilter
{
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #111;
    font-size: 18px;
}

/********************************************************
 * RATING LIST
 ********************************************************/

.MovieRatingsList
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}

.MovieMiniRatingRow
{
    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 72px;
    padding: 0;

    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);

    color: var(--default_table_text_color);
    transition: background 0.16s ease;
}

.MovieMiniRatingRow:hover
{
    background: rgba(255,255,255,0.03);
}

.MovieMiniRatingRow span:first-child
{
    font-size: 17px;
    font-weight: 650;
    text-transform: capitalize;
}

.MovieMiniRatingScore
{
    font-size: 1.9rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.MovieLoggedOutRatingNotice
{
    display: none;
}

/********************************************************
 * MOBILE
 ********************************************************/

@media (max-width: 950px)
{
    .MovieRatingsTopLayout
    {
        grid-template-columns: 1fr;
    }

    .MovieRatingSideStats
    {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .MovieRatingHeroCard,
    .MovieRatingMiniCard
    {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.10);
        padding: 18px 0;
    }

    .MovieRatingsList
    {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px)
{
    .MovieRatingSideStats
    {
        grid-template-columns: 1fr;
    }

    .MovieRatingsBrowserHeader
    {
        grid-template-columns: 1fr;
    }

    .MovieRatingValue
    {
        font-size: 48px;
    }
}

.MovieRatingValue.RatingColorElite,
.MovieMiniRatingScore.RatingColorElite
{
    color: #0096FF;
}

.MovieRatingValue.RatingColorGreat,
.MovieMiniRatingScore.RatingColorGreat
{
    color: #3C8D40;
}

.MovieRatingValue.RatingColorGood,
.MovieMiniRatingScore.RatingColorGood
{
    color: #5F9F61;
}

.MovieRatingValue.RatingColorOkay,
.MovieMiniRatingScore.RatingColorOkay
{
    color: #F3EAA3;
}

.MovieRatingValue.RatingColorBad,
.MovieMiniRatingScore.RatingColorBad
{
    color: #EFB45D;
}

.MovieRatingValue.RatingColorTerrible,
.MovieMiniRatingScore.RatingColorTerrible
{
    color: #AC2727;
}

.MovieRatingsFilter
{
    background: rgba(255,255,255,0.06);
    color: white;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
}

.MovieRatingsFilter option
{
    background: #111;
    color: white;
}

.MovieRatingsSection
{
    padding: 34px 42px 38px;
}

.MovieRatingsTopLayout
{
    margin-top: 8px;
}

.MovieRatingsBrowser
{
    margin-top: 30px;
}