@import url('https://fonts.googleapis.com/css2?family=Helvetica+Neue:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, Arial Narrow, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
}

/* Navigation Bar */
    nav {
      width: 100%;
      background: rgba(0, 0, 0, 0); /* Transparent at the top */
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1000;
      padding: 10px 20px;
      transition: background-color 0.3s;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* Sticky Header when Scrolling */
    .nav-solid {
      background-color: rgba(0, 0, 0, 1); /* Solid background when scrolled */
    }

    /* Logo Style */
    #logo {
      max-height: 25px;
      display: inline-block;
    }

    /* Navigation Menu (Links) */
    nav ul {
      display: flex;
      justify-content: flex-end;
      margin: 0;
      padding: 0;
      list-style-type: none;
    }

    nav ul li {
      margin-left: 5px;
    }

    nav ul li a {
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      padding: 10px;
      display: inline-block;
      border-radius: 5px;
      transition: background 0.3s;
    }

    nav ul li a:hover,
    nav ul li a.active {
      background-color: #0296cc;
    }

/* Mobile Navbar */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #1e1e1e;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links li {
        padding: 15px 0;
    }
}


/* Mobile Styles (Screen width below 768px) */
    @media (max-width: 768px) {
      /* Navigation links initially hidden on mobile */
      nav ul {
        display: none;  /* Hidden by default */
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 50px; /* To place the menu below the nav bar */
        left: 0;
        right: 0;
        width: 100%;
        padding: 10px 0;
      }
      /* Active state of the menu */
      nav.active ul {
        display: flex; /* Show the menu when active */
      }
      nav ul li {
        width: 100%;
        text-align: center;
        margin: 2px 0;
      }

      nav ul li a {
        padding: 10px;
        width: 100%;
        text-align: center;
      }

      
      /* Logo will adjust for smaller screens */
      #logo {
        max-height: 20px;
      }

      /* Menu Button visible on mobile */
      .menu-btn {
        color: white;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        background-color: #0296cc;
        padding: 10px 20px;
        border-radius: 5px;
        display: block;  /* Visible on mobile */
      }

      /* Show menu when active */
#menu.active {
    display: flex;
}
    }

    /* Hide the menu button on desktop */
    @media (min-width: 769px) {
      .menu-btn {
        display: none;  /* Hide the menu button on desktop */
      }
    }


/* Dropdown MORE Button Start*/
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 10px;
    text-transform: uppercase;
    font-size: 17px;
    border-radius: 5px;
    transition: background 0.3s;
}
.dropbtn:hover {
    background-color: #0296cc;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e1e1e;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px;
    right: 0;
}

.dropdown-content li {
    list-style: none;
    padding: 5px;
    text-align: right;
}

.dropdown-content li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    transition: background 0.3s;
}

.dropdown-content li a:hover {
    background-color: #0296cc;
}

/* Show dropdown on hover (for larger screens) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Show dropdown on click (for mobile) */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: none;
    }
    .dropdown-content li {
        padding: 2px;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
}
/* Dropdown MORE Button End*/


/* FOR TAGALOG DUB MOVIE SECTION START */
h1 {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 25px;
    font-size: 50px;
}
h2 {
    text-align: left;
    color: #fff;
    font-size: 24px;
    margin-top: 20px;
    margin-left: 20px;
}
h3 {
    text-align: center;
    font-size: 25px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-bottom: 50px;
}
.movie-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}
.movie-card:hover img {
    box-shadow: 0 8px 20px #0296cc; /* Stronger shadow */
    transform: scale(1.05); /* Slight zoom effect */
}
.movie-card img {
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 10px #0296cc; /* Soft shadow */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Play Button Effect */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 30px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}

/* Play button hover effect */
.movie-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    background: black; /* Red play button */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6); /* Glowing effect */
}

.movie-card:hover .play-button {
    opacity: 1;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-top: 50px;
    z-index: 1001;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #222;
    padding: 20px;
    width: 95%;
    max-width: 600px;
    border-radius: 10px;
    text-align: left;
    position: relative;
    max-height: 90vh; /* Prevents the modal from exceeding the screen height */
    overflow-y: auto; /* Enables vertical scrolling */
    margin-bottom: 50px;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}
.poster-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.poster-container img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain; /* Ensures the image doesn't stretch */
    border-radius: 10px;
}
iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    margin-top: 10px;
    border: 2px;
    border-style: solid;
    border-color: #0296cc;
}

/* Responsive Grid */
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Adjust grid for smaller screens */
        gap: 10px;
    }
}

/* Make modal fit better on small screens */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    iframe {
        height: 200px; /* Smaller video player */
    }
    .poster-container img {
        max-height: 200px; /* Prevent oversized posters */
    }
    h1 {
        font-size: 30px;
    }
    h3 {
    font-size: 15px;
    }
    p {
        font-size: 12px;
    }
}

/* Extra tweaks for very small screens */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Even smaller grid */
    }
    iframe {
        height: 180px;
    }
}

/* FOR TAGALOG DUB MOVIE SECTION END */


/* Fullscreen Video Button Start */
#fullscreenButton {
    display: block;
    margin: 10px auto;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    background-color: #0296cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#fullscreenButton:hover {
    background-color: #0275a6;
}
/* Fullscreen Video Button End */


