@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap");
html {
  scrollbar-width: auto;
  scrollbar-color: auto;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary);
}

::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color 0.5s;
}

body:hover::-webkit-scrollbar-thumb {
  background-color: var(--primary);
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

:root {
  --primary: #ff4757;
  --dark: #1e272e;
  --darker: #13181c;
  --text: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--darker);
  color: var(--text);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

  background-size: 40px 40px;
  background-position: center top;
  animation: fadeInPage 1s ease-in-out;
}

@keyframes fadeInPage {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--darker);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.5s ease-out,
    visibility 0.5s ease-out;
}

.splash-content {
  text-align: center;
}

.logo-splash {
  font-size: 4rem;
  color: white;
  margin-bottom: 20px;
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-splash span {
  color: var(--primary);
}

.loading-bar {
  width: 150px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.loading-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  animation: loadBar 1.5s ease-in-out forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes loadBar {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

.hide-splash {
  opacity: 0;
  visibility: hidden;
}

.navbar {
  justify-content: space-between;
  align-items: center;
  display: flex;

  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  backdrop-filter: blur(0px);
  transition: all 0.4s ease;
  z-index: 1000;
  padding: 15px 4%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  background-color: rgba(30, 39, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 12px 5%;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.logo span {
  background: linear-gradient(45deg, #ff4757, #ff6b81);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% auto;

  filter: drop-shadow(0 0 5px rgba(255, 71, 87, 0.6));
  animation: logoFlow 4s linear infinite;
}

@keyframes logoFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.search-box {
  display: flex;
  gap: 5px;
}

.search-box input {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #333;
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  width: 180px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-box input:focus {
  width: 500px;
  background: #000;
  border-color: var(--primary);
  box-shadow:
    0 0 0 100vmax rgba(0, 0, 0, 0.85),
    0 0 15px var(--primary);

  position: relative;
  z-index: 99999;
  caret-color: var(--primary);

  color: #fff;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.8);

  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .search-box input:focus {
    width: 250px !important;
  }
}

.search-box button {
  padding: 8px 15px;
  background: var(--primary);
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.container {
  padding: 20px 5%;
}

h2 {
  margin-bottom: 20px;
  border-left: 5px solid var(--primary);
  padding-left: 15px;

  box-shadow: -5px 0 15px -3px var(--primary);
  border-radius: 15px;

  animation: saberPulse 3s infinite alternate;
}

@keyframes saberPulse {
  0% {
    box-shadow: -5px 0 10px -3px var(--primary);
    border-color: var(--primary);
  }
  100% {
    box-shadow: -5px 0 25px -1px var(--primary);
    border-color: #ff6b81;
  }
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.anime-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
}

.anime-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(
    45deg,
    var(--primary),
    #3d3b57,
    #559393,
    var(--primary)
  );
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.anime-card:hover::before {
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.anime-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: var(--dark);
  border: none;
}

.anime-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.95);
  filter: blur(10px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.anime-card img.loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

#cw-grid .anime-card img {
  filter: blur(0) !important;
  opacity: 0.8 !important;
  transform: scale(1) !important;
}

#cw-grid .anime-card:hover img {
  opacity: 1 !important;
}

.card-info {
  padding: 10px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: all 0.3s ease;
}

.anime-card:hover .card-title {
  text-overflow: clip;
  animation: textMarquee 5s linear infinite;
}

@keyframes textMarquee {
  0% {
    text-indent: 0;
  }
  20% {
    text-indent: 0;
  }
  100% {
    text-indent: -100%;
  }
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.card-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
  z-index: 5;
  pointer-events: none;
}

.anime-card:hover .card-image-wrapper::after {
  animation: shine 0.75s;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.anime-card:hover .card-overlay {
  opacity: 1;
}

.overlay-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s,
    background 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.overlay-btn.play {
  background: white;
  color: var(--primary);
}

.overlay-btn.play:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.overlay-btn.fav {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.overlay-btn.fav:hover {
  background: #ff4757;
  border-color: #ff4757;
  transform: scale(1.1);
}

.overlay-info {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
  padding: 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.anime-card:hover .overlay-info {
  transform: translateY(0);
}

.loading {
  text-align: center;
  margin-top: 50px;
  font-style: italic;
  color: #888;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
  70% {
    transform: translate(-50%, -50%) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-content {
  background: #1e272e;

  background: linear-gradient(145deg, #222f3e 0%, #1e272e 100%);

  padding: 30px;
  width: calc(100% - 32px);
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 16px;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);

  scrollbar-width: thin;
  scrollbar-color: var(--primary) #1e272e;

  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content input,
.modal-content textarea {
  margin-top: 6px;
  margin-bottom: 14px;
}

.modal-header {
  margin-bottom: 16px;
}

.modal-content button {
  margin-top: 18px;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translate(-50%, -55%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), #d63447);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: #1e272e;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 32px;
  cursor: pointer;
  color: white;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.close-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 0 15px var(--primary);
}

.video-wrapper {
  margin-top: 15px;
  position: relative;
  z-index: 1;
}

.video-wrapper::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 5%;
  width: 90%;
  height: 80%;

  background: linear-gradient(45deg, var(--primary), #a29bfe);

  filter: blur(60px);
  opacity: 0.4;
  z-index: -1;

  animation: ambient-pulse 4s ease-in-out infinite alternate;
}

@keyframes ambient-pulse {
  from {
    opacity: 0.3;
    transform: scale(0.95);
  }
  to {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

.video-wrapper iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 8px;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
}

.pagination-container button {
  padding: 10px 25px;
  background: transparent;
  color: white;

  border: 2px solid var(--primary);
  border-radius: 50px;

  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  margin: 0 5px;
}

.pagination-container button:hover {
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
  transform: scale(1.1);
  letter-spacing: 2px;
}

.pagination-container button:disabled {
  border-color: #555;
  color: #555;
  background: transparent;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  letter-spacing: normal;
}

#page-info {
  font-size: 1.1rem;
  font-weight: bold;
}

.detail-content {
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1e272e;
  color: white;
  position: relative;
  overflow: hidden;
  background: #1e272e;
  z-index: 1;
}

.detail-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.4);
  z-index: -1;
  opacity: 0.6;
  transition: background-image 0.5s ease;
}

.detail-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 30px;
  padding: 35px;
  align-items: flex-start;
  background: linear-gradient(
    135deg,
    rgba(22, 32, 43, 0.98) 0%,
    rgba(30, 39, 46, 0.95) 100%
  );
  max-width: 1000px;
  width: 95%;
}

.detail-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    180deg,
    rgba(255, 71, 87, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.detail-sidebar {
  width: 35%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
  z-index: 1;
}

#detail-image {
  width: 100%;
  border-radius: 16px;
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  aspect-ratio: 2/3;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  -webkit-box-reflect: below 5px
    linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
  margin-bottom: 25px !important;
}

#detail-image:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow:
    0 20px 60px rgba(255, 71, 87, 0.3),
    0 0 0 1px rgba(255, 71, 87, 0.5);
}

.synopsis-area {
  background: rgba(255, 255, 255, 0.07);
  padding: 20px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #e8e8e8;
  border-left: 5px solid var(--primary);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  max-height: 250px;
  overflow-y: auto;
}

.synopsis-area:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-width: 6px;
}

.synopsis-area::-webkit-scrollbar {
  width: 6px;
}

.synopsis-area::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.synopsis-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), #d63447);
  border-radius: 10px;
}

.synopsis-area::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.synopsis-area h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.15rem;
  border-bottom: 2px solid rgba(255, 71, 87, 0.25);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.synopsis-area h4::before {
  content: "📖";
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.detail-right {
  flex: 2;
  min-width: 300px;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 10px;
}

.detail-right::-webkit-scrollbar {
  width: 8px;
}

.detail-right::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.detail-right::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), #d63447);
  border-radius: 10px;
}

.detail-right::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.detail-right h2 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.8rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.meta-info {
  font-size: 0.95rem;
  color: #d0d0d0;
  margin-bottom: 20px;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  border-left: 3px solid rgba(255, 71, 87, 0.5);
}

.synopsis {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-height: 150px;
  overflow-y: auto;
}

.episode-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 450px;
  overflow-y: auto;
  padding: 15px;
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.episode-btn:nth-child(even) {
  background: rgba(0, 0, 0, 0.2) !important;
}

.episode-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: linear-gradient(135deg, #2f3542 0%, #283039 100%);
  border: 1px solid #454d5e;
  color: #dfe4ea;
  padding: 14px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.episode-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: width 0.3s ease;
}

.episode-btn:hover::before {
  width: 100%;
}

.episode-btn:hover {
  border-left-width: 0;
  padding-left: 18px;
  transform: none;
}

.episode-grid::-webkit-scrollbar {
  width: 8px;
}

.episode-grid::-webkit-scrollbar-track {
  background: #1e272e;
  border-radius: 10px;
}

.episode-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #57606f, var(--primary));
  border-radius: 10px;
}

.episode-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.episode-btn.watched {
  background: linear-gradient(135deg, #1a1f25 0%, #15191f 100%);
  color: #666;
  border-color: #2a2f35;
  opacity: 0.7;
}

.episode-btn.watched i {
  color: #27ae60 !important;
}

.watched-icon {
  margin-right: 8px;
  font-size: 0.8rem;
}

.detail-main {
  width: 65%;
  display: flex;
  flex-direction: column;
}

.nav-links {
  margin-right: auto;
  margin-left: 20px;
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.nav-btn:hover {
  background: var(--primary);
  color: white;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.fav-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition: transform 0.2s;
}

.fav-btn:hover {
  transform: scale(1.1);
}

.fav-btn.active {
  color: #ff4757;
}

.genre-content {
  max-width: 600px;
  text-align: center;
}

.genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.genre-tag {
  background: rgba(30, 39, 46, 0.8);
  color: #dfe4ea;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;

  border: 1px solid #444;
  border-left: 3px solid var(--primary);

  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.genre-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed #444;
  border-radius: 15px;
  text-align: center;
  margin-top: 20px;
}

.empty-icon {
  font-size: 5rem;
  color: #444;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 10px;
}

.empty-state p {
  color: #aaa;
  margin-bottom: 30px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: #ff6b81;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.5);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.schedule-content {
  max-width: 800px;
  min-height: 500px;
}

.day-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
}

.day-tab {
  background: transparent;
  color: #aaa;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
  border-radius: 5px 5px 0 0;
  transition: 0.3s;
}

.day-tab:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.day-tab.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  background: rgba(255, 71, 87, 0.1);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.schedule-item {
  display: flex;
  align-items: center;
  background: #2f3542;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #444;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  gap: 15px;
  overflow: hidden;
}

.schedule-item:hover {
  background: #3e4452;
  border-color: var(--primary);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
}

.schedule-item:hover .schedule-img {
  transform: scale(1.2);
  filter: brightness(1.1);
}

.schedule-img {
  transition:
    transform 0.4s ease,
    filter 0.3s ease;
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: #444;
}

.schedule-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.season-box {
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.season-box label {
  font-size: 0.85rem;
  color: #aaa;
  margin-right: 10px;
  font-weight: bold;
}

.season-select {
  background: #2f3542;
  color: white;
  border: 1px solid #57606f;
  padding: 8px;
  border-radius: 4px;
  outline: none;
  font-size: 0.9rem;
  max-width: 100%;
  cursor: pointer;
}

.season-select:hover {
  border-color: var(--primary);
}

.season-select option {
  background: #1e272e;
  color: white;
  padding: 10px;
}

.desktop-only {
  display: flex;
  gap: 10px;
}

.desktop-search {
  display: flex;
}

.mobile-icons {
  display: none;
}

.mobile-search-panel {
  top: 70px;
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.nav-btn-mobile {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 10px;
  cursor: pointer;
}

.mobile-search-panel {
  display: none;
  background: var(--dark);
  padding: 15px;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

.mobile-search-panel.active {
  display: flex;
}

.mobile-search-panel input {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  border: none;
  outline: none;
  background: #111111;
  color: #ffffff;
  font-size: 0.9rem;
}

.mobile-search-panel input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.3);
}

.mobile-search-panel button {
  padding: 10px 15px;
  background: var(--primary);
  border: none;
  color: white;
  border-radius: 4px;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

:root {
  --plyr-color-main: #ff4757;
  --plyr-video-control-color: #ffffff;
  --plyr-video-control-background-hover: rgba(255, 71, 87, 0.8);
  --plyr-menu-background: #1e272e;
  --plyr-menu-color: #fff;
}

.plyr {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.plyr__control--overlaid {
  background: rgba(255, 71, 87, 0.9);
}

.plyr__control--overlaid:hover {
  background: #ff6b81;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.video-wrapper iframe,
.video-wrapper video,
.plyr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.server-container {
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.server-label {
  display: block;
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 10px;
  font-weight: bold;
}

.server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 5px;
}

.server-btn {
  background: #2f3542;
  color: white;
  border: 1px solid #57606f;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.3s;
}

.server-btn:hover {
  background: #3e4452;
  border-color: var(--primary);
}

.server-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.server-list::-webkit-scrollbar {
  width: 6px;
}

.server-list::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 10px;
}

.episode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-right: 10px;
}

.episode-section h4 {
  margin-bottom: 0;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  color: white;
}

.sort-btn {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: #777;
}

.sort-btn i {
  color: var(--primary);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.action-buttons button,
.action-buttons a.btn-share {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  gap: 10px;
  transition: 0.3s;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-fav {
  background: transparent;
  border-color: var(--primary) !important;
  color: var(--primary);
  margin-bottom: 0;
}

.btn-fav:hover,
.btn-fav.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-share.wa {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border-color: #25d366;
}
.btn-share.wa:hover {
  background: #25d366;
  color: white;
}

.btn-share.copy {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #777;
}
.btn-share.copy:hover {
  background: #fff;
  color: #000;
}

#season-container {
  margin-bottom: 20px;
  position: relative;
}

#season-dropdown {
  width: 100%;
  padding: 12px 20px;
  background-color: #2f3542;
  color: #dfe4ea;
  border: 1px solid #454d5e;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff4757%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;

  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#season-dropdown:hover,
#season-dropdown:focus {
  background-color: #3e4452;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

#season-dropdown option {
  background-color: #1e272e;
  color: white;
  padding: 10px;
}

#toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(30, 39, 46, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;

  animation: slideInToast 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.success i {
  color: #2ecc71;
}
.toast.error i {
  color: #ff4757;
}
.toast.info i {
  color: #3498db;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.hide {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.video-controls {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: #111;
  border-bottom: 1px solid #222;
}

.nav-vid-btn {
  background: #252525;
  color: #fff;
  border: 1px solid #444;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.nav-vid-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.nav-vid-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #1a1a1a;
  border-color: #333;
  color: #555;
}

.nav-vid-btn:disabled:hover {
  background: #1a1a1a;
}

.video-header {
  padding: 20px 25px;
  border-bottom: 1px solid #333;
  margin-bottom: 0;
}

.video-controls {
  display: flex;
  justify-content: space-between;
  padding: 15px 25px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.server-container {
  margin: 0 25px 20px 25px;
  padding: 20px;
  background: #111;
  border-radius: 8px;
  border: 1px solid #333;
}

.server-label {
  display: block;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #ccc;
  font-weight: bold;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 5px;
}

.server-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.video-wrapper {
  margin: 0 25px 30px 25px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

@media (max-width: 600px) {
  .video-header,
  .video-controls,
  .server-container,
  .video-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-radius: 0;
    border: none;
  }

  .video-wrapper {
    margin-bottom: 0;
    margin-top: 0;
  }
}

#btn-scroll-top {
  position: fixed;
  bottom: 10px;
  right: 30px;
  z-index: 99;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-scroll-top:hover {
  background: #ff6b81;
  transform: translateY(-5px);
}

@keyframes floatPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
  }
  50% {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 25px rgba(255, 71, 87, 0.6);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
  }
}

#btn-scroll-top.show {
  opacity: 1;
  bottom: 40px;
  visibility: visible;
  transform: translateY(0);
  animation: floatPulse 2s infinite ease-in-out;
}

@media (max-width: 600px) {
  #btn-scroll-top {
    bottom: 100px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
    margin-bottom: 59px;
  }
}

@media (max-width: 600px) {
  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .action-buttons button,
  .action-buttons a.btn-share {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .detail-layout {
    flex-direction: column;
    padding: 20px;
  }

  .detail-sidebar,
  .detail-main {
    width: 100%;
    min-width: 0;
  }

  .detail-sidebar {
    align-items: center;
    position: static;
  }

  #detail-image {
    max-width: 220px;
    margin-bottom: 10px;
  }

  .synopsis-area {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .desktop-only {
    display: none;
  }

  .desktop-search {
    display: none;
  }

  .mobile-icons {
    display: block;
  }

  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;

    position: fixed;
    bottom: 20px;
    left: 5%;
    width: 90%;

    background: rgba(30, 39, 46, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    padding: 12px 0;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;

    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .mobile-bottom-nav.docked {
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;

    border: none !important;
    border-top: 1px solid rgba(255, 71, 87, 0.5) !important;

    padding-bottom: 20px !important;
    background: #0a0a0a !important;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.8) !important;

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .mobile-bottom-nav div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: #aaa;
    cursor: pointer;
  }

  .mobile-bottom-nav div i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--primary);
  }

  body {
    padding-bottom: 0px !important;
  }

  .nav-links {
    display: none;
  }

  .video-wrapper iframe {
    height: 250px;
  }
  .mobile-bottom-nav.docked div {
    transform: translateY(3px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.skeleton {
  background: #1e272e;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 71, 87, 0.1) 40%,
    rgba(255, 71, 87, 0.6) 50%,
    rgba(255, 71, 87, 0.1) 60%,
    transparent 100%
  );

  transform: translateX(-100%);
  animation: laserScan 1.5s infinite;
}

@keyframes laserScan {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-card {
  background: var(--dark);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  pointer-events: none;
}

.skeleton-image {
  width: 100%;
  height: 280px;
  display: block;
}

.skeleton-title {
  height: 18px;
  width: 80%;
  margin: 10px;
}

.skeleton-text {
  height: 14px;
  width: 40%;
  margin: 0 10px 10px 10px;
}

.episode-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

#episode-range {
  background: #2f3542;
  color: #fff;
  border: 1px solid #555;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  max-width: 150px;
}

#episode-range:hover {
  border-color: var(--primary);
}

#episode-range option {
  background: #1e272e;
}

#music-toggle {
  position: fixed;
  bottom: 100px !important;
  left: 30px !important;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #ff4757, #ff6b81);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
  z-index: 1000;
  transition: transform 0.3s;
}

#music-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #ff4757;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.music-player-container {
  position: fixed;
  bottom: 40px !important;
  left: 90px;
  width: 300px;
  background: rgba(30, 39, 46, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  animation: slideInLeft 0.3s ease;
}

@media (max-width: 600px) {
  .episode-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .episode-controls {
    width: 100%;
    justify-content: space-between;
  }

  #episode-range {
    flex: 1;
  }
}

@media (max-width: 600px) {
  #music-toggle {
    bottom: 120px;
    opacity: 1 !important;
  }
}

