body.esm-home-feed-route {
  height: 100dvh !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
}
body.esm-home-feed-route #esmHomeTabs { position: relative !important; top: auto !important; }
body.esm-home-feed-route #esmFinalShell {
  width: 100% !important;
  max-width: none !important;
  height: var(--esm-home-usable, calc(100dvh - 180px)) !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0;
  border-radius: 0;
  grid-template-rows: minmax(0, 1fr);
}
body.esm-home-feed-route .esm-final-side { min-height: 0; overflow-y: auto; }
body.esm-home-feed-route #esmFinalShell > .esm-final-main {
  --esm-home-gap: clamp(4px, .6vw, 10px);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
}
.esm-home-feed-view .esm-feed-row {
  --esm-column-limit: calc(var(--esm-home-usable, 80dvh) * 1.77778);
  gap: var(--esm-home-gap);
  width: min(100%, calc((var(--esm-column-limit) + var(--esm-home-gap)) * var(--esm-row-cols) - var(--esm-home-gap)));
  margin: 0 auto var(--esm-home-gap);
}
.esm-home-feed-view .esm-feed-row.is-portrait { --esm-column-limit: calc(var(--esm-home-usable, 80dvh) * .5625); }
.esm-home-feed-view .esm-feed-row:last-child { margin-bottom: 0; }
.esm-home-feed-view .esm-feed-row > figure,
.esm-home-feed-view .esm-feed-row .esm-feed-tile { border: 0; border-radius: 8px !important; }
.esm-home-feed-view .esm-feed-row .esm-feed-visual :is(img,video),
.esm-home-feed-view .esm-feed-row .esm-final-cover > :is(img,video) { object-fit: cover !important; object-position: center !important; }
.esm-home-feed-view .esm-feed-row figcaption { padding: 22px 8px 8px; font-size: clamp(11px, 1.25vw, 16px); }
.esm-home-feed-view .esm-bundled-example-label { margin-top: 1px; }
.esm-home-feed-view .esm-home-feed-status { padding: 4px 8px; margin: 0; }
.esm-bottom-nav .esm-nav-item { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.esm-home-feed-view .esm-feed-row figcaption,
.esm-home-feed-view .esm-feed-row .esm-feed-copy strong { font-family: system-ui, "Malgun Gothic", sans-serif; font-weight: 650; -webkit-text-size-adjust: 100%; }
.esm-home-feed-view .esm-feed-row figcaption { font-size: clamp(13px, 1.25vw, 17px); }
#esmCinemaViewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #050507; color: white; }
#esmCinemaViewer::backdrop { background: black; }
#esmCinemaMovie { display: block; width: 100%; height: 100%; object-fit: contain; background: black; }
.esm-home-feed-view #esmHomePhotoGallery .esm-final-cover > img,
.esm-home-feed-view .esm-feed-visual .esm-feed-video-fallback { opacity: 1; transition: opacity .2s ease; }
.esm-home-feed-view #esmHomePhotoGallery .esm-final-cover[data-esm-playback=playing]:not([data-esm-frame-ready]) > img { opacity: 1; }
.esm-home-feed-view #esmHomePhotoGallery .esm-final-cover[data-esm-frame-ready=true] > img { opacity: 0; }
.esm-home-feed-view .esm-feed-visual .esm-feed-video-fallback { display: block !important; position: absolute; inset: 0; pointer-events: none; }
.esm-home-feed-view .esm-feed-tile[data-esm-frame-ready=true] .esm-feed-video-fallback { opacity: 0; }
@media(prefers-reduced-motion:reduce){.esm-home-feed-view img { transition: none !important; }}
#esmCinemaClose { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 44px; height: 44px; border-radius: 50%; padding: 0; border: 1px solid #ffffff52; color: #fff; background: #121117b3; font: 26px/1 system-ui, sans-serif; }
#esmCinemaGesture { position: absolute; inset: 0 0 54px; touch-action: none; }
#esmCinemaListButton { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); min-height: 44px; padding: 0 15px; border: 1px solid #ffffff52; border-radius: 24px; background: #121117b3; color: white; font: 600 14px system-ui, sans-serif; }
#esmCinemaList { position: absolute; z-index: 2; inset: auto 0 max(54px,env(safe-area-inset-bottom)); display: flex; gap: 10px; overflow-x: auto; padding: 14px max(14px,env(safe-area-inset-left)); background: #101018ed; color: white; }
#esmCinemaList[hidden],#esmCinemaGesture[hidden],#esmCinemaListButton[hidden] {display:none!important}
#esmCinemaList button { flex: 0 0 102px; padding: 5px; border: 2px solid transparent; border-radius: 10px; background: transparent; color: white; font: 600 13px system-ui, sans-serif; text-align: left; }
#esmCinemaList button[aria-current=true] { border-color: #bdabff; }
#esmCinemaList img { display: block; width: 88px; height: 52px; object-fit: cover; border-radius: 5px; margin-bottom: 4px; }
#esmCinemaList span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body:has(#esmCinemaViewer[open]) > .esm-bottom-nav { visibility: hidden; }
@media (max-width: 600px) and (orientation: portrait) {
  body.esm-home-feed-route .esm-home-feed-view { container-type: inline-size; }
  .esm-home-feed-view .esm-feed-row.is-portrait {
    --esm-tile-width: calc((100cqw + var(--esm-home-gap)) / var(--esm-row-cols) - var(--esm-home-gap));
    --esm-pair-height: calc((var(--esm-home-usable) - (100cqw - var(--esm-home-gap)) * .28125 - 2 * var(--esm-home-gap)) / 2);
  }
  .esm-home-feed-view .esm-feed-row.is-portrait > :is(.esm-feed-card,figure) {
    height: clamp(calc(var(--esm-tile-width) * 1.18), var(--esm-pair-height), calc(var(--esm-tile-width) * 16 / 9)) !important;
    aspect-ratio: auto !important;
  }
  #esmHomePhotoGallery .esm-feed-row.is-portrait .esm-final-cover > :is(img,video) {
    object-position: center 12% !important;
  }
}
