* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'LemonMilk', sans-serif;
  background-color: black;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


.top-nav {
  font-family: 'LemonMilk', sans-serif;
}

@font-face {
  font-family: 'LemonMilk';
  src: url('LemonMilk.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


.top-nav {
  position: fixed; /* Changed from absolute */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999; /* Ensure it's on top */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: transparent; /* Or use rgba(0, 0, 0, 0.5) for semi-transparent */
  color: white;

}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 30px;
  display: none;
}

.logo-text {
  font-family: 'LemonMilk', sans-serif;
  font-size: 1.2rem;
  color: lime;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  color: lime;
  position: relative;
}


.search-icon,
.burger i {
  font-size: 1.2rem;
  cursor: pointer;
  color: lime !important;
}

.main-content {
  padding-top: 80px;
  text-align: center;
}

/*notification icon*/

.notification-icon {
  position: relative;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 50%;
  display: none;
}

.notification-modal {
  width: 250px;
  max-height: 400px;
  background: #111;
  color: #fff;
  border: 1px solid lime;
  border-radius: 10px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  position: absolute;
  top: 50px;
  right: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 999;
  padding: 0;
  overflow: hidden;
}



.notification-modal::after {
  content: "";
  position: absolute;
  top: -10px; /* Shows above the modal */
  right: 40px; /* Adjust until it aligns under the bell */
  width: 0;
  height: 0;
  z-index: 1000;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid #111; /* Match your modal background */
  pointer-events: none;
}


.notification-header {
  background: lime;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
  color: black;
  font-family: 'Arial';
}


.notification-list {
  max-height: 360px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;

  /* Hide scrollbar - cross-browser */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE 10+ */
}

.notification-list::-webkit-scrollbar {
  display: none;                /* WebKit (Chrome, Safari) */
}

.notification-modal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
}

.notification-modal li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #333;
}

.notification-link {
  display: flex;
  gap: 10px;
  color: white;
  text-decoration: none;
  width: 100%;
}

.notification-link:hover {
  background-color: #222;
  border-radius: 5px;
}

.notification-poster {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .notification-poster {
    width: 80px;
    height: 45px;
  }
}

@media (max-width: 300px) {
  .notification-poster {
    width: 70px;
    height: 40px;
  }
}


.notification-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 12px;
  gap: 2px;
}

.notification-title {
  font-weight: bold;
  font-size: 13px;
  color: white;
}

.notification-type,
.notification-date {
  color: #bbb;
  font-size: 11px;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .notification-modal {
    width: 80vw;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    max-height: 60vh;
  }
}
  .notification-header {
    font-size: 14px;
    padding: 10px 12px;	
  }



  .notification-modal li {
    padding: 6px 8px;
    gap: 8px;
  }


  .notification-info {
    font-size: 11px;
  }

  .notification-title {
    font-size: 12px;
  }

  .notification-type,
  .notification-date {
    font-size: 10px;
  }
}



@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

#meowbotWidget {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  pointer-events: auto;
}

.meowbot-chatbox {
  background: rgba(15, 15, 15, 0.95);
  color: #d4ffd4;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 20px 18px 14px;
  font-family: 'Poppins', sans-serif;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  display: none;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  position: relative;
  animation: slideUp 0.35s ease-out;
  background-clip: padding-box;
}

.meowbot-chatbox::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg, lime, #00ffd5, #6aff00);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

/* Header */
.meowbot-header {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: lime;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  text-align: center;
  font-family: 'LemonMilk';
}

/* Messages Area */
.meowbot-messages {
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #00ff88 transparent;
}

.meowbot-messages::-webkit-scrollbar {
  width: 6px;
}
.meowbot-messages::-webkit-scrollbar-thumb {
  background: #00ff88;
  border-radius: 4px;
}

/* Input Area */
.meowbot-input-area {
  display: flex;
  gap: 10px;
  align-items: center;
}

.meowbot-input-area input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #333;
  background: #202020;
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.meowbot-input-area input:focus {
  border-color: lime;
}

