@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: #0f172a;
  color: #f8fafc;
  overflow-x: hidden;
  overflow-y: scroll;
}

/* Allow scrolling when in game/app/movie player */
body.playing {
  overflow: auto;
}

/* Prevent body from capturing keyboard events meant for games */
body.game-active {
  pointer-events: none;
}

body.game-active .game-iframe {
  pointer-events: auto;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-screen.active {
  opacity: 1;
  pointer-events: all;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loading-dots {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.loading-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0s;
}

.loading-dot:nth-child(4) {
  animation-delay: 0.16s;
}

@keyframes loading-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8fafc;
  text-align: center;
  font-family: 'Exo 2', sans-serif;
  letter-spacing: 0.5px;
}

/* Password Protection Modal */
.password-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.password-modal.active {
  display: flex;
}

.password-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.password-modal-content {
  position: relative;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 24px;
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.3);
  animation: modalSlideIn 0.4s ease;
  text-align: center;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.password-modal-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.password-modal-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.password-input-container {
  margin-bottom: 1.5rem;
}

.password-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  color: white;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

.password-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.password-error {
  color: #ef4444;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.password-submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.password-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, #b366ff, #ff5eb8);
}

.password-submit-btn:active {
  transform: translateY(-1px);
}

/* Update Announcement Popup */
.update-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.update-popup.active {
  display: flex;
}

.update-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.update-popup-content {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
  animation: popup-appear 0.4s ease-out;
}

@keyframes popup-appear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.update-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #a855f7;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.update-popup-close:hover {
  background: rgba(168, 85, 247, 0.4);
  transform: rotate(90deg);
}

.update-popup-title {
  font-size: 2rem;
  font-weight: 700;
  color: #a855f7;
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', monospace;
}

.update-popup-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 2rem;
}

.update-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.update-item:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateX(5px);
}

.update-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.update-item-text {
  flex: 1;
}

.update-item-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.update-item-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.update-popup-button {
  width: 100%;
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.update-popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Android Games Guide Button */
.app-guide-button {
  width: 100%;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border: 2px solid #f43f5e;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: guide-pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

@keyframes guide-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.6);
    transform: scale(1.02);
  }
}

.app-guide-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 40px rgba(236, 72, 153, 0.6);
  background: linear-gradient(135deg, #f43f5e, #dc2626);
}

/* Guide Modal */
.guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.guide-modal.active {
  display: flex;
}

.guide-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.guide-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(236, 72, 153, 0.5);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4);
  animation: popup-appear 0.4s ease-out;
}

.guide-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #ec4899;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.guide-modal-close:hover {
  background: rgba(236, 72, 153, 0.4);
  transform: rotate(90deg);
}

.guide-modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ec4899;
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Orbitron', monospace;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.guide-step-number {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.guide-step-content {
  flex: 1;
}

.guide-step-content h3 {
  font-size: 1.2rem;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.guide-step-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.guide-credentials {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.75rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.credential-item:last-child {
  margin-bottom: 0;
}

.credential-label {
  color: #ec4899;
  font-weight: 600;
  min-width: 90px;
}

.credential-value {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f8fafc;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  flex: 1;
}

.guide-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  color: #fca5a5;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

.guide-modal-button {
  width: 100%;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2rem;
}

.guide-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
  background: linear-gradient(135deg, #f43f5e, #dc2626);
}

.guide-divider {
  text-align: center;
  color: #a855f7;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 2rem 0;
  position: relative;
}

.guide-divider::before,
.guide-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
}

.guide-divider::before {
  left: 0;
}

.guide-divider::after {
  right: 0;
}

.guide-create-account-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  width: 100%;
}

.guide-create-account-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669, #047857);
}

.guide-back-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #a855f7;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.guide-back-button:hover {
  background: rgba(168, 85, 247, 0.4);
  transform: translateX(-2px);
}

.guide-account-creation {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #10b981;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 350px;
  z-index: 10001;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
  pointer-events: all;
}

.guide-account-creation.active {
  display: block;
}

.guide-account-creation h3 {
  font-size: 1.1rem;
  color: #10b981;
  margin-bottom: 0.75rem;
  text-align: center;
}

.guide-account-creation ol {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.guide-account-creation ol li {
  margin-bottom: 0.5rem;
}

.guide-account-creation strong {
  color: #10b981;
}

.guide-finish-button {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: finish-pulse 2s ease-in-out infinite;
}

@keyframes finish-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
  }
}

.guide-finish-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, #059669, #047857);
}

.font-orbitron {
  font-family: 'Orbitron', monospace;
}

