* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f3f0;
    color: #292929;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

header {
    text-align: center;
    padding: 70px 20px 90px;
}

header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

header p {
    font-size: 17px;
    color: #666;
}


.drama-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 50px;
}

.drama-card {
    background-color: white;
    border-radius: 18px;
    padding: 30px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.drama-card img {
    width: 220px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 14px;
}
.drama-card img {
    width: 220px;
    height: auto;
    max-height: 320px;
    max-width: 45%;
    object-fit: contain;
    border-radius: 14px;
}
.drama-info {
    flex: 1;
}

.drama-info h2 {
    font-size: 26px;
    margin-bottom: 18px;
}

.genre {
    font-weight: bold;
    margin-bottom: 12px;
}

.episode {
    color: #666;
    margin-bottom: 25px;
}

.sinopsis {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}
@media (max-width: 600px) {
    .drama-card {
        flex-direction: column;
        align-items: center;
    }

    .drama-info {
        width: 100%;
    }
}
/* FEEDBACK SECTION */

.drama-feedback {
    text-align: center;
    margin: 80px 20px 40px;
    padding: 50px 20px;
    border-radius: 20px;
    background: #f5f1eb;
}

.drama-feedback h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.drama-feedback p {
    color: #666;
    line-height: 1.6;
}

.feedback-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feedback-options button {
    border: none;
    padding: 13px 20px;
    border-radius: 30px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.feedback-options button:hover {
    transform: translateY(-3px);
}

#feedback-result {
    margin-top: 25px;
    font-weight: bold;
}
.drama-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
/* ============================= */
/* HALAMAN DETAIL DRAMA */
/* ============================= */

.detail-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 25px 70px;
}

/* Tombol kembali */

.back-button {
    display: inline-block;
    margin-bottom: 30px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.back-button:hover {
    opacity: 0.7;
}


/* HEADER DRAMA */



.detail-header img {
    width: auto;
    height: auto;
    max-width: 380px;
    max-height: 310px;
    object-fit: contain;
    border-radius: 15px;
}

.detail-description {
    flex: 1;
}

.detail-description h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.detail-description p {
    line-height: 1.8;
    color: #555;
}


/* BAGIAN INFORMASI */

.drama-details {
    margin-bottom: 60px;
}

.drama-details h2,
.cast-section h2,
.recommendation-section h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.detail-info div {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
}

.detail-info span {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 7px;
}

.detail-info strong {
    font-size: 17px;
}


/* CAST */

.cast-section {
    margin-bottom: 130px;
}

.cast-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cast-card {
    padding: 18px 10px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 12px;
    transition: 0.2s;
}

.cast-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.cast-list .cast-card {
    padding: 15px 10px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 12px;
}

.cast-card h3 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: bold;
}

.cast-card p {
    margin: 0;
    color: #777;
    font-size: 13px;
}
.cast-list .cast-card img {
    width: 90px;
    height: 110px;
    max-width: 90px;
    max-height: 110px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px;
}

/* REKOMENDASI */

.recommendation-section {
    margin-top: 100px;
    margin-bottom: 40px;
}

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.recommendation-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: 0.2s;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.recommendation-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: 0.2s;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.recommendation-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.recommendation-card h3 {
    font-size: 14px;
    margin: 15px 8px;
}

.recommendation-card h3 {
    font-size: 16px;
}

/* HEADER DETAIL DRAMA */
.drama-header {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    margin-bottom: 40px;
}

.drama-poster {
    flex-shrink: 0;
}

.drama-poster img {
    width: 300px;
    height: auto;
    max-height: 430px;
    object-fit: contain;
    border-radius: 15px;
    display: block;
}

.drama-info {
    padding-top: 15px;
    flex: 1;
}

.drama-info h1 {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 25px;
}

.drama-info .sinopsis {
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    max-width: 650px;
}
/* TAMPILAN HP */

@media (max-width: 700px) {

    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    .detail-header img {
    width: auto;
    height: auto;
    max-width: 380px;
    max-height: 310px;
    object-fit: contain;
    border-radius: 15px;
    }

    .detail-description h1 {
        font-size: 32px;
    }

    .detail-info {
        grid-template-columns: 1fr;
    }

    .cast-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .recommendation-list {
        grid-template-columns: repeat(2, 1fr);
    }
  
    

}