/* Importing Google Font - Open Sans */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  scrollbar-width: thin; 
  scrollbar-color: orangered transparent;
}

/* Color variables for light theme */
:root {
  --white-color: #fff;
  --black-color: #000;
  --light-white-color: #f0f0f0;
  --light-gray-color: #e5e5e5;
  --border-color: #ccc;
  --primary-color: #3b82f6;
  --secondary-color: #404040;
  --overlay-dark-color: rgba(0, 0, 0, 0.6);
}

/* Color variables for dark theme */
.dark-mode {
  --white-color: #171717;
  --black-color: #d4d4d4;
  --light-white-color: #333;
  --light-gray-color: #404040;
  --border-color: #808080;
  --secondary-color: #d4d4d4;
}

body {
  background: var(--white-color);
}

.container {
  display: flex;
  overflow: hidden;
  max-height: 100vh;
  flex-direction: column;
}

header, .sidebar .nav-left{
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white-color);
}

.navbar {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 0.5rem 1rem;
  justify-content: space-between;
}

:where(.navbar, .sidebar) .nav-section {
  gap: 1rem;
}

:where(.navbar, .sidebar) :where(.nav-section, .nav-logo, .search-form) {
  display: flex;
  align-items: center;
}

:where(.navbar, .sidebar) :where(.user-image) {
  width: 32px;
  cursor: pointer;
  border-radius: 50%;
}

:where(.navbar, .sidebar) .nav-section .nav-button {
  border: none;
  height: 40px;
  width: 40px;
  cursor: pointer;
  background: none;
  border-radius: 50%;
}

:where(.navbar, .sidebar) .nav-section .nav-button:hover {
  background: orangered !important;
  color: white;
}

button.nav-button.mic-button i.uil.uil-microphone:hover,
button.nav-button.search-button i.uil.uil-search:hover,
button#theme-toggle i.uil.uil-moon:hover,
button#theme-toggle i.uil.uil-sun:hover,
button.nav-button.menu-button i.uil.uil-bars:hover{
  color: white;
}

:where(.navbar, .sidebar) .nav-button i {
  font-size: 1.5rem;
  display: flex;
  color: var(--black-color);
  align-items: center;
  justify-content: center;
}

