      /* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #fff;
  line-height: 1.6;
}

/* Tambahkan aturan untuk link */
a {
  color: white;
  text-decoration: none;
}

a:visited {
  color: white; /* Tetap putih setelah dikunjungi */
}

a:hover {
  color: #ff0000; /* Efek hover */
}

a:active {
  color: #ff0000; /* Efek saat diklik */
}


.app-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info h2 {
  font-size: 16px;
  font-weight: 600;
}

.user-info p {
  font-size: 12px;
  color: #aaa;
}

.search-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Featured movie styles */
.featured-movie {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  height: 400px;
}

.featured-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.movie-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
}

.movie-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.movie-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.movie-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #ccc;
  margin-bottom: 10px;
}

.dot {
  width: 4px;
  height: 4px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 8px;
}

.rating {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.rating i {
  color: #ffb800;
  font-size: 14px;
  margin-right: 2px;
}

.rating span {
  font-size: 12px;
  color: #ccc;
  margin-left: 8px;
}

.watch-button {
  background-color: #ff0000;
  color: white;
  border: none;
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.watch-button i {
  font-size: 12px;
}

/* Movies section styles */
.movies-section {
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.see-all {
  color: #ff0000;
  text-decoration: none;
  font-size: 14px;
}

/* Carousel styles for horizontal scrolling in Popular Movies section */
.movies-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
  gap: 15px;
  padding: 0 5px 15px 5px;
  margin: 0 -5px;
}

.carousel-container::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

/* Movie cards for New Movies and grid layouts */
.movie-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

/* Common movie card styles for both carousel and grid */
.movie-card {
  width: 125px;
  flex-shrink: 0;
}

.card-poster {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2/3;
  margin-bottom: 8px;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgb(187 180 180 / 70%);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-rating i {
  color: #ffb800;
  font-size: 10px;
}

.card-jenis {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgb(169 2 2 / 43%);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    display: flex
;
    align-items: center;
    gap: 4px;
}

.card-jenis i {
  color: #ffb800;
  font-size: 10px;
}

.movie-card h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
}

.card-meta {
  font-size: 11px;
  color: #aaa;
  display: flex;
  align-items: center;
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  margin: 0 5px;
}

/* 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: #fff;
  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;
  }
}


/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

/* Labels */
label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Input Fields */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 15px;
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    height: 120px;
    resize: vertical;
}

/* Add Video Button - Green */
.btn-add {
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-add:hover {
    background: #218838;
}

/* Delete Button - Red */
.video-input-group {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .video-input {
            flex: 1;
        }

.btn-remove-video {
    background: #dc3545;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-remove-video:hover {
    background: #c82333;
}


.alert {
            padding: 1rem;
            border-radius: var(--radius);
            margin-top: 1rem;
        }

        .alert-success {
            background-color: #dcfce7;
            color: #166534;
        }

        .alert-error {
            background-color: #fee2e2;
            color: #991b1b;
        }

        .disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }


/* Submit Button */
input[type="submit"] {
    background: #e50914;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    margin-top: 20px;
}

input[type="submit"]:hover {
    background: #f40612;
}

.btn.btn-primary {
        background: #e50914;
        color: white;
        padding: 12px 24px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 500;
        width: 100%;
        margin-top: 20px;
        transition: background 0.3s ease;
    }

    .btn.btn-primary:hover {
        background: #b2070f;
    }

/* Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

/* Placeholder Text */
::placeholder {
    color: #808080;
}

/* Select Dropdown */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
}


/* Video Container */
#video-container .form-group {
    position: relative;
}

#video-container .form-group:not(:first-child) {
    margin-top: 15px;
}
