
:root {
  --bg-color: #050510;
  --primary: #00f2ff;
  --secondary: #bd00ff;
  --text-main: #ffffff;
  --text-secondary: #a0a0a0;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(10px);
  --modal-bg: #12121a;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  scroll-behavior: smooth;
}

.modal-card, .modal-hero, .hero, .poster-wrapper, .btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body {
  background-color: var(--bg-color);
  font-family: 'Inter', sans-serif;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(189, 0, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar {
  width: 0px;
  display: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 40px;
  background: transparent;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
    color: var(--text-main);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}
.nav-links {
  display: flex;
  gap: 5px;
  list-style: none;
  align-items: center;
}
.nav-link {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 20px;
}
.nav-link:hover {
  font-weight: 700;
  color: white;
  background: transparent;
}
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.2rem;
  color: white;
}
.nav-icon {
  cursor: pointer;
  transition: color 0.3s;
}
.nav-icon:hover {
    color: var(--bg-color);
}

.search-container {
  display: flex;
  align-items: center;
}
.search-input {
  width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: white;
  transition: width 0.3s, padding 0.3s;
  outline: none;
  border-bottom: 1px solid transparent;
  font-family: inherit;
}
.search-input.active {
  width: 200px;
  padding: 5px 10px;
  border-color: var(--primary);
  margin-left: 10px;
}

.notify-box {
  position: relative;
  cursor: pointer;
}
.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--secondary);
  color: white;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 50%;
  font-weight: bold;
}

.profile-container {
  position: relative;
  cursor: pointer;
}
.profile-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s;
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.profile-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  background: rgba(20, 20, 30, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  width: 220px; /* Slightly wider */
  display: none;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2000;
}
/* Invisible bridge to prevent menu from closing when moving mouse from icon to menu */
.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}
.profile-container:hover .profile-dropdown,
.profile-dropdown.show {
  display: flex;
}

.profile-dropdown a {
  color: var(--text-secondary);
  padding: 10px 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
  border-left: 3px solid transparent;
}
.profile-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-left: 3px solid var(--primary);
}
.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 5px 0;
}

.hero {
  width: 100%;
  min-height: 90vh;
  padding-bottom: 50px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  transition: background-image 0.5s ease-in-out;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 10;
  margin-left: 40px;
  max-width: 700px;
  padding-top: clamp(120px, 20vh, 220px);
  padding-left: 0;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(0,0,0,0.8);  
  background: linear-gradient(45deg, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
  color: white;
  display: flex;
  align-items: center;
}

.hero-logo {
  max-width: 450px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
  display: block;
}
.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  max-width: 500px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn {
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 15px;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn:hover::before {
    left: 100%;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.btn-white {
  background: white;
  color: black;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.btn-white:hover {
    box-shadow: 0 0 30px rgba(255,255,255,0.6);
    transform: translateY(-2px);
}
.btn-grey {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.btn-grey:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.category-row {
  margin-bottom: 15px;
  position: relative;
  z-index: 20;
  padding-bottom: 0;
}
/* Only pull the first row up slightly */
#main-content .category-row:first-child {
    margin-top: -50px; 
}
.category-row h2 {
  margin-left: 40px;
  margin-bottom: 5px;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
}
.category-row h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--primary);
    margin-right: 10px;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

.row-posters {
  display: flex;
  gap: 15px;
  padding: 40px 40px;
  margin-top: -20px;
  margin-bottom: -20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  z-index: 50;
  position: relative;
}
.row-posters::-webkit-scrollbar {
  display: none;
}

.poster-card {
        flex: 0 0 auto;
        width: 160px;
        height: 240px;
        border-radius: 12px;
        cursor: pointer;
        object-fit: cover;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 5000;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}
.modal-card {
  background-color: rgba(20, 20, 30, 0.95);
  border: 1px solid var(--glass-border);
  width: 1000px;
  max-width: 95%;
  max-height: 90vh;
  height: auto;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 100px rgba(var(--primary), 0.1);
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow-y: auto;
  overflow-x: hidden;
}
@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-hero {
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(20, 20, 30, 0.8) 80%, rgba(20, 20, 30, 1) 100%);
    z-index: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  font-size: 18px;
  z-index: 20;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-cyan) !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.modal-back {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  font-size: 18px;
  z-index: 20;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-back:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-cyan) !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.modal-content-layer {
  position: absolute;
  bottom: 0px;
  left: 50px;
  width: 70%;
  padding-bottom: 40px;
  z-index: 10;
}
.modal-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.modal-grid {
  display: flex;
  flex-direction: column;
  padding: 0 50px 30px 50px;
}
.meta-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.badge-imdb {
  background: #f5c518;
  color: black;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.3);
}
#m-match {
    color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.season-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 15px;
}
.season-selector {
  background: rgba(0,0,0,0.3);
  color: white;
  padding: 8px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
}

