.reels-web-body {
  background: #f5f7fb;
}

.reels-web-page {
  width: min(1180px, 100%);
  margin: 0 auto 56px;
}

.reels-web-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 240px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(120deg, #061b4e 0%, #0b46d8 66%, #1f5fe8 100%);
  box-shadow: 0 22px 48px rgba(6, 27, 78, .18);
}

.reels-web-hero::after {
  content: "";
  position: absolute;
  right: -82px;
  bottom: -118px;
  width: 320px;
  height: 320px;
  border: 34px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.reels-web-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.reels-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #b45309;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.reels-eyebrow-light {
  color: #ffd7bd;
}

.reels-web-hero .reels-eyebrow {
  color: #ffd7bd;
}

.reels-web-hero h1 {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
  text-wrap: balance;
}

.reels-web-hero p {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.03rem;
  text-wrap: pretty;
}

.reels-web-hero-mark {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  align-items: end;
  gap: 10px;
  transform: rotate(-7deg);
}

.reels-web-hero-mark span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 106px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 16px 26px rgba(0, 0, 0, .14);
}

.reels-web-hero-mark span:nth-child(2) {
  height: 128px;
  color: #ffd7bd;
  background: rgba(243, 122, 31, .88);
  transform: translateY(-18px);
}

.reels-web-hero-mark i {
  font-size: 1.65rem;
}

.reels-discovery-panel {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 25, 23, .05);
}

.reels-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.reels-section-heading h2 {
  margin: 0;
  color: #1c1917;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  text-wrap: balance;
}

.reels-result-count {
  color: #78716c;
  font-size: .88rem;
  font-weight: 700;
}

.reels-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 7px 6px 17px;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  background: #fbfcfe;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.reels-search-field:focus-within {
  border-color: #f5b083;
  box-shadow: 0 0 0 4px rgba(243, 122, 31, .12);
}

.reels-search-field > i {
  color: #d9660f;
}

.reels-search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #1c1917;
  background: transparent;
  font: inherit;
}

.reels-search-submit,
.reels-primary-button {
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #d9660f;
  font: inherit;
  font-weight: 800;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.reels-search-submit {
  min-height: 40px;
  padding: 0 16px;
}

.reels-search-submit:hover,
.reels-primary-button:hover {
  background: #b45309;
  box-shadow: 0 8px 18px rgba(217, 102, 15, .2);
  transform: translateY(-1px);
}

.reels-filter-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.reels-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reels-filter-label,
.reels-category-select span {
  color: #78716c;
  font-size: .82rem;
  font-weight: 800;
}

.reels-filter-chip,
.reels-reset-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  color: #57534e;
  background: #fff;
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.reels-filter-chip:hover,
.reels-reset-button:hover {
  border-color: #f3b183;
  color: #b45309;
  transform: translateY(-1px);
}

.reels-filter-chip.is-active {
  border-color: #d9660f;
  color: #fff;
  background: #d9660f;
}

.reels-category-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.reels-category-select select {
  min-height: 36px;
  max-width: 220px;
  padding: 0 32px 0 11px;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  color: #44403c;
  background: #fff;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
}

.reels-reset-button {
  margin-left: 0;
  color: #b45309;
  background: #fffaf6;
  border-color: #ffd8bf;
}

.reels-results-section {
  margin-top: 34px;
}

.reels-results-heading {
  margin-bottom: 16px;
}

.reels-refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #dce4f1;
  border-radius: 10px;
  color: #0b46d8;
  background: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  transition: transform .15s ease, background-color .15s ease;
}

.reels-refresh-button:hover {
  background: #f0f5ff;
  transform: translateY(-1px);
}

.reels-grid,
.reels-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.reel-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9edf3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 25, 23, .055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.reel-card:hover {
  box-shadow: 0 16px 30px rgba(28, 25, 23, .12);
  transform: translateY(-3px);
}

.reel-card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #071b4b;
  aspect-ratio: 9 / 12.5;
}

.reel-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, opacity .2s ease;
}

