/*
Theme Name: PilihFilm
Theme URI: https://pilihfilm.my.id/
Author: PilihFilm
Description: Tema utama website PilihFilm.
Version: 1.2.0
*/

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    background: #0b0b0f;
    color: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.pf-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}


/* =========================
   HEADER
   ========================= */

.pf-header {
    position: relative;
    z-index: 10;
    background: #101014;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.pf-header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.pf-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.pf-logo span {
    color: #e50914;
}

.pf-nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: #c9c9c9;
}

.pf-nav a:hover {
    color: #fff;
}


/* =========================
   MAIN
   ========================= */

.pf-main {
    min-height: calc(100vh - 140px);
}


/* =========================
   HOMEPAGE
   ========================= */

.pf-home-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #101014;
}

.pf-home-hero:after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    right: -250px;
    top: -100px;
    border-radius: 50%;
    background: rgba(229,9,20,.10);
    filter: blur(90px);
}

.pf-home-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.pf-home-kicker {
    margin-bottom: 16px;
    color: #e50914;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.pf-home-title {
    max-width: 800px;
    margin: 0;
    color: #fff;
    font-size: clamp(46px, 7vw, 78px);
    line-height: 1;
    letter-spacing: -3px;
    font-weight: 800;
}

.pf-home-title span {
    color: #e50914;
}

.pf-home-description {
    max-width: 590px;
    margin: 25px 0 0;
    color: #aaa;
    font-size: 16px;
    line-height: 1.7;
}

.pf-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 19px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.pf-btn-primary {
    background: #e50914;
    color: #fff;
}

.pf-btn-primary:hover {
    background: #f21b26;
}

.pf-btn-secondary {
    background: #18181e;
    border: 1px solid rgba(255,255,255,.10);
    color: #ddd;
}

.pf-btn-secondary:hover {
    background: #202027;
}


/* =========================
   MOOD
   ========================= */

.pf-mood-section {
    padding: 60px 0;
    background: #0b0b0f;
}

.pf-section-heading {
    margin-bottom: 25px;
}

.pf-section-heading h2 {
    margin: 7px 0 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
}

.pf-small-title {
    color: #777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.pf-mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.pf-mood-card {
    display: block;
    min-height: 145px;
    padding: 20px;
    background: #131318;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;
}

.pf-mood-card:hover {
    background: #18181e;
    border-color: rgba(229,9,20,.35);
}

.pf-mood-icon {
    display: block;
    margin-bottom: 17px;
    font-size: 29px;
    line-height: 1;
}

.pf-mood-card strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.pf-mood-card small {
    display: block;
    margin-top: 7px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================
   HOMEPAGE FILMS
   ========================= */

.pf-home-films {
    padding: 15px 0 70px;
}

.pf-section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.pf-view-all {
    color: #aaa;
    font-size: 13px;
}

.pf-view-all:hover {
    color: #fff;
}


/* =========================
   FILM GRID
   ========================= */

.pf-film-grid-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.pf-card {
    display: block;
    min-width: 0;
}

.pf-card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #17171c;
}

.pf-card-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.pf-card:hover .pf-card-poster img {
    transform: scale(1.04);
}

.pf-card-title {
    margin-top: 10px;
    color: #eee;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.pf-card-year {
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}


/* =========================
   SINGLE FILM
   ========================= */

.pf-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #111;
}

.pf-hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .48;
}

.pf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        #0b0b0f 0%,
        rgba(11,11,15,.72) 38%,
        rgba(11,11,15,.15) 100%
    );
}

.pf-hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 0 55px;
}

.pf-hero-title {
    max-width: 800px;
    margin: 0 0 15px;
    font-size: clamp(34px,6vw,68px);
    line-height: 1;
    font-weight: 800;
}

.pf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #ccc;
    font-size: 14px;
}

.pf-meta-item {
    padding: 7px 11px;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
}

.pf-rating {
    color: #ffd54a;
    font-weight: 700;
}

.pf-film {
    padding: 45px 0 70px;
}

.pf-film-grid {
    display: grid;
    grid-template-columns: 270px minmax(0,1fr);
    gap: 40px;
}

.pf-poster {
    display: block;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 45px rgba(0,0,0,.5);
}

.pf-film-title {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.1;
}

.pf-original-title {
    margin-bottom: 20px;
    color: #888;
}

.pf-info {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 25px;
}

.pf-tag {
    padding: 7px 11px;
    background: #18181e;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;
    color: #ccc;
    font-size: 13px;
}

.pf-tag-rating {
    color: #ffd54a;
}

.pf-section-title {
    margin: 32px 0 12px;
    font-size: 20px;
}

.pf-overview {
    color: #c7c7c7;
    line-height: 1.8;
    font-size: 15px;
}