.text-glow {
  text-shadow: 0 0 10px rgba(156, 110, 255, 0.5), 0 0 20px rgba(156, 110, 255, 0.3);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(156, 110, 255, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: #9c6eff;
  text-shadow: 0 0 10px rgba(156, 110, 255, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #f8fafc;
  margin: 3px 0;
  transition: 0.3s;
}

/* Pages */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 80px;
}

.page.active {
  display: block;
}

/* Home Page */
.home-container {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #5a0fff 0%, #1e293b 50%, #0f172a 100%);
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
}

.animated-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
}

.line {
  stroke: #a855f7;
  stroke-width: 0.5;
  animation: line-draw 6s ease-in-out infinite;
}

.line-2 {
  animation-delay: 2s;
}

@keyframes line-draw {
  0%, 100% { stroke-dasharray: 0, 1000; }
  50% { stroke-dasharray: 1000, 0; }
}

.home-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 4rem;
}

.home-left {
  flex: 1;
  max-width: 600px;
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInLeft 1s ease-out 0.3s forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.title-eclipse {
  color: #a855f7;
  animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
  0% { text-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
  100% { text-shadow: 0 0 40px rgba(168, 85, 247, 0.8), 0 0 60px rgba(168, 85, 247, 0.4); }
}

.home-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 500px;
  opacity: 0.9;
}

.start-button {
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.recommended-section {
  margin-top: 4rem;
}

.recommended-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arrow-icon {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #f8fafc;
  animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.home-right {
  flex: 1;
  max-width: 500px;
  opacity: 0;
  transform: translateX(100px);
  animation: slideInRight 1s ease-out 0.5s forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.trending-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.trending-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, #9333ea, #facc15, #9333ea);
  animation: border-rotate 4s linear infinite;
}

@keyframes border-rotate {
  0% { background: linear-gradient(135deg, #9333ea, #facc15, #9333ea); }
  25% { background: linear-gradient(225deg, #facc15, #9333ea, #facc15); }
  50% { background: linear-gradient(315deg, #9333ea, #facc15, #9333ea); }
  75% { background: linear-gradient(45deg, #facc15, #9333ea, #facc15); }
  100% { background: linear-gradient(135deg, #9333ea, #facc15, #9333ea); }
}

.trending-content {
  position: relative;
  z-index: 10;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2rem;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.trending-icon {
  width: 24px;
  height: 24px;
  fill: #facc15;
}

.trending-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.game-card {
  position: relative;
  padding: 1px;
  border-radius: 16px;
  background: linear-gradient(135deg, #a855f7, #ec4899, #a855f7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 3s ease-in-out infinite;
  opacity: 0;
  transform: scale(0.8);
  animation: gameCardAppear 0.6s ease-out forwards, float 3s ease-in-out infinite;
}

@keyframes gameCardAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.game-card:nth-child(1) { animation-delay: 0.8s, 0s; }
.game-card:nth-child(2) { animation-delay: 0.9s, -0.5s; }
.game-card:nth-child(3) { animation-delay: 1.0s, -1s; }
.game-card:nth-child(4) { animation-delay: 1.1s, -1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.game-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card-inner {
  border-radius: 15px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.game-card-title {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Games Page */
.games-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.games-header {
  text-align: center;
  margin-bottom: 3rem;
}

.games-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.games-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

.games-controls {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.movies-controls .search-container {
  flex: 2;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid rgba(156, 110, 255, 0.3);
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.movies-controls .search-input {
  padding: 1.2rem 3.5rem 1.2rem 1.5rem;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(168, 85, 247, 0.4);
}

.search-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-container {
  min-width: 200px;
}

.category-filter {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.movies-controls .category-filter {
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(168, 85, 247, 0.4);
}

.category-filter:hover {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3);
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Fix for playline game cards - override the huge home page cards */
.games-list .game-card {
  position: relative;
  padding: 1px;
  border-radius: 16px;
  background: linear-gradient(135deg, #a855f7, #ec4899, #a855f7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: auto !important;
  display: block !important;
  flex-direction: initial !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.games-list .game-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.games-list .game-card-inner {
  border-radius: 15px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.games-list .game-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.games-list .game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
}

.games-list .game-card:hover .game-card-overlay {
  opacity: 1;
}

.games-list .game-card-title {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Playline Announcement Popup */
.announcement-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.announcement-popup.show {
  opacity: 1;
  visibility: visible;
}

.announcement-content {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: popupSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupSlideIn {
  0% {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.trophy-icon {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
  animation: trophyGlow 2s ease-in-out infinite alternate;
}

@keyframes trophyGlow {
  0% {
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
  }
  100% {
    filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.6));
  }
}

.announcement-header h2 {
  color: #f8fafc;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-announcement {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-announcement:hover {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  transform: scale(1.1);
}

.announcement-body {
  padding: 1rem 2rem 2rem 2rem;
}

.announcement-body h3 {
  color: #f8fafc;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
}

.announcement-body p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.announcement-features {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
  gap: 1rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.feature span:last-child {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.explore-playline-btn {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.explore-playline-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, #9333ea, #db2777);
}

@media (max-width: 768px) {
  .announcement-content {
    margin: 1rem;
    max-width: none;
  }
  
  .announcement-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }
  
  .announcement-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  
  .announcement-header h2 {
    font-size: 1.5rem;
  }
  
  .trophy-icon {
    width: 40px;
    height: 40px;
  }
  
  .announcement-features {
    flex-direction: column;
    gap: 1rem;
  }
}

.game-item:hover {
  transform: translateY(-5px);
  border-color: #a855f7;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.game-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.game-item-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.game-item-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.game-item-category {
  color: #a855f7;
  font-size: 0.9rem;
  font-weight: 600;
}

.game-item-description {
  margin-bottom: 1rem;
  opacity: 0.8;
  line-height: 1.5;
}

.game-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-tag {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Game Player Page */
.game-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.game-control-btn {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #a855f7;
  color: #a855f7;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-control-btn:hover {
  background: #a855f7;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.game-controls-overlay .game-control-btn {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.5rem;
  border-radius: 8px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.game-controls-overlay .game-control-btn:hover {
  opacity: 1;
  background: rgba(168, 85, 247, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(168, 85, 247, 0.4);
}

.back-button {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #a855f7;
  color: #a855f7;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.back-button:hover {
  background: #a855f7;
  color: white;
}

.game-title {
  font-size: 2rem;
  font-weight: 700;
}

.game-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.game-player {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

#game-page.active {
  overflow: hidden;
  height: 100vh;
}

#game-page.active .game-container {
  overflow: hidden;
  height: 100vh;
}

.game-controls-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  pointer-events: auto;
}

.game-iframe:focus {
  outline: none;
}

.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.game-info {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.game-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.game-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.game-info p {
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-games {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.related-games h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.related-games-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-game-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.related-game-item:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: translateX(5px);
}

.related-game-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.related-game-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.related-game-category {
  font-size: 0.8rem;
  color: #a855f7;
}

/* Apps Page */
.apps-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.apps-header {
  text-align: center;
  margin-bottom: 3rem;
}

.apps-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.apps-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

.apps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 3rem;
}

.app-item {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(156, 110, 255, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #a855f7;
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

.app-item-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.app-item-info {
  width: 100%;
}

.app-item-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #a855f7;
}

.app-item-category {
  color: #ec4899;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.app-item-description {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.6;
  font-size: 1.1rem;
}

.app-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.app-tag {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* App Player Page */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.app-title {
  font-size: 2rem;
  font-weight: 700;
}

.app-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.app-player {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

.app-controls-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.app-control-btn {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #a855f7;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-control-btn:hover {
  opacity: 1;
  background: rgba(168, 85, 247, 0.9);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(168, 85, 247, 0.4);
}

.app-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.app-info {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.app-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.app-info p {
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Links Page */
.links-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.links-header {
  text-align: center;
  margin-bottom: 3rem;
}

.links-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.links-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

.links-content {
  display: flex;
  justify-content: center;
}

.links-player {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  position: relative;
}

.links-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.links-controls-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.links-control-btn {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #a855f7;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.links-control-btn:hover {
  opacity: 1;
  background: rgba(168, 85, 247, 0.9);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(168, 85, 247, 0.4);
}

/* About Page */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.about-title {
  font-size: 3rem;
  margin-bottom: 3rem;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.8;
  opacity: 0.9;
}

.about-text p {
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .home-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .home-title {
    font-size: 3rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .games-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .game-content {
    grid-template-columns: 1fr;
  }
  
  .games-list {
    grid-template-columns: 1fr;
  }
  
  .apps-list {
    grid-template-columns: 1fr;
  }
  
  .app-content {
    grid-template-columns: 1fr;
  }
  
  .links-container {
    padding: 1rem;
  }
  
  .links-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }
  
  .home-content {
    padding: 0 1rem;
  }
  
  .games-container {
    padding: 1rem;
  }
  
  .game-container {
    padding: 1rem;
  }
  
  .about-container {
    padding: 2rem 1rem;
  }
}

/* Settings Page Styles */
.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.settings-header {
  text-align: center;
  margin-bottom: 3rem;
}

.settings-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.settings-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.dev-notice {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  text-align: center;
}

.dev-notice p {
  color: #ffc107;
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

.settings-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.settings-section h3 {
  color: #a855f7;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.setting-item label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  min-width: 200px;
}

.setting-item input[type="text"],
.setting-item input[type="url"] {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 1rem;
  min-width: 200px;
  transition: all 0.3s ease;
}

.setting-item input[type="text"]:focus,
.setting-item input[type="url"]:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #a855f7;
}

.panic-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 1rem;
  min-width: 250px;
  transition: all 0.3s ease;
}

.panic-select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.panic-select option {
  background: #1e293b;
  color: white;
}

.settings-btn {
  background: linear-gradient(45deg, #a855f7, #ec4899);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.settings-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.settings-btn.primary {
  background: linear-gradient(45deg, #10b981, #059669);
}

.settings-btn.secondary {
  background: linear-gradient(45deg, #ef4444, #dc2626);
}

.panic-status {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .settings-container {
    padding: 1rem;
  }
  
  .settings-title {
    font-size: 2rem;
  }
  
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .setting-item label {
    min-width: unset;
  }
  
  .setting-item input[type="text"],
  .setting-item input[type="url"],
  .panic-select {
    width: 100%;
    min-width: unset;
  }
}

/* Movies Page */
.movies-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.movies-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease;
}

.movies-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #a855f7, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.movies-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.movies-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.2s both;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.movies-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.movie-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(168, 85, 247, 0.03));
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.movie-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(145deg, #a855f7, #ec4899, #f59e0b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.movie-item:hover::before {
  opacity: 1;
}

.movie-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(168, 85, 247, 0.4), 0 0 30px rgba(168, 85, 247, 0.2);
  border-color: transparent;
}

.movie-item-poster {
  position: relative;
  width: 100%;
  padding-top: 150%;
  overflow: hidden;
  background: #1e293b;
}

.movie-item-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-item:hover .movie-item-overlay {
  opacity: 1;
}

.movie-play-button {
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.movie-item:hover .movie-play-button {
  transform: scale(1);
}

.movie-item-info {
  padding: 1rem;
}

.movie-item-info h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-item-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.movie-item-rating {
  color: #fbbf24;
}

.movie-item-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.movie-item-genres {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.movie-tag {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Movie Player Page */
.movie-container {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.movie-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease;
}

.movie-title {
  font-size: 2rem;
  background: linear-gradient(45deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.movie-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.movie-player {
  position: relative;
  width: 100%;
  height: 600px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Episode Selector for TV Shows */
.episode-selector {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 20;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(88, 101, 242, 0.1));
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(88, 101, 242, 0.5);
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.episode-selector-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.episode-selector-controls label {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.episode-select {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(88, 101, 242, 0.6);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  color: white;
  font-size: 0.95rem;
  min-width: 140px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.episode-select:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}

.episode-select:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.episode-select option {
  background: #1e293b;
  color: white;
}

.play-episode-btn {
  background: linear-gradient(135deg, #5865f2, #7289da);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.play-episode-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.5);
  background: linear-gradient(135deg, #6875f5, #8b9bff);
}

.movie-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Block ads and popups in iframes */
.movie-iframe::before,
.game-iframe::before,
.app-iframe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Hide common ad elements */
iframe[src*="ads"],
iframe[src*="doubleclick"],
iframe[src*="googlesyndication"],
.ad-container,
.advertisement,
[class*="ad-"],
[id*="ad-"],
[class*="ads-"],
[id*="ads-"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.movie-controls-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.movie-control-btn {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.movie-control-btn:hover {
  background: rgba(168, 85, 247, 0.8);
  border-color: #a855f7;
  transform: scale(1.1);
}

.movie-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.movie-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.movie-poster {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.movie-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #f8fafc;
}

.movie-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.movie-rating {
  color: #fbbf24;
  font-weight: 600;
}

.movie-year,
.movie-type {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.movie-info p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.movie-genres {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.related-movies {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.related-movies h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #f8fafc;
}

.related-movies-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-movie-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.related-movie-item:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: #a855f7;
  transform: translateX(5px);
}

.related-movie-item img {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.related-movie-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-movie-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-movie-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
  .movie-content {
    grid-template-columns: 1fr;
  }
  
  .movie-sidebar {
    flex-direction: row;
    gap: 1rem;
  }
  
  .movie-info,
  .related-movies {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .movies-container,
  .movie-container {
    padding: 1rem;
  }
  
  .movies-title,
  .movie-title {
    font-size: 2rem;
  }
  
  .movies-controls {
    flex-direction: column;
  }
  
  .movies-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .movie-sidebar {
    flex-direction: column;
  }
  
  .movie-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
