/* ===== Mobile stabilization: slider + lives ===== */
@media (max-width: 991px) {
  .hero-slider {
    border-radius: var(--radius);
  }

  .hero-slider__main,
  .hero-slide,
  .hero-slide__image-link,
  .hero-slide__image-link img {
    min-height: 380px;
    height: 380px;
  }

  .hero-slide__overlay--simple {
    padding: 16px;
  }

  .hero-slide__overlay--simple h2 {
    font-size: 24px;
  }

  .hero-slider__thumbs {
    grid-template-columns: repeat(4, 1fr);
    max-height: none;
  }

  .hero-thumb img {
    height: 62px;
  }

  .gln-home-lives,
  .gln-home-lives--hero {
    overflow: hidden;
  }

  .gln-live-carousel {
    gap: 8px;
  }

  .gln-live-carousel__nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
    flex-basis: 36px;
  }

  .gln-live-card {
    flex: 0 0 calc((100% - 14px) / 2);
    min-width: calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
  }
}

@media (max-width: 767px) {
  .hero-grid {
    gap: 18px;
  }

  .hero-slider,
  .hero-slider__main,
  .hero-slide {
    overflow: hidden;
  }

  .hero-slider__main,
  .hero-slide,
  .hero-slide__image-link,
  .hero-slide__image-link img {
    min-height: 300px;
    height: 300px;
  }

  .hero-slide__overlay--simple {
    padding: 14px;
  }

  .hero-slide__overlay--simple h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .hero-slider__thumbs {
    display: none;
  }

  .gln-home-lives,
  .gln-home-lives--hero {
    margin-top: 14px;
  }

  .gln-live-carousel {
    display: block;
  }

  .gln-live-carousel__viewport {
    overflow: hidden;
    width: 100%;
  }

  .gln-live-carousel__track {
    gap: 12px;
    padding: 2px 0 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .gln-live-carousel__nav {
    display: none;
  }

  .gln-live-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }

  .gln-live-card__thumb {
    aspect-ratio: 16 / 9;
  }

  .gln-live-card__body {
    padding: 12px 14px 14px;
  }

  .gln-live-card__body h3 {
    font-size: .98rem;
    line-height: 1.3;
  }

  .gln-live-card__body p {
    font-size: .88rem;
    line-height: 1.4;
  }

  .gln-live-modal {
    padding: 10px;
  }

  .gln-live-modal__dialog {
    border-radius: 14px;
  }

  .gln-live-modal__header {
    padding: 14px 18px;
  }

  .gln-live-player iframe,
  .gln-live-player video,
  .gln-live-player embed,
  .gln-live-player object {
    height: 52vh;
  }
}

@media (max-width: 480px) {
  .hero-slider__main,
  .hero-slide,
  .hero-slide__image-link,
  .hero-slide__image-link img {
    min-height: 260px;
    height: 260px;
  }

  .hero-slide__overlay--simple {
    padding: 12px;
  }

  .hero-slide__overlay--simple h2 {
    font-size: 18px;
  }

  .gln-live-badge {
    left: 8px;
    top: 8px;
    padding: 4px 8px;
    font-size: .7rem;
  }

  .gln-live-play {
    right: 8px;
    bottom: 8px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}


/* ===== Final mobile stabilization ===== */
@media (max-width: 991px) {
  html, body {
    overflow-x: hidden;
  }

  .site-header {
    position: relative;
    top: auto;
  }

  .site-branding img,
  .site-branding a img,
  .site-branding .custom-logo {
    max-height: 44px;
  }

  .hero,
  .hero-grid,
  .hero-grid > div,
  .hero-slider,
  .hero-slider__main,
  .hero-slide,
  .hero-slide__image-link,
  .gln-home-lives,
  .gln-home-lives--hero,
  .gln-live-carousel,
  .gln-live-carousel__viewport,
  .gln-live-carousel__track {
    max-width: 100%;
    min-width: 0;
  }

  .hero-slider {
    width: 100%;
    margin-inline: 0;
  }

  .hero-slider__thumbs {
    display: none !important;
  }

  .gln-home-lives,
  .gln-home-lives--hero,
  .gln-live-carousel,
  .gln-live-carousel__viewport {
    overflow: hidden;
  }

  .gln-live-carousel {
    display: block;
  }

  .gln-live-carousel__track {
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 12px;
  }

  .gln-live-carousel__nav {
    display: none !important;
  }

  .gln-live-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .site-branding img,
  .site-branding a img,
  .site-branding .custom-logo {
    max-height: 40px;
  }
}