.meowbot-input-area button {
  background: linear-gradient(135deg, #adff2f, #32ff7e);
  color: #111;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}
.meowbot-input-area button:hover {
  background: linear-gradient(135deg, #c0ff5f, #66ffae);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#meowbotWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse; /* This makes chatbox appear above */
  align-items: flex-end;
  z-index: 999999;
}


@media (max-width: 600px) {
  .meowbot-chatbox {
    max-width: 260px;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 13px;
  }

  .meowbot-header {
    font-size: 13px;
    margin-bottom: 6px;
    padding-bottom: 4px;
  }

  .meowbot-messages {
    max-height: 60px;
    margin-bottom: 8px;
    padding-right: 2px;
    font-size: 12px;
  }

  .meowbot-input-area {
    gap: 4px;
    flex-direction: row;
    align-items: stretch;
  }

  .meowbot-input-area input {
    font-size: 12px;
    padding: 7px 9px;
    border-radius: 8px;
  }

  .meowbot-input-area button {
    font-size: 12px;
    padding: 7px 9px;
    border-radius: 8px;
  }
}

#meowbotMic.listening {
  background-color: #e91e63;
  color: white;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.meowbot-card {
  display: flex;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  gap: 12px;
  color: white;
}

.meowbot-thumb {
  width: 70px;
  height: 105px;
  object-fit: cover;
  border-radius: 6px;
}

.meowbot-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px;
  line-height: 1.4;
}

.meowbot-title a {
  color: #1db954;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
}

.meowbot-title a:hover {
  text-decoration: underline;
}

.meowbot-meta {
  color: #ccc;
  margin-top: 2px;
  font-size: 13px;
}

.meowbot-chatbox {
  background: rgba(10, 10, 10, 0.95);
  border-radius: 18px;
  padding: 16px;
  color: white;
  font-family: 'Poppins', sans-serif;
  width: 320px;
  height: 410px; /* fixed height */
  display: none;
  flex-direction: column;
  position: relative;
}

/* Mobile view for 300px screens */
@media (max-width: 1100px) {
  .meowbot-chatbox {
    width: 90vw;     /* or 100% minus padding if you prefer */
    height: 320px;   /* reduce height slightly to fit small screens */
    padding: 12px;
  }
}


.meowbot-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
  max-height: 400px;
}

.meowbot-msg {
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease;
}

/* Bot reply - left side */
.meowbot-msg.bot {
  align-self: flex-start;
  background-color: #2a2a2a;
  color: #e0ffe0;
  border-bottom-left-radius: 4px;
}

/* User reply - right side */
.meowbot-msg.user {
  align-self: flex-end;
  background-color: #0078ff;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.meowbot-input-area {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.meowbot-input-area input {
  flex: 1;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
}

.meowbot-input-area button {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}

.meowbot-input-area button:hover {
  color: #00ffcc;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


#genreSelect {
  background-color: #1e1e1e;
  color: #e0ffe0;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  margin-bottom: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20fill%3D%22%23e0ffe0%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}


.meowbot-toggle {
  width: 42px;
  height: 42px;
  background-color: #4a4a4a;
  border-radius: 50%;
  color: lime;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border: 1.5px solid lime;
}

@media (max-width: 600px) {
  .meowbot-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-width: 1.5px;
	margin-bottom: 45px;
	margin-right: -15px;
  }
}

@media screen and (max-width: 480px) {
  .meowbot-input-area {
    display: flex;
    flex-wrap: nowrap; /* Ensure everything stays in one row */
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    gap: 4px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }

  .meowbot-input-area input[type="text"] {
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 16px;
    border: 1px solid #555;
    background: #222;
    color: white;
    min-width: 0; /* Prevents growing too wide */
  }

  .meowbot-input-area button {
    flex: 0 0 auto;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .meowbot-input-area button i {
    font-size: 15px;
  }
}

/* Watchlist Button */
.watchlist-btn {
  margin-top: 8px;
  padding: 6px 10px;
  background-color: #ff4081;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.watchlist-btn:hover {
  background-color: #e91e63;
}

/* MeowBot Dark Theme */
body.meowbot-dark,
body.meowbot-dark .meowbot-chatbox {
  background: #111 !important;
  color: #fff !important;
}
body.meowbot-dark .meowbot-msg.bot {
  background-color: #222;
}
body.meowbot-dark .meowbot-msg.user {
  background-color: #333;
}
body.meowbot-dark .watchlist-btn {
  background-color: #00acc1;
}
body.meowbot-dark .watchlist-btn:hover {
  background-color: #0097a7;
}

/* Mobile Fixes */
@media (max-width: 320px) {
  .meowbot-chatbox {
    width: 280px !important;
    max-height: 250px;
  }

  .meowbot-msg {
    font-size: 13px;
  }

  .meowbot-title a {
    font-size: 14px;
  }

  .watchlist-btn {
    font-size: 12px;
    padding: 5px 8px;
  }
}

#clearChat,
#clearChat i {
  color: white !important;
}


.see-all-btn {
  background-color: #444;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  transition: background 0.3s;
}
.see-all-btn:hover {
  background-color: #666;
}

#themeToggle {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  padding: 4px;
  transition: transform 0.2s ease;
}

#themeToggle:hover {
  transform: scale(1.1);
}

/* ✅ Mobile view: fix it inside the chatbox corner */
@media (max-width: 600px) {
  .meowbot-chatbox {
    position: relative; /* Ensure chatbox is positioned for absolute child */
  }

  #themeToggle {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 22px;
    z-index: 9999;
  }
}

