* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Remove blue tap highlight on mobile */
}

:root {
  --primary-color: #e50914;
  --secondary-color: #fff;
  --tertiary-color: #111;
  --accent-color: #e50914;
}

body {
  background-color: var(--tertiary-color);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--tertiary-color);
  font-family: "Inter", sans-serif;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.movie-info h3,
.modal-title-enhanced {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.5px;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-button {
  display: none;
}

::-webkit-scrollbar-track {
  background: var(--tertiary-color);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), #b20710);
  border-radius: 5px;
  border: 2px solid var(--tertiary-color); /* Creates floating effect */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff1744, var(--primary-color));
}

/* Header */
.header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--tertiary-color);
  box-shadow: 0 2px 10px rgba(0, 3, 3, 0.5);
  position: relative;
}

.search {
  position: relative;
  height: 40px;
  width: 40px;
}

.search input {
  background-color: #fff;
  border: 0;
  font-size: 18px;
  padding: 10px;
  height: 40px;
  width: 40px;
  transition: width 0.3s ease;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.search.active input {
  width: 700px;
  opacity: 1;
  pointer-events: all;
  padding-left: 15px;
  padding-right: 40px;
  border: none;
  border-radius: 50px;
  background: #fff;
  box-shadow: inset 2px 2px 5px #babecc, inset -5px -5px 10px #ffffff,
    5px 5px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(229, 9, 20, 0.6);
  color: #333;
  animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
  from {
    box-shadow: inset 2px 2px 5px #babecc, inset -5px -5px 10px #ffffff,
      5px 5px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(229, 9, 20, 0.6);
  }
  to {
    box-shadow: inset 2px 2px 5px #babecc, inset -5px -5px 10px #ffffff,
      5px 5px 10px rgba(0, 0, 0, 0.2), 0 0 25px rgba(229, 9, 20, 1);
  }
}

.icon-animate {
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-in {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.search .btn {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  position: absolute;
  top: 0;
  right: 0;
  height: 40px;
  width: 40px;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.search.active .btn {
  transform: translateX(0);
  color: var(--primary-color); /* Change icon color when input is white */
}

.search .btn:hover {
  color: var(--primary-color);
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
  transform: scale(1.2);
}

.search .btn:focus,
.search input:focus {
  outline: none;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--secondary-color);
  margin-right: auto;
}

.logo img {
  width: 12rem;
  object-fit: cover;
  background: linear-gradient(135deg, #fffbfb 0%, #fcf1f1 100%);
  padding: 0 15px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(255, 255, 255, 0.3);
}

.filter-btn {
  font-size: 1.4rem !important;
  padding-top: 0.3rem;
}

.profile {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  cursor: pointer;
}

.profile img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  transition: transform 0.3s ease-in-out;
}

.profile img:hover {
  transform: scale(1.1);
}

.header-spacer {
  flex: 1;
}

/* Bottom Navigation */
/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #888;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 4px;
  position: relative;
  padding: 5px;
}

.nav-item i {
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-item:hover {
  color: #fff;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item.active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.5));
}

.nav-item.active span {
  color: #fff;
}

/* Movie Grid */
#main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 2rem 2rem 2rem;
  padding-bottom: 100px; /* Space for bottom nav */
}

/* Hero Section */
.hero {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  position: relative;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    #111 10%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: 600px;
  z-index: 2;
  color: #fff;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1;
}

.hero-overview {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.hero-btn.play {
  background-color: #fff;
  color: #000;
}

.hero-btn.play:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.hero-btn.info {
  background-color: rgba(109, 109, 110, 0.7);
  color: #fff;
}

.hero-btn.info:hover {
  background-color: rgba(109, 109, 110, 0.4);
}

/* Hero Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-content {
    left: 20px;
    bottom: 20px;
    right: 20px;
  }
}

.movie {
  width: 200px;
  margin: 1rem;
  background-color: var(--tertiary-color);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4); /* Premium Red glow */
  border-color: var(--primary-color);
  z-index: 10;
}

.preview-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Cover the image */
  display: none;
  background: #000;
  z-index: 5;
}

.preview-container iframe {
  width: 100%;
  height: 100%; /* Match container height */
  object-fit: cover;
  pointer-events: none; /* Allow clicks to pass through to the card */
}

.movie img {
  width: 100%;
}

/* Movie Poster Container for Trailer Overlay */
.movie-poster-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.movie-poster {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  height: 300px; /* Ensure consistent height */
  object-fit: cover;
}

.movie:hover .movie-poster {
  transform: scale(1.1);
}

.trailer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 5;
}

.trailer-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.poster-action-btn.remove-watchlist-btn {
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.5);
  color: #fff;
}

.poster-action-btn.remove-watchlist-btn:hover {
  background: rgba(229, 9, 20, 0.8);
}

.poster-action-btn.remove-watchlist-btn svg {
  width: 20px;
  height: 20px;
}

.poster-action-btn.remove-watchlist-btn .trash-lid {
  transform-origin: 12px 6px;
  transition: transform 0.3s ease;
}

/* Hover Animation: Shake while tilted */
.poster-action-btn.remove-watchlist-btn:hover .trash-lid {
  animation: lid-shake 0.5s ease-in-out infinite;
}

