:root {
  --primary-orange: #ff4500;
  --secondary-orange: #ff8c00;
  --dark: #1a1a1a;
  --white: #ffffff;
  --gray: rgba(0, 0, 0, 0.6);
  --border-color: rgba(227, 227, 227, 1);
}

/* Header Styles */
.tmdb-header {
  background-color: var(--dark);
  padding: 16px 0;
}

.tmdb-logo {
  width: 154px;
  height: auto;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  color: var(--white);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
      to right,
      rgba(26, 26, 26, 0.8) 0%,
      rgba(26, 26, 26, 0.8) 100%
    ),
    url("assets/img/bg.jpg");
  background-size: cover;
  padding: 80px 0;
  margin-bottom: 10px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 16px;
}

.search-wrapper {
  position: relative;
  margin-top: 40px;
}

/* Scroller and Movie List */
.scroller-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.movie-list {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
  margin: 0 -8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Untuk dukungan iOS */
  scrollbar-width: none; /* Untuk Firefox */
  -ms-overflow-style: none; /* Untuk IE dan Edge */
}

.movie-list::-webkit-scrollbar {
  height: 8px;
  background: #dbdbdb;
  border-radius: 4px;
}

.movie-list::-webkit-scrollbar-thumb {
  background: var(--primary-orange);
  border-radius: 4px;
}

/* Movie Cards */
.card-wrapper {
  flex: 0 0 auto;
  width: 185px;
  height: 330px; /* Kurangi tinggi total */
  margin: 0 10px;
  perspective: 1000px;
}

.movie-card {
  position: relative;
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.movie-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(255, 69, 0, 0.3);
  z-index: 10;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 278px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 8px; /* Tambahkan border radius ke gambar */
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .image-wrapper img {
  transform: scale(1.1);
}

/* Content area */
.content {
  padding: 8px 10px; /* Kurangi padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  min-height: 40px; /* Kurangi minimum height */
}

.movie-title {
  text-align: center;
  font-size: 15px;
  font-weight: 700; /* Tambah ketebalan font */
  margin: 0;
  color: var(--primary-orange);
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Batasi ke 1 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  padding: 0 5px; /* Tambah padding samping */
}

/* Year Badge */
.year-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-orange);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 2;
  transition: all 0.3s ease;
}

.movie-card:hover .year-badge {
  background: var(--secondary-orange);
}

/* Rating Circle */
.rating-circle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 2px;
  z-index: 3;
  transition: all 0.3s ease;
}

.rating-circle::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--primary-orange);
}

.percent {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

/* Section Headers */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

/* Switch Buttons */
.switch-buttons {
  background: var(--dark);
  border-radius: 30px;
  padding: 3px;
  display: inline-flex;
}

.switch-button {
  border: none;
  background: none;
  color: var(--white);
  padding: 4px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.switch-button:hover {
  color: var(--secondary-orange);
}

.switch-button.active {
  background: var(--primary-orange);
  color: var(--white);
}

/* Footer */
.tmdb-footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 80px 0;
  margin-top: 100px;
}

.footer-logo {
  width: 130px;
  margin-bottom: 40px;
}

.footer-navigation h3 {
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 16px;
  color: var(--primary-orange);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-orange);
}

/* Global */
body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Search Results */
.search-results-header {
  margin: 30px 0;
}

.search-results-header h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.search-results-header p {
  color: var(--gray);
}

.no-results {
  width: 100%;
  text-align: center;
  padding: 40px;
  color: var(--gray);
}

/* Latest Trailers Section */
.latest-trailers {
  padding: 30px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  position: relative;
}

.trailer-filters {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 30px;
  background: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: var(--primary-orange);
}

.filter-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

.trailers-wrapper {
  margin-top: 30px;
  position: relative;
}

.trailer-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.trailer-list::-webkit-scrollbar {
  display: none;
}

.trailer-card {
  flex: 0 0 400px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.trailer-card:hover {
  transform: scale(1.02);
}

.trailer-thumbnail {
  position: relative;
  width: 100%;
  height: 225px;
  overflow: hidden;
}

.trailer-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.trailer-card:hover .play-button {
  background: var(--primary-orange);
  transform: translate(-50%, -50%) scale(1.1);
}

.trailer-info {
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
}

.trailer-info h3 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
}

.trailer-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

/* Latest Trailers Mobile Style */
@media screen and (max-width: 768px) {
  .trailer-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 10px;
  }

  .filter-btn {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
    text-align: center;
  }

  .trailer-card {
    flex: 0 0 100%;
    margin: 0 10px;
  }

  .trailer-thumbnail {
    height: 100%;
  }
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 9999;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #000;
}

.video-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 0 10px;
  background-color: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.video-action-btn:hover {
  background-color: var(--secondary-orange);
}

.video-action-btn svg {
  width: 20px;
  height: 20px;
}

/* Media Query for Mobile */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 90%;
  }

  .video-actions {
    flex-direction: column;
  }

  .video-action-btn {
    margin: 10px 0;
  }
}