.meowbot-suggestions {
  background: #1c1c1c;
  color: white;
  border-radius: 8px;
  margin: 8px 12px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  max-height: 220px;
  overflow-y: auto;
}
.meowbot-suggestions div {
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.meowbot-suggestions div:last-child {
  border-bottom: none;
}
.meowbot-suggestions div:hover {
  background: #333;
}
.meowbot-card {
  background: #1e1e1e;
  border-radius: 12px;
  margin: 10px 0;
  padding: 10px;
  display: flex;
  color: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  position: relative;
}

.meowbot-thumb {
  width: 100px;
  border-radius: 10px;
  margin-right: 10px;
}

.meowbot-info {
  flex-grow: 1;
}

.meowbot-title {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pin-btn {
  background: transparent;
  color: gold;
  border: none;
  cursor: pointer;
  font-size: 18px;
  margin-left: 8px;
}

.emoji-feedback {
  margin-top: 8px;
}

.emoji-feedback button {
  font-size: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-right: 5px;
}

.emoji-feedback button:hover {
  transform: scale(1.2);
}

/* Default: mobile-first, burger menu at bottom */
.navburger-menu {
  display: block;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotateX(-90deg);
  transform-origin: bottom;
  z-index: 1000;
  background-color: #000;
  padding: 10px;
  border-top: 2px solid lime;
  border-bottom: none;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.3s ease;
  backface-visibility: hidden;
  width: 100%;
  max-width: 300px;
}

.navburger-menu.active {
  transform: translateX(-50%) rotateX(0deg);
  opacity: 1;
  display: flex;
  justify-content: center;
}

.navburger-list {
  display: flex;
  flex-direction: row;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.navburger-list li {
  margin: 0;
}

.navburger-list a {
  color: lime;
  text-decoration: none;
  font-family: 'LemonMilk', sans-serif;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navburger-list a:hover {
  background-color: white;
  color: black;
}

.navburger-list a i {
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navburger-list a span {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.navburger-list a:hover span {
  opacity: 1;
  visibility: visible;
}

#burger {
  cursor: pointer;
}

/* Icon + floating label */
.icon-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: lime;
  font-size: 17px;
  text-decoration: none;
  gap: 12px;
}

.icon-label i,
.icon-label svg {
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: lime;
}

.icon-label span {
  position: absolute;
  top: 28px;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.icon-label:hover span {
  opacity: 1;
}


.more-dropdown {
  position: relative;
  display: inline-block;
}

.more-menu {
  display: none;
  position: absolute;
  background: #111;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  list-style: none;
  z-index: 999;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.more-menu.show {
  display: block;
}

.more-menu li a {
  color: lime;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 599px) {
  .more-menu {
    bottom: 100%;
    top: auto;
    left: -20px;
    transform: none;
    margin-bottom: 10px;
    padding: 8px;
    min-width: 140px;
  }

  .more-menu li a {
    font-size: 12px;
    gap: 6px;
  }

  .more-menu li a i {
    font-size: 14px !important;
  }
}

@media (min-width: 600px) {
  .more-menu {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    margin-top: 12px;
  }

  .more-menu li a {
    font-size: 14px;
    gap: 8px;
  }

  .more-menu li a i {
    font-size: 16px !important;
  }
}


/* Small devices (max-width: 599px) */
@media (max-width: 599px) {
  .navburger-menu {
    width: 280px;
    max-width: 100vw;
    top: auto;
    bottom: 0;
    border-top: 2px solid lime;
    border-bottom: none;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transform-origin: bottom;
  }

  .navburger-list a i,
  .icon-label i {
    font-size: 18px;
    width: 22px;
    height: 22px;
  }

  .icon-label span {
    top: -26px;
    font-size: 11px;
  }
}

/* Tablet & Desktop (min-width: 600px) */
@media (min-width: 600px) {
  .navburger-menu {
    top: 0;
    bottom: auto;
    transform: translateX(-50%) rotateX(-90deg);
    transform-origin: top;
    border-top: none;
    border-bottom: 2px solid lime;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    max-width: 300px;
  }

  .navburger-menu.active {
    transform: translateX(-50%) rotateX(0deg);
  }

  .icon-label span {
    top: 28px;
  }
}

/* Optional: Responsive adjustments */
@media (max-width: 768px) {
  .navburger-menu {
    width: 100%;
  }
}


/* Video Player */
.video-wrapper {
  width: 100%;
  max-width: 100%;
  background: black;
  margin-top: 50px;
}

iframe#movie-frame {
  width: 100%;
  height: 450px;
  border: none;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  color: white;
  background: #111;
}

.video-title {
  font-size: 1.3rem;
  font-weight: bold;
  font-family: 'Anton';
  color: gold;
  letter-spacing: 1px; /* adjust value as needed */
}


.server-select {
  background: lime;
  color: black;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
}

/* Responsive Dropdown */
@media (min-width: 300px) {
  .server-select {
    background: lime;
    color: black;
    padding: 5px 5px;
    border: none;
    border-radius: 5px;
    width: 69px;
    font-size: 10px;
    font-weight: bold;
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .top-nav {
    height: 50px;
    padding: 0 10px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  iframe#movie-frame {
    height: 200px;
  }

.video-wrapper {
	margin-top: 40px;
}

  .video-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .video-title {
    font-size: 1rem;
    flex: 1;
  }

  .server-select {
    flex-shrink: 0;
    background-color: lime;
  }
}

/* Error Display */
.error {
  color: white;
  text-align: center;
  margin-top: 20vh;
  font-size: 1.5rem;
}

/* Related Section */
.related-section {
  padding: 20px;
  background-color: #111;
  color: white;
}

.related-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.related-movies {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.related-movies::-webkit-scrollbar {
  display: none;
}

.movie-card {
  width: 120px;
  flex-shrink: 0;
  text-align: center;
}

.movie-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

.movie-card img:hover {
  transform: scale(1.05);
}

.movie-title {
  font-size: 0.9rem;
  margin-top: 5px;
  font-family: 'Arial';
}

/* Labels */
.labels-wrapper {
  display: flex;
  justify-content: center;
  background-color: #0a0a0a;
}

.labels-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.85), rgba(30, 30, 30, 0.85));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.label {
  color: white;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Arial';
}

.label:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* Labels: Mobile */
@media (max-width: 599px) {
  .labels-wrapper {
    overflow-x: auto;
    justify-content: center;
  }

  .labels-row {
    display: inline-flex;
    gap: 5px;
    padding: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .labels-row::-webkit-scrollbar {
    display: none;
  }

  .label {
    font-size: 0.65rem;
    padding: 6px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Labels: Tablet */
@media (min-width: 600px) and (max-width: 900px) {
  .labels-row {
    gap: 10px;
    padding: 10px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .label {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}

/


/* Light Theme Overrides */
body.light-mode {
  background: white;
  color: #111;
}

body.light-mode .top-nav {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .logo-text,
body.light-mode .video-title,
body.light-mode .related-title,
body.light-mode .label,
body.light-mode .movie-title {
  color: #111;
}

body.light-mode .server-select {
  background: #222;
  color: white;
}

body.light-mode .video-header,
body.light-mode .related-section,
body.light-mode .labels-wrapper,
body.light-mode .label {
  background-color: #eee !important;
  color: #111 !important;
}

body.light-mode .label {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .label:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .carousel-btn {
  background: rgba(200, 200, 200, 0.6);
  color: black;
}

.label.active {
  background-color: limegreen;
  color: black;
  font-weight: bold;
  transform: scale(1.05);
}

/* Light mode override */
body.light-mode .label.active {
  background-color: #222;
  color: white;
}


/* Download Button */
.download-button {
  padding: 6px 12px;
  background-color: lime;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.6rem;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #32cd32;
}

.download-button i {
  margin-right: 5px;
}

@media (max-width: 300px) {
  .download-button .download-text {
    display: none;
  }

  .download-button i {
    margin-right: 0;
  }
}

/* Section Styling */
.continue-section {
  padding: 20px;
  background-color: #111;
  color: white;
}

.section-title {
  margin-bottom: 10px;
  font-size: 1rem;
  font-family: 'Arial';
}

/* Carousel Structure */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 10px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.4s ease;
  scroll-behavior: smooth;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}

.carousel-inner::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}

@media (max-width: 991px) {
  .carousel-btn {
    display: none !important;
  }
}

/* Continue Watching Section */
#continue-watching-list {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  padding: 10px 0;
}

#continue-watching-list::-webkit-scrollbar {
  height: 8px;
}
#continue-watching-list::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}
#continue-watching-list::-webkit-scrollbar-track {
  background: #222;
}

#continue-watching-list a {
  flex: 0 0 auto;
  width: 220px;
  text-decoration: none;
  color: white;
}

#continue-watching-list a div {
  width: 100%;
}

#continue-watching-list img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Continue Watching Item */
.continue-item {
  position: relative;
  width: 220px;
  flex: 0 0 auto;
  background-color: transparent;
  border-radius: 6px;
}

.continue-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  pointer-events: none;
}

.continue-item .movie-title {
  text-align: center;
  margin-top: 5px;
  font-size: 0.85rem;
}

.progress-bar {
  height: 6px;
  background: #333;
  border-radius: 4px;
  margin-top: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: limegreen;
  transition: width 0.3s;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .section-title {
    font-size: 1.3rem;
  }

  .continue-item {
    width: 160px;
    height: 90px;
  }

  .play-overlay {
    font-size: 2rem;
  }

  .continue-item .movie-title {
    font-size: 0.75rem;
  }

  #continue-watching-list a {
    width: 160px;
  }

  #continue-watching-list a div .fa-circle-play {
    font-size: 2rem;
  }

  #continue-watching-list a div div:nth-child(3) {
    font-size: 0.75rem;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: .8rem;
  }

  .continue-item {
    width: 120px;
    height: 90px;
  }

  .play-overlay {
    font-size: 1.5rem;
  }

  .continue-item .movie-title {
    font-size: 0.65rem;
  }

  #continue-watching-list a {
    width: 120px;
  }

  #continue-watching-list a div .fa-circle-play {
    font-size: 1.5rem;
  }

  #continue-watching-list a div div:nth-child(3) {
    font-size: 0.65rem;
  }
}



