/* Reza Sadeghi v0.2.1 — responsive-only corrections.
   Loaded AFTER style.css/wp.css/product.css, never alters the desktop layout. */
@media (max-width: 991px) {
  /* Restore section-by-section scrolling on the mobile homepage only.
     Proximity preserves the snap effect without trapping tall dynamic sections.
     The hero and AF Story strip remain ONE snap target; the fan-club intro
     and news remain ONE target. Inner pages and desktop are unchanged. */
  html.is-home-page { scroll-snap-type: y proximity; scroll-padding-top: 64px; }
  html.is-home-page .rs-home-top, html.is-home-page .music-section,
  html.is-home-page .events-card, html.is-home-page .news-card,
  html.is-home-page .video-section, html.is-home-page .shop-section,
  html.is-home-page .fan-club-section, html.is-home-page .features-section,
  html.is-home-page .main-footer {
    scroll-snap-align: start; scroll-snap-stop: normal;
  }
  body { min-width: 0; }
  main, .archive-wrapper, .single-page-wrapper, .video-page-wrapper,
  .rs-product-page, .rs-archive-page { max-width: 100%; min-width: 0; }
  .container { min-width: 0; max-width: 100%; }
  img, video, iframe { max-width: 100%; }

  /* Menu: above page content, independently scrollable, closed links not focusable. */
  .main-header__inner { gap: 12px; min-width: 0; }
  .main-header__logo { margin-inline-end: auto; min-width: 0; }
  .main-header__actions { gap: 9px; }
  .nav-toggle-btn { width: 38px; height: 42px; flex-shrink: 0; z-index: 3; }
  .main-nav {
    width: min(320px, 88vw); max-width: none;
    height: 100vh; height: 100dvh;
    overscroll-behavior: contain;
    padding: calc(78px + env(safe-area-inset-top, 0px)) 14px
      calc(28px + env(safe-area-inset-bottom, 0px));
    visibility: hidden; pointer-events: none;
    transition: transform .3s ease, visibility .3s;
  }
  .main-header.nav-open .main-nav { visibility: visible; pointer-events: auto; }
  .main-nav__item > a, .mega-menu a { min-height: 44px; display: flex; align-items: center; }
  .main-nav__item.has-mega:not(.is-open) .mega-menu {
    visibility: hidden; opacity: 0; pointer-events: none;
    max-height: 0; padding-top: 0; padding-bottom: 0;
  }
  .main-nav__item.has-mega.is-open .mega-menu {
    visibility: visible; pointer-events: auto; transform: none;
    max-height: none; overflow: visible; padding: 8px 8px 12px;
  }
  .mega-menu__submenu { max-width: 100%; margin: 4px 0 8px; }
  .mega-menu__submenu a { min-height: 40px; }
  .main-header.nav-open .nav-toggle-btn { z-index: 4; }

  /* Hero and plugin stories are siblings in ONE vertical module.
     Allocate about 200px for stories on normal-height phones; reduce it only
     on short viewports so the hero never clips its headline or buttons. */
  .rs-home-top {
    --rs-stories-height: clamp(128px, calc(100dvh - 380px), 200px);
    /* Reserve the fixed 88px player plus a 2px buffer on the FIRST screen. */
    --rs-player-reserve: 0px;
    height: auto; min-height: calc(100vh - 64px - var(--rs-player-reserve));
    min-height: calc(100dvh - 64px - var(--rs-player-reserve));
    overflow: visible;
    display: flex; flex-direction: column;
    max-width: 100%;
  }
  .admin-bar .rs-home-top {
    min-height: calc(100dvh - 64px - 32px - var(--rs-player-reserve));
    height: auto;
  }
  .rs-home-top > .hero-section {
    flex: 0 0 auto;
    height: calc(100dvh - 64px - var(--rs-player-reserve) - var(--rs-stories-height));
    min-height: 190px;
    max-height: 850px;
    width: 100%; overflow: hidden;
  }
  .rs-home-top--no-stories { --rs-stories-height: 0px; }
  .rs-home-top--no-stories > .hero-section {
    min-height: calc(100dvh - 64px - var(--rs-player-reserve));
    height: calc(100dvh - 64px - var(--rs-player-reserve));
  }
  .admin-bar .rs-home-top > .hero-section {
    height: calc(100dvh - 64px - 32px - var(--rs-player-reserve) - var(--rs-stories-height));
  }
  .admin-bar .rs-home-top--no-stories > .hero-section {
    height: calc(100dvh - 64px - 32px - var(--rs-player-reserve));
    min-height: calc(100dvh - 64px - 32px - var(--rs-player-reserve));
  }
  .rs-home-top .hero-slider, .rs-home-top .hero-slider .swiper-wrapper,
  .rs-home-top .hero-slider .swiper-slide { max-width: 100%; min-width: 0; }
  .rs-home-top .hero-slider img { width: 100%; height: 100%; object-fit: cover; }
  .rs-home-top .hero-section .container { max-width: 100%; }
  .rs-home-top .hero-section__content { min-width: 0; width: 100%; max-width: min(560px, 100%); }
  .rs-home-top .hero-section__actions { flex-wrap: wrap; }
  .rs-stories {
    flex: 0 0 auto; width: 100%; height: auto;
    min-height: var(--rs-stories-height);
    overflow: visible;
  }
  .rs-stories__inner {
    min-height: var(--rs-stories-height); height: auto;
    padding-block: 16px; display: flex; align-items: center;
    width: 100%; max-width: 100%;
  }
  .rs-stories__inner > .af-stories-feed,
  .rs-home-top .rs-stories .af-stories { width: 100%; min-width: 0; max-width: 100%; }
  .rs-home-top .rs-stories .af-stories__rail {
    width: 100%; min-width: 0;
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .rs-home-top .rs-stories .af-stories__label { color: #fff; }
  .rs-stories .af-story-modal { z-index: 99999; }

  /* Video and store are INDEPENDENT sections in front-page.php.
     Do not apply old 55%/42% of a nonexistent .combo-section. */
  .combo-section { height: auto; display: block; overflow: visible; }
  .video-section, .shop-section {
    height: auto; min-height: 0;
    flex: none; overflow: visible;
    padding: 0; scroll-snap-align: none;
  }
  .video-section .container, .shop-section .container {
    height: auto; min-height: 0;
    padding-block: 76px 42px;
    justify-content: flex-start;
    gap: 0;
  }
  .shop-section .container { padding-block: 44px 44px; }
  .video-section__slider, .shop-section__slider {
    flex-shrink: 0; width: 100%; max-width: 100%;
    min-width: 0; overflow: hidden; margin-bottom: 20px;
  }
  .video-section__slider .swiper-wrapper,
  .shop-section__slider .swiper-wrapper { min-width: 0; }
  .video-section__slider .swiper-slide,
  .shop-section__slider .swiper-slide {
    flex: 0 0 auto; min-width: 0; max-width: 100%;
  }
  .video-card, .shop-card { flex-basis: auto; }
  .shop-card__title, .shop-card__price { min-width: 0; overflow-wrap: anywhere; }
  .section-header { margin-bottom: 16px; }
  .section-footer { margin-top: 4px; }

  /* Fan club: intro, descriptive text, buttons and news remain ONE section.
     Previously the two CHILD columns were snapped at 100vh and 75vh. */
  .fan-club-section {
    height: auto; min-height: 0; overflow: visible;
    scroll-snap-align: none; padding: 64px 0 34px;
  }
  .fan-club-section > .container {
    height: auto; min-height: 0; display: block;
    padding-top: 0; padding-bottom: 0;
  }
  .fan-club-wrapper {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 30px; width: 100%; align-items: start;
  }
  .fan-club-info, .fan-club-news {
    height: auto; min-height: 0; max-height: none;
    padding: 0; margin: 0; flex: none;
    scroll-snap-align: none; scroll-snap-stop: normal;
    justify-content: flex-start;
  }
  .fan-club-info__desc { font-size: 13px; line-height: 2.05; margin-bottom: 18px; }
  .fan-club-info__actions { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
  .fan-club-info__actions .btn { min-width: 0; max-width: 100%; }
  .fan-news-list { gap: 10px; }
  .fan-news-item { min-width: 0; padding-bottom: 12px; }
  .fan-news-item__text { min-width: 0; }
  .fan-news-item__sub { overflow-wrap: anywhere; }
  .fan-news-item__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .features-section { height: auto; min-height: 0; padding: 14px 0 44px; scroll-snap-align: none; }
  .features-section .container { height: auto; min-height: 0; padding-top: 0; }
  .features-grid {
    margin-top: 0; padding: 0 0 14px; gap: 12px;
    max-width: 100%; min-width: 0;
    overflow-x: auto; overscroll-behavior-inline: contain;
  }
  .feature-card { flex: 0 0 min(68vw, 440px); min-width: 0; }

  /* Player is still fixed, but it has room for a usable seek bar and safe area. */
  .global-player {
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .global-player__inner {
    height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
    align-items: center; justify-content: normal; gap: 9px;
  }
  .global-player__track { min-width: 0; width: auto; gap: 7px; }
  .global-player__track img { width: 34px; height: 34px; flex-shrink: 0; }
  .global-player__track-info { min-width: 0; flex: 1 1 auto; }
  .global-player__track-title { font-size: 11px; }
  .global-player__track-artist { font-size: 10px; white-space: nowrap; }
  .global-player__track .gp-icon-btn { display: none; }
  .global-player__center {
    min-width: 0; width: 100%; max-width: none;
    gap: 5px; flex: none;
  }
  .global-player__buttons { gap: 16px; }
  .global-player__buttons .gp-btn { min-width: 32px; min-height: 32px; }
  .global-player__progress { width: 100%; min-width: 0; gap: 5px; }
  .global-player__time { font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .global-player__bar { min-width: 12px; height: 5px; touch-action: pan-y; }
  .global-player__volume { display: none; }
  .main-footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    min-width: 0;
  }
  .main-footer__inner {
    height: auto; display: grid; grid-template-columns: minmax(0, 1fr);
    justify-content: stretch; align-items: start; gap: 26px;
  }
  .main-footer__right, .main-footer__left {
    flex: none; width: 100%; min-width: 0; max-width: 100%;
  }
  .main-footer__links { gap: 13px 22px; }
  .main-footer__divider { width: 100%; height: 1px; margin: 0; }
  .main-footer__socials { flex-wrap: wrap; max-width: 100%; }
  .main-footer__credits { gap: 8px 15px; line-height: 1.8; }
  html { scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  /* Archive grids and two-column single views must shrink without overflow. */
  .rs-loop-catalog__grid, .rs-song-catalog__grid, .rs-album-catalog__grid,
  .rs-card-grid, .rs-video-grid, .rs-event-grid, .rs-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 100%; min-width: 0;
  }
  .rs-loop-card, .rs-album-card, .rs-grid-card, .rs-post-card,
  .rs-loop-card__price, .rs-album-card__info { min-width: 0; max-width: 100%; }
  .rs-loop-card__price, .rs-loop-card__price * { overflow-wrap: anywhere; }
  .rs-loop-card .rs-album-card__foot, .rs-album-card__foot { min-width: 0; flex-wrap: wrap; }
  .rs-archive-content, .rs-album-catalog__body { min-width: 0; }
  .rs-archive-heading, .rs-album-catalog__hero { max-width: 100%; }
  .rs-pagination .nav-links { justify-content: center; }
  .track-layout, .track-main__inner {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 20px; min-width: 0;
  }
  .track-main, .track-sidebar, .track-media, .track-lyrics {
    width: 100%; max-width: 100%; min-width: 0;
  }
  .track-media { max-width: 350px; margin-inline: auto; }
  .track-main { padding: 20px; }
  .track-sidebar { padding: 18px; }
  .track-lyrics { flex: none; overflow-wrap: anywhere; }
  .track-lyrics img, .rs-entry-content img { max-width: 100%; height: auto; }
  .track-meta li { min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
  .track-meta strong { overflow-wrap: anywhere; }
  .archive-layout, .video-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .archive-layout > *, .video-layout > * { min-width: 0; width: 100%; }
  .archive-player, .archive-list, .archive-menu,
  .video-main, .video-sidebar { max-width: 100%; min-width: 0; }
  .archive-list__inner { max-height: none; }
  .song-row { max-width: 100%; min-width: 0; }
  .song-row__title { min-width: 0; overflow-wrap: anywhere; }
  .video-downloads { flex-direction: column; }
  .video-panel video, .video-main video { max-width: 100%; }
  .rs-content-panel { padding: 20px; max-width: 100%; min-width: 0; }
  .rs-entry-content, .rs-comments, .rs-video-description { overflow-wrap: anywhere; }
  .rs-comments { max-width: calc(100% - 30px); }

  /* WooCommerce hooks and forms remain native; only mobile layout changes. */
  .rs-product-page .rs-product-page__inner,
  .rs-product-page .woocommerce, .rs-product-page div.product { min-width: 0; max-width: 100%; }
  .rs-product-page .woocommerce div.product,
  .rs-product-page div.product { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rs-product-page .woocommerce div.product div.images,
  .rs-product-page div.product div.images,
  .rs-product-page .woocommerce div.product div.summary,
  .rs-product-page div.product div.summary { grid-column: 1; grid-row: auto; max-width: 100%; }
  .rs-product-page .woocommerce div.product div.images,
  .rs-product-page div.product div.images { padding: 12px; }
  .rs-product-page .woocommerce div.product div.summary,
  .rs-product-page div.product div.summary { padding: 20px 16px; }
  .rs-product-page .woocommerce-tabs { min-width: 0; padding: 20px 16px; }
  .rs-product-page div.product form.cart .variations { table-layout: fixed; }
  .rs-product-page div.product form.cart .variations td,
  .rs-product-page div.product form.cart .variations th { overflow-wrap: anywhere; }
  .rs-product-page div.product form.cart .variations select { min-width: 0; max-width: 100%; width: 100%; }
  .rs-product-page .woocommerce-product-gallery .flex-control-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .rs-product-page .woocommerce ul.products,
  .rs-product-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 782px) {
  .admin-bar .rs-home-top { min-height: calc(100dvh - 64px - 46px - var(--rs-player-reserve)); }
  .admin-bar .rs-home-top > .hero-section {
    height: calc(100dvh - 64px - 46px - var(--rs-player-reserve) - var(--rs-stories-height));
  }
  .admin-bar .rs-home-top--no-stories > .hero-section {
    height: calc(100dvh - 64px - 46px - var(--rs-player-reserve));
    min-height: calc(100dvh - 64px - 46px - var(--rs-player-reserve));
  }
  .admin-bar .main-nav { padding-top: calc(98px + env(safe-area-inset-top, 0px)); }
}

@media (max-width: 767px) {
  .rs-home-top .hero-section__content { padding: 4px 0 12px; }
  .rs-home-top .hero-section__title { font-size: clamp(21px, 6vw, 32px); line-height: 1.35; }
  .rs-home-top .hero-section__desc {
    max-width: 100%; font-size: 12px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .rs-home-top .hero-section__actions { gap: 8px; margin-top: 12px; }
  .rs-home-top .hero-section__actions .btn { min-height: 38px; height: 38px; padding-inline: 10px; font-size: 11px; }
  .rs-home-top .hero-slider .swiper-pagination { bottom: 8px; }
  .rs-loop-catalog__grid, .rs-song-catalog__grid, .rs-album-catalog__grid,
  .rs-card-grid, .rs-video-grid, .rs-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  }
  .rs-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-album-card__info { padding: 10px; min-height: 110px; }
  .rs-album-card__title { font-size: 13px; line-height: 1.6; }
  .rs-loop-card .rs-album-card__foot { gap: 5px; }
  .rs-loop-card__price { font-size: 11px; line-height: 1.65; }
  .rs-album-card__view { width: 34px; height: 34px; left: 8px; bottom: 8px; }
  .rs-album-card__view svg { width: 17px; height: 17px; }
  .rs-archive-heading { min-height: 0; height: 150px; }
  .rs-archive-content { padding-top: 0; padding-bottom: 50px; }
  .single-header-text h1 { font-size: 22px; overflow-wrap: anywhere; }
  .track-main { padding: 16px; }
  .track-sidebar { padding: 14px; }
  .track-lyrics p, .rs-lyrics__body p { font-size: 14px; line-height: 2.1; }
  .dl-row, .dl-row--top { max-width: 100%; flex-wrap: wrap; }
  .dl-btn { min-width: 0; }
  .archive-layout { margin-top: -24px; }
  .archive-list__inner { max-height: none; }
  .video-layout { margin-top: -24px; }
  .rs-product-page .woocommerce ul.products,
  .rs-product-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-product-page .rs-product-hero { height: auto; min-height: 190px; padding-block: 26px 38px; }
  .rs-product-page .rs-product-page__inner { margin-top: -16px; }
  .rs-product-page .woocommerce-product-gallery .flex-control-thumbs { gap: 6px; }
  .feature-card { flex-basis: min(82vw, 430px); }
}

@media (max-width: 480px) {
  .main-header__inner { padding-inline: 12px; gap: 9px; }
  .main-header__logo img { max-width: 170px; height: auto; max-height: 48px; }
  .main-header__actions .lang-switch { font-size: 11px; gap: 3px; }
  .main-header__actions .lang-switch .icon { width: 16px; height: 16px; }
  .main-header__actions .notif-btn { width: 34px; height: 34px; }
  .rs-home-top .hero-section__badge { margin-bottom: 8px; }
  .fan-club-section { padding-top: 48px; padding-bottom: 28px; }
  .fan-club-info__header { gap: 10px; margin-bottom: 14px; }
  .fan-club-info__title { font-size: 15px; }
  .fan-club-info__avatar { width: 54px; height: 54px; }
  .fan-club-info__actions { flex-direction: column; align-items: stretch; }
  .fan-club-info__actions .btn { width: 100%; white-space: normal; height: auto; min-height: 44px; text-align: center; }
  .fan-news-item__thumb { width: 44px; height: 44px; }
  .fan-news-item__sub { line-height: 1.6; }
  .rs-loop-card .rs-album-card__info { padding: 10px 8px; }
  .rs-loop-card__icon { width: 32px; height: 32px; }
  .rs-loop-card__icon svg { width: 18px; height: 18px; }
  .rs-album-card__badge { font-size: 10px; padding: 4px 7px; }
  .rs-album-card__foot { font-size: 10px; }
  .rs-event-grid { grid-template-columns: minmax(0, 1fr); }
  .main-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .main-footer__links a { display: inline-block; line-height: 1.75; }
  .main-footer__socials { gap: 7px; }
  .social-btn { width: 38px; height: 38px; }
  .rs-product-page .woocommerce-product-gallery .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .rs-product-page div.product .woocommerce-tabs ul.tabs { gap: 8px; }
}

@media (max-width: 360px) {
  .global-player__inner { grid-template-columns: minmax(0, 108px) minmax(0, 1fr); gap: 7px; padding-inline: 9px; }
  .global-player__track img { width: 36px; height: 36px; }
  .global-player__buttons { gap: 10px; }
  .global-player__progress { gap: 3px; }
  .global-player__time { font-size: 9px; }
  .rs-home-top .hero-section__actions .btn--outline { display: none; }
  .track-main { padding: 13px; }
  .rs-product-page .woocommerce div.product div.summary,
  .rs-product-page div.product div.summary { padding: 16px 12px; }
}

@media (max-width: 991px) and (max-height: 540px) {
  .rs-home-top > .hero-section { min-height: 190px; }
  .rs-home-top .hero-section__desc { display: none; }
  .rs-home-top .hero-section__actions .btn--outline { display: none; }
  .rs-stories__inner { padding-block: 10px; }
}

/* ==========================================================================
   v0.3 — سایدبار (drawer) موبایل: کاملاً بازطراحی‌شده + لوگوهای بزرگ‌تر
   ========================================================================== */
.main-nav__brand, .main-nav__foot, .nav-backdrop { display: none; }
html.nav-locked { overflow: hidden; }
html.nav-locked .global-player { z-index: 900; }

@media (max-width: 991px) {
  /* دکمه‌ی همبرگری */
  .main-header .nav-toggle-btn {
    width: 44px; height: 44px; padding: 0 12px; gap: 5px; border-radius: 14px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    transition: background-color .3s ease, border-color .3s ease;
  }
  .main-header .nav-toggle-btn:hover, .main-header.nav-open .nav-toggle-btn { background: rgba(236, 58, 68,.28); border-color: rgba(242, 72, 83,.6); }
  .main-header .nav-toggle-btn span { height: 2px; }

  /* پس‌زمینه‌ی تیره‌ی پشت drawer */
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 1;
    background: rgba(8,9,10,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  }
  .main-header.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

  /* خود drawer */
  .main-header .main-nav {
    z-index: 2; display: flex; flex-direction: column;
    width: min(340px, 88vw); padding: 0;
    background: radial-gradient(130% 55% at 100% 0%, rgba(236, 58, 68,.30), transparent 62%), linear-gradient(180deg, #23282c 0%, #131517 100%);
    border-left: 1px solid rgba(255,255,255,.09); box-shadow: -30px 0 80px rgba(0,0,0,.65);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    transition: transform .5s cubic-bezier(.22,1,.36,1), visibility .5s;
  }

  /* بالای drawer: لوگو + بستن */
  .main-nav__brand {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav__brand-link { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .main-nav__brand-link img { height: 64px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); }
  .main-nav__brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.6; min-width: 0; }
  .main-nav__brand-text strong { font-size: 15px; font-weight: 800; color: #fff; }
  .main-nav__brand-text small { font-size: 11px; color: #9aa1a6; }
  .nav-close {
    flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; cursor: pointer;
    transition: background-color .3s ease, transform .3s ease;
  }
  .nav-close:hover { background: #ec3a44; transform: rotate(90deg); }
  .nav-close svg { width: 18px; height: 18px; }

  /* لیست منو */
  .main-header .main-nav__list { flex: 1; padding: 18px 14px; gap: 6px; align-items: stretch; }
  .main-header .main-nav__item {
    opacity: 0; transform: translateX(26px);
    transition: opacity .35s ease, transform .5s cubic-bezier(.22,1,.36,1);
  }
  .main-header.nav-open .main-nav__item { opacity: 1; transform: none; transition-delay: calc(var(--i, 1) * 45ms + 120ms); }
  .main-nav__item:nth-child(1) { --i: 1; } .main-nav__item:nth-child(2) { --i: 2; } .main-nav__item:nth-child(3) { --i: 3; }
  .main-nav__item:nth-child(4) { --i: 4; } .main-nav__item:nth-child(5) { --i: 5; } .main-nav__item:nth-child(6) { --i: 6; } .main-nav__item:nth-child(7) { --i: 7; }

  .main-header .main-nav__item > a {
    display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 12px;
    border-radius: 18px; border: 1px solid transparent; background: transparent;
    font-size: 15px; font-weight: 700; color: #e8ebec;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
  }
  .main-header .main-nav__item > a:hover, .main-header .main-nav__item > a:active { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #fff; }
  /* کاشی آیکون */
  .main-header .main-nav__item > a::before {
    content: ""; position: static; flex: none; width: 40px; height: 40px; bottom: auto; right: auto; border-radius: 13px;
    background: rgba(255,255,255,.06) center / 20px no-repeat; transition: background-color .25s ease;
  }
  .main-header .main-nav__item > a:hover::before { width: 40px; background-color: rgba(242, 72, 83,.25); }
  /* فلش انتهای ردیف */
  .main-header .main-nav__item > a::after {
    content: ""; display: block; flex: none; width: 8px; height: 8px; margin: 0 auto 0 4px; vertical-align: 0;
    border: 0; border-left: 2px solid #7f868b; border-bottom: 2px solid #7f868b; transform: rotate(45deg); transition: transform .3s ease, border-color .25s ease;
  }
  .main-header .main-nav__item.has-mega.is-open > a::after { transform: rotate(-45deg); border-color: #ff6b73; }
  .main-header .main-nav__item.has-mega.is-open > a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }

  /* آیکون هر آیتم */
  .main-nav__item:nth-child(1) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
  .main-nav__item:nth-child(2) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E"); }
  .main-nav__item:nth-child(3) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h13a2 2 0 0 1 2 2v13a1 1 0 0 0 2 0V8h-2'/%3E%3Cpath d='M4 4v14a2 2 0 0 0 2 2h13M8 8h6M8 12h6M8 16h4'/%3E%3C/svg%3E"); }
  .main-nav__item:nth-child(4) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8.5l5 3.5-5 3.5z'/%3E%3C/svg%3E"); }
  .main-nav__item:nth-child(5) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
  .main-nav__item:nth-child(6) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
  .main-nav__item:nth-child(7) > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21.2l7.8-7.7 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E"); }

  /* زیرمنوی موسیقی */
  .main-header .main-nav__item.has-mega .mega-menu { margin: 2px 32px 4px 0; padding: 0 !important; border-right: 2px solid rgba(242, 72, 83,.55); }
  .main-header .main-nav__item.has-mega.is-open .mega-menu { padding: 6px 0 6px !important; }
  .main-header .mega-menu .mega-menu__link {
    display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; border-radius: 12px;
    font-size: 14px; font-weight: 600; color: #c4c9cc; transform: none; background: none;
  }
  .main-header .mega-menu .mega-menu__link::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f24853; flex: none; }
  .main-header .mega-menu .mega-menu__link:hover { background: rgba(255,255,255,.06); color: #fff; }

  /* پایین drawer: حساب کاربری + شبکه‌های اجتماعی */
  .main-nav__foot { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav__account {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 999px;
    border: 1px solid #ec3a44; color: #fff; font-size: 14px; font-weight: 800;
    background: linear-gradient(#fff, #fff) right center / 0% 100% no-repeat, #ec3a44;
    transition: background-size .5s cubic-bezier(.65, 0, .35, 1), color .3s ease .15s, border-color .3s ease .15s;
  }
  .main-nav__account:hover { background-size: 100% 100%; color: #ec3a44; border-color: #fff; }
  .main-nav__account svg { width: 18px; height: 18px; }
  .main-nav__socials { display: flex; justify-content: center; gap: 10px; }
  .main-nav__socials a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #d6dadc; transition: background-color .25s ease, transform .25s ease; }
  .main-nav__socials a:hover { background: #ec3a44; color: #fff; transform: translateY(-3px); }
  .main-nav__socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .main-nav__copy { margin: 0; text-align: center; font-size: 11px; color: #7f868b; line-height: 1.9; }
}

/* ==========================================================================
   v0.3.1 — موبایل: اسکرول سکشن‌به‌سکشن دقیق، کانون هواداران، features + فوتر در یک صفحه
   ========================================================================== */
@media (max-width: 991px) {
  /* هر اسکرول = دقیقاً یک سکشن (proximity باعث می‌شد با یک کشیدن کوتاه دو سکشن رد شود) */
  html.is-home-page { scroll-snap-type: y mandatory; }
  html.is-home-page .rs-home-top, html.is-home-page .music-section,
  html.is-home-page .events-card, html.is-home-page .news-card,
  html.is-home-page .video-section, html.is-home-page .shop-section,
  html.is-home-page .fan-club-section, html.is-home-page .features-section { scroll-snap-stop: always; }
  /* features-section و فوتر یک نقطه‌ی توقف‌اند؛ فوتر جدا snap نمی‌شود */
  html.is-home-page .main-footer { scroll-snap-align: none; scroll-snap-stop: normal; }

  /* ---- کانون هواداران: همه در یک صفحه ---- */
  .fan-club-section { padding: 16px 0 8px; }
  .fan-club-wrapper { gap: 12px; }
  .fan-club-info__header { margin-bottom: 8px; gap: 10px; }
  .fan-club-info__avatar { width: 44px; height: 44px; border-width: 2px; }
  .fan-club-info__title { font-size: 14px; }
  .fan-club-info__desc { margin-bottom: 10px; font-size: 11.5px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .fan-club-info__actions { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
  .fan-club-info__actions .btn { flex: 1 1 0; height: 40px; min-height: 40px; padding: 0 10px; font-size: 11px; gap: 6px; white-space: nowrap; }
  .fan-club-info__actions .btn .icon { width: 14px; height: 14px; }
  .section-header--fan { margin-bottom: 8px; padding-bottom: 6px; }
  .fan-club-news .section-footer { margin-top: 4px; }

  /* اخبار کانون: دو ردیف، اسکرول افقی؛ هر ستون ۸۰٪ عرض تا ۲۰٪ ستون بعدی از چپ دیده شود */
  .fan-news-list {
    display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 8px 10px; margin: 0 -16px 4px; padding: 0 16px 2px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .fan-news-list::-webkit-scrollbar { display: none; }
  .fan-news-item { scroll-snap-align: start; min-width: 0; padding: 8px 10px; gap: 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.035); }
  .fan-news-item__thumb { width: 44px; height: 44px; }
  .fan-news-item__text { min-width: 0; gap: 3px; }
  .fan-news-item__title { font-size: 12px; overflow: hidden; display: block; white-space: nowrap; text-overflow: ellipsis; }
  .fan-news-item__sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
  .fan-news-item__more { display: none; }

  /* ---- features-section + فوتر: یک صفحه ---- */
  .features-section { padding: 8px 0 2px; }
  .features-grid { padding: 0 0 6px; }
  .feature-card { flex-basis: min(62vw, 380px); padding: 12px; }
  .feature-card__title { font-size: 12.5px; }
  .main-footer { padding: 12px 0 calc(84px + env(safe-area-inset-bottom, 0px)); }
  .main-footer__inner { gap: 10px; }
  .main-footer__right { gap: 8px; min-width: 0; }
  .main-footer__logo img { height: 72px; }
  .main-footer__links { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
  .main-footer__links a { white-space: nowrap; font-size: clamp(9.5px, 3vw, 12px); }
  .main-footer__copy { white-space: nowrap; font-size: clamp(8px, 2.5vw, 11px); line-height: 1.6; }
  .main-footer__divider { display: none; }
  .main-footer__left { min-width: 0; gap: 8px; }
  .main-footer__social-title { font-size: 12px; }
  .social-btn { width: 36px; height: 36px; }
  .main-footer__credits { font-size: 10px; gap: 2px 12px; }

  /* ---- تصاویر جدا برای موبایل (picture) ---- */
  .hero-slider picture, .events-card picture { display: block; }
  .hero-slider picture { width: 100%; height: 100%; }
}

/* ---- کارت اخبار کانون: متن زیرعنوان همیشه سفید (دسکتاپ و موبایل) ---- */
.fan-news-item__sub { color: #fff; }

@media (max-width: 991px) {
  .main-header .main-nav__item:not(.has-mega) > a::after { display: none; }
}

/* ==========================================================================
   v0.3.4 — موبایل: سکشن موسیقی (منو بالا، لیست بدون اسکرول، پلیر پایین با گوشه‌ی گرد)
   ========================================================================== */
@media (max-width: 991px) {
  .music-section { padding: 64px 0 30px; }
  .music-section__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "menu" "list" "player";
    gap: 14px;
  }
  /* منو: بالا و افقی */
  .music-section__menu { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; align-self: start; }
  .music-section__menu-head { width: 100%; border-bottom: 0; padding-bottom: 0; font-size: 15px; }
  .music-tabs { flex: 1 1 auto; flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .music-tabs::-webkit-scrollbar { display: none; }
  .music-tabs__item { flex: none; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.05); font-size: 13px; }
  .music-tabs__item::before { display: none; }
  .music-tabs__item.is-active { background: #ec3a44; color: #fff; }
  .music-section__playlist-link { flex: none; padding: 8px 16px; font-size: 12px; }

  /* لیست آهنگ‌ها: بدون اسکرول داخلی */
  .music-section__list { max-height: none; overflow: visible; justify-content: flex-start; }

  /* پلیر (تصویر) پایین لیست، با گوشه‌های گرد */
  .now-playing { border-radius: 20px; overflow: hidden; height: 200px; }
  .now-playing__art { border-radius: 20px; }
  .now-playing__shade { border-radius: inherit; }
}

/* ==========================================================================
   v0.3.5 — موبایل صفحه‌ی اصلی: هر سکشن دقیقاً ۱۰۰٪ ارتفاعِ قابل‌دید (زیر هدر ۶۴px)
   ========================================================================== */
.news-card__side { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.news-card__side > .news-card__list { flex: 1; }
@media (min-width: 992px) { .news-card__list .news-item:nth-child(n+4) { display: none; } }

@media (max-width: 991px) {
  /* فقط سکشن‌ها نقطه‌ی snap‌اند؛ کارت‌های داخلشان نه (وگرنه وسط سکشن توقف می‌شد) */
  html.is-home-page .events-card, html.is-home-page .news-card { scroll-snap-align: none; scroll-snap-stop: normal; }

  .music-section, .highlights-section, .video-section, .shop-section, .fan-club-section {
    height: calc(100vh - 64px); height: calc(100dvh - 64px); min-height: 0; max-height: none;
    overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  }

  /* ---- موسیقی ---- */
  .music-section { padding: 10px 0; }
  .music-section .container { width: 100%; }
  .music-section__inner { gap: 10px; }
  .music-section__menu-head { font-size: 14px; }
  .music-tabs__item { padding: 7px 14px; font-size: 12.5px; }
  .music-section__playlist-link { padding: 6px 14px; }
  .music-section__list { max-height: none; overflow: visible; }
  .song-row { padding: 5px 4px; gap: 10px; }
  .song-row__avatar { width: 30px; height: 30px; }
  .music-section__inner { flex: 1; min-height: 0; grid-template-rows: auto auto minmax(190px, 1fr); }
  .now-playing { height: auto; min-height: 0; }
  @media (max-height: 720px) { .song-row:nth-child(n+6) { display: none; } }

  /* ---- رویدادها / اخبار ---- */
  .highlights-section { align-items: stretch; }
  .highlights-section__inner { padding: 14px 16px; justify-content: center; flex: 1; min-height: 0; }
  .events-card, .news-card { border-radius: 22px; }
  .events-card { min-height: 280px; padding: 22px 18px; }
  .events-card__header, .news-card__header { margin-bottom: 14px; }
  .events-card__grid {
    display: grid; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 8px 10px; width: auto; margin: 0 -18px; padding: 0 18px 4px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 18px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .events-card__grid::-webkit-scrollbar { display: none; }
  .events-card__grid .event-item { scroll-snap-align: start; min-width: 0; padding: 10px 14px; }
  .events-card__panel { overflow: visible; min-width: 0; width: 100%; max-width: 100%; }
  .events-card__grid { align-self: stretch; min-width: 0; max-width: none; }

  .news-card { padding: 20px 18px; }
  .news-card__body { gap: 12px; }
  .news-card__feature-img { height: 130px; }
  .news-card__feature-text p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .news-card__side { flex: none; }
  .news-card__list {
    display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 8px 10px; margin: 0 -18px; padding: 0 18px 4px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 18px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .news-card__list::-webkit-scrollbar { display: none; }
  .news-card__list .news-item { scroll-snap-align: start; min-width: 0; padding: 8px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.035); }
  .news-card__list .news-item:last-child { border-bottom: 1px solid rgba(255,255,255,.09); }
  .news-card__list .news-item:nth-child(n+5) { display: none; }
  .news-card__side > .see-more { margin-top: 8px; }

  /* ---- ویدیو / فروشگاه / کانون هواداران: وسط‌چین در ۱۰۰٪ ارتفاع ---- */
  .video-section .container, .shop-section .container { padding-block: 0; justify-content: center; }
  .fan-club-section { padding: 0; }
  .fan-club-section > .container { display: flex; flex-direction: column; justify-content: center; height: 100%; }

  /* ---- features + فوتر: مجموعاً ۱۰۰٪ (۳۰٪ + ۷۰٪) ---- */
  .features-section { height: calc((100dvh - 64px) * .36); min-height: 0; padding: 0 0 4px; display: flex; flex-direction: column; justify-content: flex-end; }
  .features-section .container { height: auto; }
  .main-footer { min-height: calc((100dvh - 64px) * .64); display: flex; flex-direction: column; justify-content: flex-start; padding: 8px 0 12px; }
}

/* ==========================================================================
   v0.3.7 — سایدبار: فلش زیرمنو دکمه‌ی جدا؛ همبرگری وقتی منو باز است مخفی می‌شود
   ========================================================================== */
@media (max-width: 991px) {
  .main-header .main-nav__item.has-mega > a::after {
    width: 36px; height: 36px; margin: 0 auto 0 0; border: 0; border-radius: 12px; transform: none;
    background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8ebec' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: transform .35s cubic-bezier(.22,1,.36,1), background-color .25s ease;
  }
  .main-header .main-nav__item.has-mega > a:hover::after { background-color: rgba(242, 72, 83,.28); }
  .main-header .main-nav__item.has-mega.is-open > a::after { transform: rotate(180deg); border: 0; background-color: rgba(242, 72, 83,.5); }

  .main-header .nav-toggle-btn { transition: opacity .25s ease, visibility .25s, background-color .3s ease, border-color .3s ease; }
  .main-header.nav-open .nav-toggle-btn { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ==========================================================================
   v0.3.8 — موبایل: ارتفاع دقیق سکشن‌ها، فوتر، عکس خبر، رویدادها (۳ آیتم زیر هم)
   ========================================================================== */
@media (max-width: 991px) {
  /* بدون scroll-padding پایین، ناحیه‌ی snap دقیقاً به اندازه‌ی سکشن می‌شود و سکشن بعدی از پایین معلوم نمی‌شود */
  html.is-home-page { scroll-padding-bottom: 0; }

  /* رویدادها: سه آیتم زیر هم، ستون‌های ۸۰٪ با اسکرول افقی */
  .events-card__grid { grid-template-rows: repeat(3, auto); }
  .events-card { min-height: 0; }

  /* عکس خبر شاخص: کامل‌تر (قبلاً ۱۳۰px و برش‌خورده بود) */
  .news-card__feature-img { height: clamp(160px, 30dvh, 240px); object-fit: cover; object-position: center; }
  @media (max-height: 720px) {
    .news-card__feature-img { height: 140px; }
    .news-card__feature-text p { -webkit-line-clamp: 2; }
  }

  /* features + فوتر: کارت‌های بالای فوتر بزرگ‌تر، متن فوتر بزرگ‌تر، فاصله‌ها یکنواخت */
  .feature-card { flex-basis: min(82vw, 460px); padding: 14px; }
  .feature-card__title { font-size: 14.5px; }
  .main-footer__inner { flex: 1; align-content: space-evenly; gap: 14px; }
  .main-footer__right, .main-footer__left { gap: 24px; }
  .main-footer__logo img { height: 80px; }
  .main-footer__links a { font-size: clamp(10.5px, 3.3vw, 13px); }
  .main-footer__copy { font-size: clamp(8.5px, 2.65vw, 11.5px); }
  .main-footer__social-title { font-size: 13px; }
  .social-btn { width: 40px; height: 40px; }
  .main-footer__credits { font-size: 11px; }
}

/* v0.3.9 — روی موبایل اسکرول سکشن‌به‌سکشن با JS (نرم) انجام می‌شود؛ snap خود مرورگر خاموش می‌شود */
html.is-home-page.rs-snap-js-touch { scroll-snap-type: none !important; scroll-behavior: auto !important; }

/* v0.4.0 — موبایل: کارت ویدیوها (تایتل نزدیک‌تر، فاصله‌ی عمودی بیشتر) و متن اخبار کانون */
@media (max-width: 991px) {
  .rs-video-grid { row-gap: 26px; column-gap: 12px; padding-block: 14px; }
  .rs-video-grid .video-card__title, .video-card__title { margin-top: 6px; line-height: 1.6; }
  .fan-news-item__title { font-size: 12px; }
  .fan-news-item__sub { font-size: 10.5px; }
}


/* v0.4.3 — رویدادهای صفحه‌ی اصلی در موبایل: ۳ ردیف با اسکرول افقی (۹ کارت = ۳ ستون) */
@media (max-width: 991px) {
  .highlights-section--events .events-card { padding: 0; min-height: 0; border-radius: 0; }
  .highlights-section--events .events-card__grid.rs-event-grid {
    display: grid; grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 8px 10px; width: auto; margin: 0 -16px; padding: 0 16px 4px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .highlights-section--events .events-card__grid.rs-event-grid::-webkit-scrollbar { display: none; }
  .highlights-section--events .event-item--alt { scroll-snap-align: start; padding: 10px 14px; }
  .highlights-section--events .event-item--alt .event-item__title { font-size: 13px; }
  .highlights-section--events .event-item--alt .event-item__meta { font-size: 11px; }
  .highlights-section--events .event-item--alt .event-item__icon { width: 22px; height: 22px; }
  .highlights-section--events .see-more { margin-top: 14px; }
}