.reel-card:hover .reel-card-media img {
  transform: scale(1.04);
}

.reel-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(6, 27, 78, .04) 35%, rgba(6, 27, 78, .7) 100%);
  pointer-events: none;
}

.reel-card-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 27, 78, .46);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
}

.reel-card-play i {
  margin-left: 3px;
}

.reel-card-badge,
.reel-card-category {
  position: absolute;
  z-index: 1;
  top: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(6, 27, 78, .7);
  font-size: .71rem;
  font-weight: 800;
}

.reel-card-badge {
  left: 12px;
}

.reel-card-category {
  right: 12px;
  max-width: 54%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff1e7;
  background: rgba(180, 83, 9, .85);
}

.reel-card-bottom {
  position: absolute;
  z-index: 1;
  right: 13px;
  bottom: 12px;
  left: 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.reel-card-bottom strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: .98rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-card-bottom small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, .8);
  font-size: .74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-card-stats {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .88);
  font-size: .72rem;
  font-weight: 800;
}

.reel-card-body {
  min-height: 86px;
  padding: 13px 14px 15px;
}

.reel-card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #1c1917;
  font-size: .98rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.reel-card-product {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 9px;
  overflow: hidden;
  color: #b45309;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-card-product:hover {
  color: #0b46d8;
  text-decoration: underline;
}

.reels-feedback {
  width: 100%;
}

.reels-feedback-empty {
  padding: 64px 20px;
  border: 1px solid #e8edf5;
  border-radius: 18px;
  text-align: center;
  background: #fff;
}

.reels-feedback-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 14px;
  color: #d9660f;
  background: #fff0e5;
  font-size: 1.25rem;
}

.reels-feedback h3 {
  margin: 0;
  color: #1c1917;
  font-size: 1.2rem;
}

.reels-feedback p {
  max-width: 520px;
  margin: 8px auto 0;
  color: #78716c;
  text-wrap: pretty;
}

.reels-primary-button {
  min-height: 42px;
  margin-top: 18px;
  padding: 0 16px;
}

.reels-feedback-error {
  padding: 50px 20px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  text-align: center;
  background: #fffaf6;
}

.reels-skeleton-card {
  overflow: hidden;
  border: 1px solid #e8edf5;
  border-radius: 17px;
  background: #fff;
}

.reels-skeleton-card::before {
  display: block;
  content: "";
  aspect-ratio: 9 / 12.5;
  background: linear-gradient(100deg, #eef2f7 25%, #f8fafc 38%, #eef2f7 55%);
  background-size: 300% 100%;
  animation: reels-skeleton 1.4s ease-in-out infinite;
}

.reels-skeleton-card span {
  display: block;
  width: 72%;
  height: 10px;
  margin: 13px 14px 0;
  border-radius: 6px;
  background: #eef2f7;
}

.reels-skeleton-card span:last-child {
  width: 46%;
  margin-top: 8px;
  margin-bottom: 15px;
}

@keyframes reels-skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.reel-modal[hidden],
.reels-feedback[hidden] {
  display: none;
}

.reel-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 27, 78, .72);
  backdrop-filter: blur(5px);
}

.reel-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 390px) minmax(300px, 430px);
  width: min(820px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.reel-player-frame {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #061b4e;
  aspect-ratio: 9 / 13;
  touch-action: pan-y;
}

.reel-player-frame img,
.reel-player-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-player-frame video {
  background: #061b4e;
}

.reel-player-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background: rgba(6, 27, 78, .55);
}

.reel-player-fallback i {
  font-size: 2rem;
}

.reel-modal-nav {
  position: absolute;
  z-index: 2;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 27, 78, .68);
  transition: opacity .15s ease, background-color .15s ease, transform .15s ease;
}

.reel-modal-nav:hover:not(:disabled) {
  background: rgba(11, 70, 216, .88);
  transform: scale(1.04);
}

.reel-modal-nav:disabled {
  cursor: not-allowed;
  opacity: .32;
}

.reel-modal-nav-prev {
  bottom: 60px;
}