/* General trailer section styling */
.no-trailers {
  color: #ccc;
  text-align: center;
  font-size: 1rem;
  margin: 5px 0;
}

/* Trailer thumbnails */
.trailer-thumb {
  flex: 0 0 auto;
  cursor: pointer;
  text-align: center;
  margin: 5px; /* Default gap */
}

.trailer-thumb img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.trailer-thumb img:hover {
  transform: scale(1.03);
}

.trailer-name {
  color: white;
  margin-top: 5px;
  font-size: 0.9rem;
}

/* Tablet */
@media (max-width: 1024px) {
  .trailer-thumb {
    margin: 6px; /* Reduce spacing */
  }

  .trailer-thumb img {
    max-width: 220px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .trailer-thumb {
    margin: 4px; /* Further reduce spacing */
  }

  .trailer-thumb img {
    max-width: 160px;
  }

  .trailer-name {
    font-size: 0.8rem;
  }
}


#info-container {
  color: white;
  background-color: transparent;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  margin: 0 auto;
  margin-top: -10px;
  margin-bottom: 20px; /* ✅ added bottom margin */
  transition: all 0.3s ease;
  overflow: hidden;
}

#info-container h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

#info-container p {
  text-align: justify;
  color: #f0f0f0;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  #info-container {
    padding: 15px;
    font-size: 0.9rem;
  }

  #info-container h2 {
    font-size: 1.3rem;
  }

  #info-container p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  #info-container {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    margin: -20px 0 10px 0; /* Top -20px, Bottom 10px, Left/Right 0 */
    padding: 10px 15px;
    transition: all 0.3s ease;
    overflow: hidden;
  }
}