.episode-row {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.episode-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border);
  transform: translateX(5px);
}
.ep-index {
  font-size: 1.2rem;
  color: var(--text-secondary);
  width: 40px;
  text-align: center;
  font-weight: 700;
}
.ep-thumb-container {
  width: 140px;
  height: 80px;
  flex-shrink: 0;
  margin: 0 20px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.ep-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep-text {
  flex: 1;
}
.ep-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 5px;
}
.ep-desc {
  font-size: 0.85rem;
  color: #bbb;
}

#tv-section {
  padding: 0 50px 30px 50px;
}

.more-like-this-container {
  padding: 30px 50px 50px 50px;
  padding: 30px 50px 50px 50px;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  justify-content: center;
}
.rec-card {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  background: #222;
  transition: transform 0.3s;
}
.rec-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.poster-wrapper {
  position: relative;
  transition: transform 0.3s;
  z-index: 1;
  border-radius: 12px;
}
.poster-wrapper:hover {
  transform: scale(1.1);
  z-index: 100 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: nowrap;
    align-items: center;
}
.modal-buttons .btn {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    white-space: nowrap;
    font-size: 1rem;
}
/* Icon-only buttons */
.modal-buttons .btn-icon-only {
     width: 50px;
     padding: 0;
     display: flex;
     align-items: center;
     justify-content: center;
}

.video-overlay {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 6000;
    display: none;
    justify-content: center;
    align-items: center;
}
.video-container {
    width: 90%;
    height: 90%;
    position: relative;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(var(--primary), 0.1);
}

.video-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    z-index: 1000;
}
.video-close-btn:hover {
    background: rgba(0,0,0,0.8);
    color: var(--neon-cyan);
    transform: scale(1.1) rotate(90deg);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.video-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 20;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    font-family: inherit;
}
.video-back-btn:hover {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}
.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #111;
    border-top: 1px solid #333;
}
#video-frame {
    flex: 1;
    height: auto;
}
.server-select {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 1.1rem;
}
.server-select select {
    background: #222;
    color: white;
    border: 1px solid #444;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
}
.server-select select:hover {
    border-color: var(--primary);
}

.episode-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: black;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.episode-nav button {
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.poster-wrapper {
    position: relative;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), z-index 0s;
    border-radius: 12px;
}
.poster-wrapper:hover {
    z-index: 1000;
    transform: scale(1.1) translateY(-10px);
}
.poster-wrapper:hover img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--primary), 0.4);
}
.list-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--secondary);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 5;
}

@media (max-width: 768px) {
  .navbar {
      width: 100%;
      top: 0;
      left: 0;
      transform: none;
      border-radius: 0;
      border: none;
      padding: 0 15px; 
  }
  .logo {
      font-size: 1.4rem;
  }
  .nav-right {
      gap: 15px;
  }
  .nav-icon {
      font-size: 1.1rem;
  }
  /* Push search icon away if needed, or just rely on gap */
  .hero-content {
      padding-top: 120px;
      margin-left: 20px;
      margin-right: 20px;
      padding-left: 0;
  }
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  .hero-logo {
    max-width: 300px;
    max-height: 100px;
    margin-bottom: 15px;
  }
  .hero-desc {
      font-size: 0.95rem;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      margin-bottom: 20px;
  }
  .btn {
      padding: 0.7rem 1.5rem;
      font-size: 0.9rem;
      margin-bottom: 10px;
  }
  .modal-card {
    width: 100%;
    margin: 0;
    border-radius: 0;
    height: 100dvh;
    max-height: 100dvh;
  }
  .modal-hero {
    height: 250px;
  }
  .modal-title {
      font-size: 2rem;
  }
  .modal-content-layer {
      left: 20px;
      width: 90%;
  }
  .modal-grid {
      padding: 0 20px 30px 20px;
  }
  .nav-links {
    display: none; 
  }
  .menu-toggle {
    display: block;
  }
  .row-posters {
      padding: 20px 20px;
  }
  .category-row h2 {
      margin-left: 20px;
      font-size: 1.2rem;
  }
  /* Remove negative overlap on mobile */
  #main-content .category-row:first-child {
      margin-top: 0;
  }
  
  .hero-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
  }
  .hero-buttons .btn {
      flex: 1 0 auto;
      margin-right: 0;
      margin-bottom: 0;
      justify-content: center;
      min-width: 120px; 
  }
  
  .modal-buttons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      width: 100%;
  }

  .modal-buttons .btn {
      height: 35px; 
      font-size: 0.8rem;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin: 0;
  }
  
  /* Reset icon-only specific widths */
  .modal-buttons .btn-icon-only {
      width: 100% !important;
      flex: none;
      border-radius: 50px;
  }

  .modal-buttons .btn:nth-child(1) { 
      grid-column: 1 / -1; 
      order: 1;
  }
  
  /* Row 2: Trailer & Cast */
  .modal-buttons .btn:nth-child(2) {
      order: 2;
  }
  .modal-buttons .btn:nth-child(4) { 
      order: 3;
  }
  
  /* Row 3: Plus & Share */
  .modal-buttons .btn:nth-child(3) { 
      order: 4;
  }
  .modal-buttons .btn:nth-child(5) {
      order: 5;
  }
  
  .more-like-this-container {
      padding: 20px;
  }
  .recommendation-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px;
  }
  .rec-card {
      height: auto; 
      aspect-ratio: 2 / 3;
      width: 100%;
  }
  
  .modal-hero {
      height: 45vh;
      min-height: 300px;
  }
  .modal-title {
      font-size: 1.5rem;
      margin-bottom: 10px;
  }
  .modal-content-layer {
      width: 95%;
      left: 15px;
      padding-bottom: 20px;
  }
  .meta-line {
      font-size: 0.9rem;
      margin-bottom: 15px;
      gap: 15px;
  }
  .badge-imdb {
      font-size: 0.8rem;
      padding: 2px 8px;
  }
  
  .modal-tabs {
     padding: 0 20px;
     gap: 20px;
     margin-bottom: 15px;
  }
  .modal-tab {
      font-size: 1rem;
      padding-bottom: 8px;
  }
}


