/* Mengatur ukuran kotak, font, warna, gambar, dan judul untuk semua halaman. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: Arial, Helvetica, sans-serif; color: #f8f7f4;
    line-height: 1.7; background-color: #151c24;
    background-image: radial-gradient(ellipse at 0% 35%, rgba(73,109,119,0.22), transparent 55%), radial-gradient(ellipse at 100% 80%, rgba(126,104,83,0.12), transparent 52%), linear-gradient(145deg, #18212c 0%, #172428 48%, #1d2028 100%);
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { line-height: 1.2; overflow-wrap: break-word; }

/* Garis fokus membantu pengguna keyboard. Skip link muncul saat ditekan Tab. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #b8d8f0; outline-offset: 4px; }
.skip-link {
    position: absolute; top: 0.5rem;
    left: 0.5rem; z-index: 10;
    transform: translateY(-200%); padding: 0.75rem 1rem;
    background: #f8f7f4; color: #151a21;
}
.skip-link:focus { transform: translateY(0); }

/* Flexbox buatt menyusun logo dan menu. */
.site-header {
    display: flex; flex-direction: column;
    align-items: center; gap: 1rem;
    padding: 1.25rem 7%; border-bottom: 1px solid #344454;
    background: linear-gradient(110deg, #101820, #18232b 60%, #182326);
}
.logo { font-size: 1.25rem; font-weight: bold; letter-spacing: 2px; }
.logo span, .hero h1 span { color: #9db7ce; }
.navbar {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 0.25rem 1rem;
}
.navbar a {
    display: inline-block; padding: 0.6rem 0;
    font-size: 0.875rem; color: #c4cbd2;
    border-bottom: 2px solid transparent;
}
.navbar a:hover, .navbar a.active { color: #fff; border-bottom-color: #9db7ce; }

/* Hero buat bagian pembuka. Gradasi, garis hujan, dan siluet kota. */
.hero {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    align-items: center; gap: 2.5rem;
    padding: 3.5rem 7%; background: radial-gradient(ellipse at 88% 18%, rgba(190,156,108,0.16), transparent 40%), radial-gradient(ellipse at 70% 70%, rgba(74,115,121,0.27), transparent 55%), linear-gradient(125deg, #202b3b 0%, #213139 52%, #162329 100%);
}
.hero::before {
    content: ""; position: absolute;
    inset: 0; pointer-events: none;
    background: repeating-linear-gradient(110deg, transparent 0 42px, rgba(157,183,206,0.055) 43px 44px, transparent 45px 86px);
}
.hero-content, .poster-card { position: relative; }
.hero-content { max-width: 35rem; min-width: 0; width: 100%; }
.eyebrow {
    color: #9db7ce; font-size: 0.75rem;
    font-weight: bold; letter-spacing: 3px;
    margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); letter-spacing: 2px; margin-bottom: 1.2rem; }
.movie-info { font-size: 0.875rem; color: #c4cbd2; margin-bottom: 1.25rem; }
.hero-description { color: #e0e4e8; max-width: 30rem; margin-bottom: 1.75rem; }
.button {
    display: inline-block; padding: 0.85rem 1.25rem;
    border: 0; border-radius: 3px;
    background: #9db7ce; color: #151a21;
    font: bold 0.75rem Arial, sans-serif; line-height: 1.5;
    letter-spacing: 1px; cursor: pointer;
}
.button:hover { background: #f8f7f4; }
.theme-tags {
    display: flex; flex-wrap: wrap;
    gap: 0.625rem; margin-top: 1.75rem;
}
.theme-tags span {
    padding: 0.25rem 0.875rem; border: 1px solid #637d91;
    border-radius: 30px; color: #d5e2ed;
    font-size: 0.75rem;
}
.theme-banner {
    display: flex; flex-wrap: wrap;
    gap: 1rem 2.5rem; padding: 1.5rem 7%;
    background: linear-gradient(110deg, #111c25, #19282c 60%, #20242b); border-bottom: 1px solid #344454;
    color: #aebfce; font-size: 0.75rem;
    letter-spacing: 1px; border-top: 1px solid #344454;
}
.hero-content, .hero > .poster-card { z-index: 1; }
.scene-label {
    margin-bottom: 1.5rem; color: #dec293;
    font-size: 1.25rem; letter-spacing: 4px;
}
.scene-label span { color: #b8c9d5; font-size: 0.625rem; letter-spacing: 2px; }
.city-silhouette {
    position: absolute; inset: auto 0 0;
    height: 8rem; display: flex;
    align-items: flex-end; justify-content: space-around;
    gap: 1.5%; opacity: 0.35;
    pointer-events: none;
}
.city-silhouette span {
    width: 10%; height: 55%;
    background: #080f15; border-top: 1px solid #526576;
}
.city-silhouette span:nth-child(2n) { height: 85%; }
.city-silhouette span:nth-child(3n) { height: 40%; }
.city-silhouette span:nth-child(5) { height: 100%; }
.theme-tags span:last-child { border-color: #bda174; color: #e5cda6; }
.theme-banner span { border-left: 2px solid #bda174; padding-left: 0.875rem; }

/* Padding untuk ruang di dalam kartu. Grid untuk menyusun kartu menjadi kolom. */
.movie-card {
    padding: 1.75rem; border-radius: 5px;
    background: #e8e7e3; color: #151a21;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25); min-width: 0;
}
.introduction {
    width: 100%; max-width: 56rem;
    margin: 0 auto; padding: 3.5rem 1.5rem;
}
.introduction h1 { font-size: clamp(2rem, 5vw, 2.625rem); margin-bottom: 1.25rem; }
.introduction h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.25rem; }
.introduction p:not(.eyebrow) { color: #c4cbd2; margin-bottom: 1rem; }
.introduction ul, .introduction ol { padding-left: 1.5rem; margin-bottom: 1.5rem; color: #c4cbd2; }
.introduction li { margin-bottom: 0.625rem; }
.introduction .movie-card {
    margin: 1.5rem 0; position: relative;
    border: 1px solid #cbd1d2; border-top: 3px solid #8fa8b8;
    background: linear-gradient(125deg, #eeeae2 0%, #e2e9e8 48%, #d4dfe6 100%); border-color: #b8c9ce;
}
.introduction .movie-card p { color: #364858; }
.introduction .movie-card .card-label { color: #536577; font-size: 0.75rem; letter-spacing: 2px; }
.movie-card h2 { margin-top: 1rem; }
.card-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1.5rem; margin: 1.5rem 0;
}
.introduction .card-grid .movie-card { margin: 0; }
.introduction > .eyebrow::before {
    content: ""; display: inline-block;
    width: 1.75rem; height: 2px;
    margin-right: 0.75rem; vertical-align: middle;
    background: #bda174;
}
.introduction > h1, .introduction > h2 { max-width: 100%; }
.introduction .movie-card::after {
    content: ""; position: absolute;
    right: 0.75rem; top: 0.75rem;
    width: 1rem; height: 1rem;
    border-top: 1px solid #8a744f; border-right: 1px solid #8a744f;
    pointer-events: none;
}
.introduction .card-grid .movie-card:nth-child(even) { background: linear-gradient(135deg, #e4e9eb 0%, #dbe6e3 55%, #e8e2d8 100%); }

/* Posisi menempatkan label di atas poster. */
.poster-card {
    flex-shrink: 0; width: 100%;
    max-width: 20rem; padding: 0.625rem;
    background: #101820; border: 1px solid #637d91;
    box-shadow: 12px 12px 0 rgba(157,183,206,0.08), 0 20px 45px rgba(0,0,0,0.4);
}
.poster-card img { width: 100%; border-radius: 2px; }
.poster-card figcaption {
    display: flex; justify-content: space-between;
    gap: 0.75rem; padding: 0.75rem 0.25rem 0;
    color: #d5e2ed; font-size: 0.6875rem;
    letter-spacing: 2px;
}
.poster-card figcaption span { color: #9db7ce; }
.poster-link { display: block; position: relative; }
.poster-play {
    position: absolute; left: 50%;
    bottom: 1rem; transform: translateX(-50%);
    display: flex; align-items: center;
    gap: 0.5rem; padding: 0.75rem 1rem;
    border: 1px solid #9db7ce; border-radius: 3px;
    background: #101820; color: #fff;
    white-space: nowrap; font-size: 0.75rem;
    font-weight: bold; letter-spacing: 1px;
}
.poster-link:hover .poster-play, .poster-link:focus-visible .poster-play { background: #9db7ce; color: #101820; }

/* Strip nomor dan judul untk menghubungkan tampilan Synopsis, Characters, Review, dan Messages. */
.page-masthead {
    position: relative; display: flex;
    align-items: center; gap: 1.25rem;
    padding: 2rem 7%; border-bottom: 1px solid #344454;
    background: repeating-linear-gradient(110deg, transparent 0 55px, rgba(157,183,206,0.04) 56px 57px, transparent 58px 110px), linear-gradient(115deg, #253142 0%, #203339 55%, #292c30 100%);
}
.chapter-number {
    color: #dec293; font-size: 2.5rem;
    font-family: Georgia, serif; line-height: 1;
}
.page-masthead .eyebrow { margin-bottom: 0.5rem; font-size: 0.6875rem; }
.chapter-line { color: #d6e0e8; font-size: 0.875rem; }
.chapter-mark { display: none; }

/* Foto synopsis&karakter memenuhi bingkai; object-position mengatur pusat foto. Filter menyamakan nuansa warna. */
.introduction .conflict-card {
    background-image: linear-gradient(90deg, rgba(14,25,32,0.92), rgba(14,25,32,0.66)), url('../image/bgsynopsis.jpg'); background-size: cover;
    background-position: center 42%; background-repeat: no-repeat;
    color: #f8f7f4;
}
.introduction .conflict-card p { color: #e4edf2; }
.introduction .conflict-card .card-label { color: #c4d7e4; }
.introduction .conflict-card::after { border-color: #dec293; }
.character-photo {
    margin: 1.25rem 0; overflow: hidden;
    border-radius: 3px; background: #1c2c35;
    position: relative;
}
.character-photo img {
    width: 100%; object-fit: cover;
    filter: saturate(0.65) contrast(0.95) brightness(0.92); aspect-ratio: 16 / 10;
    object-position: center;
}
.character-photo::after {
    content: ""; position: absolute;
    inset: 0; background: linear-gradient(135deg, rgba(71,113,135,0.14), rgba(24,49,57,0.12));
    pointer-events: none;
}

/* gradasi gelap di atas foto biar teks ratingnya terbaca. */
.memorable-scenes {
    margin: 2.5rem 0; padding: 1.5rem 0;
    border-top: 1px solid #49616c; border-bottom: 1px solid #49616c;
}
.scene-gallery { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.scene-card {
    overflow: hidden; border: 1px solid #49616c;
    border-radius: 5px; background: linear-gradient(135deg,#20303b,#1d2c30);
}
.scene-card img {
    width: 100%; height: auto;
    filter: saturate(0.75) contrast(0.98); aspect-ratio: 16 / 10;
    object-fit: cover; object-position: center;
}
.scene-card figcaption { padding: 1.25rem; }
.scene-card h3 {
    color: #e5cda6; font-size: 1.125rem;
    line-height: 1.4; margin-bottom: 0.625rem;
}
.introduction .scene-card p { margin-bottom: 0; font-size: 0.9375rem; }
.scene-notes {
    margin-top: 1.75rem; display: flex;
    flex-direction: column; gap: 1.25rem;
}
.scene-notes article { border-left: 2px solid #bda174; padding-left: 1.25rem; }
.scene-notes h3 {
    color: #e5cda6; font-size: 1.0625rem;
    margin-bottom: 0.625rem; line-height: 1.5;
}
.introduction .scene-notes p { margin-bottom: 0; }
.introduction .rating-card { background: linear-gradient(90deg, rgba(14,25,32,0.93), rgba(14,25,32,0.7)), url('../image/stareview.jpg') center 45% / cover no-repeat; color: #f8f7f4; }
.introduction .rating-card p { color: #e4edf2; }
.introduction .rating-card .card-label { color: #c4d7e4; }
.rating-stars {
    color: #e5c48a; font-size: clamp(1.125rem, 4vw, 1.625rem);
    letter-spacing: 2px; margin-bottom: 1rem;
}
.unfilled-star { color: #c4cbd2; }

/* buat foto film messages. */
.introduction .card-grid .movie-card.message-photo {
    color: #f8f7f4; background-size: cover;
    background-position: center; background-repeat: no-repeat;
    min-height: 22rem; border-color: #637d91;
}
.introduction .card-grid .movie-card.message-bullying { background-image: linear-gradient(180deg,rgba(12,23,31,0.65),rgba(12,23,31,0.94)),url('../image/message-bullying.jpg'); }
.introduction .card-grid .movie-card.message-empathy { background-image: linear-gradient(180deg,rgba(12,23,31,0.65),rgba(12,23,31,0.94)),url('../image/stareview.jpg'); }
.introduction .card-grid .movie-card.message-pressure { background-image: linear-gradient(180deg,rgba(12,23,31,0.65),rgba(12,23,31,0.94)),url('../image/message-pressure.jpg'); }
.introduction .card-grid .movie-card.message-responsibility { background-image: linear-gradient(180deg,rgba(12,23,31,0.55),rgba(12,23,31,0.85)),url('../image/zheng-yi.jpg'); }
.introduction .message-photo p { color: #e4edf2; }
.introduction .message-photo .card-label { color: #c4d7e4; }
.introduction .message-photo::after { border-color: #dec293; }

/* Characters:bg transparan dan teks terang di atas latar halaman. */
.characters-page .introduction .card-grid .movie-card {
    background: #1d2c30 ; border: 1px solid #637d91; border-radius: 5px;
    box-shadow: none; color: #f8f7f4;
}
.characters-page .introduction .card-grid .movie-card {
    background: #1d2c30;
    border: 1px solid #637d91;
    border-radius: 5px;
    box-shadow: none;
    color: #f8f7f4;
}
.characters-page .movie-card h2 {
    color: #e5cda6;
}
.characters-page .movie-card p {
    color: #d5e2ed;
}
.characters-page .movie-card .card-label {
    color: #9db7ce;
}
.characters-page .movie-card::after {
    display: none;
}

/* Bagian Opaling bawah halaman. */
.site-footer {
    padding: 1.5rem; text-align: center;
    background: linear-gradient(110deg, #111c25, #19282c 60%, #20242b); color: #737f8b;
    font-size: 0.75rem; border-top: 1px solid #344454;
}
.site-footer::before {
    content: ""; display: block;
    width: 3rem; height: 2px;
    background: #bda174; margin: 0 auto 1rem;
}

/* untuk responsive or media queries. */
@media (min-width: 700px) {
    .card-grid { grid-template-columns: 1fr 1fr; }
    .introduction { padding: 4rem 2rem; }
    .theme-banner { justify-content: center; }
    .page-masthead { padding: 2.5rem 7%; gap: 1.75rem; }
    .chapter-number { font-size: 3.5rem; }
    .chapter-mark {
    display: block; margin-left: auto;
    color: #9db7ce; font-family: Georgia, serif;
    font-size: 1.5rem; letter-spacing: 5px;
}
    .scene-label { font-size: 1.5rem; }
    .scene-gallery { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
    .site-header { flex-direction: row; justify-content: space-between; gap: 1.5rem; }
    .hero {
    flex-direction: row; justify-content: center;
    gap: 4rem; padding: 4.5rem 7%;
    min-height: 35rem;
}
    .poster-card { max-width: 18rem; }
}