@media (min-width: 601px) {
  #music-toggle {
    position: fixed;
    bottom: 40px !important;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
  }

  #music-toggle:hover {
    transform: scale(1.1) rotate(15deg);
  }

  .music-player-container {
    position: fixed;
    bottom: 50px !important;
    left: 90px;
    width: 300px;
    background: rgba(30, 39, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    animation: slideInLeft 0.3s ease;
  }

  .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ff4757;
    animation: pulse-animation 2s infinite;
  }
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #ff4757;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.music-player-container {
  position: fixed;
  bottom: 30px;
  left: 90px;
  width: 300px;
  background: rgba(30, 39, 46, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mp-header {
  display: flex;
  justify-content: space-between;
  color: #ccc;
  font-size: 0.8rem;
  margin-bottom: 10px;
  cursor: pointer;
}

.mp-info {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

#mp-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: fill;
  border: 2px solid #333;
  animation: spinVinyl 10s linear infinite;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.mp-text {
  flex: 1;
  overflow: hidden;
}

.mp-title {
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-artist {
  color: #aaa;
  font-size: 0.8rem;
}

.mp-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.mp-controls button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
}

.mp-controls button:hover {
  color: var(--primary);
}

.mp-controls .play-btn {
  width: 40px;
  height: 40px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mp-progress-container {
  width: 100%;
  height: 4px;
  background: #444;
  border-radius: 2px;
  margin-top: 15px;
  cursor: pointer;
  overflow: hidden;
}

.mp-progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.5s linear;
}

@media (max-width: 600px) {
  .music-player-container {
    left: 20px;
    bottom: 150px;
    width: calc(100% - 40px);
  }
}

.promo-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 50px;
  padding: 0 20px;
}

.nani-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #6c5ce7, #a29bfe);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.nani-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
  color: white;
}