#api-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.skeleton {
  background: #222;
  background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.modal-tabs {
  display: flex;
  gap: 30px;
  padding: 0 50px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}
.modal-tab {
  padding-bottom: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.modal-tab:hover {
  color: white;
}
.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    transition: 0.3s ease-in-out;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--glass-border);
}
.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-bottom: 30px;
}

.mobile-nav-links li {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    transition: 0.2s;
}
.mobile-nav-links li:hover {
    color: var(--primary);
    padding-left: 10px;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 25px;
  backdrop-filter: blur(5px);
  transition: transform 0.2s;
}
.review-card:hover {
    background: rgba(255, 255, 255, 0.08);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}
.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}
.review-rating {
  background: var(--secondary);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  margin-left: 10px;
  box-shadow: 0 2px 10px rgba(189, 0, 255, 0.3);
}
.review-date {
  font-size: 0.85rem;
  color: #888;
}
.review-content {
  color: #ddd;
  line-height: 1.8;
  font-size: 1rem;
  white-space: pre-wrap;
}
.review-content.expanded {
    max-height: none;
}
.read-more-btn {
    display: inline-block;
    color: var(--primary);
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}
.read-more-btn:hover {
    text-decoration: underline;
    color: white;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 40px; 
    margin-top: 20px;
    margin-bottom: 20px;
    z-index: 30;
    position: relative;
    align-items: center;
}

.filter-select {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.filter-select:hover, .filter-select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.filter-select option {
    background: #0a0a0f;
    color: white;
}

#explore-heading {
    margin-top: 0;
}

/* --- PROFILE SELECTION REMOVED --- */

@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
        padding-bottom: 60px;
        align-items: flex-start;
    }
    .hero-content {
        padding-top: 80px;
        margin-left: max(40px, env(safe-area-inset-left));
    }
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    .hero-desc {
        -webkit-line-clamp: 2;
        font-size: 0.85rem;
        margin-bottom: 10px;
        max-width: 550px;
    }
    .hero-buttons .btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    #main-content {
        margin-top: 0 !important;
    }
    
    #main-content .category-row:first-child {
        margin-top: -30px !important; 
    }
}

/* --- FOOTER STYLES --- */
.site-footer {
    background: rgba(5, 5, 10, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 60px 40px 30px; /* Reduced vertical padding */
    margin-top: 50px;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* changed from center to flex-start for better alignment */
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 40px;
    padding-bottom: 30px; /* spacing above bottom line */
    border-bottom: 1px solid var(--glass-border); /* divider line */
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 15px;
    display: inline-block;
    font-size: 2rem; /* Larger logo */
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    border-color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 120px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px; /* thicker underline */
    background: var(--secondary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--secondary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 500;
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(5px); /* Slide effect */
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom .attribution a {
    color: #90cea1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-bottom .attribution a:hover {
    color: #bbf7cd;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px;
        margin-bottom: 80px; /* space for mobile nav? no, mobile nav is overlay usually, but check sticky needs */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 30px;
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- TEXT MODAL (PRIVACY, ETC) --- */
.text-modal-card {
    width: 700px;
    max-width: 90%;
    max-height: 80vh;
    background: rgba(15, 15, 25, 0.95);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: white;
}

.modal-close-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    color: var(--text-secondary);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--glass-border);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    color: #ddd;
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 15px;
}


/* --- ADBLOCK MODAL --- */
.adblock-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.adblock-card {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@keyframes scaleUp {
    to { transform: scale(1); }
}

.adblock-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(189, 0, 255, 0.1); /* Secondary color faint */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 2.5rem;
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.2);
}

.adblock-text h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}
.adblock-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}
.adblock-text b {
    color: var(--primary);
}

.btn-adblock-close {
    background: var(--primary);
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}
.btn-adblock-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.5);
    background: white;
}
