.package-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}
.package-switcher button {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #ddd;
}
.package-switcher button.active {
  background: #111;
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.channel {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition:
    opacity 800ms ease,
    transform 0.8s ease-out,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.channel img {
  width: 100%;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}
.channel.enter {
  animation: fadeIn 800ms ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.tvpopup {
  position: fixed;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tvpopup.visible {
  opacity: 1;
}
.channel .number {
  font-size: 12px;
  opacity: 0.6;
}
.channel.is-hiding {
  opacity: 0;
  transform: scale(0.01);
  pointer-events: none;
}
.channel.is-hidden {
  display: none;
}
.package-description {
  margin-bottom: 16px;
  font-size: 14px;
  color: #444;
}
.grid {
  perspective: 1000px;
}
.channel {
}
.channel:hover {
  background: #ddd;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.channel:hover img {
  transform: translateZ(30px);
}

.channels-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
}

.channels-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === KARTA KATEGORII === */

.category-group {
  background: #111;
  border-radius: 12px;
  padding: 16px;
}

.category-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
  text-transform: capitalize;
}

.category-channels {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-list-item {
  font-size: 14px;
  color: #ccc;
  display: flex;
  gap: 8px;
}

.channel-list-item span {
  color: #777;
  min-width: 42px;
  text-align: right;
}

/* === MOBILE === */
@media (max-width: 900px) {
  .channels-columns {
    grid-template-columns: 1fr;
  }
}