.overview-text {
  background-color: #181818;
  color: #ccc;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
  padding: 20px 25px;
  margin: 25px 35px;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.overview-text:hover {
  background-color: #202020;
  border-color: limegreen;
}

@media (max-width: 600px) {
  .overview-text {
    font-size: 0.85rem;
    padding: 15px 18px;
    margin: 25px -5px;
  }
}


/* Cast Carousel */
.cast-card {
  flex: 0 0 auto;
  text-align: center;
  margin: 6px;
}

.cast-card img {
  width: 100px;
  border-radius: 8px;
}

.cast-name {
  font-size: 0.9rem;
  color: #fff;
}

.cast-role {
  font-size: 0.8rem;
  color: #ccc;
}

/* Carousel Buttons and Wrapper (optional improvements) */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.carousel-btn {
  background: none;
  color: white;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.left {
  position: absolute;
  left: 0;
}

.carousel-btn.right {
  position: absolute;
  right: 0;
}

@media (max-width: 768px) {
  .cast-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Make image circular */
    object-fit: cover;
  }

  .cast-card {
    margin: 4px;
  }

  .cast-name {
    font-size: 0.8rem;
  }

  .cast-role {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .cast-card img {
    width: 70px;
    height: 70px;
  }

  .cast-name {
    font-size: 0.75rem;
  }

  .cast-role {
    font-size: 0.65rem;
  }
}

/* Base Gallery Styles */
.gallery-card {
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #1e1e1e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gallery-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.3s ease;
}

.gallery-img:hover {
  filter: brightness(1.1);
}

/* Poster and Backdrop image sizing */
.gallery-img.poster {
  max-width: 150px;
}

.gallery-img.backdrop {
  max-width: 300px;
}

/* Carousel Wrapper */
.carousel-wrapper.advanced {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Carousel Inner */
.carousel-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  scrollbar-width: none; /* Firefox */
}

.carousel-inner::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* No gallery message */
.no-gallery {
  text-align: center;
  color: #aaa;
  font-style: italic;
  margin: 20px 0;
}

/* ==================================
   📱 Mobile Devices (Max 480px)
================================== */
@media (max-width: 480px) {
  .gallery-img.poster {
    max-width: 90px;
  }

  .gallery-img.backdrop {
    max-width: 180px;
  }

  .carousel-inner {
    gap: 8px;
    padding: 6px;
  }

  .carousel-btn {
    font-size: 1.2rem;
  }

  .gallery-card {
    border-radius: 8px;
  }
}

/* ==================================
   📱 Tablets (481px - 768px)
================================== */
@media (min-width: 481px) and (max-width: 768px) {
  .gallery-img.poster {
    max-width: 120px;
  }

  .gallery-img.backdrop {
    max-width: 240px;
  }

  .carousel-inner {
    gap: 10px;
  }

  .carousel-btn {
    font-size: 1.5rem;
  }
}


/* No Reviews Message */
.no-reviews {
  color: #999;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 20px;
}

/* Review Block */
.review-block {
  background-color: #1a1a1a;
  padding: 16px 20px;
  margin: 30px 10px 20px 10px; /* top right bottom left */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s;
}

.review-block:hover {
  background-color: #222;
}

/* Author Name */
.review-author {
  display: block;
  font-weight: 600;
  color: #76d9ff;
  font-size: 1rem;
  margin-bottom: 6px;
}

/* Review Text */
.review-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
  text-align: justify;
  margin: 0;
}

/* Hidden "more" content */
.more-text {
  display: none;
}

/* Toggle Button */
.toggle-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: #00ff99;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}

.toggle-btn:hover {
  color: #00ffaa;
}

/* Responsive tweaks for mobile and tablet */
@media (max-width: 768px) {
  .review-block {
    padding: 14px 16px;
    margin-top: 20px; /* Add top space */
	margin-bottom: 3px;
	margin-left: -5px;
	margin-right: -5px;
  }

  .review-content {
    font-size: 0.85rem;
  }

  .review-author {
    font-size: 0.95rem;
  }

  .toggle-btn {
    font-size: 0.85rem;
  }
}

/* Trailer Modal Overlay */
#trailer-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Show Modal */
#trailer-modal.active {
  display: flex;
}

