* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: Arial, sans-serif;
      }

      body {
        background-color: #121212;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100vh;
      }

      .movie-container {
        max-width: 480px;
        width: 100%;
        position: relative;
      }

      .back-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        background: rgba(0, 0, 0, 0.5);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        z-index: 10;
      }

      .back-btn svg {
        width: 20px;
        height: 20px;
        color: white;
      }

      .hero-image {
        width: 100%;
        position: relative;
        height: 70vh;
        overflow: hidden;
      }

      .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
      }

      @media (max-width: 768px) {
        .hero-image {
          height: 60vh;
        }
      }

      @media (max-width: 480px) {
        .hero-image {
          height: 50vh;
        }
      }

      .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        background-color: #ff3a3a;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
        transition: transform 0.2s, background-color 0.2s;
      }

      .play-button:hover {
        transform: translate(-50%, -50%) scale(1.1);
        background-color: #c51d31;
      }

      .play-icon {
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 12px 0 12px 20px;
        border-color: transparent transparent transparent #ffffff;
        margin-left: 4px;
      }

      .movie-title-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
        padding: 60px 20px 20px;
        z-index: 1;
      }

      .movie-title {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 8px;
      }

      .movie-genres {
        display: flex;
        gap: 10px;
        color: #aaa;
        font-size: 12px;
        margin-bottom: 20px;
      }

      .movie-info {
        padding: 20px;
      }

      .movie-actions {
        display: flex;
        gap: 16px;
        margin-bottom: 24px;
        flex-wrap: wrap;
      }

      .action-btn {
        display: flex;
        align-items: center;
        padding: 2px 15px;
        background-color: transparent;
        border-radius: 20px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
      }

      .trailer-btn {
        background-color: #FFCE31;
        color: #000;
        border: none;
      }

      .info-btn {
        border: 1px solid #aaa;
        color: #fff;
        background-color: transparent;
        display: flex;
        gap: 8px;
        align-items: center;
      }

      .info-btn svg, 
      .info-btn img {
        width: 16px;
        height: 16px;
      }

      .movie-description {
        font-size: 12px;
        line-height: 1.6;
        color: #ddd;
        margin-bottom: 20px;
      }

      .movie-cast {
        margin-bottom: 25px;
      }

      .cast-title {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 8px;
        color: #fff;
      }

      .cast-list {
        color: #bbb;
        font-size: 12px;
      }

      .reservation-btn {
        width: 100%;
        background-color: #FFCE31;
        color: #000;
        padding: 12px;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        margin-top: 30px;
      }

      .star-icon {
        color: #FFCE31;
        margin-right: 4px;
      }

      .clock-icon {
        margin-right: 4px;
      }
      
      .embed-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        background-color: #000;
        display: none;
      }
      
      .embed-iframe {
        width: 100%;
        height: 100%;
        border: none;
      }
      
      .back-to-poster {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 101;
      }
      
      .embed-selection {
        display: flex;
        gap: 10px;
        margin-top: 10px;
      }
      
      .embed-option {
        background-color: #333;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 12px;
        cursor: pointer;
        transition: background-color 0.2s;
      }
      
      .embed-option:hover {
        background-color: #555;
      }
      
      .manual-embed-container {
        padding: 10px 20px;
        margin-top: 20px;
        background-color: #111;
        border-radius: 8px;
      }
      
      .manual-embed-title {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 10px;
      }
      
      .manual-embed-form {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
      }
      
      .manual-embed-input {
        flex: 1;
        padding: 10px;
        background-color: #222;
        border: 1px solid #444;
        border-radius: 4px;
        color: white;
      }
      
      .manual-embed-button {
        background-color: #FFCE31;
        color: #000;
        border: none;
        padding: 0 16px;
        border-radius: 4px;
        font-weight: 500;
        cursor: pointer;
      }
      
      /* Popup Frame Styles */
      .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.75);
        z-index: 1000;
        display: none;
        justify-content: center;
        align-items: center;
      }
      
      .popup-frame {
        background-color: #222;
        border-radius: 8px;
        width: 90%;
        max-width: 480px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        animation: popup-appear 0.3s ease-out forwards;
      }
      
      @keyframes popup-appear {
        from {
          opacity: 0;
          transform: scale(0.9);
        }
        to {
          opacity: 1;
          transform: scale(1);
        }
      }
      
      .popup-header {
        padding: 16px 20px;
        border-bottom: 1px solid #333;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      
      .popup-title {
        font-size: 12px;
      }
      
      .popup-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.5);
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s;
      }
      
      .popup-close:hover {
        background-color: rgba(0, 0, 0, 0.8);
      }
      
      .popup-content {
        padding: 5px;
      }
      
      .popup-actions {
        padding: 16px 20px;
        border-top: 1px solid #333;
        display: flex;
        justify-content: flex-end;
        gap: 12px;
      }
      
      .popup-btn {
        padding: 8px 16px;
        border-radius: 4px;
        font-weight: 500;
        cursor: pointer;
        transition: opacity 0.2s;
      }
      
      .popup-btn:hover {
        opacity: 0.9;
      }
      
      .popup-btn-primary {
        background-color: #FFCE31;
        color: #000;
        border: none;
      }
      
      .popup-btn-secondary {
        background-color: transparent;
        color: #fff;
        border: 1px solid #444;
      }
      
      /* Membuat span yang tidak kosong memulai baris baru */
