.jmb-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
    align-items: stretch;
  }

  .jmb-channel-card {
    position: relative;
    perspective: 1000px;

    background: var(--f-bg);
    color: var(--f-text);

    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);

    min-height: 170px;
    height: 100%;
    padding: 0;
    overflow: hidden;

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
  }

  .jmb-channel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.6s ease;
  }

  /* DESKTOP: flip na hover */
  @media (hover: hover) and (pointer: fine) {
    .jmb-channel-card:hover .jmb-channel-inner {
      transform: rotateY(180deg);
    }
  }

  /* MOBILE/TAP: flip po klasie */
  .jmb-channel-card.is-flipped .jmb-channel-inner {
    transform: rotateY(180deg);
  }

  .jmb-channel-face {
    position: absolute;
    inset: 0;

    padding: 0.75rem 0.5rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .jmb-channel-front {
    transform: rotateY(0deg);
  }

  .jmb-channel-back {
    transform: rotateY(180deg);

    text-align: left;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .jmb-channel-logo {
    max-width: 90px;
    max-height: 60px;
    margin: 0 auto 0.5rem auto;
    display: block;
    object-fit: contain;
  }

  .jmb-channel-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
  }

  .jmb-channel-number {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.95);
  }

  .jmb-channel-back-title {
    font-size: 0.9rem;
    font-weight: 700;
  }

  .jmb-channel-desc {
    font-size: 0.85rem;
    line-height: 1.35;
    opacity: 0.92;
    overflow: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
  }

  .jmb-channel-desc::-webkit-scrollbar {
    width: 10px;
  }

  .jmb-channel-desc::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 9999px;
    border: 3px solid transparent;
    background-clip: content-box;
  }

  .jmb-channel-desc::-webkit-scrollbar-track {
    background: transparent;
  }
