body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  margin: 0;
  padding: 0;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#status {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #888;
  font-size: 14px;
  z-index: 10;
}

#news-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin-top: 60px; /* оставляем место для верхней панели */
  position: relative;
  z-index: 1;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 90%;
  height: 540px; /* увеличенная высота */
  transition: transform .18s ease, opacity .18s ease;
  position: relative;
}

.news-card img {
  width: 100%;
  height: 180px; /* картинка остается прежнего размера */
  object-fit: cover;
}

.news-card h2 {
  font-size: 20px;
  margin: 12px 16px 6px;
}

.news-card p {
  font-size: 16px;
  color: #444;
  margin: 0 16px 12px;
  flex-grow: 1;
}

/* swipe animation */
.news-card.swipe-right {
  transform: translateX(80px) rotate(6deg);
  opacity: 0;
}

.news-card.swipe-left {
  transform: translateX(-80px) rotate(-6deg);
  opacity: 0;
}

/* skeleton loading */
#skeleton {
  padding: 20px;
  width: 90%;
}

.sk-card {
  height: 540px; /* увеличенная высота */
  background: linear-gradient(90deg, #2c2c2c 0%, #3a3a3a 50%, #2c2c2c 100%);
  background-size: 300% 300%;
  animation: sk-wave 1.5s infinite ease-in-out;
  border-radius: 14px;
  margin-bottom: 20px;
}

@keyframes sk-wave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hidden {
  display: none !important;
}

/* Верхняя панель WebApp */
#app-header {
  width: 100%;
  height: 50px;
  background: #06b6d4;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  user-select: none;
}