.reel-modal-nav-next {
  bottom: 13px;
}

.reel-swipe-hint {
  position: absolute;
  z-index: 2;
  display: none;
  bottom: 15px;
  left: 14px;
  max-width: calc(100% - 112px);
  padding: 5px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .86);
  background: rgba(6, 27, 78, .58);
  font-size: .68rem;
  font-weight: 800;
  pointer-events: none;
}

.reel-modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 27, 78, .7);
}

.reel-modal-body {
  padding: 36px 28px 28px;
}

.reel-modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.reel-modal-kicker {
  color: #b45309;
  font-size: .75rem;
  font-weight: 800;
}

.reel-modal-heading h2 {
  margin: 6px 0 0;
  color: #1c1917;
  font-size: 1.55rem;
  line-height: 1.13;
  text-wrap: balance;
}

.reel-modal-category {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 8px;
  color: #0b46d8;
  background: #eaf1ff;
  font-size: .72rem;
  font-weight: 800;
}

.reel-modal-description {
  margin: 15px 0 0;
  color: #57534e;
  text-wrap: pretty;
}

.reel-modal-store {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: #44403c;
  font-size: .9rem;
  font-weight: 800;
}

.reel-modal-store img,
.reel-modal-store-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #0b46d8;
  object-fit: cover;
}

.reel-modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.reel-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  color: #57534e;
  background: #fff;
  font: inherit;
  font-size: .83rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.reel-action-button:hover {
  border-color: #f3b183;
  color: #b45309;
  background: #fffaf6;
  transform: translateY(-1px);
}

.reel-action-button.is-active {
  border-color: #f3b183;
  color: #b45309;
  background: #fff4ea;
}

.reel-action-link {
  color: #fff;
  border-color: #0b46d8;
  background: #0b46d8;
}

.reel-action-link:hover {
  border-color: #061b4e;
  color: #fff;
  background: #061b4e;
}

@media (max-width: 1100px) {
  .reels-grid,
  .reels-skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .reels-web-hero {
    min-height: 220px;
  }

  .reels-web-hero-mark {
    transform: scale(.78) rotate(-7deg);
    transform-origin: right center;
  }

  .reel-modal-dialog {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }

  .reel-player-frame {
    min-height: 390px;
    max-height: 55vh;
  }
}

@media (max-width: 640px) {
  .reels-web-page {
    margin-bottom: 28px;
  }

  .reels-web-hero {
    align-items: start;
    min-height: 0;
    padding: 28px 22px 34px;
  }

  .reels-web-hero-mark {
    display: none;
  }

  .reels-web-hero h1 {
    font-size: 2rem;
  }

  .reels-discovery-panel {
    padding: 20px 16px;
    border-radius: 17px;
  }

  .reels-search-field {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 9px 9px 9px 13px;
  }

  .reels-search-field input {
    min-height: 36px;
  }

  .reels-search-submit {
    width: 100%;
  }

  .reels-category-select {
    width: 100%;
    margin-left: 0;
  }

  .reels-category-select select {
    min-width: 0;
    flex: 1;
    max-width: none;
  }

  .reels-reset-button {
    margin-left: auto;
  }

  .reels-grid,
  .reels-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .reel-card-body {
    min-height: 78px;
    padding: 11px 11px 13px;
  }

  .reel-card-title {
    font-size: .88rem;
  }

  .reel-card-product {
    margin-top: 7px;
    font-size: .72rem;
  }

  .reels-results-heading {
    align-items: start;
  }

  .reels-refresh-button span {
    display: none;
  }

  .reel-modal {
    padding: 10px;
  }

  .reel-modal-dialog {
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .reel-player-frame {
    min-height: 330px;
  }

  .reel-swipe-hint {
    display: block;
  }

  .reel-modal-body {
    padding: 24px 18px 20px;
  }

  .reel-modal-heading h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 390px) {
  .reels-grid,
  .reels-skeleton-grid {
    grid-template-columns: 1fr;
  }
}