/* Trailer Container */


/* === Related Wrapper Section === */
.related-wrapper {
  margin: 20px 0;
  padding: 0 20px;
  position: relative;
  width: 100%;
  margin-bottom: 45px;
}
.related-wrapper h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #bbb;
  font-weight: 600;
  padding-left: 15px;
  border-left: 5px solid #ffcc00;
  font-family: 'Arial';
}

/* === Carousel Container === */
.related-movies-carousel,
.related-tv-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 190px;
}

/* === Slider Scroll === */
.related-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 10px 0;
  scrollbar-width: none;
}
.related-slider::-webkit-scrollbar {
  display: none;
}

/* === Navigation Buttons === */
.slider-btn,
.carousel-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 40px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover,
.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
#prev-related-movies,
#prev-related-tv {
  left: 0;
}
#next-related-movies,
#next-related-tv {
  right: 0;
}

/* === Unified Card for Related Movies & TV === */
.related-card,
.related-item {
  flex: 0 0 auto;
  width: 320px;
  height: 180px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.related-card:hover,
.related-item:hover {
  transform: scale(1.03);
}

/* === Poster Wrapper === */
.poster-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}
.poster-wrapper img.landscape-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* === Title Logo Overlay (No Container) === */
.poster-wrapper .title-logo,
.logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 70%;
  max-height: 60%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  border-radius: 0;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* === Title Below Card (Optional Use) === */
.related-title,
.card-title {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #eee;
  font-weight: 500;
  text-align: center;
}

/* === Empty State Message === */
.empty-msg {
  color: #aaa;
  font-style: italic;
  font-size: 1rem;
  padding: 10px;
  text-align: center;
  width: 100%;
}

/* === Responsive Adjustments === */
@media (max-width: 1024px) {
  .related-card,
  .related-item {
    width: 280px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .related-wrapper {
    padding: 0 10px;
    margin-top: 10px;
    margin-bottom: -50px;
  }
  .related-wrapper h2 {
    font-size: 14px;
    padding-left: 10px;
  }
  .related-card,
  .related-item {
    width: 220px;
    height: 130px;
  }
  .poster-wrapper .title-logo {
    display: flex;
  }
  .slider-btn,
  .carousel-btn {
    display: none;
  }
  .related-title,
  .card-title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .related-card,
  .related-item {
    width: 180px;
    height: 110px;
  }
  .related-title,
  .card-title {
    font-size: 12px;
  }
}


/* === Base Poster Container === */
#poster-container {
  position: relative;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 95); /* iOS Safari fix */
  overflow: hidden;
  background: transparent;
  margin-bottom: 10px;
}

#poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Title Logo === */
#title-logo {
  position: absolute;
  top: calc(var(--vh, 1vh) * 12);
  left: 10px;
  max-width: 90%;
  max-height: 80px;
  z-index: 2;
  margin-left: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* === Responsive Breakpoints === */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  #poster-container {
    height: calc(var(--vh, 1vh) * 85);
    position: relative;
    overflow: hidden;
  }

  #trailer-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    transform: scale(1.9); /* Zoom in video more */
    transform-origin: center;
    border: none;
    display: block;
    z-index: 1;
    pointer-events: none;
  }

  #title-logo {
    top: calc(var(--vh, 1vh) * 14);
    max-height: 50px;
    left: 10px;
    margin-left: 10px;
  }
}

/* Medium Mobile to Small Tablets (481px–767px) */
@media (min-width: 481px) and (max-width: 767px) {
  #title-logo {
    top: calc(var(--vh, 1vh) * 17);
    max-height: 60px;
    left: 15px;
    margin-left: 15px;
  }

  #poster-container {
    height: calc(var(--vh, 1vh) * 88);
  }
}

/* Tablets (768px–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  #title-logo {
    top: calc(var(--vh, 1vh) * 20);
    max-height: 70px;
    left: 20px;
    margin-left: 5%;
  }

  #poster-container {
    height: calc(var(--vh, 1vh) * 92);
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  #title-logo {
    top: calc(var(--vh, 1vh) * 17);
    max-height: 150px;
    left: 30px;
    margin-left: 0;
  }
}

/* === Trailer Player (iframe) === */
#trailer-player {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  border: none;
  display: none;
  z-index: 1;
  pointer-events: none;
}