.tmdb-logo {
  height: 40px;
  width: auto;
}

.current-logo {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 10px;
}

.current-logo img {
  max-height: 40px;
  width: auto;
}

/* Add to assets/css/style.css */
/* Add to assets/css/style.css */

/* Trailer Section */
.trailer-section {
  padding: 30px 0;
}

.trailer-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.trailer-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Media Section */
.media-section {
  padding: 30px 0;
}

.media-nav {
  margin-bottom: 20px;
}

.media-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.media-tabs a {
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  display: inline-block;
  position: relative;
  opacity: 0.7;
}

.media-tabs a.active {
  opacity: 1;
}

.media-tabs a.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #01b4e4;
}

.count {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.8em;
  margin-left: 5px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.media-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
}

.media-grid {
  display: grid;
  gap: 20px;
  padding: 20px 0;
}

.video-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.backdrop-grid {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.poster-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.video-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.play-button:hover {
  background: rgba(0, 0, 0, 0.9);
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
}

.video-info h4 {
  margin: 0;
  font-size: 0.9em;
}

.video-info p {
  margin: 5px 0 0;
  font-size: 0.8em;
  opacity: 0.7;
}

.backdrop-thumbnail img,
.poster-thumbnail img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .media-tabs {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .media-grid {
    gap: 10px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .backdrop-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Add to assets/css/style.css */

.full-movie-section {
  padding: 30px 0;
}

.watch-card {
  background: linear-gradient(45deg, #1a237e, #3e8bff);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.watch-info {
  color: white;
}

.watch-info h3 {
  font-size: 24px;
  margin: 0 0 10px 0;
}

.watch-info p {
  margin: 0;
  opacity: 0.8;
}

.watch-button {
  background: #01b4e4;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.watch-button:hover {
  background: #0288d1;
  transform: translateY(-2px);
}

.watch-button i {
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .watch-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .watch-info h3 {
    font-size: 20px;
  }
}

/* Add to assets/css/style.css */

.server-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.server-button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.server-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.person-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  margin: 5px;
  flex-grow: 1;
  max-width: calc(50% - 10px);
}

.btn-social i {
  margin-right: 8px;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  position: relative;
  text-align: center;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: opacity 0.3s ease;
}

.register-btn:hover {
  opacity: 0.9;
}

.register-btn i {
  margin-right: 10px;
  font-size: 20px;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

@media (max-width: 576px) {
  .btn-social {
    max-width: 100%;
    flex-grow: 1;
    justify-content: center;
  }

  .popup-content {
    width: 95%;
    margin: 0 10px;
    padding: 15px;
  }

  .contact-buttons .register-btn {
    padding: 10px;
    font-size: 0.9rem;
  }

  .register-btn i {
    margin-right: 5px;
    font-size: 18px;
  }
}

/* Warna tombol */
.btn-whatsapp {
  background-color: #25d366;
}
.btn-instagram {
  background-color: #e1306c;
}
.btn-twitter {
  background-color: #1da1f2;
}
.btn-tiktok {
  background-color: black;
}

.popup-profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid #01b4e4;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-profile-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #666;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.popup-content h3 {
  color: #032541;
  margin-bottom: 15px;
  font-size: 24px;
}

.warning-text {
  color: #e74c3c;
  font-weight: 600;
  margin: 20px 0;
}

.register-button {
  display: inline-block;
  background: #01b4e4;
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.register-button:hover {
  background: #0288d1;
  transform: translateY(-2px);
}

.popup-note {
  color: #666;
  font-size: 0.9em;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .server-buttons {
    justify-content: center;
  }

  .popup-content {
    margin: 20px;
    padding: 20px;
  }
}

.custom-movies-section {
  padding: 30px 0;
  background: linear-gradient(
    to bottom,
    rgba(3, 37, 65, 0.8),
    rgba(3, 37, 65, 0.4)
  );
}

.custom-movies-section .movie-card {
  background: rgba(255, 255, 255, 0.1);
}

.custom-movies-section .movie-title {
  color: white;
}

.custom-movies-section .release-date {
  color: rgba(255, 255, 255, 0.7);
}

/* Welcome Section */
.welcome-section {
  padding: 60px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/hero-bg.jpg");
  background-size: cover;
  color: white;
  text-align: center;
}

.welcome-section h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.welcome-section h2 {
  font-size: 1.5em;
  margin-bottom: 40px;
  font-weight: normal;
}

.search-form {
  max-width: 300px;
  margin: 0 auto;
  display: flex;
}

.search-input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 30px 0 0 30px;
  font-size: 1.1em;
}

.search-button {
  padding: 15px 30px;
  background: #ff4500;
  color: white;
  border: none;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
}

/* Custom Movies Section */
.custom-movies-section {
  padding: 40px 0;
  background: #032541;
}

.custom-movies-section h2 {
  color: white;
  margin-bottom: 30px;
}

.movies-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.showcase-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.year-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4500;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

.showcase-item h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  margin: 0;
}
