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

html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

html, body {
  height: 100vh;
  width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0a0a0a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

#__next {
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

.container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #0a0a0a;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header {
  text-align: center;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.header h1 {
  font-size: 2.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.header p {
  font-size: 1.1rem;
  color: #666666;
  margin: 0;
}

.content-wrapper {
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 5px 5px 0px 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-gutter: stable;
}

.content-wrapper::-webkit-scrollbar {
  width: 6px;
}

.content-wrapper::-webkit-scrollbar-track {
  background: rgba(40, 40, 40, 0.3);
  border-radius: 3px;
  margin: 4px 0;
}

.content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: background 0.2s ease;
  margin: 2px;
}

.content-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mirrors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
  width: 100%;
  /* max-width: 800px; */
}

.mirror-block {
  display: block;
  text-decoration: none;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(40, 40, 40, 0.6);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.2s ease;
  position: relative;
}

.mirror-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mirror-block:hover {
  background: rgba(25, 25, 25, 0.9);
  border-color: rgba(60, 60, 60, 0.8);
  transform: translateY(-2px);
}

.mirror-block:hover::before {
  opacity: 1;
}

.block-inner {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 40, 40, 0.5);
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(60, 60, 60, 0.3);
  overflow: hidden;
}

.avatar img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.2s ease;
}

.mirror-block:hover .avatar img {
  filter: brightness(1.1);
}

.content {
  flex: 1;
}

.content h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.content p {
  color: #888888;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.arrow {
  color: #666666;
  font-size: 1.4rem;
  font-weight: 300;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mirror-block:hover .arrow {
  color: #ffffff;
  transform: translateX(4px);
}

.footer {
  width: 100%;
  margin-top: auto;
  padding: 40px 20px 20px;
  border-top: 1px solid rgba(40, 40, 40, 0.6);
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.footer-section h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-section p {
  color: #888888;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.footer-section a {
  display: block;
  color: #aaaaaa;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #ffffff;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-size: 0.9rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(40, 40, 40, 0.4);
  text-align: center;
}

.footer-bottom p {
  color: #666666;
  font-size: 0.85rem;
  margin: 0;
}

.warning-badge {
  width: 100%;
  position: absolute;
  top: 0px;
  right: 0px;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

@media (max-width: 768px) {
  .main-content {
    padding: 30px 15px;
  }
  
  .header h1 {
    font-size: 2.2rem;
  }
  
  .mirrors-grid {
    grid-template-columns: 1fr;
    /* max-width: 420px; */
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .block-inner {
    padding: 20px;
    gap: 16px;
  }
  
  .avatar {
    width: 48px;
    height: 48px;
  }
  
  .avatar img {
    width: 28px;
    height: 28px;
  }
  
  .content h3 {
    font-size: 1.1rem;
  }
  
  .content p {
    font-size: 0.85rem;
  }

  .footer {
    margin-top: auto;
    padding: 30px 15px 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0px 10px 0px 10px;
  }
  
  .header h1 {
    font-size: 1.9rem;
  }
  
  .header p {
    font-size: 1rem;
  }
  
  .mirrors-grid {
    max-width: 100%;
    grid-template-columns: 1fr;
  }
  
  .block-inner {
    padding: 18px;
    gap: 14px;
  }
  
  .avatar {
    width: 44px;
    height: 44px;
  }
  
  .avatar img {
    width: 26px;
    height: 26px;
  }
}

.load-error {
  grid-column: 1 / -1;
  text-align: center;
  color: #888888;
  font-size: 0.95rem;
  padding: 40px 0;
}