/* Tablet and smaller (≤ 768px) */
@media (max-width: 768px) {
  #trailer-player {
    top: -30%;
    left: -50%;
    width: 200%;
    height: 160%;
  }
}





/* === Sound Toggle Button === */
#sound-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}

/* Mobile: 300px–599px */
@media (min-width: 300px) and (max-width: 599px) {
  #sound-toggle {
    display: block;
    top: 70px;
    right: 10px;
    bottom: auto;
    font-size: 20px;
    padding: 8px;
  }
}

/* Tablet: 600px–1023px */
@media (min-width: 600px) and (max-width: 1023px) {
  #sound-toggle {
    display: block;
    top: 90px;
    right: 25px;
    font-size: 22px;
    padding: 9px;
  }
}


/* === Overlay Info Section (renamed to avoid conflict) === */
.movie-overlay-info {
  position: absolute;
  bottom: 30px;
  left: 5%;
  right: 5%;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: Arial, sans-serif; /* Apply Arial font globally within overlay */
}

/* === Bold Red Play Button (Base/Desktop View, reduced) === */
.play-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;                          /* Reduced gap */
  cursor: pointer;
  background-color: red;
  padding: 10px 20px;               /* Slightly tighter */
  border-radius: 50px;
  width: fit-content;
  font-weight: 700;
  font-size: 0.95rem;               /* Reduced from 1.1rem */
  color: white;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 20px;                /* Slightly tighter left margin */
}

.play-wrapper:hover {
  background-color: #ff5722;
  transform: translateY(-2px) scale(1.05);
}

.play-wrapper i {
  font-size: 1.1rem;                /* Reduced icon size */
}

/* === Mobile View (≤ 300px) === */
@media (max-width: 300px) {
  .play-wrapper {
    font-size: 0.55rem;
    padding: 6px 10px;
    margin-left: 0;
    gap: 5px;
  }

  .play-wrapper i {
    font-size: 0.75rem;
  }
}

/* === Tablet View (301px–768px) === */
@media (min-width: 301px) and (max-width: 768px) {
  .play-wrapper {
    font-size: 0.68rem;
    padding: 7px 12px;
    margin-left: 8px;
    gap: 6px;
  }

  .play-wrapper i {
    font-size: 0.9rem;
  }
}




/* === Base Media Meta Row Styling === */
.media-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;

  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  margin-left: 20px;
}

.media-meta-row span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: yellow;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  background-color: transparent;
}

.media-meta-row .dot {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-weight: normal;
  color: #fff;
}





.media-overview {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  color: white;
  text-align: justify;
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 100%;
  overflow: visible;
  word-break: break-word;
}

.media-overview strong {
  color: yellow;
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

/* Tablet font bump */
@media (min-width: 600px) and (max-width: 767px) {
  .media-overview {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .media-overview strong {
    font-size: 0.95rem;
  }
}

/* Desktop: full text display, slightly larger */
@media (min-width: 768px) {
  .media-overview {
    font-size: 1rem;
    line-height: 1.6;
  }

  .media-overview strong {
    font-size: 1.05rem;
  }
}

.overview-text {
  display: none;
}
.overview-text.show {
  display: block;
}

/* Modal Background */
.label-trailer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal Container */
.label-trailer-container {
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* iFrame */
#label-trailer-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Close Button */
#label-trailer-close {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  font-family: Arial, sans-serif !important;
  font-weight: 700;
  font-size: 14px;
  color: red;

  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  transition: color 0.2s ease, background 0.2s ease;
}

/* Hover effect */
#label-trailer-close:hover {
  color: #ff5b5b;
  background: rgba(255, 255, 255, 0.1);
}

/* Tablet View (max-width: 768px) */
@media (max-width: 768px) {
  .label-trailer-container {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  #label-trailer-close {
    font-size: 1.3rem;
    top: 10px;
    padding: 5px 12px;
  }
}

/* Mobile View (max-width: 480px) */
@media (max-width: 480px) {
  .label-trailer-container {
    max-width: 100%;
    border-radius: 8px;
    aspect-ratio: auto;
    height: 350px;
  }

  #label-trailer-frame {
    height: 100%;
  }

  #label-trailer-close {
    font-size: 1.1rem;
    top: 8px;
    padding: 4px 10px;
  }
}

/* Ultra Small Devices */
@media (max-width: 300px) {
  .label-trailer-container {
    height: 300px;
  }
}

