body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #222;
  background: url("channel-banner.jpg") center center / cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(135deg, #556B2F, #3C3B32);
  color: white;
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 4px solid #2F4F4F;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.flag-icon {
  width: 48px;
  height: auto;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 {
  font-size: 1.2rem;
  font-weight: normal;
  color: #d8e0d8;
}

.search-wrapper {
  position: relative;
  margin: 1rem auto;
  max-width: 400px;
}

#search-box {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.search-wrapper::after {
  content: "🔍";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #666;
}

main {
  max-width: 1200px;
  margin: 3rem auto;
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  flex: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease;
}

a.button {
  display: inline-block;
  background: #3C3B32;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 10px;
  transition: background 0.3s, transform 0.2s;
  margin-top: 1rem;
  font-size: 1.1rem;
}

a.button:hover {
  background: #556B2F;
  transform: scale(1.03);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #ddd;
  padding: 2rem 0;
  background: rgba(0,0,0,0.6);
  margin-top: auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
}

.news-item {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  animation: fadeIn 0.6s ease;
  text-align: left;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.news-item.scale-1 {
  transform: scale(1.05);
}

.news-item.scale-2 {
  transform: scale(1.10);
}

.news-item.scale-reset {
  transform: scale(1);
}

.news-item img,
.news-item video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.news-item img:hover,
.news-item video:hover {
  transform: scale(1.05);
  cursor: zoom-in;
}

.news-item video.clicked {
  transform: scale(1.10);
}

.news-item p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.news-item p:hover {
  transform: scale(1.05);
  cursor: zoom-in;
}

.timestamp {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

.source {
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.3rem;
}

.news-item a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #3C3B32;
  text-decoration: underline;
}

.telegram-video-link {
  display: block;
  margin-top: 0.5rem;
  color: #444;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .news-item {
    margin-bottom: 1.2rem;
    padding: 1rem;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.95rem;
  }
}