@keyframes lid-shake {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

/* Click Animation: Open and Close */
.poster-action-btn.remove-watchlist-btn.deleting .trash-lid {
  animation: open-lid 0.5s ease forwards;
}

@keyframes open-lid {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-45deg);
  }
  40% {
    transform: rotate(-60deg);
  }
  60% {
    transform: rotate(-60deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Poster Action Buttons (Favorite & Download) */
.poster-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie:hover .poster-actions {
  opacity: 1;
  transform: translateX(0);
}

/* Play Button Overlay */
.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
  pointer-events: auto; /* Allow interaction for hover effect */
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-button-overlay:hover {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.play-button-overlay i {
  color: var(--primary-color);
  font-size: 60px;
  transition: all 0.3s ease;
}

.play-button-overlay:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.6));
  animation: play-pulse 1.5s infinite;
}

@keyframes play-pulse {
  0% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1.2);
  }
}

.movie:hover .play-button-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-action-btn {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  font-size: 18px;
}

.poster-action-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
}

.poster-action-btn i {
  pointer-events: none;
}

.favorite-btn:hover {
  animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.25);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.4);
  }
}

/* Favorite Icon on Movie Card */
.favorite-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.movie:hover .favorite-icon {
  opacity: 1;
}

.favorite-icon:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.favorite-icon:active {
  transform: scale(0.95);
}

.favorite-icon i {
  color: #fff;
  font-size: 20px;
  transition: all 0.3s;
}

.favorite-icon.added {
  background: transparent;
  border-color: var(--accent-color);
}

.favorite-icon.added i {
  color: var(--accent-color);
}

.movie-info {
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  letter-spacing: 0.5px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.movie-info h3 {
  margin-top: 0;
}

.movie-info span {
  background-color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: bold;
}

.movie-info span.green {
  color: lightgreen;
}

.movie-info span.orange {
  color: orange;
}

.movie-info span.red {
  color: red;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  background-color: #111;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
  color: #fff;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(229, 9, 20, 0.2);
  border: 2px solid rgba(229, 9, 20, 0.4);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.5);
  outline: none;
}