/* Base Styling */
body {
  background-color: #000;
  color: #fff;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Watchlist Tabs */
.watchlist-labels {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
  background-color: #111;
  margin-top: 40px;
}

.watchlist-label {
  color: #ccc;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.watchlist-label.active {
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #ff4081;
}

/* Watchlist Grid Container */
.watchlist-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

/* Watchlist Card */
.watch-item {
  position: relative;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
  width: 200px;
}

.watch-item:hover {
  transform: scale(1.02);
}

.watch-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.watch-item img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Card Content */
.watch-item div {
  padding: 10px;
}

.watch-item h4 {
  font-size: 1rem;
  margin: 4px 0;
  font-weight: bold;
}

.watch-item p {
  font-size: 0.85rem;
  margin: 2px 0;
  color: #ccc;
}

.watch-genre {
  font-style: italic;
  color: #aaa;
}

/* Remove Button */
.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #f44336;
  z-index: 10;
  cursor: pointer;
}

.remove-btn:hover {
  color: #ff6b6b;
}

/* Tablet View */
@media (max-width: 768px) {
  .watch-item {
    width: 160px;
  }
}

/* Mobile: Horizontal Layout */
@media (max-width: 480px) {
  .watchlist-labels {
    font-size: 0.85rem;
	margin-top: 50px;
  }

  .watchlist-grid {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    width: 100%;
  }

  .watch-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    padding: 8px;
    margin: 0; /* removes extra bottom spacing */
  }

  .watch-item a {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .watch-item img {
    width: 50px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .watch-item div {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .watch-item h4 {
    font-size: 0.8rem;
    margin: 0;
    color: #fff;
  }

  .watch-item p {
    font-size: 0.7rem;
    margin: 0;
    color: #ccc;
  }

  .watch-genre {
    font-style: italic;
    color: #aaa;
  }

  .remove-btn {
    top: 6px;
    right: 6px;
    font-size: 1rem;
  }
}

/* Hide details and their wrapper div on desktop/tablet */
@media (min-width: 481px) {
  .details-text {
    display: none !important;
  }

  .watch-item a > div {
    display: none;
  }
}

/* Visibility Utility Classes */
.hidden {
  display: none !important;
}

.visible {
  display: flex !important;
}
@media (max-width: 480px) {
  .watchlist-label {
    font-size: 0.80rem;
  }
}
/*burgermenu*/
.meowflex-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: black;
  padding: 10px 15px;
  border-left: 2px solid lime;
  border-right: 2px solid lime;
  border-bottom: 2px solid lime;
  border-top: none;
  border-radius: 0 0 30px 30px;
}

/* Icon list layout */
.meowflex-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.meowflex-icon-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: lime;
  cursor: pointer;
}

.meowflex-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(72%) sepia(92%) saturate(431%) hue-rotate(53deg) brightness(102%) contrast(101%);
}

/* Hover label */
.meowflex-icon-label span {
  position: absolute;
  top: 40px;
  background-color: black;
  color: lime;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1001;
}

.meowflex-icon-label:hover span {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* MOBILE VIEW: ≤ 500px */
@media (max-width: 500px) {
  .meowflex-menu {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    padding: 10px 15px;
    border-top: 2px solid lime;
    border-left: 2px solid lime;
    border-right: 2px solid lime;
    border-bottom: none; /* Removed bottom border */
    border-radius: 30px 30px 0 0;
  }

  .meowflex-list {
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
  }

  .meowflex-icon {
    width: 22px;
    height: 22px;
  }

  .meowflex-icon-label span {
    top: 30px;
    font-size: 10px;
  }
}

/* TABLET VIEW: 501px–1024px (same as desktop) */
@media (min-width: 501px) and (max-width: 1024px) {
  .meowflex-menu {
    top: 0;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 10px 15px;
    border-left: 2px solid lime;
    border-right: 2px solid lime;
    border-bottom: 2px solid lime;
    border-top: none;
    border-radius: 0 0 30px 30px;
  }

  .meowflex-list {
    justify-content: center;
    gap: 20px;
  }

  .meowflex-icon {
    width: 28px;
    height: 28px;
  }

  .meowflex-icon-label span {
    top: 40px;
    font-size: 11px;
  }
}


/*scrolling*/
/* === Mobile Scrolling Performance Boost === */

/* Enable smooth scroll behavior globally */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* GPU acceleration on carousels, sliders, and scrollable areas */
.carousel-container,
.carousel-item,
.poster-wrapper,
.slide,
#mainContent {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize transitions */
.slide,
.poster-wrapper {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Prevent jank when hover effects apply */
.poster-wrapper img {
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}

/* Lazy loading image defaults */
img[loading="lazy"] {
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}


.logo-text {
  font-family: 'LemonMilk', sans-serif;
  font-size: 1.2rem;
  color: lime;
}

/* Mobile view: reduce font size for small screens */
@media (max-width: 600px) {
  .logo-text {
    font-size: 0.9rem;
  }
}

.logo-link {
  text-decoration: none;         /* removes underline */
  color: inherit;                /* keeps text color from parent */
}

.logo-link:focus,
.logo-link:active,
.logo-link:hover {
  outline: none;                 /* removes blue outline when clicked/focused */
  text-decoration: none;        /* keeps underline removed */
  color: inherit;
}
