* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}
body {
  margin: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 0;
}
.container {
  height: 100vh;
  width: 100%;
  margin: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  background-attachment: fixed;
}
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  gap: 10px;
  margin-top: 10px;
  position: relative;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: 90px;
}
.logo h1 {
  color: #ea580c;
  font-size: 50px;
  text-shadow: 0 0 10px rgba(60, 9, 94, 0.5);
  margin-right: 20px;
  font-family: "Bebas Neue", sans-serif;
  cursor: pointer;
}
.logo i {
  color: #a78bfa;
  font-size: 2.5rem;
  text-shadow: 0 0 10px rgba(168, 67, 236, 0.5);
  transition: all 0.3s ease;
}
.logo i:hover {
  color: #c4b5fd;
  text-shadow: 0 0 15px rgba(196, 181, 253, 0.7);
  transform: scaleY(1.55);
}
.tabs {
  display: flex;
  gap: 15px;
}
.tab-btn {
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid #a78bfa;
  font-size: 15px;
  color: #a78bfa;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-btn:hover {
  background-color: #a78bfa;
  color: #fff;
}
.tab-btn.active {
  background-color: #a78bfa;
  color: #fff;
  border-color: #fefefe;
}
.tab-btn.active:hover {
  background-color: #c4b5fd;
  border-color: #6f48e1;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search input {
  padding: 10px 15px;
  border: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  width: 380px;
  height: 50px;
}
.search input::placeholder {
  color: rgba(167, 139, 250, 0.6);
  font-weight: bolder;
  font-size: 15px;
}
input:focus {
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
  outline: none;
}
.search input:hover {
  background-color: rgba(0, 0, 0, 0.6);
}
.search button {
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background-color: #f97316;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
}
.search button:hover {
  background-color: #ea580c;
}
select {
  padding: 10px 15px;
  border: none;
  border-radius: 15px;
  background-color: #f97316;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  height: 50px;
  width: 150px;
}
select:hover {
  background-color: #ea580c;
}
option {
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
}
.results-container::-webkit-scrollbar {
    display: none;
}
.results-container {
    position: absolute;
    inset: 0;  
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    padding: 50px;
    z-index: 2;
    margin-right: 60px;
    margin-top: 60px;
    margin-bottom: 60px;
    
}
.animelet {
  background: #c4b5fd;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  padding: 15px;
  width: 100%;
  color: #ffffff;
  font-weight: bolder;
  position: relative;
  transition: all 0.3s ease;
  
}
.animelet img {
  width: 100%;
  height:70%;
  border-radius: 10px;
  object-fit: cover;
}
.animelet:hover {
  transform: scale(1.05);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),0 0 15px rgba(167, 139, 250, 0.5);
}
.fav-icon{
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}
.fav-icon.active{
  color: red;
}
.vide {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.vide video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 20px;
}
.loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #00ffee;
  font-weight: bolder;
}
.message {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #ff6c03;
    background: #373636;
    border-radius: 8px;
    margin-left: 50px;
  }
  .anime-card h3 {
    font-size: 16px;
    margin: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .anime-card p {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    line-height: 1.4;
  }
  
  .anime-card span {
    font-size: 12px;
    display: inline-block;
    margin: 5px 0;
  }
  
  .fav-icon {
    cursor: pointer;
    margin-left: 10px;
    font-size: 18px;
    float: right;
  }
  
  .fa-solid.active {
    color: red;
  }
  
  
  .anime-detail {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    padding: 20px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    color: white;
    position: relative;
  }
  
  .back-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 25px;
    display: inline-block;
  }
  
  .back-button:hover {
    background: #764ba2;
    transform: scale(1.05);
  }
  
  .detail-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
    clear: both;
  }
  
  .detail-left {
    flex: 0 0 250px;
    text-align: center;
    margin: 0 auto;
  }
  
  .detail-left img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 15px;
  }
  
  .detail-right {
    flex: 1;
    min-width: 250px;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .detail-right h1 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 28px;
  }
  
  .detail-right h3 {
    margin: 0 0 15px 0;
    color: #e0e0e0;
    font-size: 18px;
    font-weight: normal;
  }
  
  .detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
  }
  
  .stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 14px;
    color: white;
    transition: transform 0.2s;
  }
  
  .stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
  }
  
  .detail-genres {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 14px;
    color: white;
  }
  
  .detail-synopsis {
    margin: 20px 0;
    line-height: 1.6;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
  }
  
  .detail-synopsis strong {
    display: block;
    margin-bottom: 10px;
    text-align: center;
    font-size: 18px;
  }
  
  .detail-synopsis p {
    margin: 10px 0 0 0;
    color: #e0e0e0;
    line-height: 1.8;
    text-align: center;
  }
  
  .favourite-detail-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s;
    margin-top: 15px;
    font-weight: bold;
  }
  
  .favourite-detail-btn.active {
    background: #2ed573;
  }
  
  .favourite-detail-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }
  
  .detail-synopsis::-webkit-scrollbar {
    width: 8px;
  }
  
  .detail-synopsis::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }
  
  .detail-synopsis::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
  }
  
  .detail-synopsis::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
  }
  