.modal-poster {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.modal-overview {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Enhanced Modal Styles */
.modal-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-poster-container {
  flex-shrink: 0;
  width: 150px;
}

.modal-poster {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal-info {
  flex: 1;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.modal-meta {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 15px;
}

.modal-meta strong {
  color: #fff;
}

.server-list {
  background: #222;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.server-list p {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 10px;
}

.servers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.server-btn {
  background: #333;
  border: none;
  color: #fff;
  padding: 8px 15px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s;
}

.server-btn:hover,
.server-btn.active {
  background: var(--primary-color);
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 10px;
  margin-top: 5px;
  border-radius: 0 0 5px 5px;
}

.action-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.action-btn:hover {
  color: var(--primary-color);
}

.social-share {
  display: flex;
  gap: 5px;
  margin: 20px 0;
  justify-content: center;
}

.social-btn {
  width: 40px;
  height: 40px;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 3px;
}

.social-btn.fb {
  background: #3b5998;
}
.social-btn.x {
  background: #000;
  border: 1px solid #333;
}
.social-btn.wa {
  background: #25d366;
}
.social-btn.msg {
  background: #0084ff;
}
.social-btn.reddit {
  background: #ff4500;
}
.social-btn.telegram {
  background: #0088cc;
}

.recommendations {
  margin-top: 30px;
}

.recommendations h3 {
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
  margin-bottom: 15px;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.rec-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.rec-card:hover {
  transform: scale(1.05);
}

.rec-card img {
  width: 100%;
  border-radius: 3px;
}

.rec-card p {
  font-size: 0.8rem;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Filter Button */
.filter-btn {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  margin-left: 15px;
  transition: transform 0.3s, color 0.3s;
}

.filter-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Filter Panel */
.filter-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

.filter-panel.active {
  right: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.filter-header h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

.close-filter {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-filter:hover {
  color: var(--primary-color);
}

.filter-content {
  padding: 20px;
}

.filter-section {
  margin-bottom: 25px;
}

.filter-section h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
}

.filter-options {
  display: flex;
  gap: 10px;
}

.filter-option {
  flex: 1;
  padding: 10px;
  background: #222;
  border: 2px solid #333;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-option:hover {
  border-color: var(--primary-color);
}

.filter-option.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.filter-select {
  width: 100%;
  padding: 10px;
  background: #222;
  border: 2px solid #333;
  color: #fff;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filter-select option {
  background: #222;
  color: #fff;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.apply-filter,
.reset-filter {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.apply-filter {
  background: var(--primary-color);
  color: #fff;
}

.apply-filter:hover {
  background: #c70812;
  transform: scale(1.02);
}

.reset-filter {
  background: #333;
  color: #fff;
}

.reset-filter:hover {
  background: #444;
}

/* Seasons and Episodes */
.seasons-section {
  margin-top: 30px;
}

.seasons-section h3 {
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
  margin-bottom: 15px;
}

.seasons-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.season-item {
  display: flex;
  gap: 10px;
  background: #222;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.season-item:hover {
  background: #333;
  transform: scale(1.02);
}

.season-item img {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
}

.season-info h4 {
  font-size: 1rem;
  margin: 0 0 5px 0;
  color: #fff;
}

.season-info p {
  font-size: 0.85rem;
  margin: 0;
  color: #aaa;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.episode-item {
  background: #222;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.episode-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.episode-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.episode-info {
  padding: 10px;
}

.episode-info h5 {
  font-size: 0.9rem;
  margin: 0 0 5px 0;
  color: #fff;
}

.episode-info p {
  font-size: 0.8rem;
  margin: 0;
  color: #aaa;
  line-height: 1.4;
}

/* ============================================
   AUTHENTICATION & PROFILE MODALS
   ============================================ */

/* Auth Modal Specific Styles */
.auth-modal-content {
  max-width: 450px;
  text-align: center;
  padding: 40px;
}

.auth-container h2 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.auth-container p {
  color: #aaa;
  margin-bottom: 30px;
}

.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.google-signin-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Profile Modal Specific Styles */
.profile-modal-content {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.profile-container {
  padding: 20px;
}

/* Top Sections (My Profile & History) */
.top-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--accent-color);
}

.profile-section,
.history-section {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #333;
}

.profile-section h3,
.history-section h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* Profile Details */
.profile-details {
  display: flex;
  gap: 20px;
}

.profile-photo-container {
  position: relative;
  flex-shrink: 0;
}

.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.edit-photo-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent-color);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.edit-photo-btn:hover {
  background: #c00;
  transform: scale(1.1);
}

.edit-photo-btn i {
  color: #fff;
  font-size: 14px;
}

.profile-info {
  flex: 1;
}

.profile-field {
  margin-bottom: 15px;
}

.profile-field label {
  display: block;
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.profile-field input {
  width: 100%;
  padding: 10px;
  background: #222;
  border: 1px solid #444;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
}

.profile-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.editable-field {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}

.editable-field input {
  flex: 1;
  padding: 12px 16px;
  background: linear-gradient(
    135deg,
    rgba(34, 34, 34, 0.9) 0%,
    rgba(20, 20, 20, 0.95) 100%
  );
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.editable-field input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.95) 0%,
    rgba(25, 25, 25, 1) 100%
  );
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.4), 0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.editable-field input:hover:not(:focus) {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(229, 9, 20, 0.2);
}

.editable-field input[readonly] {
  cursor: default;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.8) 0%,
    rgba(18, 18, 18, 0.9) 100%
  );
}

.editable-field input:not([readonly]) {
  cursor: text;
  border-color: rgba(229, 9, 20, 0.6);
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.95) 0%,
    rgba(25, 25, 25, 1) 100%
  );
}

.edit-btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, #b71c1c 100%);
  border: 2px solid var(--accent-color);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
}

.edit-btn:hover {
  background: linear-gradient(135deg, #ff1744 0%, #d32f2f 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.edit-btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 3px 10px rgba(229, 9, 20, 0.4);
}

.edit-btn i {
  color: #fff;
  font-size: 16px;
}

.profile-action-btn {
  width: 100%;
  padding: 10px;
  background: var(--accent-color);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
}

.profile-action-btn:hover {
  background: #c00;
}

.profile-action-btn.danger {
  background: #666;
}

.profile-action-btn.danger:hover {
  background: #d32f2f;
}

/* History Section */
.history-list {
  max-height: 300px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  gap: 15px;
  padding: 10px;
  background: #222;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.history-item:hover {
  background: #333;
  transform: translateX(5px);
}

.history-item img {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
}

.history-info h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.history-info p {
  color: #aaa;
  font-size: 0.85rem;
}

.empty-state {
  color: #666;
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
}

/* Contact Section */
.contact-section {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #333;
}

.contact-section h3 {
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #222;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.contact-link:hover {
  background: #333;
  transform: translateX(5px);
}

.contact-link.whatsapp:hover {
  background: #25d366;
}

.contact-link.email:hover {
  background: #d3c425;
}

.contact-link i {
  font-size: 20px;
}

/* ============================================
   FULL-PAGE SECTIONS
   ============================================ */

.full-page-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0f0f0f;
  z-index: 999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.full-page-section .header {
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
}

.section-header {
  padding: 20px;
  text-align: center;
}

.section-header h2 {
  color: var(--accent-color);
  font-size: 2rem;
  margin: 0;
}

.section-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 140px);
  height: calc(100vh - 140px);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--tertiary-color);
}

.section-content::-webkit-scrollbar {
  width: 10px;
}

.section-content::-webkit-scrollbar-track {
  background: var(--tertiary-color);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.section-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), #b20710);
  border-radius: 5px;
  border: 2px solid var(--tertiary-color);
}

.section-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff1744, var(--primary-color));
}

.section-content::-webkit-scrollbar-button {
  display: none;
}

.section-title {
  color: #fff;
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 30px;
}

/* Watchlist Section */
.movies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  padding-bottom: 3rem;
}

.empty-watchlist {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.05) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  border-radius: 20px;
  margin: 20px;
  border: 2px dashed rgba(229, 9, 20, 0.3);
}

.empty-watchlist i {
  color: var(--accent-color);
  opacity: 0.5;
}

.empty-watchlist h3 {
  color: #fff;
  margin: 20px 0 10px;
  font-size: 1.5rem;
}

.empty-watchlist p {
  color: #aaa;
  font-size: 1.1rem;
}

.watchlist-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.watchlist-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4);
}

.watchlist-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.2) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  pointer-events: none;
}