.nani-btn i {
  font-size: 1.3rem;
}

@keyframes glow {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
  100% {
    filter: brightness(1);
  }
}

.nani-btn {
  animation: glow 3s infinite;
}

@media (max-width: 600px) {
  .nani-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }
}

.video-episode-bar {
  padding: 10px 25px;
  background: #161b22;
  border-bottom: 1px solid #333;
}

.bar-label {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 8px;
  font-weight: bold;
}

.video-episode-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 5px;
}

.video-episode-numbers::-webkit-scrollbar {
  width: 6px;
}
.video-episode-numbers::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

.ep-num-btn {
  width: 40px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f3542;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}

.ep-num-btn:hover {
  background: #3e4452;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.ep-num-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

@media (max-width: 600px) {
  .video-episode-bar {
    padding: 10px 15px;
  }
  .ep-num-btn {
    width: 45px;
    height: 40px;
  }
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #ccc;
  align-items: center;
}

.meta-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.meta-badge i {
  font-size: 0.7rem;
}

.meta-badge.rating {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.2);
}

.meta-badge.ep {
  position: relative;
  overflow: visible;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.meta-badge.ep::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 rgba(255, 71, 87, 0.4);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 71, 87, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

.meta-badge.year {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.meta-badge.watched {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.2);
}

@media (max-width: 600px) {
  .card-meta {
    font-size: 0.7rem;
    gap: 6px;
  }
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}
.nav-btn i {
  transition: transform 0.3s;
}
.nav-btn:hover i {
  transform: translateX(3px);
}
.genre-section {
  margin-top: 30px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}
.genre-tag {
  background: #2f3542;
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.genre-tag:hover {
  background: #3e4452;
  border-color: var(--primary);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .genre-section {
    padding: 0 10px;
  }
  .genre-tag {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}
.empty-state {
  padding: 40px;
  background: var(--dark);
  border: 2px dashed #444;
  border-radius: 15px;
  text-align: center;
  margin-top: 20px;
}
.empty-state i {
  font-size: 4rem;
  color: #555;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}
.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: white;
}
.empty-state p {
  color: #aaa;
}
.empty-state .btn-primary {
  margin-top: 20px;
  font-weight: bold;
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.empty-state .btn-primary:hover {
  background: #ff6b81;
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}
.empty-state .btn-primary i {
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.empty-state .btn-primary:hover i {
  transform: translateX(5px);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.schedule-header {
  display: flex;
  border-bottom: 2px solid #333;
  margin-bottom: 15px;
  padding-bottom: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}
.schedule-header::-webkit-scrollbar {
  height: 6px;
}
.schedule-header::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 10px;
}
.day-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 600;
  color: #ccc;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.day-tab.active {
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-item {
  display: flex;
  align-items: center;
  background: #2f3542;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #444;
  transition: all 0.3s ease;
  gap: 10px;
}

.schedule-item:hover {
  background: #3e4452;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.schedule-image {
  width: 100px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.schedule-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.schedule-title {
  font-size: 1rem;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
}
.schedule-time {
  font-size: 0.85rem;
  color: #aaa;
}
.season-box {
  display: flex;
  align-items: center;
  background: #2f3542;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #444;
  max-width: 250px;
}
.season-box i {
  color: var(--primary);
  margin-right: 8px;
}
.season-select {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 0 nine rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff4757%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 12px auto;
}
.season-select option {
  background: #1e272e;
  color: white;
  padding: 10px;
}
.season-box:hover .season-select {
  border-color: var(--primary);
}

@media (max-width: 600px) {
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .schedule-image {
    width: 100%;
    height: auto;
  }
  .season-box {
    max-width: 100%;
  }
}

.plyr__video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.plyr__video-wrapper iframe,
.plyr__video-wrapper video,
.plyr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.server-container {
  margin-bottom: 20px;
  padding: 15px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
}
.server-label {
  display: block;
  font-size: 0.95rem;
  color: #ccc;
  font-weight: bold;
  margin-bottom: 12px;
  border-bottom: 1px solid #444;
  padding-bottom: 8px;
}

.server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 5px;
}

.server-btn {
  background: #2f3542;
  color: #fff;
  border: 1px solid #444;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.server-btn:hover,
.server-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}
.server-list::-webkit-scrollbar {
  width: 6px;
}
.server-list::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}
.episode-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}
.episode-title {
  font-size: 1.2rem;
  font-weight: bold;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  color: white;
  margin-bottom: 0;
}
.sort-btn {
  background: transparent;
  border: 1px solid #777;
  color: #ccc;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.sort-btn i {
  transition: transform 0.3s;
}
.sort-btn:hover i {
  transform: rotate(180deg);
}
.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.action-buttons button,
.action-buttons a.btn-share {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 0 nine rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 8px;
  border: 1px solid #777;
  text-decoration: none;
}

.btn-fav {
  background: transparent;
  border: 1px solid #777;
  color: #ccc;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0 nine rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-fav:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-share.copy {
  background: transparent;
  color: #ccc;
  border: 1px solid #777;
}

.btn-share.copy:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

#season-dropdown {
  background-color: #2f3542;
  color: #fff;
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff4757%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;

  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#season-dropdown:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

#season-dropdown:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.3);
}
#season-dropdown option {
  background-color: #1e272e;
  color: #fff;
  padding: 10px;
}
#season-dropdown option:hover {
  background-color: #34495e;
}