/* LEAVE A COMMENT START */
    #welcomeMessage {
      font-size: 24px;
      text-align: center;
      padding-top: 20px;
      padding-bottom: 20px;
      color: #0296cc;
      background-color: #1e1e1e;
      width: 60%;
      margin-left: 20%;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
    }
    #leaveCommentMessage {
      font-size: 20px;
      text-align: center;
      padding-bottom: 15px;
      color: white;
      background-color: #1e1e1e;
      width: 60%;
      margin-left: 20%;
    }
    #commentForm {
      padding-bottom: 20px;
      text-align: center;
      background-color: #1e1e1e;
      width: 60%;
      margin-left: 20%;
      border-bottom-left-radius: 10px;
      border-bottom-right-radius: 10px;
    }
    input, textarea {
      width: 60%;
      padding: 10px;
      font-size: 16px;
      margin-bottom: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    button {
      padding: 10px 20px;
      background-color: #0296cc;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    button:hover {
      background-color: black;
    }
    #commentsContainer {
      margin-top: 20px;
      color: black;
    }
    .comment {
      border: 1px solid #ddd;
      padding: 10px;
      margin: 10px auto; /* Centers the div horizontally */
      background-color: #fff;
      border-radius: 4px;
      width: 60%;
      display: block; /* Ensures it behaves as a block-level element */
    }
    #commentText {
      height: 200px;
    }
    .commentHeader {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
    }
    .profilePicture {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      margin-right: 10px;
    }
    .likeSection {
      margin-top: 10px;
      font-size: 14px;
    }
    .timestamp {
      font-size: 12px;
      color: #888;
    }
    .avatar {
      width: 50px;
      height: 50px;
      margin: 5px;
      cursor: pointer;
      border-radius: 50%;
      transition: transform 0.2s ease, border 0.2s ease;
      border: 2px solid transparent;
    }
    .avatar:hover {
      transform: scale(1.1);
    }
    .selected-avatar {
      border: 3px solid #0296cc;
      transform: scale(1.2);
    }
    #avatarPreview {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      margin-top: 10px;
      display: none;
    }

/* Adjustments for mobile devices */
@media (max-width: 768px) {
  .comment {
    width: 90%;
  }
  input, textarea {
    width: 90%;
  }
  #commentForm {
    width: 90%; 
    margin-left: 5%;
  }
  #leaveCommentMessage {
    width: 90%;
    margin-left: 5%;
  }
  #welcomeMessage {
    width: 90%;
    margin-left: 5%;
  }
}    
    
/* LEAVE A COMMENT END */


/* TAGALOG TV SHOWS/SERIES START */
/* TV Shows section styles */
#tvSection {
  padding: 0;
}

#tvSection h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}

#tvGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
  margin-bottom: 50px;
}

#tvGallery .movie-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}

#tvGallery .movie-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 10px #0296cc; /* Soft shadow */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
#tvGallery .movie-card:hover img {
  box-shadow: 0 8px 20px #0296cc; /* Stronger shadow */
  transform: scale(1.05); /* Slight zoom effect */
}

/* Play Button Effect */
#tvGallery .movie-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 30px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}
/* Play button hover effect */
#tvGallery .movie-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    background: black; /* Red play button */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6); /* Glowing effect */
}


#tvGallery .movie-card:hover .play-button {
  opacity: 1;
}


/* TV Modal matching style */
#tvModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-top: 50px;
    z-index: 1001;
}

#tvModal.show {
    opacity: 1;
    visibility: visible;
}

#tvModal .modal-content {
    background: #222;
    padding: 20px;
    width: 95%;
    max-width: 600px;
    border-radius: 10px;
    text-align: left;
    position: relative;
    max-height: 90vh; /* Prevents the modal from exceeding the screen height */
    overflow-y: auto; /* Enables vertical scrolling */
    margin-bottom: 50px;
}

#tvModal .modal-content img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain; /* Ensures the image doesn't stretch */
    border-radius: 10px;
}

#tvModal .close {
  color: #fff;
  float: right;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

#tvModal h2 {
  margin-top: 0;
}

#tvModal p {
  line-height: 1.4;
  color: #ccc;
}

#tvModal iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    margin-top: 10px;
    border: 2px;
    border-style: solid;
    border-color: #0296cc;
}

#episodeDropdown {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  font-size: 16px;
  transition: border 0.3s ease;
}

#episodeDropdown:hover,
#episodeDropdown:focus {
  border-color: #ff3d00;
  outline: none;
}

/* Smaller modal iframe on smaller devices */
@media (max-width: 768px) {
  #tvModal .modal-content {
    width: 95%;
    padding: 15px;  
  }
  #tvModal iframe {
    height: 200px;
  }
  #tvModal .modal-content img {
    max-height: 200px; /* Prevent oversized posters */
  }
}


/* Responsive adjustments for mobile */
@media (max-width: 600px) {
  #tvGallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  #tvGallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  #tvModal iframe {
    height: 180px;
  }  
}
/* TAGALOG TV SHOWS/SERIES END */


/* Footer Section Start*/
.site-footer {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 20px;
  margin-bottom: 0px;
  border-top: 1px solid #333;
}

.site-footer p {
  margin: 8px 0;
  font-size: 16px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #0296cc;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-footer {
    margin-bottom: 54px;
    padding: 10px;
  }
  
  .site-footer p {
    font-size: 14px;
  }

  .footer-links {
    flex-direction: row;
    gap: 8px;
    text-align: center;
  }

  .footer-links a {
    margin: 0;
  }
}
/* Footer Section End*/

/* Popunder Overlay Section Start */
.iframe-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 300px;
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    z-index: 1002; /* Ensures it's above the iframe */
}
/* Popunder Overlay Section End */

/* Chatroom Section Start */
#netplex-chatroom {
  position: fixed;
  bottom: 0px;
  right: 0px;
  overflow: hidden;
  z-index: 9999;
}
/* Chatroom Section End */