.watchlist-item:hover::before {
  opacity: 1;
}

.watchlist-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
  z-index: 2;
}

.watchlist-item:hover .watchlist-overlay {
  opacity: 1;
}

.watchlist-overlay i {
  font-size: 64px;
  color: var(--accent-color);
  filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.8));
}

.remove-watchlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.remove-watchlist-btn:hover {
  background: var(--accent-color);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.8);
}

.remove-watchlist-btn i {
  color: #fff;
  font-size: 20px;
}

/* Auth Section */
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
}

.auth-container {
  padding: 20px;
  width: 100%;
  max-width: 500px; /* Assuming a max-width for auth form */
  text-align: center;
}

/* Profile Section - Super/Sub Buttons */
.profile-content {
  height: calc(100vh - 140px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--tertiary-color);
}

.profile-content::-webkit-scrollbar {
  width: 10px;
}

.profile-content::-webkit-scrollbar-track {
  background: var(--tertiary-color);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), #b20710);
  border-radius: 5px;
  border: 2px solid var(--tertiary-color);
}

.profile-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff1744, var(--primary-color));
}

.profile-content::-webkit-scrollbar-button {
  display: none;
}

.profile-content .profile-container {
  padding: 20px 20px 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100%;
}

.super-buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.super-button {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid var(--accent-color);
  border-radius: 20px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.super-button:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.8);
}

.super-button h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.profile-super-box {
  cursor: default;
}

.profile-details-compact {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.profile-photo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-info-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-field {
  padding: 12px 16px !important;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.7) 0%,
    rgba(18, 18, 18, 0.8) 100%
  ) !important;
  border: 2px solid rgba(229, 9, 20, 0.2) !important;
  border-radius: 10px !important;
  color: #aaa !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  cursor: not-allowed !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  opacity: 0.8 !important;
}

.email-field:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.delete-account-btn {
  padding: 10px;
  background: linear-gradient(135deg, #666 0%, #555 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.delete-account-btn:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.4);
}

.history-super-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.1) 0%,
    rgba(26, 26, 26, 0.95) 100%
  );
}

.history-super-box:hover {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.2) 0%,
    rgba(26, 26, 26, 0.95) 100%
  );
}

.history-super-box p {
  color: #aaa;
  margin-bottom: 15px;
  font-size: 1rem;
}

.history-preview-icons i {
  font-size: 48px;
  color: var(--accent-color);
  filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.6));
}

.sub-buttons-container {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.sub-button {
  flex: 1 1 auto;
  min-width: 280px;
  max-width: 550px;
  background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  align-self: flex-start;
}

.sub-button:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.2);
}

.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.sub-header h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0;
}

.sub-header i {
  color: var(--accent-color);
  font-size: 20px;
  transition: transform 0.3s;
}

.sub-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(229, 9, 20, 0.2);
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  transition: all 0.3s;
  gap: 20px;
}

.setting-row:hover {
  background: rgba(229, 9, 20, 0.1);
  transform: translateX(5px);
}

.setting-row label {
  color: #ddd;
  font-size: 0.95rem;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 110px;
}

.setting-row select {
  padding: 8px 12px;
  background: #222;
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 140px;
  flex: 1;
  max-width: 250px;
  transition: all 0.3s;
}

.setting-row select:hover,
.setting-row select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
  outline: none;
}

.logout-btn-standalone {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 30%;
  min-width: 200px;
  max-width: 400px;
  padding: 18px;
  margin: 20px auto 40px auto;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.logout-btn-standalone:hover {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(211, 47, 47, 0.5);
}

.logout-btn-standalone i {
  font-size: 24px;
}

.logout-btn-standalone span {
  font-size: 1.2rem;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
  font-family: "Inter", sans-serif;
}

.select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.select-trigger:hover {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(0, 0, 0, 0.7);
}

.custom-select.open .select-trigger {
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.8);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select-trigger i {
  transition: transform 0.3s ease;
}

.custom-select.open .select-trigger i {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  border: 2px solid var(--primary-color);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-select.open .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 12px 18px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.select-option:last-child {
  border-bottom: none;
}

.select-option:hover {
  background: rgba(229, 9, 20, 0.2);
  color: #fff;
  padding-left: 25px;
}

.select-option.selected {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.3), transparent);
  color: #fff;
  border-left: 3px solid var(--primary-color);
}

/* Custom Scrollbar for Options */
.select-options::-webkit-scrollbar {
  width: 6px;
}

.select-options::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.select-options::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}
/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 5%;
  margin-top: 20px;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 20px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover {
  background: rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}

.filter-tag i {
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.filter-tag:hover i {
  opacity: 1;
}

/* Fixed Header */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(17, 17, 17, 0.95); /* Slight transparency */
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.content-padding {
  padding-top: 5px; /* Adjust based on header height */
}

/* -------------------------------------------------------------------------- */
/*                                  Ad System                                 */
/* -------------------------------------------------------------------------- */

/* Ad Blocker Modal */
.ad-blocker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999; /* Highest priority */
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.ad-blocker-content {
  background: #1a1a1a;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.2);
}

.ad-blocker-content h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.ad-blocker-content p {
  color: #ccc;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #b20710;
  transform: translateY(-2px);
}

/* Ad Popup Modal */
.ad-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 5000; /* Below ad blocker but above everything else */
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.5s ease;
}