.nav-vid-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-vid-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.nav-vid-btn i {
  transition: transform 0.3s;
}

.nav-vid-btn:hover i {
  transform: translateX(3px);
}

.video-header {
  padding: 20px 25px;
  background: #161b22;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.video-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  background: #161b22;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.server-container {
  margin-bottom: 20px;
  padding: 15px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
}

.server-label {
  display: block;
  font-size: 0.95rem;
  color: #ccc;
  font-weight: bold;
  margin-bottom: 12px;
  border-bottom: 1px solid #444;
  padding-bottom: 8px;
}

.server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 5px;
}

.server-btn {
  background: #2f3542;
  color: #fff;
  border: 1px solid #444;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.server-btn:hover,
.server-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

#btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: linear-gradient(45deg, #ff4757, #ff6b81);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

#btn-scroll-top i {
  pointer-events: none;
}
#btn-scroll-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#btn-scroll-top:hover {
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
  transform: translateY(0);
}
#btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 600px) {
  .video-wrapper iframe {
    height: 200px;
  }
}
@media (max-width: 900px) {
  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .episode-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .episode-title {
    font-size: 1rem;
  }
}

@media (max-width: 800px) {
  .detail-container {
    flex-direction: column;
    align-items: center;
  }
  .detail-info {
    width: 100%;
    text-align: center;
  }
  .detail-poster {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .detail-title {
    font-size: 1.5rem;
  }
  .detail-meta {
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .mobile-search {
    display: block;
  }
  .desktop-search {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;

    position: fixed;
    bottom: 20px;
    left: 5%;
    width: 90%;

    background: rgba(30, 39, 46, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    padding: 12px 0;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .mobile-bottom-nav div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: #ccc;
    cursor: pointer;
  }
  .mobile-bottom-nav div.active,
  .mobile-bottom-nav div:hover {
    color: var(--primary);
  }
  .mobile-bottom-nav div i {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }
  .content-container {
    padding-bottom: 70px;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-text,
.skeleton-title,
.skeleton-image {
  margin-bottom: 10px;
}
.skeleton-title {
  border-radius: 4px;
}
.skeleton-card {
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.skeleton-image {
  width: 100%;
  height: 180px;
  border-radius: 8px 8px 0 0;
}

.skeleton-text {
  height: 15px;
  width: 80%;
  border-radius: 4px;
  margin: 10px auto;
}

.episode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.episode-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

#episode-range {
  background-color: #2f3542;
  color: #fff;
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff4757%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;

  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#episode-range:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

#episode-range:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.3);
}

#episode-range option {
  background-color: #1e272e;
  color: #fff;
  padding: 10px;
}

.music-player-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mp-cover {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.mp-info {
  flex: 1;
}

.mp-info .mp-title {
  font-size: 1rem;
  font-weight: bold;
  color: white;
  margin-bottom: 4px;
}

.mp-info .mp-artist {
  font-size: 0.85rem;
  color: #aaa;
}

.mp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.mp-controls button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.mp-controls button:hover {
  color: var(--primary);
}

.mp-time {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #aaa;
  font-weight: 500;
  font-size: 0 eight five rem;
}

.mp-progress-container {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin-top: 10px;
  cursor: pointer;
  position: relative;
}

.mp-progress {
  width: 0%;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}

@media (max-width: 600px) {
  .music-player-container {
    width: 90%;
    left: 5%;
    bottom: 80px !important;
  }
  .music-player-container {
    bottom: 140px !important;
    left: 20px;
    width: calc(100% - 40px);
  }
}
.detail-section {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.nani-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #6c5ce7, #a29bfe);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.nani-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
}

.nani-btn i {
  font-size: 1.5rem;
}

@keyframes glow {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(255, 71, 87, 0.6),
      0 0 20px rgba(255, 71, 87, 0.4),
      0 0 30px rgba(255, 71, 87, 0.2);
  }
  50% {
    box-shadow:
      0 0 20px rgba(255, 71, 87, 1),
      0 0 30px rgba(255, 71, 87, 0.6),
      0 0 40px rgba(255, 71, 87, 0.4);
  }
}

.nani-btn-glow {
  animation: glow 3s infinite;
}
.video-episode-bar {
  padding: 15px 20px;
  background: #161b22;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}
.video-episode-bar::-webkit-scrollbar {
  height: 6px;
}
.video-episode-bar::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 10px;
}
.ep-num-btn {
  width: 50px;
  height: 45px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2f3542;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 0 nine rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ep-num-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

.ep-num-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

@media (max-width: 600px) {
  .video-episode-bar {
    padding: 10px 15px;
  }
  .ep-num-btn {
    width: 40px;
    height: 35px;
    font-size: 0 eight rem;
    margin-right: 8px;
  }
}

.card-meta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 0 eight five rem;
  flex-wrap: wrap;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0 eight rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.meta-badge.tv {
  background: rgba(255, 159, 67, 0.15);
  color: #ff9f43;
  border: 1px solid rgba(255, 159, 67, 0.2);
}

.meta-badge.movie {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.2);
}

.meta-badge.ova {
  background: rgba(130, 87, 229, 0.15);
  color: #8257e5;
  border: 1px solid rgba(130, 87, 229, 0.2);
}

.meta-badge.special {
  background: rgba(0, 184, 148, 0.15);
  color: #00b894;
  border: 1px solid rgba(0, 184, 148, 0.2);
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}
.nav-btn i {
  transition: transform 0.3s;
}
.nav-btn:hover i {
  transform: translateX(3px);
}
.genre-section {
  margin-top: 30px;
  text-align: center;
}

.genre-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.genre-tag {
  display: inline-block;
  background: #2f3542;
  color: #fff;
  padding: 6px 15px;
  margin: 5px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0 nine rem;
  transition: all 0.3s ease;
}

.genre-tag:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

@media (max-width: 600px) {
  .genre-section h2 {
    font-size: 1.2rem;
  }
  .genre-tag {
    font-size: 0 eight rem;
    padding: 5px 12px;
  }
}

.footer {
  margin-top: 40px;
  padding: 20px;
  background: #161b22;
  border-top: 1px solid #333;
  text-align: center;
  color: #777;
  font-size: 0 nine rem;
}
.footer a {
  color: var(--primary);
  text-decoration: none;
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
}

.empty-state .btn-primary {
  font-weight: bold;
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.empty-state .btn-primary:hover {
  background: #ff6b81;
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}

.empty-state .empty-icon {
  font-size: 5rem;
  color: #555;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@media (max-width: 600px) {
  .footer {
    font-size: 0 eight rem;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.schedule-header {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #333;
  margin-top: 20px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}

.schedule-header::-webkit-scrollbar {
  height: 6px;
}

.schedule-header::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 10px;
}

.day-tab {
  padding: 8px 15px;
  font-size: 0 nine rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  color: #ccc;
}

.day-tab:hover {
  color: var(--primary);
}

.day-tab.active {
  color: white;
  border-bottom: 2px solid var(--primary);
}

.schedule-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.schedule-item {
  display: flex;
  align-items: center;
  background: #2f3542;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.schedule-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}
.schedule-image {
  width: 80px;
  height: 45px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 15px;
  flex-shrink: 0;
}

.schedule-info {
  flex: 1;
}

.schedule-title {
  font-size: 1rem;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
}

.schedule-time {
  font-size: 0 nine rem;
  color: #ccc;
}

.season-box {
  display: flex;
  align-items: center;
  background: #2f3542;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #444;
  max-width: 250px;
}

.season-box label {
  color: #ccc;
  font-size: 0 nine rem;
  margin-right: 10px;
}

.hero-container {
  position: relative;
  width: 100%;

  height: 85vh;
  min-height: 600px;
  max-height: 1000px;

  overflow: hidden;
  margin-bottom: 30px;
  background: #000;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.hero-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--darker) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  z-index: 3;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.5);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 800px;
  background: linear-gradient(
    90deg,
    rgba(19, 24, 28, 0.9) 0%,
    transparent 100%
  );
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 20px;
}

.hero-btn {
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.hero-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--primary);
  border-radius: 30px;
  opacity: 0;
  z-index: -1;
  animation: ripple-effect 2s infinite;
}

@keyframes ripple-effect {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  100% {
    width: 160%;
    height: 180%;
    opacity: 0;
  }
}

.hero-btn:hover {
  transform: scale(1.05);
  background: white;
  color: var(--primary);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: 0.3s;
}
.hero-nav:hover {
  background: var(--primary);
}
.hero-nav.prev {
  left: 20px;
}
.hero-nav.next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.category-row {
  margin-bottom: 40px;
  position: relative;
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

.row-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
}

.see-all-btn {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;

  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease;
}

.see-all-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: width 0.4s ease;
}

.see-all-btn:hover {
  border-color: var(--primary);
  color: white !important;
}

.see-all-btn:hover::before {
  width: 100%;
}

.horizontal-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-x: auto;
  padding-top: 20px;
  padding-bottom: 40px;
  padding-left: 10px;
  padding-right: 10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll .skeleton-card {
  min-width: 160px;
  max-width: 160px;
  height: 280px;
  flex-shrink: 0;
  margin-right: 15px;
  background: #2f3542;
  border-radius: 8px;
  overflow: hidden;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}
.horizontal-scroll::-webkit-scrollbar-track {
  background: #111;
  border-radius: 4px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
.horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.horizontal-scroll .anime-card {
  min-width: 160px;
  max-width: 160px;
  flex-shrink: 0;
  height: auto;
}

.horizontal-scroll .anime-card img {
  height: 230px;
}

.loading-row {
  color: #666;
  font-style: italic;
  padding: 20px;
}

@media (max-width: 600px) {
  .horizontal-scroll .anime-card {
    min-width: 130px;
    max-width: 130px;
  }
  .horizontal-scroll .anime-card img {
    height: 190px;
  }
}

.grid-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

.back-home-btn {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.back-home-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 71, 87, 0.1);
}

@media (max-width: 600px) {
  .grid-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .back-home-btn {
    font-size: 0.8rem;
  }
}

.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 5;
}

.progress-bar {
  height: 100%;
  background: #ff0000;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

#row-ongoing {
  counter-reset: anime-rank;
}

#row-ongoing .anime-card {
  position: relative;
  counter-increment: anime-rank;
  overflow: visible;
}

#row-ongoing .anime-card:nth-child(-n + 10) {
  margin-left: 35px;
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.pro-footer {
  position: relative;
  margin-top: 100px;
  background: #0a0a0a;
  border: none;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 100% 100% 0 0 / 100px 100px 0 0;
  padding-top: 60px;
  overflow: visible;
}

.pro-footer::before {
  display: none;
}

.pro-footer::after {
  content: "";
  position: absolute;

  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: #0a0a0a;

  --mask:
    radial-gradient(36px at 50% 48px, #000 99%, #0000 101%) calc(50% - 40px)
      0/80px 100%,
    radial-gradient(36px at 50% -32px, #0000 99%, #000 101%) 50% 16px/80px 100%
      repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);

  animation: waveScroll 10s linear infinite;

  border-radius: 100% 100% 0 0 / 120px 120px 0 0;
  transform: translateY(-25px);
}

@keyframes waveScroll {
  100% {
    -webkit-mask-position:
      calc(50% - 40px - 1600px) 0,
      50% 16px;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 15px;
  border: none;
  padding: 0;
}

.footer-brand h2 span {
  color: var(--primary);
}

.footer-brand p {
  color: #888;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 300px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
  animation: floatIcon 3s ease-in-out infinite;
}

.social-icons a:nth-child(1) {
  animation-delay: 0s;
}
.social-icons a:nth-child(2) {
  animation-delay: 0.5s;
}
.social-icons a:nth-child(3) {
  animation-delay: 1s;
}
.social-icons a:nth-child(4) {
  animation-delay: 1.5s;
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links a {
  display: inline-block;
  color: #888;
  text-decoration: none;
  margin-bottom: 10px;
  position: relative;
  transition: 0.3s;
}

.footer-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 0;
}

.footer-links a:hover::after {
  width: 100%;
  left: 0;
}

.footer-bottom {
  background: #0a0a0a;
  text-align: center;
  padding: 30px 20px;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0px;
  width: 100%;
}

.footer-bottom p {
  font-size: 20px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .pro-footer {
    border-radius: 100% 100% 0 0 / 50px 50px 0 0;
    margin-top: 100px;
    padding-top: 40px;
  }

  .pro-footer::after {
    height: 60px;
    border-radius: 100% 100% 0 0 / 60px 60px 0 0;
    transform: translateY(-15px);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 15px;
  }

  .footer-brand p {
    margin: 0 auto 20px;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    padding: 20px 15px;
    margin-bottom: 80px;
  }
}

.nav-right-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-login {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-login.google {
  background: #db4437;
  border: 2px solid #db4437;
}
.btn-login.google:hover {
  background: white;
  color: #db4437;
  transform: translateY(-3px);
}

.btn-login.discord {
  background: #7289da;
  border: 2px solid #7289da;
}
.btn-login.discord:hover {
  background: white;
  color: #7289da;
  transform: translateY(-3px);
}

.user-profile-area {
  position: relative;
  cursor: pointer;
  z-index: 2000;
}

.avatar-wrapper {
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.avatar-wrapper:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes rgb-breath {
  0% {
    border-color: var(--primary);
    box-shadow: 0 0 5px var(--primary);
  }
  50% {
    border-color: #a29bfe;
    box-shadow: 0 0 10px #a29bfe;
  }
  100% {
    border-color: var(--primary);
    box-shadow: 0 0 5px var(--primary);
  }
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  animation: rgb-breath 4s infinite ease-in-out;
  padding: 2px;
}

.dropdown-arrow {
  font-size: 0.8rem;
  color: #ccc;
  transition: transform 0.3s;
}

.avatar-wrapper:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  width: 250px;
  background: #1e272e;
  background: rgba(30, 39, 46, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 9999;
  overflow: hidden;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid #333;
}

.dropdown-header strong {
  display: block;
  color: white;
  font-size: 1rem;
}

.dropdown-header span {
  font-size: 0.8rem;
  color: var(--primary);
}

.dropdown-body {
  padding: 5px 0;
}

.dropdown-body a {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccc;
  text-decoration: none;
  transition: 0.2s;
  font-size: 0.95rem;
}

.dropdown-body a:hover {
  background: #2f3542;
  color: var(--primary);
  padding-left: 25px;
}

.dropdown-body hr {
  border: 0;
  border-top: 1px solid #333;
  margin: 5px 0;
}

.logout-link:hover {
  color: #ff4757 !important;
  background: rgba(255, 71, 87, 0.1) !important;
}

@media (max-width: 600px) {
  .desktop-search {
    display: none !important;
  }
  .auth-btn-group {
    margin-right: 10px;
  }
}

@media (max-width: 600px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    gap: 0;
  }

  .logo {
    margin-right: auto;
    font-size: 1.4rem;
    order: 0;
  }

  .mobile-icons {
    display: flex;
    align-items: center;
    order: 1;
    margin-right: 15px;
  }

  .nav-btn-mobile {
    font-size: 1.2rem;
    padding: 5px;
    color: white;
  }

  .nav-right-section {
    display: flex;
    align-items: center;
    order: 2;
    margin-right: 0;
  }

  .desktop-search,
  .desktop-only,
  .nav-links {
    display: none !important;
  }

  .user-profile-area {
    margin-left: 0;
  }
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%) scale(1.3);
  filter: brightness(0.6);
}

.hero-slide.has-video .hero-video-wrapper {
  opacity: 1;
}

.hero-slide.has-video .hero-bg {
  opacity: 0;
}

.eps-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#eps-search-input {
  background: #0a0a0a;
  border: 1px solid #333;
  color: #fff;
  padding: 6px 10px 6px 30px;
  border-radius: 6px;
  width: 100px;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s ease;
}

#eps-search-input:focus {
  border-color: var(--primary);
  width: 120px;
  box-shadow: 0 0 5px rgba(255, 71, 87, 0.3);
}

.eps-search-wrapper i {
  position: absolute;
  left: 10px;
  font-size: 0.7rem;
  color: #666;
  pointer-events: none;
}

#eps-search-input::-webkit-inner-spin-button,
#eps-search-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.avatar-upload-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px auto;
}

#settings-avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fff;
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
}

.avatar-edit-btn:hover {
  background: var(--primary);
  color: #fff;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
  font-size: 0.9rem;
  font-weight: bold;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: 0.3s;
}

.input-with-icon input:focus {
  border-color: var(--primary);
  background: #000;
}
.quest-header {
  background: linear-gradient(135deg, #1e272e 0%, #111 100%);
  padding: 25px;
  border-bottom: 1px solid #333;
  text-align: center;
}

.quest-header h3 {
  color: #f1c40f;
  margin-bottom: 5px;
  font-size: 1.4rem;
}
.quest-header p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.user-level-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-bar-bg {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f1c40f, #f39c12);
  transition: width 0.5s ease;
}

.quest-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #0f0f0f;
  min-height: 300px;
}

.quest-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #1a1a1a;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #333;
  transition: 0.2s;
}

