.muse-shorts {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px));
  margin: clamp(28px, 5vw, 56px) auto;
  padding: clamp(14px, 3vw, 30px);
  background: #f1f2ea;
  border: 1px solid #d6ddd3;
  border-radius: 12px;
  color: #28352d;
  text-align: left;
  scroll-margin-top: 104px;
}

.muse-shorts--inline { width: 100%; margin-block: 27px; }
.muse-shorts h2, .muse-shorts h3 { color: #28352d; margin: 0 0 12px; line-height: 1.4; }
.muse-shorts h2 { font-size: clamp(1.28rem, 2.1vw, 1.8rem); }
.muse-shorts h3 { font-size: 1.06rem; }
.muse-shorts__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 16px;
  margin-bottom: 12px;
}

.muse-shorts__header h2 { margin: 0; }
.muse-shorts__topics { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 16px; }
.muse-shorts__group { scroll-margin-top: 104px; }
.muse-shorts__group + .muse-shorts__group { margin-top: 24px; }

.muse-shorts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 306px), 1fr));
  gap: 12px;
}

.muse-shorts__card {
  display: grid;
  grid-template-columns: clamp(76px, 21vw, 100px) minmax(0, 1fr);
  gap: clamp(8px, 2vw, 14px);
  padding: 10px;
  align-items: start;
  background: #fff;
  border: 1px solid #d5dcd2;
  border-radius: 8px;
}

.muse-shorts__card:only-child { max-width: 550px; }
.muse-shorts__preview {
  display: grid;
  aspect-ratio: 9 / 16;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #17291f;
  border-radius: 5px;
  text-decoration: none;
}

.muse-shorts__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
}

.muse-shorts__play {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-left: 2px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #182a21e8;
  color: #fff;
  font-size: .9rem;
}

.muse-shorts__preview:hover .muse-shorts__play { background: #355e47; }
.muse-shorts__play-label {
  position: absolute;
  inset: auto 0 0;
  padding: 5px 2px;
  background: #182a21;
  color: #fff;
  text-align: center;
  font-size: .8rem;
  line-height: 1.35;
}

.muse-shorts__content { display: grid; justify-items: start; gap: 6px; align-self: center; }
.muse-shorts__content strong { color: #27352c; font-size: 1rem; line-height: 1.45; }
.muse-shorts__description { color: #4a5a4f; font-size: .9rem; line-height: 1.55; }
.muse-shorts__badge { color: #3e5345; background: #e8eee3; padding: 3px 7px; font-size: .73rem; font-weight: 650; line-height: 1.4; }
.muse-shorts__out, .muse-shorts__more, .muse-shorts__channel, .muse-shorts__topics a {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  color: #31573f;
  font-size: .9rem;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.muse-shorts__channel { font-weight: 700; }
.muse-shorts__card .muse-shorts__out {
  box-sizing: border-box;
  padding: 6px 9px;
  border: 1px solid #b7c6ba;
  border-radius: 5px;
  background: #f4f7f3;
  text-decoration: none;
}

.muse-shorts__card .muse-shorts__out:hover { background: #e8eee3; }
.muse-shorts__more { margin-top: 6px; }
.muse-shorts a:focus-visible, .muse-shorts-player :is(button, a):focus-visible { outline: 3px solid #8c5b20; outline-offset: 3px; }

.muse-shorts-player {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(calc(100% - 24px), 430px);
  max-height: calc(100dvh - 20px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 14px 3px;
  border: 1px solid #d5dcd2;
  border-radius: 12px;
  background: #fff;
  color: #28352d;
  text-align: center;
}

.muse-shorts-player::backdrop { background: #101911b8; }
.muse-shorts-player__header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; text-align: left; }
.muse-shorts-player__header h2 { margin: 0; color: #28352d; font-size: 1rem; line-height: 1.4; }
.muse-shorts-player__header form { margin: 0; }
.muse-shorts-player__header button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d5dcd2;
  border-radius: 6px;
  background: #f1f2ea;
  color: #28352d;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.muse-shorts-player__screen {
  width: min(100%, clamp(200px, calc((100dvh - 126px) * .5625), 388px));
  height: min(calc(100dvh - 122px), 690px);
  min-height: 200px;
  margin-inline: auto;
  border-radius: 5px;
  overflow: hidden;
  background: #111;
}

.muse-shorts-player iframe { display: block; width: 100%; height: 100%; border: 0; }