.ad-popup-content {
  background: #fff; /* Ads usually look better on white or specific bg */
  padding: 20px;
  border-radius: 10px;
  position: relative;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.ad-placeholder {
  margin-bottom: 15px;
  color: #333;
}

.close-ad-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  width: 100%;
  transition: background 0.3s;
}

.close-ad-btn:hover {
  background: #555;
}

/* Minimized Ad Indicator */
.minimized-ad-indicator {
  position: fixed;
  bottom: 80px; /* Above the bottom nav */
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(229, 9, 20, 0.5);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.minimized-ad-indicator:hover {
  transform: scale(1.1);
}

.indicator-pulse {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

@media (max-width: 767px) {
  /* Mobile Header Overrides (50% Reduction) */
  .logo img {
    width: 6rem !important; /* 50% of 12rem */
    padding: 0 7.5px !important; /* 50% of 15px */
  }

  .profile img {
    width: 1.5rem !important; /* 50% of 2.5rem */
    height: 1.5rem !important;
    border-width: 1px !important;
  }

  .search {
    width: 20px !important; /* 50% of 40px */
    height: 20px !important;
  }

  .search .btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 1rem !important; /* Reduced font size */
  }

  .search.active input {
    width: 7.5rem !important; /* Reduced width */
    padding-right: 20px !important;
    height: 20px !important;
    font-size: 9px !important;
  }

  .filter-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 1.1rem !important;
    padding: 2px !important;
  }

  .filter-panel {
    width: 50% !important; /* Reduced width */
  }

  .filter-header {
    padding: 12.5px 15px !important; /* 50% of 25px 30px */
  }

  .filter-header h3 {
    font-size: 0.9rem !important; /* 50% of 1.8rem */
  }

  .close-filter {
    width: 22.5px !important; /* 50% of 45px */
    height: 22.5px !important;
    font-size: 12px !important; /* 50% of 24px */
    border-width: 1px !important;
  }

  .filter-content {
    padding: 15px !important; /* 50% of 30px */
  }

  .filter-section {
    margin-bottom: 15px !important; /* 50% of 30px */
    padding: 10px !important; /* 50% of 20px */
    border-radius: 7.5px !important;
  }

  .filter-section h4 {
    font-size: 0.55rem !important; /* 50% of 1.1rem */
    margin-bottom: 7.5px !important;
  }

  .filter-section h4::before {
    width: 2px !important;
    height: 10px !important;
  }

  .filter-options {
    gap: 6px !important; /* 50% of 12px */
  }

  .filter-option {
    padding: 6px 10px !important; /* 50% of 12px 20px */
    font-size: 0.5rem !important; /* approx 50% of 0.95rem */
    border-radius: 5px !important;
    border-width: 1px !important;
  }

  .filter-select {
    padding: 7px 9px !important; /* 50% of 14px 18px */
    font-size: 0.5rem !important; /* approx 50% of 0.95rem */
    border-radius: 5px !important;
    border-width: 1px !important;
  }

  .filter-actions {
    gap: 7.5px !important; /* 50% of 15px */
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top-width: 1px !important;
  }

  .apply-filter,
  .reset-filter {
    padding: 8px 12px !important; /* 50% of 16px 24px */
    font-size: 0.5rem !important; /* 50% of 1rem */
    border-radius: 6px !important;
    gap: 4px !important;
  }

  /* Mobile Main Section Overrides */
  #main {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    padding-bottom: 50px !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  #watchlist-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding: 1rem !important;
    padding-bottom: 50px !important;
    justify-content: center !important;
  }

  #main .movie {
    width: calc(50% - 1rem) !important;
    margin: 0.5rem !important;
  }

  #watchlist-grid .movie {
    width: 100% !important;
    margin: 0 !important;
  }

  .movie-info h3 {
    font-size: 0.5rem !important;
  }

  .movie-info span {
    font-size: 0.45rem !important;
  }

  /* Mobile More Tab Overrides (50% Reduction) */
  .profile-content {
    padding: 15px 10px !important; /* 50% of 30px 20px */
  }

  .super-buttons-container {
    gap: 12.5px !important; /* 50% of 25px */
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .super-button {
    padding: 15px !important; /* 50% of 30px */
    border-radius: 10px !important; /* 50% of 20px */
    border-width: 1px !important; /* 50% of 2px */
  }

  .super-button h3 {
    font-size: 0.9rem !important; /* 50% of 1.8rem */
    margin-bottom: 10px !important; /* 50% of 20px */
  }

  .profile-details-compact {
    gap: 12.5px !important; /* 50% of 25px */
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo {
    width: 60px !important; /* 50% of 120px */
    height: 60px !important;
    border-width: 2px !important; /* 50% of 4px */
  }

  .edit-photo-btn {
    width: 20px !important; /* 50% of 40px */
    height: 20px !important;
    font-size: 9px !important; /* 50% of 18px */
    border-width: 1.5px !important; /* 50% of 3px */
    bottom: 2.5px !important;
    right: 2.5px !important;
  }

  .profile-info-compact {
    gap: 7.5px !important; /* 50% of 15px */
  }

  .editable-field {
    padding: 6px 9px !important; /* 50% of 12px 18px */
    gap: 6px !important; /* 50% of 12px */
    border-radius: 6px !important; /* 50% of 12px */
    border-width: 1px !important; /* 50% of 2px */
  }

  .editable-field input {
    font-size: 0.6rem !important; /* 50% of 1.2rem */
    width: 50% !important;
  }

  .edit-btn {
    width: 10% !important; /* 50% of 36px */
    height: 50% !important;
    font-size: 8px !important; /* 50% of 16px */
    border-width: 1px !important; /* 50% of 2px */
  }

  .email-field {
    padding: 6px 9px !important; /* 50% of 12px 18px */
    font-size: 0.5rem !important; /* 50% of 1rem */
    border-radius: 6px !important; /* 50% of 12px */
    border-width: 1px !important; /* 50% of 2px */
  }

  .delete-account-btn {
    padding: 6px 12px !important; /* 50% of 12px 24px */
    font-size: 0.475rem !important; /* 50% of 0.95rem */
    border-radius: 6px !important; /* 50% of 12px */
    border-width: 1px !important; /* 50% of 2px */
  }

  .history-super-box {
    min-height: 100px !important; /* 50% of 200px */
  }

  .history-super-box p {
    font-size: 0.5rem !important; /* 50% of 1rem */
    margin: 5px 0 10px !important; /* 50% of 10px 0 20px */
  }

  .history-preview-icons {
    font-size: 2rem !important; /* 50% of 4rem */
  }

  .sub-buttons-container {
    gap: 10px !important; /* 50% of 20px */
    flex-direction: column;
  }

  .sub-button {
    border-radius: 7.5px !important; /* 50% of 15px */
    border-width: 1px !important; /* 50% of 2px */
    min-width: unset;
    max-width: unset;
  }

  .sub-header {
    padding: 10px 12.5px !important; /* 50% of 20px 25px */
  }
  .contact-link i {
    font-size: 12px !important; /* 50% of 24px */
  }

  .contact-link span {
    font-size: 0.55rem !important; /* 50% of 1.1rem */
  }

  .logout-btn-enhanced {
    padding: 8px !important; /* 50% of 16px */
    font-size: 0.55rem !important; /* 50% of 1.1rem */
  }

  .setting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Mobile Modal Overrides (50% Reduction) */
  .modal-header-section {
    padding: 10px !important; /* 50% of 20px */
    gap: 15px !important; /* 50% of 30px */
    margin-bottom: 20px !important; /* 50% of 40px */
  }

  .modal-poster-img {
    width: 125px !important; /* 50% of 250px */
    max-width: unset !important; /* Override previous max-width */
  }

  .quick-action-btn {
    width: 25px !important; /* 50% of 50px */
    height: 25px !important;
    font-size: 10px !important; /* 50% of 20px */
    border-width: 1px !important;
  }

  .modal-title-enhanced {
    font-size: 1.25rem !important; /* 50% of 2.5rem */
  }

  .meta-item {
    padding: 4px 7.5px !important; /* 50% of 8px 15px */
    font-size: 0.45rem !important; /* 50% of 0.9rem */
    gap: 4px !important;
  }

  .rating-card {
    padding: 7.5px 10px !important; /* 50% of 15px 20px */
    min-width: 40px !important; /* 50% of 80px */
    border-radius: 6px !important;
  }

  .rating-score {
    font-size: 0.9rem !important; /* 50% of 1.8rem */
  }

  .rating-source {
    font-size: 0.375rem !important; /* 50% of 0.75rem */
  }

  .genre-tag {
    padding: 3px 7.5px !important; /* 50% of 6px 15px */
    font-size: 0.425rem !important; /* 50% of 0.85rem */
    border-radius: 10px !important;
  }

  .modal-overview-enhanced {
    font-size: 0.5rem !important; /* 50% of 1rem */
    line-height: 1.4 !important;
  }

  .modal-cast-enhanced {
    font-size: 0.475rem !important; /* 50% of 0.95rem */
    gap: 5px !important;
  }

  /* Server Button Styles */
  .server-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }

  .server-btn:hover,
  .server-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
  }

  .server-selector-enhanced {
    flex-wrap: wrap;
  }

  /* Mobile Server Button Overrides */
  .server-btn {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
    border-radius: 15px !important;
  }

  .server-selector-enhanced {
    gap: 8px !important;
    margin-bottom: 15px !important;
  }

  .video-container-enhanced {
    border-radius: 8px !important;
  }

  .action-btn-enhanced {
    padding: 7.5px 15px !important; /* 50% of 15px 30px */
    font-size: 0.5rem !important; /* 50% of 1rem */
    border-radius: 15px !important;
    gap: 5px !important;
  }

  .seasons-section-enhanced,
  .video-section-enhanced,
  .recommendations-section {
    padding: 10px !important; /* 50% of 20px */
    margin: 15px 0 !important; /* 50% of 30px */
    border-radius: 7.5px !important;
  }

  .seasons-section-enhanced h3,
  .video-section-enhanced h3,
  .recommendations-section h3 {
    font-size: 0.75rem !important; /* Approx 50% of 1.5rem */
    margin-bottom: 10px !important;
    gap: 5px !important;
  }

  .seasons-list-enhanced {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 in a row */
    gap: 7.5px !important; /* 50% of 15px */
  }

  .season-card {
    padding: 7.5px !important; /* 50% of 15px */
    gap: 7.5px !important;
    border-radius: 6px !important;
  }

  .season-number {
    font-size: 0.75rem !important; /* 50% of 1.5rem */
    min-width: 20px !important;
  }

  .episodes-list-enhanced {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 in a row */
    gap: 7.5px !important;
  }

  .episode-card {
    padding: 7.5px !important; /* 50% of 15px */
    gap: 7.5px !important;
    border-radius: 5px !important;
  }

  .episode-number-badge {
    padding: 5px 7.5px !important; /* 50% of 10px 15px */
    font-size: 0.5rem !important; /* 50% of 1rem */
    min-width: 25px !important;
    border-radius: 4px !important;
  }

  .episode-title {
    font-size: 0.475rem !important; /* 50% of 0.95rem */
  }

  .episode-runtime {
    font-size: 0.4rem !important; /* 50% of 0.8rem */
  }

  .recommendation-card img {
    height: 112.5px !important; /* 50% of 225px */
  }

  .recommendation-info {
    padding: 6px !important; /* 50% of 12px */
  }

  .recommendation-info h4 {
    font-size: 0.45rem !important; /* 50% of 0.9rem */
    margin-bottom: 4px !important;
  }

  .recommendation-rating {
    font-size: 0.425rem !important; /* 50% of 0.85rem */
  }

  /* Mobile Hero Section */
  .hero {
    height: 40vh !important;
    min-height: 250px !important;
    border-radius: 0 0 15px 15px !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-content {
    bottom: 15px !important;
    left: 15px !important;
    max-width: calc(100% - 30px) !important;
  }

  .hero-title {
    font-size: 1.8rem !important;
    margin-bottom: 5px !important;
  }

  .hero-overview {
    font-size: 0.75rem !important;
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 10px !important;
  }

  .hero-buttons {
    gap: 8px !important;
  }

  .hero-btn {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    height: auto !important;
  }
}