.quest-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 71, 87, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.quest-info {
  flex: 1;
}
.quest-title {
  font-weight: bold;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 5px;
}
.quest-reward {
  font-size: 0.75rem;
  color: #f1c40f;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-claim {
  background: #27ae60;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 0 #219150;
  transition: 0.1s;
}

.btn-claim:active {
  transform: translateY(4px);
  box-shadow: none;
}
.btn-claim:disabled {
  background: #333;
  color: #555;
  box-shadow: none;
  cursor: default;
  transform: none;
}
.btn-claim.completed {
  background: transparent;
  color: #27ae60;
  border: 1px solid #27ae60;
  box-shadow: none;
}

.quest-progress-bg {
  width: 100%;
  height: 4px;
  background: #333;
  margin-top: 8px;
  border-radius: 2px;
}
.quest-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s;
}

.greeting-container {
  margin-bottom: 30px;
  animation: fadeInGreeting 1s ease-out;
}

.greeting-container h2 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 5px;
  border: none;
  padding: 0;
}

.greeting-container h2 span {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.greeting-sub {
  color: #888;
  font-size: 1rem;
  font-weight: 500;
}

@keyframes fadeInGreeting {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .greeting-container h2 {
    font-size: 1.5rem;
  }
  .greeting-sub {
    font-size: 0.85rem;
  }
}

.notif-wrapper {
  display: flex;
  align-items: center;
}

.btn-notif {
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
  padding: 5px;
}

.btn-notif:hover {
  color: #fff;
  transform: scale(1.1);
}

.notif-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #ff4757;
  border-radius: 50%;
  border: 2px solid #1e272e;
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 71, 87, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

.notif-dropdown {
  position: absolute;
  top: 50px;
  right: -60px;
  width: 300px;
  background: #1e272e;
  border: 1px solid #444;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 2001;
  overflow: hidden;
}

.notif-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notif-header {
  background: #161b22;
  padding: 12px 15px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #fff;
}

.notif-body {
  max-height: 300px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid #2f3542;
  cursor: pointer;
  transition: background 0.2s;
}

.notif-item:hover {
  background: #2f3542;
}

.notif-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.notif-info {
  flex: 1;
}

.notif-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 2px;
  display: block;
}

