.movie-content-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 20px;
}

.movie-poster-container {
    flex: 1 1 300px;
    text-align: center;
}

.movie-poster {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.movie-info {
    flex: 2 1 400px;
    color: #eee;
}

.movie-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.movie-meta {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 15px;
}

.movie-meta span {
    margin-right: 15px;
}

.movie-rating {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffc107;
}

.movie-description {
    line-height: 1.6;
    color: #ddd;
    margin-top: 15px;
    font-size: 16px;
}

.trailer-box {
    margin-top: 40px;
}

.trailer-title {
    font-size: 24px;
    color: #eee;
    margin-bottom: 15px;
}

.trailer-frame-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.trailer-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========== GLOBAL STYLES ========== */
html {
    font-size: 95%;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: white;
    transform: scale(1);
    transform-origin: top center;
    overflow-x: auto;
}

.error {
    color: red;
    font-size: 14px;
}

/* ========== AUTH PAGES (LOGIN/REGISTER) ========== */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000;
}

.login-box {
    background-color: #111;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.login-box h2 {
    color: #d32f2f;
    margin-bottom: 20px;
}

.login-box input,
.login-box select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
}

.login-box button {
    background-color: #d32f2f;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

/* ========== HEADER & NAVIGATION ========== */
header {
    background-color: black;
    padding: 5px;
    text-align: center;
    position: relative;
    z-index: 1001;
    font-size: 44px;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 20px;
    text-shadow: 0 0 30px #d32f2f;
}

.logo {
    font-weight: bold;
    font-size: 44px;
}

.top-right {
    position: absolute;
    right: 20px;
    top: 25px;
    font-size: 14px;
}

.top-right a {
    color: white;
    background-color: gray;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 10px;
}

.back-button {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #d32f2f;
    color: white;
    padding: 8px 10px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-button:hover {
    background-color: #b71c1c;
    transform: translateX(-3px);
}

/* ========== FILTER & SEARCH BAR ========== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #111;
    padding: 15px 20px;
    gap: 15px;
    color: white;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.filter-bar select,
.filter-bar input[type="text"] {
    background-color: #222;
    color: white;
    border: 1px solid #444;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    min-width: 160px;
    transition: border-color 0.3s;
}

.filter-bar select:focus,
.filter-bar input[type="text"]:focus {
    border-color: #d32f2f;
}

.btn-apply-filters {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn-apply-filters:hover {
    background-color: #b71c1c;
    transform: scale(1.05);
}

.btn-add-movie {
    background-color: transparent;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-left: auto;
}

.btn-add-movie:hover {
    background-color: #d32f2f;
    color: white;
}

/* ========== MOVIE GRID/CARD STYLES ========== */
.movie-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.movie-grid-container {
    padding: 20px 75px;
    max-width: 1400px;
    margin: 0 auto;
}

.movie-section-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem 1rem;
    color: #ffffff;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.movie-card {
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.movie-poster-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-rating i {
    font-size: 0.70rem;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.movie-link {
    text-decoration: none;
}

.no-movies {
    text-align: center;
    padding: 50px;
    color: #666;
    font-size: 18px;
}

.no-movies i {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

/* ========== CAROUSEL POSTER ========== */
.carousel {
    margin: auto;
    overflow: hidden;
    max-width: 100%;
    height: 200px; /* Batasi tinggi carousel */
    position: relative;
}

.carousel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #0f0f0f 100%);
    z-index: 2;
}

.carousel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #0f0f0f 100%);
    z-index: 2;
}

.carousel-container {
    display: flex;
    height: 100%;
    animation: slide 30s infinite linear;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.carousel-caption {
    color: white;
    background: rgba(0, 0, 0, 0.162);
    padding: 25px 50px;
    max-width: 51%;
}

.carousel-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.carousel-meta {
    font-size: 0.95rem;
    color: #ddd;
}

.carousel-meta-row {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #fff;
}

.carousel-year,
.carousel-rating {
    flex: 0 0 auto;
}

.carousel-separator {
    opacity: 0.6;
    margin: 0 4px;
}

.carousel-rating i {
    color: gold;
    font-size: 0.65rem;
    margin-left: 2px;
}

/* Latar belakang blur */
.carousel-blur {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    z-index: 1;
}

/* Kontainer isi slide */
.carousel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5 60px;
}

.poster-link {
    width: 30%;
    margin-right: 40px;
    height: 100%;
    display: flex;
    align-items: center; /* Poster tetap di tengah secara vertikal */
    justify-content: center;
}

.poster-link img {
    width: 100%;
    height: auto;
    max-height: 95%; /* Hindari mentok ke atas/bawah */
    margin: 10px 0; /* Jarak atas dan bawah */
    object-fit: contain;
    border-radius: 20px; /* Lengkungan */
    transition: transform 0.3s ease;
}

.poster-link:hover img {
    transform: scale(1.03);
}

/* Animasi slider */
@keyframes slide {
    0% {
        transform: translateX(0%);
    }
    9% {
        transform: translateX(0%);
    }
    10% {
        transform: translateX(-100%);
    }
    19% {
        transform: translateX(-100%);
    }
    20% {
        transform: translateX(-200%);
    }
    29% {
        transform: translateX(-200%);
    }
    30% {
        transform: translateX(-300%);
    }
    39% {
        transform: translateX(-300%);
    }
    40% {
        transform: translateX(-400%);
    }
    49% {
        transform: translateX(-400%);
    }
    50% {
        transform: translateX(-500%);
    }
    59% {
        transform: translateX(-500%);
    }
    60% {
        transform: translateX(-600%);
    }
    69% {
        transform: translateX(-600%);
    }
    70% {
        transform: translateX(-700%);
    }
    79% {
        transform: translateX(-700%);
    }
    80% {
        transform: translateX(-800%);
    }
    89% {
        transform: translateX(-800%);
    }
    90% {
        transform: translateX(-900%);
    }
    99% {
        transform: translateX(-900%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* ========== MOVIE DETAIL PAGE ========== */
.movie-detail {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: #222;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    position: relative;
}

/* Modal Trailer */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    margin: auto;
    background-color: #111;
    padding: 20px;
    border: 1px solid #444;
    width: 80%;
    max-width: 800px;
    position: relative;
    border-radius: 10px;
}

.close {
    color: #fff;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #d32f2f;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.movie-info h1 {
    color: #d32f2f;
    margin-top: 0;
}

.movie-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    color: #aaa;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
    font-size: 15px;
    font-weight: bold;
    margin: 15px 0;
}

.movie-description {
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
}

.btn-trailer {
    display: inline-block;
    margin-top: 15px;
    background: #d32f2f;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-trailer:hover {
    background: #b71c1c;
}

.back-btn {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 8px 15px;
    background-color: #444;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #555;
}

.movie-detail-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #111;
    border-radius: 8px;
    color: #fff;
}

.movie-detail {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.movie-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.movie-poster-container {
    flex: 1 1 300px;
}

.movie-poster {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    border: 2px solid #444;
}

.movie-info {
    flex: 2 1 500px;
}

.movie-info h1 {
    margin-top: 0;
    font-size: 2em;
}

.movie-meta {
    margin: 10px 0;
    color: #ccc;
}

.movie-rating {
    font-size: 1.2em;
    color: #fbc02d;
}

.movie-description {
    margin-top: 10px;
    line-height: 1.6;
    color: #ddd;
}

.tr ailer-box {
    margin-top: -65px;
    text-align: center;
}

.trailer-title {
    font-size: 1.6em;
    margin-top: -85px;
    margin-bottom: 7px;
    color: #fff;
}

.trailer-frame-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.trailer-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.reviews-section {
    margin-top: 40px;
}

.review-card {
    background: #222;
    border-left: 4px solid #d32f2f;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}

.review-author {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #e57373;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 8px;
    display: block;
}

.review-comment {
    margin: 10px 0;
    color: #ddd;
}

.back-button {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 15px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.back-button:hover {
    background-color: #444;
}

/* ========== REVIEWS SECTION ========== */
.reviews-section {
    margin-top: 50px;
    grid-column: 1 / -1;
}

.review-card {
    background: #333;
    width: 99%;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 7px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
    color: #d32f2f;
}

.review-rating {
    color: #ffd700;
    margin-left: auto;
}

.review-comment {
    white-space: inherit;
    text-align: left;
}

.review-date {
    margin-top: 10px;
    font-size: 10px;
    color: #888;
}

.view-all-link {
    font-size: 14px;
    color: #d32f2f;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Tombol dan Menu Dropdown di Review Card */
.dropdown-container {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.dropdown-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.dropdown-btn:hover {
    background: #d32f2f;
    color: #fff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.5);
    z-index: 99;
    border-radius: 6px;
    overflow: hidden;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a,
.dropdown-menu button {
    color: #333;
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: #d32f2f;
}

.review-card {
    background: #333;
    width: 99%;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;  /* penting untuk posisi absolute di tombol 3 titik */
}

.dropdown-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}

.dropdown-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.dropdown-btn:hover {
    background: #d32f2f;
    color: #fff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.5);
    z-index: 99;
    border-radius: 6px;
    overflow: hidden;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a,
.dropdown-menu button {
    color: #fff;
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #d32f2f;
}

.review-card {
    background: #222;
    border-radius: 8px;
    padding: 15px;
    position: relative;  /* <- penting untuk posisi absolute */
    margin-bottom: 10px;
    border-left: 4px solid #d32f2f;
}

/* Tombol ellipsis dipojok kanan atas */
.dropdown-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

.dropdown-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease-in-out;
}

.dropdown-btn:hover {
    background: #555;
}

.dropdown-menu {
    position: absolute;
    top: 35px;
    right: 0;
    background: #fff;
    color: #000;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgb(0 0 0 / 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-menu a {
    color: #fff;
    background: #d32f2f;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease-in-out;
}

.dropdown-menu a:hover {
    background: #b71c1c;
}

/* ========== OPTION ========== */

.dropdown-container {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 25px;
    background-color: #333;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 99;
    border-radius: 6px;
    overflow: hidden;
}

.dropdown-menu a,
.dropdown-menu button {
    color: white;
    padding: 8px 10px;
    text-decoration: none;
    display: flex;
    background: none;
    border: none;
    width: 100%;
    text-align: auto;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #d32f2f;
}

/* ========== ADMIN ACTIONS ========== */
.admin-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.movie-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-edit,
.btn-delete {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.btn-edit {
    background-color: #f44336;
}

.btn-edit:hover {
    background-color: #f44336;
    transform: scale(1.05);
}

.btn-delete {
    background-color: #000000;
}

.delete-btn:hover {
    background-color: #000000;
    transform: scale(1.05);
}

/* ========== RATING STYLES ========== */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    font-size: 20px;
    line-height: 1;
    justify-content: flex-end;
    padding: 15px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ccc;
    cursor: pointer;
    padding: 0 3px;
    transition: color 0.2s;
}

.star-rating input:checked~label,
.star-rating input:hover~label {
    color: #ffd700;
}

.star-rating label:hover,
.star-rating label:hover~label {
    color: #ffd700;
}

.fixed-rating-value {
    margin-right: 5px;
}

/* ========== PROFILE ========== */
.profile-menu {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.profile-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    position: relative;
    top: -10px; /* Naikkan sedikit */
}

.dropdown-profiles {
    position: absolute;
    right: 0;
    top: 40px;
    background-color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 999;
    min-width: 120px;
    border-radius: 6px;
}

.dropdown-profiles a,
.dropdown-profiles button {
    color: rgb(255, 255, 255);
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-profiles a:hover {
    background-color: #ff0000;
}

.hidden {
    display: none;
}

.profile-container {
    width: 750px;
    margin: auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
}

.username {
    font-size: 24px;
    margin: 0;
}

.email {
    font-size: 16px;
    color: #cccccc;
}

.recent-comments {
    margin-top: 20px;
}

.comment-item {
    border-bottom: 1px solid #444444;
    padding: 10px 0;
}

.comment-film-title {
    font-weight: bold;
}

.no-comments {
    color: #888888;
}

.recent-comments h5 {
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.recent-comments h5::before,
.recent-comments h5::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #555;
    margin: 0 15px;
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
}

textarea {
    width: 98%;
    padding: 10px;
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

.btn-submit {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    color: white;
    padding: 8px 16px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a {
    background-color: #333;
}

.pagination a:hover {
    background-color: #d32f2f;
}

.pagination .current {
    background-color: #d32f2f;
    font-weight: bold;
}

.pagination .disabled {
    color: #666;
    pointer-events: none;
}

/* ========== FOOTER ========== */
.main-footer {
    position: fixed;
    text-align: center;
    bottom: -78px;
    left: 0;
    right: 0;
    max-width: auto; /* sama dengan lebar .profile-container */
    margin: 0 auto;
    padding: 1px;
    background: #000;
    color: #666;
    font-size: 10px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .movie-detail {
        grid-template-columns: 1fr;
    }

    .movie-poster {
        max-width: 300px;
        margin: 0 auto;
    }

    .fixed-rating {
        top: 70px;
        right: 10px;
        font-size: 16px;
        padding: 8px 12px;
    }

    .back-button {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 13px;
    }
}

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

/* Untuk halaman edit */
.edit-body {
    background-color: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.edit-container {
    max-width: 600px;
    margin: auto;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.edit-heading {
    color: #e74c3c;
    margin-bottom: 20px;
    text-align: center;
}

.edit-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.edit-form input[type="text"],
.edit-form input[type="number"],
.edit-form textarea,
.edit-form select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #fff;
    font-size: 1em;
}

.edit-form textarea {
    resize: vertical;
}

.btn-update {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    transition: background 0.2s ease;
}

.btn-update:hover {
    background: #c0392b;
}

.btn-back {
    display: inline-block;
    margin-top: 15px;
    color: #9b59b6;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
    text-align: center;
    width: 100%;
}

.btn-back:hover {
    color: #fff;
}

/* about us section */
.about-us-section {
    padding: 5px 50px;
    text-align: center;
    background: #000;
    color: #fff;
}

.about-us-section .about-us-logo {
    font-size: 44px;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 20px;
    text-shadow: 0 0 30px #d32f2f;
}

.about-us-section p {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #ccc;
    font-size: 10px;
    line-height: 1.5;
}


.about-us-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
    margin-bottom: 30px;
}

.about-us-item {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.5);
}

.about-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgb(0 0 0 / 0.7);
}

.about-us-item h3 {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #d32f2f;
    padding-bottom: 10px;
}

.about-us-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.about-us-item ul li {
    color: #ccc;
    padding-bottom: 8px;
    font-size: 12px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.about-us-item ul li:hover {
    color: #d32f2f;
}