/* Tablet Overrides (75% of Original / 150% of Mobile) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Header */
  .logo img {
    width: 8rem !important;
    padding: 0 10px !important;
  }

  .profile img {
    width: 2rem !important;
    height: 2rem !important;
  }

  .search {
    width: 28px !important;
    height: 28px !important;
  }

  .search .btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 1.2rem !important;
  }

  .search.active input {
    width: 18rem !important;
    padding-right: 25px !important;
    height: 28px !important;
    font-size: 12px !important;
  }

  /* Filter */
  .filter-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 1.4rem !important;
    padding: 2px !important;
  }

  .filter-panel {
    width: 38% !important;
  }

  .filter-header {
    padding: 15px 18px !important;
  }

  .filter-header h3 {
    font-size: 1.1rem !important;
  }

  .close-filter {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }

  .filter-content {
    padding: 18px !important;
  }

  .filter-section {
    margin-bottom: 18px !important;
    padding: 12px !important;
    border-radius: 8px !important;
  }

  .filter-section h4 {
    font-size: 0.7rem !important;
    margin-bottom: 8px !important;
  }

  .filter-section h4::before {
    width: 2px !important;
    height: 12px !important;
  }

  .filter-options {
    gap: 8px !important;
  }

  .filter-option {
    padding: 8px 12px !important;
    font-size: 0.65rem !important;
    border-radius: 6px !important;
  }

  .filter-select {
    padding: 8px 10px !important;
    font-size: 0.65rem !important;
    border-radius: 6px !important;
  }

  .filter-actions {
    gap: 10px !important;
    margin-top: 18px !important;
    padding-top: 18px !important;
  }

  .apply-filter,
  .reset-filter {
    padding: 10px 14px !important;
    font-size: 0.65rem !important;
    border-radius: 8px !important;
    gap: 5px !important;
  }

  /* Main Section & Grids */
  #main,
  #watchlist-grid {
    padding: 1.2rem !important;
    padding-bottom: 60px !important;
    gap: 1.2rem !important;
  }

  .movie {
    margin: 0.5rem !important;
  }

  .movie-info h3 {
    font-size: 0.65rem !important;
  }

  .movie-info span {
    font-size: 0.6rem !important;
  }

  /* More Tab */
  .profile-content {
    padding: 0 !important;
  }

  .profile-content .profile-container {
    padding: 18px 12px !important;
  }

  .super-buttons-container {
    gap: 15px !important;
  }

  .super-button {
    padding: 18px !important;
    border-radius: 12px !important;
  }

  .super-button h3 {
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
  }

  .profile-details-compact {
    gap: 15px !important;
  }

  .profile-photo {
    width: 75px !important;
    height: 75px !important;
    border-width: 2px !important;
  }

  .edit-photo-btn {
    width: 25px !important;
    height: 25px !important;
    font-size: 12px !important;
    border-width: 2px !important;
    bottom: 3px !important;
    right: 3px !important;
  }

  .profile-info-compact {
    gap: 10px !important;
    width: 90% !important;
  }

  .editable-field {
    padding: 8px 12px !important;
    gap: 8px !important;
    border-radius: 8px !important;
  }

  .editable-field input {
    font-size: 0.8rem !important;
  }

  .edit-btn {
    font-size: 10px !important;
  }

  .email-field {
    padding: 8px 12px !important;
    font-size: 0.7rem !important;
    border-radius: 8px !important;
  }

  .delete-account-btn {
    padding: 8px 16px !important;
    font-size: 0.7rem !important;
    border-radius: 8px !important;
  }

  .history-super-box {
    min-height: 120px !important;
  }

  .history-super-box p {
    font-size: 0.7rem !important;
    margin: 6px 0 12px !important;
  }

  .history-preview-icons {
    font-size: 2.5rem !important;
  }

  .sub-buttons-container {
    gap: 12px !important;
  }

  .sub-button {
    border-radius: 8px !important;
  }

  .sub-header {
    padding: 12px 15px !important;
  }

  .sub-header h3 {
    font-size: 0.9rem !important;
  }

  .contact-link {
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .contact-link i {
    font-size: 16px !important;
  }

  .contact-link span {
    font-size: 0.75rem !important;
  }

  .logout-btn-enhanced {
    padding: 10px !important;
    font-size: 0.75rem !important;
  }

  .setting-row {
    gap: 10px !important;
  }

  /* Modal */
  .modal-header-section {
    padding: 12px !important;
    gap: 18px !important;
    margin-bottom: 25px !important;
  }

  .modal-poster-img {
    width: 150px !important;
  }

  .quick-action-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }

  .modal-title-enhanced {
    font-size: 1.5rem !important;
  }

  .meta-item {
    padding: 5px 10px !important;
    font-size: 0.6rem !important;
    gap: 5px !important;
  }

  .rating-card {
    padding: 10px 12px !important;
    min-width: 50px !important;
    border-radius: 8px !important;
  }

  .rating-score {
    font-size: 1.1rem !important;
  }

  .rating-source {
    font-size: 0.5rem !important;
  }

  .genre-tag {
    padding: 4px 10px !important;
    font-size: 0.6rem !important;
    border-radius: 12px !important;
  }

  .modal-overview-enhanced {
    font-size: 0.7rem !important;
  }

  .modal-cast-enhanced {
    font-size: 0.65rem !important;
    gap: 6px !important;
  }

  .action-btn-enhanced {
    padding: 10px 20px !important;
    font-size: 0.7rem !important;
    border-radius: 20px !important;
    gap: 6px !important;
  }

  .seasons-section-enhanced,
  .video-section-enhanced,
  .recommendations-section {
    padding: 12px !important;
    margin: 18px 0 !important;
    border-radius: 10px !important;
  }

  .seasons-section-enhanced h3,
  .video-section-enhanced h3,
  .recommendations-section h3 {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
    gap: 6px !important;
  }

  .seasons-list-enhanced {
    gap: 10px !important;
  }

  .season-card {
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 8px !important;
  }

  .season-number {
    font-size: 1rem !important;
    min-width: 25px !important;
  }

  .episodes-list-enhanced {
    gap: 10px !important;
  }

  .episode-card {
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 6px !important;
  }

  .episode-number-badge {
    padding: 6px 10px !important;
    font-size: 0.7rem !important;
    min-width: 30px !important;
    border-radius: 5px !important;
  }

  .episode-title {
    font-size: 0.65rem !important;
  }

  .episode-runtime {
    font-size: 0.55rem !important;
  }

  .recommendation-card img {
    height: 140px !important;
  }

  .recommendation-info {
    padding: 8px !important;
  }

  .recommendation-info h4 {
    font-size: 0.6rem !important;
    margin-bottom: 5px !important;
  }

  .recommendation-rating {
    font-size: 0.6rem !important;
  }
}