span:not(:empty) {
    display: block;
    margin-top: 5px; /* Jarak atas untuk pemisahan visual */
    margin-bottom: 5px; /* Jarak bawah untuk pemisahan visual */
}

/* Bottom navigation styles */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-around;
	background-color: #121212;
	padding: 12px 0 8px;
	max-width: 480px;
	margin: 0 auto;
	border-radius: 20px;
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #888;
	text-decoration: none;
	font-size: 10px;
}

.nav-item i {
	font-size: 18px;
	margin-bottom: 4px;
}

.nav-item.active {
	color: #ff0000;
}

/* Add some padding to main content to account for the fixed bottom nav */
main {
	padding-bottom: 70px;
}

/* Responsive adjustments */
@media (max-width: 500px) {
	.app-container {
		padding: 15px;
	}

	.featured-movie {
		height: 350px;
	}

	.movie-cards {
		gap: 10px;
	}

	.movie-title {
		font-size: 22px;
	}

	.movie-card {
		width: 115px;
	}
}

/* Responsive adjustments */
@media (max-width: 400px) {
	.app-container {
		padding: 15px;
	}

	.featured-movie {
		height: 350px;
	}

	.movie-cards {
		gap: 10px;
	}

	.movie-title {
		font-size: 22px;
	}

	.movie-card {
		width: 110px;
	}
}

/* Responsive adjustments */
@media (max-width: 300px) {
	.app-container {
		padding: 10px;
	}

	.featured-movie {
		height: 320px;
	}

	.movie-cards {
		gap: 10px;
	}

	.movie-title {
		font-size: 20px;
	}

	.movie-card {
		width: 80px;
	}
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    clear: both;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination a {
    text-decoration: none;
    color: #333;
    background: #f1f1f1;
    padding: 6px 6px 6px 6px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.pagination .page-info {
    color: #ffffff;
    font-weight: bold;
}

.pagination a:hover {
    background: #a90202;
    color: white;
}

.prev-btn, .next-btn {
    min-width: 50px;
    text-align: center;
}

.share-container {
             position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: #121212;
    padding: 12px 0 8px;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 20px;
}
        
        .share-label {
            color: white;
            font-size: 14px;
            margin-right: 10px;
        }
        
        .share-buttons {
            display: flex;
            gap: 8px;
        }
        
        .share-link {
            color: white;
            text-decoration: none;
            font-size: 20px;
            padding: 6px 10px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        
        .share-link:hover {
           color: rgb(197 29 49);
        }
        
        .share-link:active {
            color: red;
        }
        
        .share-icon {
            margin-right: 5px;
        }
        
        
        .error-message {
            text-align: center;
            padding: 50px;
            color: #ffffff;
            background-color: #1a1a1a;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            font-family: Arial, sans-serif;
        }
        .error-message h1 {
            font-size: 3em;
            margin-bottom: 20px;
        }
        .error-message p {
            font-size: 1.2em;
            margin-bottom: 20px;
        }
        .error-message a {
            color: #FFD43B;
            text-decoration: none;
            font-weight: bold;
        }
        .error-message a:hover {
            text-decoration: underline;
        }
        .error-message i {
            color: #FFD43B;
            margin-right: 10px;
        }
        @media (max-width: 600px) {
            .error-message h1 {
                font-size: 2em;
            }
            .error-message p {
                font-size: 1em;
            }
        }