.notif-desc {
  font-size: 0.75rem;
  color: var(--primary);
}

.notif-body::-webkit-scrollbar {
  width: 5px;
}
.notif-body::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 5px;
}

@media (max-width: 600px) {
  .notif-dropdown {
    right: -100px;
    width: 280px;
  }
}

.forum-header {
  padding: 20px 0;
  text-align: center;
}
.forum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding-bottom: 50px;
}
.forum-card {
  background: #1e272e;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.forum-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.post-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.forum-actions {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #333;
}
.forum-actions button {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: bold;
}
.forum-actions button:hover {
  text-decoration: underline;
}

button:active,
a.btn-primary:active,
.hero-btn:active,
.nav-btn:active,
.episode-btn:active,
.genre-tag:active,
.server-btn:active {
  transform: scale(0.95) !important;
  transition: transform 0.1s ease;
}

h2,
.row-header h3,
#grid-title,
.modal-content h3 {
  background: linear-gradient(90deg, #fff 0%, #ff4757 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));

  padding-right: 5px;
  display: inline-block;
}

::selection {
  background-color: var(--primary);
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

::-moz-selection {
  background-color: var(--primary);
  color: white;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary) !important;

  box-shadow: 0 0 15px rgba(255, 71, 87, 0.3) !important;
  outline: none;
  background-color: #050505 !important;
  transition: all 0.3s ease;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

button:hover i,
a:hover i,
.social-icons a:hover i,
.nav-btn:hover i {
  animation: wiggle 0.5s ease-in-out;
}

#cw-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 20px;

  grid-template-columns: none !important;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#cw-grid .anime-card {
  min-width: 160px;
  max-width: 160px;
  width: 160px;
  flex-shrink: 0;
  margin-bottom: 0;
}

#cw-grid .anime-card img {
  height: 220px !important;
  object-fit: cover;

  filter: blur(0) !important;
  opacity: 0.8 !important;
  transform: scale(1) !important;
}