/* -------------------------------------------------------------------------- */
/*                                  Ad System                                 */
/* -------------------------------------------------------------------------- */

/* Ad Blocker Modal */
.ad-blocker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999; /* Highest priority */
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.ad-blocker-content {
  background: #1a1a1a;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.2);
}

.ad-blocker-content h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.ad-blocker-content p {
  color: #ccc;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #b20710;
  transform: translateY(-2px);
}

/* Ad Popup Modal (Full Screen) */
.ad-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95); /* High opacity for full focus */
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  animation: fadeIn 0.5s ease;
}

.ad-popup-content {
  background: transparent; /* Transparent to blend with full screen overlay */
  padding: 0;
  border-radius: 0;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-popup-inner {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border-radius: 16px;
  padding: 0; /* Remove padding to let ad fill container */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(229, 9, 20, 0.3);
  border: 1px solid rgba(229, 9, 20, 0.2);
  max-width: 90%;
  width: 600px; /* Wider for better ad display */
  position: relative; /* Anchor for close button */
  min-height: 300px;
}

.ad-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: #000;
  border-radius: 16px; /* Match container border radius */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
  position: relative;
}

.ad-placeholder ins {
  z-index: 2; /* Ensure ad sits on top if loaded */
}

.close-ad-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 10;
  margin-top: 0; /* Reset margin */
  padding: 0; /* Reset padding */
}

.close-ad-btn:hover {
  background: #ff1744;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.6);
}

/* Bottom Right Ad */
.bottom-right-ad-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 250px;
  background: #1a1a1a;
  z-index: 4000;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  display: none; /* Hidden by default, shown by JS */
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideInRight 0.5s ease-out;
}

.bottom-right-ad-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-bottom-ad-btn {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.close-bottom-ad-btn:hover {
  background: #ff1744;
  transform: scale(1.1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
