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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f23;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-container {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #1a1a3e 0%, #0f0f23 100%);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 12px 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: blur(10px);
}

.header-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 8px;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.nav-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.nav-btn.active,
.nav-btn:hover {
  color: #fff;
}

/* Feed */
.feed {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  padding-top: 80px;
  padding-bottom: 80px;
}

.game-card {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a1a3e 0%, #0f0f23 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-container {
  width: 100%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.game-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.game-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.game-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* Side Actions */
.side-actions {
  position: fixed;
  right: 16px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 50;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.action-btn:hover {
  transform: scale(1.1);
}

.action-btn:active {
  transform: scale(0.95);
}

.icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.2s;
}

.icon svg {
  width: 20px;
  height: 20px;
}

.heart-icon:hover {
  background: rgba(255, 0, 80, 0.2);
  color: #ff0050;
}

.comment-icon:hover {
  background: rgba(0, 242, 234, 0.2);
  color: #00f2ea;
}

.save-icon:hover {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

.action-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.action-count {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  background: #6366f1;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game Info */
.game-info {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 80px;
  z-index: 50;
}

.uploader-info {
  margin-bottom: 8px;
}

.uploader-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.game-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* Scroll Indicators */
.scroll-up-indicator,
.scroll-down-indicator {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  z-index: 40;
}

.scroll-up-indicator {
  top: 80px;
}

.scroll-down-indicator {
  bottom: 80px;
}

.scroll-up-indicator svg,
.scroll-down-indicator svg {
  width: 24px;
  height: 24px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 12px;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
}

.upload-btn {
  padding: 0;
}

.plus-icon {
  width: 48px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plus-icon svg {
  width: 20px;
  height: 20px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background: #1a1a3e;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.upload-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.upload-submit-btn:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 430px) {
  .app-container {
    max-width: 100%;
  }
  
  .header,
  .bottom-nav {
    max-width: 100%;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.loading {
  animation: pulse 2s infinite;
}

/* Hide scrollbar */
.feed::-webkit-scrollbar {
  display: none;
}

.feed {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
