.bmh-reels-empty {
  width: 100%;
  max-width: 640px;
  margin: 40px auto;
  padding: 48px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8f5 0%, #ffffff 100%);
  border: 1px dashed rgba(232, 105, 35, 0.35);
}

.bmh-reels-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E86923;
  color: #fff;
  font-size: 18px;
}

.bmh-reels-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.bmh-reels-rail::-webkit-scrollbar {
  height: 6px;
}

.bmh-reels-rail::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.bmh-reel-card {
  flex: 0 0 180px;
  width: 180px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
}

.bmh-reel-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}

.bmh-reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bmh-reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
}

.bmh-reel-info {
  display: block;
  margin-top: 10px;
}

.bmh-reel-info strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: #222;
}

.bmh-reel-info small {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 12px;
}

body.bmh-reels-open {
  overflow: hidden;
}

.bmh-reels-player {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.bmh-reels-player.is-open {
  display: flex;
}

.bmh-reels-stage {
  position: relative;
  width: min(420px, calc(100vw - 24px));
  height: min(760px, calc(100vh - 48px));
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.bmh-reels-player.is-instagram .bmh-reels-stage {
  width: min(540px, calc(100vw - 24px));
  height: min(860px, calc(100vh - 48px));
  background: #111;
  overflow: auto;
}

.bmh-reels-player.is-instagram .bmh-reels-meta {
  display: none;
}

.bmh-instagram-player {
  width: 100%;
  min-height: 100%;
  padding: 12px 12px 72px;
  box-sizing: border-box;
  background: #111;
  overflow: auto;
}

.bmh-instagram-player .instagram-media {
  margin: 0 auto !important;
}

.bmh-instagram-fallback {
  display: inline-flex;
  margin: 14px auto 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #E86923;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
}

.bmh-instagram-note {
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 420px;
  text-align: center;
}

.bmh-reels-media,
.bmh-reels-media iframe,
.bmh-reels-media video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

.bmh-reels-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 18px 20px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
}

.bmh-reels-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.bmh-reels-desc {
  margin: 0 0 10px;
  font-size: 13px;
  opacity: 0.9;
}

.bmh-reels-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bmh-reels-close,
.bmh-reels-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.bmh-reels-close {
  top: 18px;
  right: 18px;
  font-size: 28px;
  line-height: 1;
}

.bmh-reels-prev {
  top: calc(50% - 60px);
  right: 24px;
}

.bmh-reels-next {
  top: calc(50% + 16px);
  right: 24px;
}

.bmh-reels-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.bmh-reels-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

@media (max-width: 767px) {
  .bmh-reel-card {
    flex-basis: 146px;
    width: 146px;
  }

  .bmh-reels-prev,
  .bmh-reels-next {
    right: 12px;
  }

  .bmh-reels-stage {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
  }
}
