* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: "Inter", sans-serif;
    color: #dedfe0;
    background-color: #020d18;
}

img {
    max-width: 100%;
    display: block;
}

/* HERO */
h1 {
    margin-bottom: 0;
}

.hero {
    --poster-h: 28rem;
}

@supports (height: clamp(1px, 2px, 3px)) {
    .hero {
        --poster-h: clamp(24rem, 24vw, 35rem);
    }
}

.hero {
    background: #020d18;
    --hero-h: clamp(240px, 38vw, 565px);
    --hang: 0.4rem;
    /* --poster-h: clamp(24rem, 24vw, 35rem); */

    position: relative;
    padding-bottom: var(--hang);
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    width: 100%;
}

@supports (height: clamp(1px, 2px, 3px)) {
    .hero {
        --poster-h: clamp(24rem, 24vw, 35rem);
    }
}

.hero__bgWrap {
    height: var(--hero-h);
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
}

.hero__bgWrap::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    pointer-events: none;
}

.middle-section {
    display: block;
}

.hero-top-mobile,
.mobile,
.item-title-mobile,
.wide-ad,
.middle-section-mobile,
.hamburger {
    display: none;
}

.hero__content {
    align-items: flex-end;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-grid {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero__top {
    width: 100%;
}

.hero__top .col {
    padding-left: 0;
}

.hero__main {
    width: 100%;
    margin-top: auto;
}

.top {
    display: grid;
    grid-template-rows: 1fr;
    row-gap: 1.6rem;
}

.top-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1rem;
    gap: 8rem;
}

.logo {
    height: 3.3rem;
}

.top-nav ul {
    padding-top: 1rem;
    display: flex;
    gap: 4rem;
}

.top-nav ul li {
    list-style: none;
}

.top-nav ul li a {
    font-family: OpenSans, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 600;
    color: #abb7c4;
    transition: all 0.3s ease-out;
}

.top-nav ul li a:hover {
    color: #dcf836;
}

.search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.top-search {
    background-color: rgba(35, 58, 80, 0.45);
    border-top: none;
    border-left: 1px solid #405266;
    border-bottom: 1px solid #405266;
    border-right: none;
    padding: 0.8rem;
    border-radius: 0.5rem;
    width: 90%;
    color: #f7f8f9;
    font-size: 1.4rem;
}

.top-search:focus {
    background-color: rgba(35, 58, 80, 0.45);
    color: #f7f8f9;
    box-shadow: none;
    border-color: #405266;
}

.search-btn {
    padding: 0.2rem 1rem;
    background-color: rgba(246, 233, 233, 0.2);
    border: none;
    border-radius: 0.5rem;
    color: #f7f8f9;
    transition: all 0.3s ease-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.search-btn:hover {
    color: #c6c6c7;
}

.ion-android-search {
    font-size: 2.4rem;
}

.mobile-nav {
    background: none;
    border: none;
}

.ion-android-menu {
    color: #f7f8f9;
    font-size: 2.8rem;
}

.hero__grid {
    min-height: var(--poster-h);
    width: 100%;
    padding: 0 2.4rem 0 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "poster meta";
    column-gap: 2.4rem;
    align-items: end;
}

.hero__posterWrap {
    grid-area: poster;
    transform: translateY(var(--hang));
    margin-right: 0;
}

.hero__poster {
    display: block;
    height: var(--poster-h);
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    max-height: 350px;
}

.hero__meta {
    grid-area: meta;
    padding-top: 1.2rem;
    height: 100%;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.item-title {
    font-family: "Open Sans", sans-serif;
    font-size: 3rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.release-year {
    font-size: 2.4rem;
}

.font-darker-gray {
    color: #4f5b68;
}

.weight300 {
    font-weight: 300;
}

.upper-container {
    display: grid;
    grid-template-rows: 1fr;
    gap: 3.2rem;
    height: 100%;
}

.user-event-container {
    display: grid;
    grid-template-rows: 1fr;
    gap: 3.6rem;
    margin-top: 0;
    margin-bottom: auto;
}

.rating {
    width: 90%;
    color: #abb7c4;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #4f5b68;
    border-bottom: 1px solid #4f5b68;
    line-height: 1;
    padding: 0.3rem 0;
}

.votes-div {
    display: flex;
    align-items: center;
    padding-left: 1.6rem;
    padding-right: 0.8rem;
    font-size: 1.6rem;
}

.rate-box {
    display: flex;
    align-items: center;
    padding-left: 2.4rem;
    border-left: 1px solid #4f5b68;
}

.rate-text {
    font-size: 1.6rem;
    line-height: 1.1;
}

.rating-stars {
    padding: 0 0 0 3.2rem;
    display: flex;
    align-items: center;
}

.rating-stars a {
    text-decoration: none;
}

.rating-star {
    color: #f7f8f9;
    font-size: 4.8rem;
    margin-right: -0.2rem;
    line-height: 1;
}

.rating p {
    margin: 0;
}

.votes-div span {
    display: block;
    line-height: 1.1;
}

.buttons {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.1rem;
}

.buttons .btn {
    width: 100%;
    text-align: center;
    background-color: rgba(246, 233, 233, 0.2);
    padding: 1.6rem 2.4rem;
    justify-self: center;
    text-decoration: none;
    border: none;
    border-radius: 0;
}

.buttons a i {
    margin-right: 0.4rem;
}

.default-btn {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #f7f8f9;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease-out;
}

.btn-sm {
    color: #f7f8f9;
    border-radius: 0.5rem;
    line-height: 1.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background-color: rgba(246, 233, 233, 0.2);
    text-decoration: none;
}

.film-list p {
    margin-bottom: 0;
}

.default-btn:hover,
.btn-sm:hover {
    color: #c6c6c7;
}

.buttons .right-btn {
    border-radius: 0 5px 5px 0;
}

.buttons .left-btn {
    border-radius: 5px 0 0 5px;
}

.fav-btn-sm,
.set-as-watched,
.watchlist {
    display: none;
}

/* FILM NAV */

.nav {
    padding: 2rem 0 4rem 0;
}

.film-nav {
    font-family: OpenSans, sans-serif;
    list-style: none;
    display: flex;
    justify-self: flex-start;
    gap: 6rem;
    margin-left: 0;
    padding-left: 0;
}

.film-nav li a {
    font-family: "Inter", sans-serif;
    color: #c6c6c7;
    font-size: 1.8rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
}

.film-nav li a:hover,
.film-nav li a.active {
    color: #dcf836;
    padding-bottom: 1rem;
    border-bottom: 0.3rem solid #dcf836;
}

.film-nav li a:hover {
    transition: color 0.3s ease-out;
}

.credits {
    display: none;
}

/* END FILM NAV */

/* MAIN FILM DATA */

.film-data {
    margin-right: 3.2rem;
}

.overview {
    font-size: 1.6rem;
    padding-right: 25rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1.1px;
}

.film-data-section {
    margin-bottom: 4.8rem;
}

.main-cast {
    margin-top: 2.4rem;
}

.title-section {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #405266;
}

.title-section div p {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.title-section div a {
    font-size: 1.4rem;
    text-decoration: none;
    justify-self: end;
    color: #4280bf;
}

.more-link {
    font-size: 1.4rem;
    font-weight: 600;
}

.cast-list {
    margin-top: 1.4rem;
    display: grid;
    grid-template-rows: 1fr;
    row-gap: 1.4rem;
}

.cast-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.cast-member {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 2.2rem;
}

.cast-image a img {
    width: 6.4rem;
    min-width: 6.4rem;
}

.cast-name {
    font-size: 1.4rem;
}

.cast-name p {
    line-height: 1.5;
}

.cast-name a,
.list-title,
.list-owner a,
.activity-event a,
.comment-owner,
.activity-owner,
.activity-list-title {
    color: #4280bf;
    text-decoration: none;
    font-weight: 500;
}

.film-list {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #4f5b68;
}

.film-list:last-child {
    padding-bottom: 0.8rem;
}

.film-list:last-child {
    border-bottom: none;
}

.lists {
    margin-bottom: 2.8rem;
}

.list-covers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: start;
    margin-top: 1.6rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.list-cover img {
    width: 100%;
}

.list-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.list-owner {
    line-height: 1.5;
    font-size: 1.4rem;
    color: #abb7c4;
}

.add-to-list {
    text-align: right;
}

/* FILM SPECS */

.film-specs {
    margin-left: 1.8rem;
}

.spec {
    margin-bottom: 2.8rem;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8;
}

.spec-name {
    color: #4280bf;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
}

.spec-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
}

.spec-text {
    color: #c6c6c7;
    font-weight: 400;
}

.pill {
    text-decoration: none;
    color: #abb7c4;
    background-color: #233a50;
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    font-size: 1.2rem;
    font-weight: 600;
}

.related-link {
    color: #4280bf;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
}

.related p {
    line-height: 2.0;
}

/* END FILM SPECS*/

.overview {
    padding-right: 15rem;
}

.comment-container {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 70% 1fr;
    border-bottom: 1px solid #405266;
}

.comment-container:last-child {
    border-bottom: 0;
}

.comment-body {
    grid-column: 1 / span 2;
}

.discussion {
    margin-bottom: 0;
}

.comment-author {
    font-size: 1.4rem;
}

.comment-owner,
.official-list {
    font-weight: 600;
}

blockquote {
    padding-left: 1.2rem;
    margin-top: 0.8rem;
    font-style: italic;
    font-size: 1.4rem;
}

.comment-date {
    font-size: 1.4rem;
    justify-self: end;
}

.latest-activity {
    margin-top: 1.6rem;
    margin-bottom: 1.2rem;
}

.activity-items .activity-item {
    border-bottom: 1px solid #405266;
    margin-bottom: 0.6rem;
    margin-top: 0;
    padding-top: 0.2rem;
    font-size: 1.4rem;
}

.activity-items .activity-item:last-child {
    border-bottom: 0;
}

/* END MAIN FILM DATA*/

@media (max-width: 1480px) {
    .search-btn {
        padding: 0.4rem 1rem;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 1335px) {
    .overview {
        padding-right: 2rem;
    }
}

@media (max-width: 1260px) {
    .buttons .btn {
        padding: 1.4rem 2.4rem;
    }
}

@media (max-width: 1200px) {
    .hero {
        --poster-h: clamp(20rem, 24vw, 30rem);
    }

    .logo {
        height: 3rem;
    }

    .buttons .btn {
        padding: 1rem 1.8rem;
    }

    .votes-div {
        padding-left: 1.2rem;
        padding-right: 0.6rem;
        font-size: 1.4rem;
    }

    .rate-text {
        font-size: 1.4rem;
    }

    .rate-box {
        padding-left: 1.6rem;
    }

    .rating-stars {
        padding: 0.2rem 0 0.2rem 2.4rem;
    }

    .rating-star {
        font-size: 4.4rem;
    }

    .top-search {
        padding: 1.0rem 0.8rem;
    }

    .default-btn {
        font-size: 1.6rem;
    }

    .btn-sm {
        font-size: 1.4rem;
        padding: 0.2rem 0.8rem;
    }

    .overview {
        padding-right: 0;
    }
}

@media (max-width: 1024px) {
    .top {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .top-section {
        padding-top: 0;
        gap: 0;
    }

    .top-nav {
        display: none;
    }

    .search {
        margin-right: 0;
        margin-left: auto;
        flex: 1;
        max-width: 80rem;
    }

    .top-search {
        width: 100%;
        padding: 0.6rem;
    }

    .search-btn {
        padding: 0.3rem 1rem;
    }

    .hamburger {
        display: block;
        margin-left: 0.4rem;
    }

    .rating-star {
        font-size: 4.2rem;
    }

    .votes-div,
    .rate-text {
        font-size: 1.4rem;
    }

    .buttons .btn {
        padding: 0.8rem 1.2rem;
    }

    .default-btn,
    .film-nav li a {
        font-size: 1.6rem;
    }

    .film-nav {
        gap: 4rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 86rem;
    }

    .user-event-container {
        display: grid;
        grid-template-rows: 1fr;
        gap: 3rem;
        margin-top: 0;
        margin-bottom: auto;
    }

    .tower-ad {
        display: none;
    }

    .wide-ad {
        display: block;
        margin-top: 1.8rem;
        margin-bottom: 3.2rem;
    }
}

@media (max-width: 900px) {
    .main-cast {
        margin-bottom: 3.6rem;
    }

    .container {
        max-width: 70.8rem;
    }

    .logo {
        height: 2.6rem;
    }

    .rating,
    .buttons {
        width: 100%;
    }

    .rating-star {
        font-size: 3.6rem;
    }

    .default-btn {
        font-size: 1.4rem;
    }

    .buttons .btn {
        padding: 0.8rem;
    }

    .nav {
        padding: 2rem 0 3.2rem 0;
    }

    .overview {
        font-size: 1.3rem;
        padding-right: 0rem;
    }

    .cast-list {
        gap: 1rem;
    }

    .cast-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cast-image a img {
        max-width: 6.2rem;
    }

    .btn-sm {
        font-size: 1.3rem;
        font-weight: 500;
        padding: 0.2rem 0.8rem;
    }
}

@media (max-width: 830px) {
    .user-event-container {
        gap: 2.4rem;
    }
}

@media (max-width: 780px) {
    .container {
        max-width: 64rem;
    }

    .logo {
        height: 2.4rem;
    }

    .top-search {
        padding: 0.5rem 0.8rem;
    }

    .search-btn {
        padding: 0.1rem 0.8rem;
        margin-bottom: 0.1rem;
    }

    .hero__grid {
        padding-right: 0;
    }

    .item-title {
        font-size: 2.8rem;
    }

    .rating {
        padding: 0.2rem 0;
    }

    .rating-stars {
        padding: 0.1rem 0 0.1rem 2.4rem;
    }

    .rating-star {
        font-size: 3.4rem;
    }

    .votes-div span,
    .rate-text {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .default-btn {
        font-size: 1.2rem;
    }

    .buttons .btn {
        padding: 0.4rem;
    }

    .film-nav {
        gap: 3.6rem;
    }
}

@media (max-width: 767px) {
    .middle-section {
        display: none !important;
    }

    .middle-section-mobile {
        display: block;
        padding-top: 1.2rem;
        border-top: 1px solid #405266;
    }

    .overview p {
        margin-bottom: 1.2rem;
    }

    .middle-section-mobile .row,
    .main-cast {
        margin-top: 0;
    }

    .middle-section-mobile .row .col .spec {
        margin-bottom: 1.8rem;
    }

    .film-data {
        margin-right: 0;
    }

    .cast-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 700px) {
    .nav {
        padding: 2rem 0 2.4rem 0;
    }
}

@media (max-width: 660px) {

    .hero-top-mobile,
    .mobile,
    .mobile-nav,
    .container {
        max-width: 60rem;
    }

    .prod-comps {
        padding-right: 3.2rem;
    }
}

@media (max-width: 640px) {
    .container {
        max-width: 58rem;
    }

    .hero__grid {
        padding-right: 0;
    }

    .mark-as-watched,
    .add-to-watchlist,
    .fav-btn,
    .top-search,
    .search-btn {
        display: none;
    }

    .set-as-watched,
    .watchlist,
    .fav-btn-sm {
        display: block;
    }

    .rating-star {
        font-size: 3.2rem;
    }

    .item-title {
        font-size: 2.4rem;
    }

    .release-year {
        font-size: 2rem;
    }

    .logo {
        height: 2rem;
    }

    .search {
        justify-content: end;
    }

    .user-event-container {
        gap: 2.6rem;
    }

    .rating {
        gap: 0.6rem;
    }

    .votes-div,
    .rate-box {
        padding-left: 0.8rem;
    }

    .rating-stars {
        padding: 0.1rem 0 0.1rem 1.4rem;
    }

    .rating-star {
        font-size: 2.8rem;
    }

    .votes-div span,
    .rate-text {
        font-size: 1.1rem;
    }

    .film-nav {
        gap: 2.4rem;
    }

    .nav {
        padding: 1.4rem 0 2.8rem 0;
    }

    .film-nav li a {
        font-size: 1.4rem;
    }

    .cast-image a img {
        min-width: 5.4rem;
    }

    .btn-sm {
        line-height: 1.8rem;
        font-size: 1.2rem;
        font-weight: 600;
        padding: 0.2rem 0.8rem;
    }
}

@media (max-width: 600px) {
    .container {
        max-width: 52rem;
    }
}

/* From desktop to mobile: max-width: 550px */
@media (max-width: 549px) {
    .rating-text {
        text-align: right;
    }

    .hero__posterWrap {
        width: 100%;
        justify-self: center;
        /* centers the grid item */
        display: flex;
        justify-content: center;
        /* centers the image inside */
    }

    .release-year {
        font-size: 1.6rem;
    }

    .item-title-mobile {
        display: block;
        margin-top: 2.8rem;
    }

    .mobile,
    .hamburger-mobile {
        display: block;
    }

    .middle-section-mobile .row .col .spec {
        margin-bottom: 1.2rem;
    }

    .mobile,
    .film-overview {
        max-width: 48rem;
        margin: 0 auto;
    }

    .film-data {
        padding-right: 0;
    }

    .hero__grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        grid-template-areas: "poster";
        padding: 0;
    }

    .hero__poster {
        margin-top: 5.5rem;
        height: 24rem;
        justify-self: center;
        border-radius: 8px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-top-mobile {
        display: block;
        max-width: 48rem;
        margin: 0 auto;
    }

    .item-title,
    .hero__meta,
    .hero__top,
    .hamburger {
        display: none;
    }

    .hamburger-mobile .mobile-nav {
        padding: 0;
        margin: 0;
    }

    .hamburger-mobile .mobile-nav ion-android-menu {
        padding: 0
    }

    .mobile-title {
        border-bottom: 1px solid #405266;
        padding-bottom: 0.4rem;
    }

    .item-title {
        font-size: 2.4rem;
        font-weight: 600;
        margin: 0;
    }

    .release-year {
        justify-self: end;
        margin: 0;
    }

    .votes-row {
        padding: 1.6rem 0 0 0;
        font-size: 1.2rem;
        color: #abb7c4;
        font-weight: 700;
    }

    .rate {
        justify-self: end;
    }

    .rating-stars {
        padding: 0;
    }

    .rating-star {
        font-size: 4.2rem;
    }

    .mobile-rating {
        justify-content: middle;
        padding: 0;
    }

    .buttons {
        padding: 2.4rem 0 1.2rem 0;
        border-bottom: 1px solid #405266;
    }

    .buttons .btn {
        padding: 0.6rem;
    }

    .default-btn {
        font-size: 1.4rem;
    }

    .mobile-nav {
        max-width: 48rem;
    }

    .nav {
        padding: 1.2rem 0 2.4rem 0;
    }

    .cast-member {
        gap: 1.8rem;
    }

    .cast-image a img {
        min-width: 5rem;
    }

    .cast-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 500px) {
    .film-nav {
        gap: 2rem;
    }

    .hero-top-mobile,
    .mobile,
    .mobile-nav,
    .film-overview {
        max-width: 42rem;
    }

    .cast-and-crew {
        display: none;
    }

    .credits {
        display: block;
    }

    .cast-member {
        gap: 1.4rem;
    }

    .cast-image a img {
        min-width: 4.4rem;
    }

    .cast-name {
        font-size: 1.15rem;
    }

    .cast-name p {
        line-height: 1.2;
    }

    .list-title,
    .list-owner,
    .title-section div a,
    .spec-name,
    .spec-text,
    .spec-title,
    .related-link {
        font-size: 1.3rem;
    }

    .more-link {
        display: inline-block;
        margin-top: 0.15rem;
    }

    .related-link-p {
        margin-bottom: 2.4rem;
    }

    .main-cast {
        margin-bottom: 3.4rem;
    }
}

@media (max-width: 440px) {

    .hero-top-mobile,
    .mobile,
    .mobile-nav,
    .film-overview {
        max-width: 38rem;
    }

    .nav {
        padding: 0.8rem 0 2.4rem 0;
    }

    .film-nav {
        gap: 2rem;
    }

    .film-nav li a {
        text-transform: none;
        font-weight: 400;
        color: #4280bf;
    }

    .cast-member {
        gap: 1rem;
    }

    .list-title,
    .list-owner,
    .title-section div a,
    .comment-owner,
    .comment-author,
    .comment-date,
    blockquote {
        font-size: 1.2rem;
    }

    .activity-items .activity-item {
        font-size: 1.2rem;
    }

    .more-link {
        display: inline-block;
        margin-top: 0.25rem;
    }
}

@media (max-width: 400px) {

    .hero-top-mobile,
    .mobile,
    .mobile-nav,
    .container {
        max-width: 34rem;
    }

    .buttons .btn {
        padding: 0.4rem;
    }

    .default-btn {
        font-size: 1.2rem;
    }

    .rating-star {
        font-size: 3.8rem;
    }

    .film-nav {
        gap: 1.6rem;
    }

    .cast-image a img {
        min-width: 4.1rem;
    }

    .cast-name {
        font-size: 1.1rem;
    }

    .cast-name p {
        line-height: 1.1;
    }

    .with-this-film {
        display: none;
    }

}

@media (max-width: 360px) {
    .spec {
        line-height: 1.5;
    }

    .hero-top-mobile,
    .mobile,
    .mobile-nav,
    .container {
        max-width: 30rem;
    }

    .rating-star {
        font-size: 3.5rem;
    }

    .buttons .btn {
        padding: 0.1rem;
    }

    .default-btn {
        font-weight: 500;
        font-size: 1.15rem;
    }

    .film-nav {
        gap: 1rem;
    }

    .film-nav li a {
        font-size: 1.3rem;
    }

    .cast-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cast-member {
        gap: 1.8rem;
    }

    .cast-image a img {
        min-width: 5rem;
    }

    .list-title,
    .list-owner,
    .title-section div a,
    .spec-name,
    .spec-title,
    .spec-text,
    .related-link,
    .cast-name {
        font-size: 1.2rem;
    }

    .directed-by {
        padding-right: 2rem;
    }
}

/* Legacy fallback for browsers that don't support inset (e.g., old Chrome) */
@supports not (inset: 0) {
    .hero__poster {
        height: 240px !important;
        max-height: 240px !important;
        width: auto !important;
    }

    .hero__content {
        padding-top: 12px;
    }

    .hero__posterWrap {
        margin-top: 12px;
    }

    .film-nav {
        gap: 0;
        /* gap ignored anyway, but make intent explicit */
    }

    .film-nav li {
        margin-right: 3rem;
    }

    .film-nav li:last-child {
        margin-right: 0;
    }

    /* Background becomes a true absolute layer */
    .hero__bgWrap {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        height: auto;
        /* let the absolute positioning define it */
    }

    .hero__bgWrap::before,
    .hero__bg {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    /* Content becomes normal flow with a guaranteed height */
    .hero__content {
        position: relative;
        /* was absolute */
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        height: auto;
        min-height: var(--hero-h);
    }

    .search {
        width: 100%;
        justify-content: space-between;
    }

    .hamburger {
        margin-left: auto;
    }

    .film-list {
        display: flex;
        flex-direction: column;
    }

    .add-to-list {
        align-self: flex-end;
    }

    .cast-member {
        gap: 0;
        /* ignored anyway, but explicit */
    }

    .cast-image {
        margin-right: 2.2rem;
    }

    .search>* {
        margin-left: 8px;
    }

    .search> :first-child {
        margin-left: 0;
    }

    .logo-section {
        margin-right: 12px;
    }
}