#cw-grid .anime-card:hover img {
  opacity: 1 !important;
}

@media (max-width: 600px) {
  #cw-grid .anime-card {
    min-width: 140px;
    max-width: 140px;
    width: 140px;
  }

  #cw-grid .anime-card img {
    height: 200px !important;
  }
}

.scroll-wrapper {
  position: relative;
  width: 100%;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50% 20px);
  z-index: 20;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
}

.scroll-wrapper:hover .scroll-btn {
  opacity: 1;
  pointer-events: auto;
}

.scroll-btn:hover {
  background: var(--primary);
  transform: translateY(-50% -20px) scale(1.1);
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

.scroll-btn.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .scroll-btn {
    display: none !important;
  }
}

.hero-slide .hero-meta,
.hero-slide .hero-title,
.hero-slide .hero-btn {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-slide.active .hero-meta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.hero-slide.active .hero-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.horizontal-scroll,
#cw-grid,
.video-episode-bar {
  display: flex;
  gap: 15px;
  overflow-x: auto;

  scroll-snap-type: x mandatory;
  padding-left: 20px;
  padding-right: 20px;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar,
#cw-grid::-webkit-scrollbar,
.video-episode-bar::-webkit-scrollbar {
  display: none;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

.logo:hover {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: var(--primary);
}

.logo:hover span {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

.social-icons a[title*="Facebook"]:hover {
  background: #1877f2 !important;
  box-shadow: 0 0 15px #1877f2;
  transform: translateY(-5px) rotate(10deg);
}

.social-icons a[title*="Twitter"]:hover {
  background: #1da1f2 !important;
  box-shadow: 0 0 15px #1da1f2;
  transform: translateY(-5px) rotate(-10deg);
}

.social-icons a[title*="Instagram"]:hover {
  background: #e1306c !important;
  box-shadow: 0 0 15px #e1306c;
  transform: translateY(-5px) scale(1.1);
}

.social-icons a[title*="Discord"]:hover {
  background: #5865f2 !important;
  box-shadow: 0 0 20px #5865f2;
  transform: translateY(-5px) rotate(15deg);
}

h2,
.row-header h3,
#grid-title,
.modal-content h3 {
  background: linear-gradient(to right, #fff, var(--primary), #a29bfe, #fff);
  background-size: 300% auto;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  display: inline-block;
  font-weight: 900;

  animation: textShine 5s linear infinite;

  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes textShine {
  to {
    background-position: 300% center;
  }
}

[title] {
  position: relative;
}

[title]:hover::after {
  content: attr(title);

  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;

  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 10000;

  opacity: 0;
  animation: tooltipFade 0.3s ease forwards;
  animation-delay: 0.5s;
}

@keyframes tooltipFade {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
  }
}

#row-ongoing .anime-card:nth-child(1)::before {
  -webkit-text-stroke: 2px #ffd700 !important;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
  color: rgba(255, 215, 0, 0.1) !important;
}

#row-ongoing .anime-card:nth-child(2)::before {
  -webkit-text-stroke: 2px #c0c0c0 !important;
  text-shadow: 0 0 15px rgba(192, 192, 192, 0.6) !important;
  color: rgba(192, 192, 192, 0.1) !important;
}

#row-ongoing .anime-card:nth-child(3)::before {
  -webkit-text-stroke: 2px #cd7f32 !important;
  text-shadow: 0 0 15px rgba(205, 127, 50, 0.6) !important;
  color: rgba(205, 127, 50, 0.1) !important;
}

.anime-grid:hover .anime-card:not(:hover),
.horizontal-scroll:hover .anime-card:not(:hover) {
  opacity: 0.4;
  filter: grayscale(80%) blur(1px);
  transform: scale(0.98);
  transition: all 0.4s ease;
}

.anime-card:hover {
  opacity: 1 !important;
  filter: grayscale(0) blur(0) !important;
  transform: scale(1.1) !important;
  z-index: 100;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.hero-slide .hero-bg {
  transform: scale(1);
  transition: transform 10s linear;
}

.hero-slide.active .hero-bg {
  transform: scale(1.2);
}

.anime-card {
  opacity: 0;
  animation: fadeUpCard 0.6s ease-out forwards;
}

@keyframes fadeUpCard {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.anime-card:nth-child(1) {
  animation-delay: 0.1s;
}
.anime-card:nth-child(2) {
  animation-delay: 0.15s;
}
.anime-card:nth-child(3) {
  animation-delay: 0.2s;
}
.anime-card:nth-child(4) {
  animation-delay: 0.25s;
}
.anime-card:nth-child(5) {
  animation-delay: 0.3s;
}
.anime-card:nth-child(6) {
  animation-delay: 0.35s;
}
.anime-card:nth-child(7) {
  animation-delay: 0.4s;
}
.anime-card:nth-child(8) {
  animation-delay: 0.45s;
}
.anime-card:nth-child(9) {
  animation-delay: 0.5s;
}
.anime-card:nth-child(10) {
  animation-delay: 0.55s;
}
.footer {
  background: #0a0a0a;
  padding: 40px 20px 20px;
  color: #ccc;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

@keyframes levitate {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

#detail-image {
  animation: levitate 4s ease-in-out infinite;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#detail-image:hover {
  animation-play-state: paused;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: radial-gradient(white 1px, transparent 1px);
  background-size: 50px 50px;

  opacity: 0.1;
  z-index: -2;
  pointer-events: none;

  animation: cosmic-dust 100s linear infinite;
}

@keyframes cosmic-dust {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(-500px) translateX(-200px);
  }
}

.overlay-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.overlay-info::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2ecc71;
  box-shadow: 0 0 5px #2ecc71;
  animation: blinkStatus 1.5s infinite ease-in-out;
}

@keyframes blinkStatus {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .hero-container {
    height: 60vh;
    min-height: 450px;
    margin-bottom: 20px;
  }

  .hero-slide {
    align-items: center !important;
    padding-bottom: 0 !important;
  }

  .hero-bg {
    filter: brightness(0.4) !important;
    object-position: center top;
  }

  .hero-content {
    background: rgba(0, 0, 0, 0.2) !important;
    justify-content: center !important;
    padding: 0 30px !important;
    padding-top: 60px !important;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
    width: 100%;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }

  .hero-meta {
    justify-content: center;
    margin-bottom: 20px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 400px) {
  .hero-content {
    padding-bottom: 20px !important;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .anime-grid {
    grid-template-columns: 1fr;
  }
}
.btn-saweria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: #faae2b;
  color: #1e272e;

  margin-top: 15px;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;

  box-shadow: 0 4px 15px rgba(250, 174, 43, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
}

.btn-saweria img {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.btn-saweria:hover {
  background: #fff;
  color: #faae2b;
  border-color: #faae2b;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(250, 174, 43, 0.6);
}

.btn-saweria:hover img {
  animation: shakeIcon 0.5s ease-in-out infinite;
}

@keyframes shakeIcon {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

.btn-saweria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: #faae2b;
  color: #1e272e;

  margin-top: 15px;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;

  box-shadow: 0 4px 15px rgba(250, 174, 43, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
}

.btn-saweria img {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.btn-saweria:hover img {
  animation: shakeIcon 0.5s ease-in-out infinite;
}

@keyframes shakeIcon {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

.comments-section {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#comments-list div {
  background: #2f3542 !important;
  border: none !important;
  padding: 12px 15px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#comments-list div strong {
  color: var(--primary) !important;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

#comment-input {
  background: #111 !important;
  border: 1px solid #444 !important;
  color: #eee !important;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

#comment-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.2) !important;
}

.modal-content,
.genre-content,
.schedule-content,
.detail-layout,
#settings-modal .modal-content {
  background-image: none !important;

  background: #1e272e !important;
  background: linear-gradient(145deg, #1e272e 0%, #161b22 100%) !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

.modal-content h3,
.modal-content p,
.modal-content label {
  text-shadow: none !important;
}

#view-post-modal .modal-content {
  max-width: 700px;
  padding: 0;
  overflow: hidden;
}

.view-post-header {
  padding: 25px;
  background: linear-gradient(to bottom, rgba(255, 71, 87, 0.1), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#view-post-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: block;
  line-height: 1.3;
}

.post-meta-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}

#view-post-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.post-info-text {
  display: flex;
  flex-direction: column;
}

#view-post-author {
  font-weight: bold;
  color: #fff;
  font-size: 0.95rem;
}

#view-post-date {
  font-size: 0.75rem;
  color: #888;
}

.view-post-body {
  padding: 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #ddd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 300px;
  overflow-y: auto;
}

.comments-container {
  padding: 25px;
  background: rgba(0, 0, 0, 0.2);
}

.comments-container h4 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

#comments-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.comment-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.comment-user-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.comment-user-info strong {
  font-size: 0.85rem;
  color: var(--primary);
}

.comment-user-info span {
  font-size: 0.7rem;
  color: #666;
}

.comment-text {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

.modal-content {
  background: #1a1a1a !important;
  border-radius: 20px !important;
  padding: 20px !important;
  max-width: 500px !important;
  width: 90% !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.comment-form {
  display: flex !important;
  gap: 10px !important;
  margin-top: 15px !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 12px !important;
  align-items: flex-end !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#comment-input {
  flex: 1 !important;
  min-width: 0 !important;
  height: 45px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid #333 !important;
  padding: 0 15px !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.btn-send-comment {
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.2) !important;
  transition: transform 0.2s ease !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.btn-send-comment:hover {
  transform: scale(1.05) !important;
}

.btn-send-comment i {
  font-size: 1.1rem !important;
  margin: 0 !important;
}

#detail-modal .modal-content,
.detail-layout {
  max-width: 1000px !important; /* Paksa agar lebar maksimal 1000px */
  width: 95% !important;
  padding: 35px !important;
  display: flex !important;
  flex-direction: row !important; /* Bersebelahan kiri dan kanan di laptop */
  align-items: flex-start !important;
}

/* Pastikan di HP tetap rapi menurun ke bawah */
@media (max-width: 768px) {
  #detail-modal .modal-content,
  .detail-layout {
    flex-direction: column !important;
    padding: 20px !important;
    align-items: center !important;
  }
}