.pf-details {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px 30px;
}

.pf-detail {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.pf-detail-label {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 12px;
}

.pf-detail-value {
    color: #ddd;
    font-size: 14px;
}

.pf-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-genre {
    padding: 7px 11px;
    background: #e50914;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.pf-trailer {
    margin-top: 35px;
}

.pf-trailer iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
}


/* =========================
   ARCHIVE
   ========================= */

.pf-archive {
    padding: 45px 0 70px;
}

.pf-page-title {
    margin: 0 0 30px;
    font-size: 34px;
}


/* =========================
   FOOTER
   ========================= */

.pf-footer {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 25px 0;
    color: #777;
    font-size: 13px;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

    .pf-mood-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pf-film-grid-list {
        grid-template-columns: repeat(4, 1fr);
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    .pf-header-inner {
        min-height: 60px;
    }

    .pf-nav {
        gap: 12px;
        font-size: 12px;
    }

    .pf-home-hero {
        min-height: 480px;
    }

    .pf-home-content {
        padding: 65px 0;
    }

    .pf-home-title {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .pf-home-description {
        font-size: 15px;
    }

    .pf-mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-film-grid-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .pf-film-grid {
        grid-template-columns: 150px minmax(0,1fr);
        gap: 22px;
    }

    .pf-film-title {
        font-size: 27px;
    }

    .pf-details {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 480px) {

    .pf-container {
        width: min(100% - 22px,1200px);
    }

    .pf-logo {
        font-size: 20px;
    }

    .pf-nav a:nth-child(3) {
        display: none;
    }

    .pf-home-hero {
        min-height: 450px;
    }

    .pf-home-title {
        font-size: 43px;
    }

    .pf-home-description {
        font-size: 14px;
    }

    .pf-home-actions {
        flex-direction: column;
    }

    .pf-btn {
        width: 100%;
    }

    .pf-mood-section {
        padding: 50px 0;
    }

    .pf-section-heading h2 {
        font-size: 25px;
    }

    .pf-mood-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pf-mood-card {
        min-height: 130px;
        padding: 17px;
    }

    .pf-film-grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .pf-film-grid {
        grid-template-columns: 120px minmax(0,1fr);
        gap: 18px;
    }

    .pf-film-title {
        font-size: 22px;
    }

}

/* =========================================
   QUICK PICK
   Selaras dengan Homepage PilihFilm
   ========================================= */

.pf-quick-page {
    padding: 60px 0 70px;
    background: #0b0b0f;
}


/* =========================
   INTRO
   ========================= */

.pf-quick-intro {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.pf-quick-intro .pf-small-title {
    display: block;
    margin-bottom: 10px;
    color: #777;
}

.pf-quick-intro h1 {
    margin: 0;
    color: #fff;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.pf-quick-intro p {
    max-width: 590px;
    margin: 18px auto 0;
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================
   FORM
   ========================= */

.pf-quick-form {
    max-width: 1000px;
    margin: 0 auto;
}


/* =========================
   QUICK PICK GROUP
   ========================= */

.pf-quick-group {
    margin-bottom: 45px;
}

.pf-quick-group-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.pf-quick-step {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    flex: 0 0 32px;

    background: #18181e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;

    color: #e50914;
    font-size: 11px;
    font-weight: 800;
}

.pf-quick-group-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
}

.pf-quick-group-heading p {
    margin: 4px 0 0;
    color: #777;
    font-size: 12px;
}


/* =========================
   MOOD
   Mengikuti pf-mood-card
   homepage
   ========================= */

.pf-quick-mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.pf-quick-mood {
    position: relative;

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

    min-height: 145px;
    padding: 20px;

    background: #131318;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;

    color: #fff;
    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.pf-quick-mood:hover {
    background: #18181e;
    border-color: rgba(229,9,20,.35);
    transform: translateY(-2px);
}

.pf-quick-mood input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pf-quick-mood-icon {
    display: block;
    margin-bottom: 17px;

    font-size: 29px;
    line-height: 1;
}

.pf-quick-mood strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.pf-quick-mood small {
    display: block;
    margin-top: 7px;

    color: #777;
    font-size: 12px;
    line-height: 1.5;
}


/* MOOD AKTIF */

.pf-quick-mood:has(input:checked) {
    background: #18181e;
    border-color: #e50914;
    box-shadow: inset 0 0 0 1px rgba(229,9,20,.18);
}

.pf-quick-mood:has(input:checked) .pf-quick-mood-icon {
    transform: scale(1.04);
}

.pf-quick-mood:has(input:checked) small {
    color: #999;
}


/* =========================
   GENRE & DURASI
   ========================= */

.pf-quick-genre-grid,
.pf-quick-runtime-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pf-quick-chip {
    position: relative;
    cursor: pointer;
}

.pf-quick-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pf-quick-chip span {
    display: inline-flex;
    align-items: center;

    min-height: 38px;
    padding: 0 14px;

    background: #131318;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;

    color: #bbb;

    font-size: 13px;
    font-weight: 600;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.pf-quick-chip:hover span {
    background: #18181e;
    border-color: rgba(229,9,20,.30);
    color: #fff;
}

.pf-quick-chip:has(input:checked) span {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
}


/* =========================
   SUBMIT
   ========================= */

.pf-quick-submit {
    margin-top: 50px;
    padding-top: 25px;

    border-top: 1px solid rgba(255,255,255,.07);

    text-align: center;
}

.pf-quick-submit .pf-btn {
    min-width: 210px;
}

.pf-quick-back {
    display: block;

    margin-top: 15px;

    color: #777;
    font-size: 13px;
}

.pf-quick-back:hover {
    color: #fff;
}


/* =========================
   HASIL QUICK PICK
   ========================= */

.pf-quick-result-head {
    max-width: 720px;
    margin: 0 auto 35px;
    text-align: center;
}

.pf-quick-result-head .pf-small-title {
    display: block;
    margin-bottom: 10px;
}

.pf-quick-result-head h1 {
    margin: 0;

    color: #fff;

    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.pf-quick-result-head p {
    margin: 15px 0 0;

    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================
   RESULT CARD
   ========================= */

.pf-quick-result {
    max-width: 850px;
    margin: 0 auto;
}

.pf-quick-result-card {
    display: grid;
    grid-template-columns: 230px minmax(0,1fr);
    gap: 30px;

    padding: 20px;

    background: #131318;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;

    color: inherit;
    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.pf-quick-result-card:hover {
    background: #18181e;
    border-color: rgba(229,9,20,.30);
    transform: translateY(-2px);
}

.pf-quick-result-poster {
    width: 100%;
    aspect-ratio: 2 / 3;

    overflow: hidden;

    border-radius: 8px;
    background: #17171c;
}

.pf-quick-result-poster img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.pf-quick-result-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.pf-quick-match {
    display: block;

    margin-bottom: 10px;

    color: #e50914;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.pf-quick-result-info h2 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.pf-quick-open {
    display: inline-block;

    margin-top: 20px;

    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

.pf-quick-result-card:hover .pf-quick-open {
    color: #e50914;
}


/* =========================
   ALTERNATIVES
   ========================= */

.pf-quick-alternatives {
    margin-top: 60px;
}

.pf-quick-alternatives .pf-section-heading {
    margin-bottom: 25px;
}

.pf-quick-again {
    margin-top: 35px;
    text-align: center;
}

/* =========================
   QUICK PICK SUBMIT DISABLED
   ========================= */

.pf-quick-submit-button:disabled {
    background: #18181e;
    border: 1px solid rgba(255,255,255,.08);
    color: #555;
    cursor: not-allowed;
    opacity: 1;
}

.pf-quick-submit-button:disabled:hover {
    background: #18181e;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

    .pf-quick-mood-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    .pf-quick-page {
        padding: 50px 0 60px;
    }

    .pf-quick-intro h1 {
        font-size: 32px;
    }

    .pf-quick-mood-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pf-quick-mood:last-child {
        grid-column: span 2;
    }

    .pf-quick-result-card {
        grid-template-columns: 150px minmax(0,1fr);
        gap: 20px;
    }

    .pf-quick-result-info h2 {
        font-size: 25px;
    }

}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {

    .pf-quick-page {
        padding: 45px 0 55px;
    }

    .pf-quick-intro {
        margin-bottom: 35px;
    }

    .pf-quick-intro h1 {
        font-size: 28px;
    }

    .pf-quick-intro p {
        font-size: 14px;
    }

    .pf-quick-group {
        margin-bottom: 35px;
    }

    .pf-quick-group-heading h2 {
        font-size: 18px;
    }

    .pf-quick-mood {
        min-height: 130px;
        padding: 17px;
    }

    .pf-quick-mood-icon {
        font-size: 27px;
        margin-bottom: 14px;
    }

    .pf-quick-mood strong {
        font-size: 14px;
    }

    .pf-quick-mood small {
        font-size: 11px;
    }

    .pf-quick-chip span {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .pf-quick-submit {
        margin-top: 40px;
    }

    .pf-quick-submit .pf-btn {
        width: 100%;
    }

    .pf-quick-result-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    .pf-quick-result-poster {
        width: 190px;
        margin: 0 auto;
    }

    .pf-quick-result-info {
        align-items: center;
        text-align: center;
    }

    .pf-quick-result-info h2 {
        font-size: 24px;
    }

}