:where(.navbar, .sidebar) .nav-logo {
  display: flex;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-image {
  max-width:200px;
  height: auto;
}

@media only screen and (max-width: 700px){
.logo-image{
  max-width: 150px;
}
}

@media only screen and (max-width: 400px){
  .logo-image{
    max-width: 120px;
  }
  }
  
:where(.navbar, .sidebar) .nav-logo {
  font-size: 1.25rem;
}
.logo-text-two{
  color: #007bff;
}
.logo-text-span{
  color: purple;
}

.logo-text-sidebar{
  font-size: 20px;
  font-weight: bolder;
}

.navbar .nav-center {
  gap: 0.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.navbar .search-form {
  flex: 1;
  height: 40px;
  max-width: 550px;
}

#search-results {
  position: absolute;
  top: 100%;
  margin: auto;
  width: 100%;
  max-width: 550px;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 3px;
  border-top: none;
  z-index: 1000;
  display: none;
}

@media screen and (max-width: 950px) {
  #search-results {
      /* Even narrower on mobile */
      width: 96%;
  }
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

a.search-result-item{
  text-decoration: none;
}
.search-result-item:hover {
  background-color: #f0f0f0;
}
.search-result-item img {
  width: 50px;
  height: 75px;
  object-fit: cover;
  margin-right: 10px;
}
.search-result-details {
  flex-grow: 1;
}

.navbar .search-form .search-input {
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  padding: 0 1rem;
  outline: none;
  color: var(--black-color);
  background: var(--white-color);
  border-radius: 3.1rem 0 0 3.1rem;
  border: 1px solid var(--border-color);
}

.navbar .search-form .search-input:focus {
  border-color: var(--primary-color);
}

.navbar .search-form .search-button {
  height: 40px;
  width: auto;
  padding: 0 1.25rem;
  border-radius: 0 3.1rem 3.1rem 0;
  border: 1px solid var(--border-color);
  border-left: 0;
}

.navbar .nav-center .mic-button {
  background: var(--light-white-color);
}

.navbar .nav-right .search-button {
  display: none;
}

.main-layout {
  display: flex;
  overflow-y: auto;
  scrollbar-color: orangered transparent;
}

.main-layout .sidebar {
  width: 280px;
  overflow: hidden;
  padding: 0 0.7rem 0;
  background: var(--white-color);
}

.main-layout .sidebar .nav-left {
  display: none;
  padding: 0.5rem 0.3rem;
}

body.sidebar-hidden .main-layout .sidebar {
  width: 0;
  padding: 0;
}

.sidebar .links-container {
  padding: 1rem 0 2rem;
  overflow-y: auto;
  height: calc(100vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar .links-container:hover {
  scrollbar-color: orangered transparent;
}

.sidebar .link-section .link-item {
  display: flex;
  color: var(--black-color);
  white-space: nowrap;
  align-items: center;
  font-size: 0.938rem;
  padding: 0.37rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
}



.sidebar .link-section .link-item:hover {
  background: orangered;
  color: white;
}

.sidebar .link-section a.link-item.active {
  background: orangered;
  color: white;
}

.sidebar .link-section .link-item i {
  font-size: 1.4rem;
  margin-right: 0.625rem;
}

.sidebar .link-section .section-title {
  color: var(--black-color);
  font-weight: 600;
  font-size: 0.938rem;
  margin: 1rem 0 0.5rem 0.5rem;
}

.sidebar .section-separator {
  height: 1px;
  margin: 0.64rem 0;
  background: var(--light-gray-color);
}

.main-layout .content-wrapper {
  padding: 0 1rem;
  overflow-x: hidden;
  width: 100%;
}

.content-wrapper .category-list {
  display: flex;
  overflow-x: auto;
  gap: 0.75rem;
  padding: 0.75rem 0 0.7rem;
  scrollbar-width: none;
}

.category-list .category-button {
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  color: var(--black-color);
  padding: 0.4rem 0.75rem;
  background: var(--light-gray-color);
}

.category-list .category-button.active {
  color:white;
  background: orangered;
  pointer-events: none;
}

.dark-mode .category-list .category-button.active {
  filter: brightness(120%);
}


.category-list .category-button:not(.active):hover {
  background: var(--border-color);
}

.content-wrapper .video-list {
  display: grid;
  gap: 0.2rem;
  padding: 1.25rem 0 1rem;
  grid-template-columns: repeat(2, 1fr); /* Default to 2 columns */
}

/* Adjust grid layout for small tablets and larger screens */
@media (min-width: 640px) {
  .content-wrapper .video-list {
    grid-template-columns: repeat(3, 1fr); 
  }
}

/* Adjust grid layout for tablets */
@media (min-width: 700px) {
  .content-wrapper .video-list {
    grid-template-columns: repeat(4, 1fr); 
  }
}

/* Adjust grid layout for larger tablets */
@media (min-width: 850px) {
  .content-wrapper .video-list {
    grid-template-columns: repeat(5, 1fr); 
  }
}

/* Adjust grid layout for desktop screens */
@media (min-width: 1124px) {
  .content-wrapper .video-list {
    grid-template-columns: repeat(6, 1fr); 
  }
}


.video-list .video-card {
  text-decoration: none;
  border: 2px solid orangered;
  border-radius: 0.2rem;
  height:252px;
  margin-bottom: 0.2rem;
}

.video-list .video-card .thumbnail-container {
  position: relative;
}

.video-list .video-card .thumbnail {
  width: 100%;
  display: block;
  object-fit: contain;
  height: fit-content;
  background: var(--light-white-color);
}


.video-list .video-card .duration {
  position: absolute;
  right: 0.1rem;
  top: 0.2rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  background: blue;
}

.video-list .video-card .current-episode {
  position: absolute;
  left: 0.1rem;
  bottom: 1.2rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  background: green;
}

.video-list .video-card .video-info {
  display: flex;
}

.video-list .video-card .title {
  position: absolute;
  font-size: 0.9rem;
  font-weight: bolder;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  cursor: pointer;
  -webkit-box-orient: vertical;
  bottom:0;
  left:0;
  right:0;
  background-color: red;
  color: white;
  text-align: center;
  border-radius: 0.2rem;
  white-space: nowrap;
}

.video-list .video-card:hover .title {
  color: white;
  background-color: orangered;
}

.video-list .video-card p {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.video-list .video-card .sub {
  position: absolute;
  left: 0.5rem;
  top:0.2rem;
  height: 20px;
  bottom: 0.8rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  background-color: orangered;
}

.video-list .video-card .dub {
  position: absolute;
  left: 0.5rem;
  top:0.2rem;
  height: 20px;
  bottom: 0.8rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  background-color: purple;
}

.anime-details .anime-title {
  display: flex;
  align-items: center;
}

.anime-details .anime-title .sub-badge {
  color: orangered;
  display: flex;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid orangered;
  padding: 0.1rem;
  margin-left: 0.2rem;
  background-color: transparent;
}

.anime-details .anime-title .dub-badge {
  color: purple;
  display: flex;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid purple;
  padding: 0.1rem;
  margin-left: 0.2rem;
  background-color: transparent;
}

.badge_sub, .badge_dub {
  display: flex;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.1rem;
  margin-left: 0.2rem;
}

.badge_sub {
  color: orangered;
  border: 1px solid orangered;
  background-color: transparent;
}

.badge_dub {
  color: purple;
  border: 1px solid purple;
  background-color: transparent;
}

h4.strong {
  display: flex
;
}

.video-list .video-card .channel-name {
  margin: 0.25rem 0 0.15rem;
}

/* Responsive media code for small devices */
@media (max-width: 768px) {
  .navbar .nav-center {
    display: none;
  }

.navbar .nav-center.show {
    display: flex;
    position: absolute;
    max-width: 96%;
    right: 0.2rem;
    margin: auto;
    top: 3rem;
    background: white;
}

.dark-mode .navbar .nav-center.show {
  background:var(--white-color);
}


  .navbar .nav-right .search-button {
    display: block;
  }

  .main-layout .screen-overlay {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 15;
    width: 100%;
    height: 100vh;
    background: var(--overlay-dark-color);
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .screen-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .main-layout .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 20;
    height: 100vh;
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .sidebar {
    left: -280px;
  }

  .main-layout .sidebar .nav-left {
    display: flex;
  }
}


.user-profile {
  position: relative;
  display: inline-block;
  z-index: 20;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px;
  margin: 0;
  border-radius: 5px;
  z-index: 999;
  width:200px;
}

.user-dropdown li {
  margin: 5px 0;
  display: flex;
  justify-items: center;
  padding-bottom: 0.5rem;
}

.user-dropdown li a {
  text-decoration: none;
  color: black;
}

.user-dropdown li a:hover {
  color: #007bff;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.page-item {
  margin: 0 5px;
}

.page-item a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  color: orangered;
  text-decoration: none;
  border: 1px solid orangered;
  border-radius: 8px;
  outline: 1px orangered;
  outline-offset: 1px;
  transition: background-color 0.3s, color 0.3s;
}

.page-item a:hover {
  background-color: orangered;
  color: white;
}

.page-item.active a {
  background-color: orangered;
  color: #fff;
  border-color: orangered;
  pointer-events: none;
}


.page-item.disabled a {
  color: #6c757d;
  pointer-events: none;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}


/* Anime details css */

.anime-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 1rem;
}


.dark-mode  .anime-details {
  background-color:var(--white-color)
}

img.anime-poster {
  width: 100%;
  position: relative;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.poster {
  position: relative;
}

.anime-info {
  flex: 1;
  min-width: 250px;
}

.anime-info h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.anime-meta p {
  margin: 0.5rem 0;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.genre-tag {
  padding: 0.125rem 0.5rem;
  border-radius: 5rem;
  font-size: 0.9rem;
  border: 1px solid orangered;
  outline: 1px solid orangered;
  outline-offset: 1px; 
}

.genre-tag a {
  text-decoration: none;
  color: orangered;
}

.genre-tag:hover{
  border: 1px solid red;
  outline: 1px solid red;
}

.episodes-section{
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 5rem;
}
 .dark-mode .episodes-section, .dark-mode .anime-synopsis{
background-color: var(--white-color);
color: var(--black-color);
 }

.anime-synopsis {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.episode-list {
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  gap: 0.2em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}


/* Adjust grid layout for small tablets and larger screens */
@media (min-width: 640px) {
  .content-wrapper .episode-list {
    grid-template-columns: repeat(6, 1fr); 
  }
}

/* Adjust grid layout for tablets */
@media (min-width: 700px) {
  .content-wrapper .episode-list {
    grid-template-columns: repeat(8, 1fr); 
  }
}

/* Adjust grid layout for larger tablets */
@media (min-width: 850px) {
  .content-wrapper .episode-list {
    grid-template-columns: repeat(10, 1fr); 
  }
}

/* Adjust grid layout for desktop screens */
@media (min-width: 1124px) {
  .content-wrapper .episode-list {
    grid-template-columns: repeat(12, 1fr); 
  }
}



.episode-item {
  display: flex;
  align-items: center;
  padding: 0.1rem 0;
}

.episode-item:last-child {
  border-bottom: none;
}

.btn-primary {
  background-color: orangered;
  color: white;
  padding: 0.1rem 0.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
  .anime-details {
      flex-direction: column;
      align-items: center;
      padding: 0.5rem;
  }

  .genre-tags {
      justify-content: center;
  }

  .episodes-section {
      padding: 1.5rem;
  }

  .episodes-section h2 {
      text-align: center;
  }
}

.seven h2 {
text-align: center;
font-size:24px; font-weight:300; color:#222; letter-spacing:1px;

display: grid;
grid-template-columns: 1fr max-content 1fr;
grid-template-rows: 27px 0;
grid-gap: 15px;
align-items: center;
}

.dark-mode .seven h2, .dark-mode .anime-meta p, .dark-mode .anime-info h2 {
  color:white
}
.seven h2:after,.seven h2:before {
content: " ";
display: block;
border-bottom: 1px solid #c50000;
border-top: 1px solid #c50000;
height: 5px;
background-color:#f8f8f8;
}

.jp-title{
color: grey;
}

/* NO episode message */
.no-episodes-message{
  display: block;
  padding: 2rem;
  text-align: center;
}

.uil--sad-squint {
  display: inline-block;
  width: 48px;
  height: 48px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.08 12.21l1.5-1.5a1 1 0 0 0 0-1.42l-1.5-1.5a1 1 0 0 0-1.42 1.42l.8.79l-.8.79a1 1 0 0 0 0 1.42a1 1 0 0 0 .71.29a1 1 0 0 0 .71-.29m-.72 3.12a1 1 0 0 0-.13 1.4a1 1 0 0 0 1.41.13a3.76 3.76 0 0 1 4.72 0a1 1 0 0 0 1.41-.13a1 1 0 0 0-.13-1.4a5.81 5.81 0 0 0-7.28 0m8.22-7.54a1 1 0 0 0-1.42 0l-1.5 1.5a1 1 0 0 0 0 1.42l1.5 1.5a1 1 0 0 0 .71.29a1 1 0 0 0 .71-.29a1 1 0 0 0 0-1.42l-.79-.79l.79-.79a1 1 0 0 0 0-1.42M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8 8 0 0 1-8 8'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.uil--exclamation-triangle {
  display: inline-block;
  width: 48px;
  height: 48px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 16a1 1 0 1 0 1 1a1 1 0 0 0-1-1m10.67 1.47l-8.05-14a3 3 0 0 0-5.24 0l-8 14A3 3 0 0 0 3.94 22h16.12a3 3 0 0 0 2.61-4.53m-1.73 2a1 1 0 0 1-.88.51H3.94a1 1 0 0 1-.88-.51a1 1 0 0 1 0-1l8-14a1 1 0 0 1 1.78 0l8.05 14a1 1 0 0 1 .05 1.02ZM12 8a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Episode page style */

.video-container {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
}
.video-main {
  flex: 2;
}
.video-sidebar {
  flex: 1;
  min-width: 250px;
}
.video-sources {
  position: relative;
  width: 100%;
  padding-top: 56.50%; 
  aspect-ratio: 19/6;
  margin-bottom: 15px;
}
.embed-responsive {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

.other-episodes {
  padding: 15px;
  border-radius: 8px;
  max-height: 500px;
  overflow-y: auto;
}

.other-episodes-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Default to single column on mobile */
  gap: 0.5rem;
}


/* Desktop view */
@media screen and (min-width: 1024px) {
  .other-episodes-list {
    grid-template-columns: repeat(2, 1fr); /* Three columns on desktop */
  }
}

.other-episodes-list a {
  color: #333;
  padding: 10px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.other-episodes-list a:hover {
  background-color: #d0d0d0;
}

.current-episode {
  background-color: #4CAF50;
  color: white !important;
}
.episode-title {
  font-size: small;
  font-weight: bolder;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .video-container {
      flex-direction: column;
  }
}

.episode-poster{
  width: 40px;
  height: 40px;
}

.no-sources-message.alert.alert-warning {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.no-sources-message.alert.alert-warning .no-icon, 
.no-sources-message.alert.alert-warning .no-text {
  text-align: center;
}

.episode-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 1rem;
}

.dark-mode .episode-details{
background: var(--white-color);
color: white;
}
.episode-navigation{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

a.epi-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: white;
  text-decoration: none;
  gap: 0.3rem;
}

.server-selector {
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#video-server {
  width: 200px; /* Adjust the width of the dropdown */
  padding: 0.5rem;
  font-size: 1rem;
  border: 2px solid #007bff; /* Border color */
  border-radius: 5px; /* Rounded corners */
  background-color: #f8f9fa; /* Light background */
  color: #212529; /* Text color */
  appearance: none; /* Removes the default browser styles */
  cursor: pointer; /* Adds a pointer cursor */
  transition: all 0.3s ease; /* Smooth hover transition */
}

#video-server:hover {
  border-color: #0056b3; /* Darker border on hover */
  background-color: #e9ecef; /* Slightly darker background on hover */
}

#video-server:focus {
  outline: none; /* Removes the default focus outline */
  box-shadow: 0 0 5px #007bff; /* Adds a shadow effect */
}

.related-anime-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 100%;
}

.related-anime-item {
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 230px; 
  width: 100%; /* Ensure full width within grid */
  overflow: hidden; /* Contain any overflowing content */
}

.related-anime-item:hover {
  transform: scale(1.05);
}

.related-anime-grid .related-anime-item .related-anime-poster {
  width: 100%;
  height: 200px; 
  
  border-radius: 5px;
  max-width: 100%;
}

.related-anime-title {
  margin-top: 8px;
  font-size: 0.8em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
}


.bookmark-btn {
  position: absolute;
  top: 0;
  background-color: red;
  color: white;
  border: none;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bookmark-lang .sub {
  position: absolute;
  left: 0.5rem;
  top:0.2rem;
  height: 20px;
  bottom: 0.8rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  background-color: orangered;
}

.bookmark-lang .dub {
  position: absolute;
  left: 0.5rem;
  top:0.2rem;
  height: 20px;
  bottom: 0.8rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  background-color: purple;
}

.dark-mode span#selectedCount{
  color: orangered;
}

.bookmark-btn:hover {
  background-color: yellowgreen;
}

.bookmark-btn.bookmarked {
  background-color: #4CAF50;
  color: white;
}

.bookmark-btn i {
  margin-right: 5px;
}

.bookmarks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .bookmarks-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.bookmark-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

a.bookmark-card {
  text-decoration: none;
}

.bookmark-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}


.bookmark-actions {
  display: flex;
  margin-top: 10px;
  align-items: center;
  top: 0;
  left: 0.1rem;
  position: absolute;
}

.no-bookmarks {
  text-align: center;
  display: block;
  padding: 50px;
}

.no-bookmarks p {
  margin-bottom: 2rem;
}

.dark-mode .server-selector,
.dark-mode .uil--exclamation-triangle, 
.dark-mode .no-bookmarks p, 
.dark-mode .episode-title, 
.dark-mode .related-anime-title {
  color: white;
}
.btn-remove{
  background-color: red;
  color: white;
  padding: 0.1rem 0.2rem;
  border: 1px solid red;
  border-radius: 5px;
  cursor: pointer;
}


.uil--exclamation-triangle {
  display: inline-block;
  width: 48px;
  height: 48px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 16a1 1 0 1 0 1 1a1 1 0 0 0-1-1m10.67 1.47l-8.05-14a3 3 0 0 0-5.24 0l-8 14A3 3 0 0 0 3.94 22h16.12a3 3 0 0 0 2.61-4.53m-1.73 2a1 1 0 0 1-.88.51H3.94a1 1 0 0 1-.88-.51a1 1 0 0 1 0-1l8-14a1 1 0 0 1 1.78 0l8.05 14a1 1 0 0 1 .05 1.02ZM12 8a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.bookmarks-page{
  margin-top: 1rem;
}

.bookmarks-grid .bookmark-card .bookmark-episodes {
  position: absolute;
  right: 0.1rem;
  top: 0.2rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  background: blue;
}

.bookmarks-grid .bookmark-card .bookmark-title {
    position: absolute;
    font-size: 0.9rem;
    font-weight: bolder;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    cursor: pointer;
    -webkit-box-orient: vertical;
    bottom: 0rem;
    left: 0;
    right: 0;
    background-color: red;
    color: white;
    text-align: center;
    border-radius: 0.2rem;
    white-space: nowrap;
}

/* Anime page views and share  */
/* Social Share Buttons Styling */
.sbutton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #f4f4f4;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.sbutton a {
  text-decoration: none;
  color: #333;
  position: relative;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.sbutton a:hover {
  transform: scale(1.2);
  opacity: 0.9;
}

/* Platform-specific colors */
.sbutton .reddit:hover { color: #FF4500; }
.sbutton .whatsapp:hover { color: #25D366; }
.sbutton .fb:hover { color: #1877F2; }
.sbutton .telegram:hover { color: #0088cc; }
.sbutton .twitt:hover { color: #1DA1F2; }
.sbutton .linked:hover { color: #0A66C2; }

/* Tooltip Styling */
.sbutton a::before {
  content: attr(tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sbutton a:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Page Views Styling */
.page-views {
  background: orangered;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  margin-left: 1rem;
  padding: 0.5rem;
  border: 1px solid orangered;
  border-radius: 2rem;
}

.small-share-icon{
  display: none;
}

.share-icon{
  margin-right: 3rem;
}

.dark-mode .share-icon{
  color: orangered;
  font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 800px) {
  .sbutton {
      flex-wrap: wrap;
      gap: 8px;
      padding: 8px;
  }

  .sbutton a {
      width: 38px;
      height: 38px;
  }

  .share-icon{
    margin-right: 1.5rem;
  }

}

/* Responsive Adjustments */
@media (max-width: 750px) {
  .sbutton {
      flex-wrap: wrap;
      gap: 5px;
      padding: 5px;
  }

  .sbutton a {
      width: 35px;
      height: 35px;
  }

  .share-icon{
    margin-right: 1rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 550px) {
  .navbar {
    gap: 0.5rem;
    padding: 0.1rem 0.3rem;
}

.main-layout .content-wrapper{
  padding: 0px;
}
  .sbutton {
      flex-wrap: wrap;
      gap: 2px;
      padding: 2px;
  }

  .sbutton a {
      width: 30px;
      height: 30px;
  }

  .share-icon{
    display: none;
  }

  .page-views{
    margin-left: 0.2rem;
    gap: 2px;
    font-size: 12px;
  }
  .sbutton a::before{
    padding: 2px 5px;
  }
  .small-share-icon{
    display: block;
    margin-bottom: 0.2rem;
    color: #171717;
  }
  .dark-mode .small-share-icon{
    color: orangered;
    font-weight: bold;
  }

  .dark-mode .small-share-icon{
    color: white;
  }
}

        /* Profile Container Styles */
        .profile-container {
          width: 100%;
          max-width: 1200px;
          margin: 0 auto;
          padding: 2rem;
          background-color: #f9f9f9;
          border-radius: 12px;
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
          margin-bottom: 2rem;
          margin-top: 1rem;
      }
      
      /* Profile Header Styles */
      .profile-header {
          display: flex;
          align-items: center;
          margin-bottom: 2rem;
          padding-bottom: 1rem;
          border-bottom: 1px solid #e0e0e0;
      }
      
      .profile-avatar {
          margin-right: 2rem;
      }
      
      .profile-avatar img {
          width: 150px;
          height: 150px;
          border-radius: 50%;
          object-fit: cover;
          border: 4px solid #ffffff;
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      }
      
      .profile-info h2 {
          margin: 0 0 0.5rem 0;
          color: #333;
          font-size: 2rem;
          font-weight: 600;
      }
      
      .profile-info p {
          margin: 0;
          color: #666;
          font-size: 1rem;
      }
      
      /* Profile Details Styles */
      .profile-details {
          background-color: #ffffff;
          border-radius: 8px;
          padding: 1.5rem;
          margin-bottom: 1.5rem;
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      }
      
      .dark-mode .profile-container, .dark-mode .profile-details{
          background: var(--white-color);
          color: white;
      }
      
      .profile-details h2 {
          margin-top: 0;
          margin-bottom: 1rem;
          color: #333;
          font-size: 1.25rem;
          border-bottom: 1px solid #e0e0e0;
          padding-bottom: 0.5rem;
      }
      
      .dark-mode .profile-details h2, .dark-mode .profile-info h2, .dark-mode .detail-row span{
          color: white;
      }
      
      .detail-row {
          display: flex;
          margin-bottom: 0.75rem;
          padding: 0.5rem 0;
          border-bottom: 1px solid #f0f0f0;
      }
      
      .detail-row:last-child {
          border-bottom: none;
      }
      
      .detail-label {
          flex: 0 0 120px;
          color: #666;
          font-weight: 500;
      }
      
      .detail-value {
          flex: 1;
          color: #333;
      }
      
      /* Profile Actions Styles */
      .profile-actions {
          display: flex;
          font-size: large;
          font-weight: bolder;
          justify-content: space-between;
          align-items: center;
          gap: 0.65rem;
      }
        
      .btn-primary:hover {
          background-color: #0056b3;
      }
      
      /* Responsive Adjustments */
      @media screen and (max-width: 600px) {
          .profile-container {
              padding: 1rem;
          }
      
          .profile-header {
              flex-direction: column;
              text-align: center;
          }
      
          .profile-avatar {
              margin-right: 0;
              margin-bottom: 1rem;
          }
      
          .detail-row {
              flex-direction: column;
          }
      
          .detail-label {
              margin-bottom: 0.25rem;
          }
      }

      /* Pages */
      .page-content-details {
        max-width: 1200px;
        width: 100%;
        margin: 2rem auto;
        padding: 2rem;
        background-color: #f9f9f9;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .page-content-details .featured-image {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
    
    .page-content-details .page-metadata {
        display: flex;
        justify-content: space-between;
        color: #6b7280;
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 0.75rem;
    }
    
    .page-content-details p {
        line-height: 1.6;
        color: #333;
        margin-bottom: 1rem;
    }
    
    .dark-mode .page-content-details {
        background-color: #2c2c2c;
        color: #e0e0e0;
    }
    
    .dark-mode .page-content-details p {
        color: #e0e0e0;
    }
    
    .page-content-details ul, 
    .page-content-details ol {
        padding-left: 2rem;
        margin-bottom: 1rem;
    }
    
    .page-content-details ul li {
        list-style: disc;
        margin-bottom: 0.5rem;
    }
    
    .page-content-details ol li {
        list-style: decimal;
        margin-bottom: 0.5rem;
    }
    
    .page-content-details h1, 
    .page-content-details h2, 
    .page-content-details h3, 
    .page-content-details h4 {
        margin-bottom: 1rem;
        color: #1a202c;
    }
    
    .dark-mode .page-content-details h1, 
    .dark-mode .page-content-details h2, 
    .dark-mode .page-content-details h3, 
    .dark-mode .page-content-details h4 {
        color: #e0e0e0;
    }
    
    .page-content-details h1 {
        text-align: center;
        font-size: 2.5rem;
        border-bottom: 2px solid #e2e8f0;
        padding-bottom: 0.75rem;
    }
      

  /* Anime likes */
  .anime-interaction-container {
    border: 2px solid orangered;
    background: transparent;
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0.3rem 0;
}
  .dark-mode .anime-interaction-container{
    color: white;
  }

  .anime-interaction-container p{
    font-weight: bold;
    font-size: 20px;
  }
  .like-unlike-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.like-btn, .unlike-btn {
    display: flex;
    align-items: center;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.52rem;
}

.like-btn i, .unlike-btn i {
    margin-right: 5px;
}

.like-btn.active {
    background-color: #4CAF50;
    color: white;
}

.unlike-btn.active {
    background-color: #f44336;
    color: white;
}

/* Download URLs */
  .download-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 15px;
  }
  .download-btn {
      background-color: #4CAF50;
      border: none;
      color: white;
      padding: 12px 24px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 16px;
      margin: 4px 2px;
      cursor: pointer;
      border-radius: 8px;
      transition: background-color 0.3s ease;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .download-btn:hover {
      background-color: #45a049;
      box-shadow: 0 6px 8px rgba(0,0,0,0.15);
  }
  .download-btn:active {
      background-color: #3e8e41;
      transform: translateY(2px);
  }