/* Shorts (Stage2) - TikTok 웹 UI 느낌으로 리팩토링 (PC/모바일 공통)
   - 다크모드(테마) 확장을 위해 CSS 변수 기반
   - JS/기능 유지, 디자인만 정리
*/

:root {
  --shorts-bg: #0b0c0f;
  --shorts-ambient-bg: rgba(11, 12, 15, 0.92);
  --shorts-surface: rgba(255, 255, 255, 0.06);
  --shorts-surface-2: rgba(255, 255, 255, 0.10);
  --shorts-border: rgba(255, 255, 255, 0.12);
  --shorts-text: rgba(255, 255, 255, 0.96);
  --shorts-muted: rgba(255, 255, 255, 0.72);
  --shorts-dim: rgba(255, 255, 255, 0.56);
  --shorts-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shorts-accent: #ff3b5c;
  --shorts-radius: 18px;
  --shorts-top: 64px; /* JS에서 실제 topbar 높이로 갱신 */
}

/* (추후) 테마 스위치용 훅: body[data-theme="light"], body[data-theme="dark"] 등으로 확장 가능 */

body.shorts-page {
  background: var(--shorts-bg) !important;
}

body.shorts-page main {
  padding: 0 !important;
  margin: 0 !important;
}

body.shorts-page header,
body.shorts-page footer {
  position: relative;
  z-index: 2;
}

/* 모바일에서는 Shorts를 전체 화면처럼 사용 */
@media (max-width: 768px) {
  body.shorts-page {
    padding: 0 !important;
    max-width: none !important;
  }
  body.shorts-page header,
  body.shorts-page footer {
    display: none !important;
  }
}

.shorts-shell {
  width: 100%;
  color: var(--shorts-text);
}

/* ──────────────────────────────────────────────
   3-컬럼 레이아웃(PC): 좌측 네비 + 중앙 피드 + 우측 정보
   ────────────────────────────────────────────── */

.shorts-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  padding: 12px 0 24px;
}

@media (max-width: 1080px) {
  .shorts-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .shorts-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .shorts-layout {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }
  .shorts-side,
  .shorts-rail {
    display: none;
  }
}

/* 좌측 네비 */
.shorts-side {
  position: sticky;
  top: 12px;
  align-self: start;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--shorts-border);
  border-radius: var(--shorts-radius);
  box-shadow: var(--shorts-shadow);
  padding: 14px;
  overflow: hidden;
}

.shorts-side-brand {
  display: block;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--shorts-text);
  text-decoration: none;
  font-size: 18px;
  padding: 8px 10px;
  border-radius: 12px;
}

.shorts-side-nav {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shorts-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--shorts-text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
}

.shorts-side-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.shorts-side-link.is-on {
  background: rgba(255, 59, 92, 0.12);
  border-color: rgba(255, 59, 92, 0.25);
}

.shorts-side-ico {
  width: 22px;
  text-align: center;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.shorts-side-txt {
  font-weight: 800;
}

.shorts-side-foot {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
}

.shorts-side-foot-title {
  font-weight: 900;
  font-size: 13px;
}

.shorts-side-foot-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--shorts-muted);
  line-height: 1.35;
}

/* 우측 레일 */
.shorts-rail {
  position: sticky;
  top: 12px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shorts-rail-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--shorts-border);
  border-radius: var(--shorts-radius);
  box-shadow: var(--shorts-shadow);
  padding: 14px;
}

.shorts-rail-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.shorts-rail-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--shorts-muted);
  line-height: 1.35;
}

.shorts-rail-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--shorts-muted);
  line-height: 1.45;
}

.shorts-comment-rail-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.shorts-comment-rail-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shorts-comment-rail-meta {
  font-size: 12px;
  color: var(--shorts-muted);
  line-height: 1.45;
  word-break: break-word;
}

.shorts-comment-rail-scroll {
  margin-top: 12px;
  min-height: 180px;
  max-height: min(44vh, 420px);
  overflow: auto;
}

.shorts-comment-empty {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--shorts-muted);
  font-size: 12px;
  line-height: 1.45;
}

.shorts-comment-form-desktop {
  margin-top: 12px;
  padding: 0;
  border-top: none;
  background: transparent;
}

@media (min-width: 901px) {
  #shorts-comment-modal {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .shorts-comment-rail-card {
    display: none !important;
  }
}

/* ──────────────────────────────────────────────
   상단바
   ────────────────────────────────────────────── */

.shorts-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(11, 12, 15, 0.88);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.shorts-brand {
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: var(--shorts-text);
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
}

.shorts-tabs {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
}

.shorts-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--shorts-muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  word-break: keep-all;
}

.shorts-tab.is-on {
  color: var(--shorts-text);
  background: rgba(255, 59, 92, 0.16);
  border: 1px solid rgba(255, 59, 92, 0.28);
}

.shorts-search {
  margin-left: auto;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 120px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.shorts-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--shorts-text);
  font-size: 13px;
}

.shorts-search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.shorts-search-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.shorts-search-btn:hover {
  transform: translateY(-0.5px);
}

/* 자동재생 토글 */
.shorts-autoplay {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}

.shorts-autoplay-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shorts-autoplay-ui {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.shorts-autoplay-ui::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
  transform: translateY(-50%);
  transition: transform 150ms ease, background 150ms ease;
}

.shorts-autoplay-text {
  font-size: 12px;
  color: var(--shorts-muted);
  font-weight: 800;
}

.shorts-autoplay-input:checked + .shorts-autoplay-ui {
  background: rgba(255, 59, 92, 0.25);
  border-color: rgba(255, 59, 92, 0.35);
}

.shorts-autoplay-input:checked + .shorts-autoplay-ui::after {
  transform: translateY(-50%) translateX(16px);
  background: rgba(255, 255, 255, 0.98);
}

/* 모바일에서는 탑바를 한 줄로 유지 */
@media (max-width: 900px) {
  .shorts-topbar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
  }
  .shorts-brand {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 15px;
  }
  .shorts-tabs {
    flex: 0 0 auto;
    padding: 3px;
    gap: 4px;
    min-width: 0;
  }
  .shorts-tab {
    min-width: 44px;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }
  .shorts-search {
    order: 0;
    margin-left: 0;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 6px 8px;
    gap: 6px;
  }
  .shorts-search-input {
    font-size: 12px;
  }
  .shorts-autoplay {
    flex: 0 0 auto;
    margin-left: 0;
    padding: 5px 7px;
    gap: 6px;
  }
  .shorts-autoplay-ui {
    width: 32px;
    height: 18px;
  }
  .shorts-autoplay-ui::after {
    width: 14px;
    height: 14px;
  }
  .shorts-autoplay-input:checked + .shorts-autoplay-ui::after {
    transform: translateY(-50%) translateX(14px);
  }
  .shorts-autoplay-text {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .shorts-topbar {
    gap: 6px;
  }
  .shorts-brand {
    font-size: 14px;
  }
  .shorts-tabs {
    gap: 3px;
  }
  .shorts-tabs::-webkit-scrollbar {
    display: none;
  }
  .shorts-tab {
    min-width: 40px;
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }
  .shorts-search {
    padding: 5px 7px;
  }
  .shorts-search-btn {
    font-size: 15px;
  }
  .shorts-autoplay {
    padding: 4px 6px;
    gap: 4px;
  }
  .shorts-autoplay-text {
    display: none;
  }
}

/* ──────────────────────────────────────────────
   피드/아이템
   ────────────────────────────────────────────── */

.shorts-main {
  min-width: 0;
}

.shorts-feed {
  height: calc(100vh - var(--shorts-top));
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  padding: 14px 0 22px;
}

/* 스크롤바 (크롬) */
.shorts-feed::-webkit-scrollbar {
  width: 10px;
}
.shorts-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid rgba(11, 12, 15, 0.9);
}
.shorts-feed::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}

.shorts-item {
  position: relative;
  width: min(592px, 100%);
  height: calc(100vh - var(--shorts-top) - 30px);
  max-height: 860px;
  min-height: 520px;
  margin: 0 auto 18px;
  padding-right: 72px;
  overflow: visible;
  scroll-snap-align: start;
}

.shorts-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72px;
  border-radius: 0 var(--shorts-radius) var(--shorts-radius) 0;
  background: var(--shorts-ambient-bg);
  z-index: 0;
}

.shorts-stage {
  position: absolute;
  inset: 0 72px 0 0;
  border-radius: var(--shorts-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shorts-shadow);
  z-index: 1;
}

@media (max-width: 900px) {
  .shorts-feed {
    height: 100vh;
    padding: 0;
  }
  .shorts-item {
    width: 100%;
    height: 100vh;
    max-height: none;
    min-height: 100vh;
    margin: 0;
    padding-right: 0;
  }
  .shorts-stage {
    inset: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .shorts-nav-pad {
    display: none !important;
  }
  .shorts-item::after {
    display: none;
  }
}

.shorts-player {
  position: absolute;
  inset: 0;
  background: #000;
}

.shorts-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shorts-tap {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.shorts-center-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.90);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}


.shorts-nav-pad {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 6;
  pointer-events: auto;
}

.shorts-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.96);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
}

.shorts-nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.shorts-nav-btn:active {
  transform: translateY(0);
}

/* JS에서 .is-paused 붙는 상태를 이용해 힌트 노출 */
.shorts-item.is-paused .shorts-center-hint {
  opacity: 1;
}

/* 오버레이: 텍스트/액션 */
.shorts-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shorts-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0,0,0,0.60), rgba(0,0,0,0.0));
}

.shorts-meta {
  position: absolute;
  left: 14px;
  right: 84px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

.shorts-author {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.shorts-author a,
.shorts-author .shorts-author-link,
.shorts-author .shorts-author-guest,
.shorts-author .shorts-author-name {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 900;
}

.shorts-author .shorts-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  cursor: pointer;
  max-width: 100%;
}

.shorts-author .shorts-author-name,
.shorts-author .shorts-author-guest {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shorts-author .buyer-icon-stack {
  flex: 0 0 auto;
}

.shorts-author a:hover,
.shorts-author .shorts-author-link:hover .shorts-author-name {
  text-decoration: underline;
}

.shorts-title {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.shorts-actions {
  position: absolute;
  right: 12px;
  bottom: 98px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
}

.shorts-volume-control {
  width: 22px;
  min-height: 74px;
  padding: 4px 2px 5px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  align-self: flex-end;
  margin-right: 0;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
  overflow: visible;
}

.shorts-volume-control.is-muted {
  background: rgba(255, 255, 255, 0.09);
}

.shorts-volume-btn {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.shorts-volume-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.shorts-volume-range {
  --shorts-volume-pct: 100%;
  width: 42px;
  height: 18px;
  margin: 7px 0 9px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  transform: rotate(-90deg);
  transform-origin: center;
}

.shorts-volume-range:focus {
  outline: none;
}

.shorts-volume-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--shorts-accent) 0 var(--shorts-volume-pct),
    rgba(255, 255, 255, 0.28) var(--shorts-volume-pct) 100%
  );
}

.shorts-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: var(--shorts-accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.shorts-volume-range::-moz-range-track {
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.shorts-volume-range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--shorts-accent);
}

.shorts-volume-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: var(--shorts-accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.shorts-action {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.shorts-action .shorts-ico {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  font-size: 18px;
  line-height: 1;
}

.shorts-action:hover .shorts-ico {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.shorts-action.is-on .shorts-ico {
  background: rgba(255, 59, 92, 0.22);
  border-color: rgba(255, 59, 92, 0.35);
}

.shorts-count {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

.shorts-action-link {
  text-decoration: none;
}

.shorts-feed:fullscreen,
.shorts-feed.is-fullscreen {
  height: 100vh;
  padding: 0;
  background: #000;
  overscroll-behavior: contain;
}

.shorts-feed:fullscreen::-webkit-scrollbar,
.shorts-feed.is-fullscreen::-webkit-scrollbar {
  display: none;
}

.shorts-feed:fullscreen .shorts-item,
.shorts-feed.is-fullscreen .shorts-item {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  min-height: 100vh;
  margin: 0;
  padding-right: 92px;
}

.shorts-feed:fullscreen .shorts-item::after,
.shorts-feed.is-fullscreen .shorts-item::after {
  width: 92px;
  border-radius: 0;
  background: #000;
}

.shorts-feed:fullscreen .shorts-stage,
.shorts-feed.is-fullscreen .shorts-stage {
  inset: 0 92px 0 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

.shorts-feed:fullscreen .shorts-player,
.shorts-feed:fullscreen .shorts-video,
.shorts-feed.is-fullscreen .shorts-player,
.shorts-feed.is-fullscreen .shorts-video {
  width: 100%;
  height: 100%;
}

.shorts-feed:fullscreen .shorts-video,
.shorts-feed.is-fullscreen .shorts-video {
  object-fit: contain;
}

.shorts-feed:fullscreen .shorts-meta,
.shorts-feed.is-fullscreen .shorts-meta {
  right: 112px;
}

.shorts-feed:fullscreen .shorts-actions,
.shorts-feed.is-fullscreen .shorts-actions {
  right: 20px;
}

.shorts-feed:fullscreen .shorts-nav-pad,
.shorts-feed.is-fullscreen .shorts-nav-pad {
  right: 24px;
}


@media (hover: none), (pointer: coarse) {
  .shorts-nav-pad {
    display: none !important;
  }
}

/* 빈 상태 */
.shorts-empty {
  width: min(520px, 100%);
  margin: 14px auto;
  padding: 18px;
  border-radius: var(--shorts-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.shorts-empty-title {
  font-weight: 900;
  margin-bottom: 8px;
}

.shorts-empty-sub {
  color: var(--shorts-muted);
  font-size: 12px;
  line-height: 1.35;
}

/* ──────────────────────────────────────────────
   로딩/끝
   ────────────────────────────────────────────── */

.shorts-loadmore,
.shorts-end {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
}

.shorts-loadmore-pill,
.shorts-end-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 12px;
  box-shadow: var(--shorts-shadow);
}

/* ──────────────────────────────────────────────
   댓글 모달
   ────────────────────────────────────────────── */

.shorts-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.shorts-modal.is-open {
  display: block;
}

.shorts-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.shorts-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  background: rgba(15, 16, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--shorts-radius);
  box-shadow: var(--shorts-shadow);
  overflow: hidden;
}

.shorts-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.shorts-modal-title {
  font-weight: 900;
}

.shorts-modal-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  cursor: pointer;
}

.shorts-modal-body {
  padding: 12px 12px 0;
  overflow: auto;
}

.shorts-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shorts-comments:empty {
  display: none;
}

.shorts-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.shorts-comment .c-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.shorts-comment .c-main {
  flex: 1;
  min-width: 0;
}

.shorts-comment .c-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shorts-comment .c-nick {
  font-weight: 900;
  font-size: 12px;
}

.shorts-comment .c-time {
  font-size: 11px;
  color: var(--shorts-dim);
}

.shorts-comment .c-text {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.35;
  word-break: break-word;
}

.shorts-comments-more {
  padding: 10px 0 12px;
  display: flex;
  justify-content: center;
}

.shorts-more-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.shorts-comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.20);
}

.shorts-comment-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 12px;
  border-radius: 999px;
  outline: none;
  font-size: 13px;
}

.shorts-comment-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.shorts-comment-submit {
  border: 1px solid rgba(255, 59, 92, 0.40);
  background: rgba(255, 59, 92, 0.18);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.shorts-comment-submit:hover {
  background: rgba(255, 59, 92, 0.24);
}


.shorts-context-menu {
  position: fixed;
  z-index: 1200;
  min-width: 188px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(18, 20, 24, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.shorts-context-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.shorts-context-btn:hover,
.shorts-context-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.shorts-context-share-panel {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shorts-context-share-panel[hidden] {
  display: none !important;
}

.shorts-context-share-panel .shorts-context-btn {
  padding-left: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}


.shorts-side-button {
  width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.shorts-side-bottom {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shorts-side-link-sub {
  background: rgba(255, 255, 255, 0.04);
}

.shorts-side-badge,
.shorts-quick-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 59, 92, 0.18);
  border: 1px solid rgba(255, 59, 92, 0.32);
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
}

.shorts-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.shorts-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: var(--shorts-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.shorts-quick-btn:hover,
.shorts-side-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.shorts-item.is-filter-hidden {
  display: none !important;
}

.shorts-filter-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 16px 40px;
  color: rgba(255, 255, 255, 0.92);
}

.shorts-filter-empty-title {
  font-weight: 900;
  font-size: 18px;
}

.shorts-filter-empty-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--shorts-muted);
}

.shorts-filter-panel {
  width: min(720px, calc(100vw - 24px));
}

.shorts-filter-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shorts-filter-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--shorts-muted);
}

.shorts-filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shorts-filter-section-head,
.shorts-filter-helper-head {
  font-size: 13px;
  font-weight: 900;
}

.shorts-filter-helper-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.shorts-filter-helper-tip {
  font-size: 11px;
  font-weight: 700;
  color: var(--shorts-dim);
}

.shorts-filter-chipbox,
.shorts-filter-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shorts-label-chip,
.shorts-label-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.shorts-label-chip span {
  font-size: 15px;
  line-height: 1;
}

.shorts-label-chip:hover,
.shorts-label-pick:hover {
  background: rgba(255, 255, 255, 0.10);
}

.shorts-filter-emptychip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--shorts-dim);
  font-size: 12px;
}

.shorts-filter-inputrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.shorts-filter-inputrow.is-active {
  border-color: rgba(255, 59, 92, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 59, 92, 0.18);
}

.shorts-filter-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font: inherit;
  font-size: 14px;
}

.shorts-filter-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.shorts-filter-addbtn,
.shorts-filter-reset,
.shorts-filter-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.shorts-filter-addbtn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.96);
}

.shorts-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shorts-filter-reset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.94);
}

.shorts-filter-apply {
  border: 1px solid rgba(255, 59, 92, 0.36);
  background: rgba(255, 59, 92, 0.18);
  color: rgba(255, 255, 255, 0.96);
}

@media (max-width: 1080px) {
  .shorts-top-actions {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .shorts-topbar {
    flex-wrap: wrap;
  }
  .shorts-top-actions {
    width: 100%;
    order: 4;
    margin-left: 0;
  }
  .shorts-search {
    order: 3;
  }
}

@media (max-width: 640px) {
  .shorts-filter-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .shorts-filter-reset,
  .shorts-filter-apply,
  .shorts-filter-addbtn {
    width: 100%;
  }
  .shorts-filter-inputrow {
    flex-direction: column;
    align-items: stretch;
  }
}

/* label filter modal readability patch */
#shorts-label-filter-modal .shorts-modal-panel {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18) !important;
}

#shorts-label-filter-modal .shorts-modal-header,
#shorts-label-filter-modal .shorts-filter-actions {
  border-color: rgba(15, 23, 42, 0.10) !important;
}

#shorts-label-filter-modal .shorts-modal-title,
#shorts-label-filter-modal .shorts-filter-subtitle,
#shorts-label-filter-modal .shorts-filter-section-head,
#shorts-label-filter-modal .shorts-filter-helper-head,
#shorts-label-filter-modal .shorts-filter-helper-tip,
#shorts-label-filter-modal .shorts-modal-close,
#shorts-label-filter-modal .shorts-filter-empty,
#shorts-label-filter-modal .shorts-filter-empty-title,
#shorts-label-filter-modal .shorts-filter-empty-sub,
#shorts-label-filter-modal .shorts-filter-emptychip,
#shorts-label-filter-modal .shorts-filter-input,
#shorts-label-filter-modal .shorts-filter-input::placeholder,
#shorts-label-filter-modal .shorts-label-chip,
#shorts-label-filter-modal .shorts-label-pick,
#shorts-label-filter-modal .shorts-filter-addbtn,
#shorts-label-filter-modal .shorts-filter-reset,
#shorts-label-filter-modal .shorts-filter-apply {
  color: rgba(17, 24, 39, 0.94) !important;
}

#shorts-label-filter-modal .shorts-filter-chipbox,
#shorts-label-filter-modal .shorts-filter-picks {
  color: rgba(17, 24, 39, 0.94) !important;
}

#shorts-label-filter-modal .shorts-label-chip,
#shorts-label-filter-modal .shorts-label-pick {
  border-color: rgba(15, 23, 42, 0.10) !important;
  background: #f8fafc !important;
}

#shorts-label-filter-modal .shorts-label-chip:hover,
#shorts-label-filter-modal .shorts-label-pick:hover {
  background: #eef2f7 !important;
}

#shorts-label-filter-modal .shorts-filter-emptychip {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #f8fafc !important;
}

#shorts-label-filter-modal .shorts-filter-inputrow {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: #ffffff !important;
}

#shorts-label-filter-modal .shorts-filter-inputrow.is-active {
  border-color: rgba(255, 59, 92, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 59, 92, 0.14) !important;
}

#shorts-label-filter-modal .shorts-filter-input::placeholder {
  color: rgba(100, 116, 139, 0.92) !important;
}

#shorts-label-filter-modal .shorts-filter-addbtn,
#shorts-label-filter-modal .shorts-filter-reset {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: #f8fafc !important;
}

#shorts-label-filter-modal .shorts-filter-apply {
  border-color: rgba(255, 59, 92, 0.34) !important;
  background: rgba(255, 59, 92, 0.08) !important;
}

/* detail modal + theme patch */
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-modal-panel,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-modal-panel {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-modal-header,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-actions,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-modal-header,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-detail-actions {
  border-color: rgba(15, 23, 42, 0.10) !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-modal-title,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-subtitle,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-section-head,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-helper-head,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-helper-tip,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-modal-close,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-empty,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-empty-title,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-empty-sub,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-emptychip,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-input,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-input::placeholder,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-label-chip,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-label-pick,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-addbtn,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-reset,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-apply,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-modal-title,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-modal-close,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-detail-label,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-detail-value {
  color: rgba(17, 24, 39, 0.94) !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-label-chip,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-label-pick,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-detail-chip,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-detail-btn {
  border-color: rgba(15, 23, 42, 0.10) !important;
  background: #f8fafc !important;
  color: rgba(17, 24, 39, 0.94) !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-label-chip:hover,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-label-pick:hover,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-detail-btn:hover {
  background: #eef2f7 !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-emptychip {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #f8fafc !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-inputrow {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: #ffffff !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-inputrow.is-active {
  border-color: rgba(255, 59, 92, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 59, 92, 0.14) !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-input::placeholder {
  color: rgba(100, 116, 139, 0.92) !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-addbtn,
html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-reset,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-detail-btn {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: #f8fafc !important;
}

html[data-theme="light"] body.shorts-page #shorts-label-filter-modal .shorts-filter-apply,
html[data-theme="light"] body.shorts-page #shorts-detail-modal .shorts-detail-btn.is-danger {
  border-color: rgba(255, 59, 92, 0.34) !important;
}

html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-modal-panel,
html[data-theme="dark"] body.shorts-page #shorts-detail-modal .shorts-modal-panel {
  background: rgba(16, 18, 24, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.shorts-detail-panel {
  width: min(640px, calc(100vw - 24px));
}

.shorts-detail-body {
  padding-bottom: 14px;
}

.shorts-detail-grid {
  display: grid;
  gap: 12px;
}

.shorts-detail-row {
  display: grid;
  gap: 6px;
}

.shorts-detail-label {
  font-size: 12px;
  font-weight: 900;
  color: var(--shorts-muted);
}

.shorts-detail-value {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.shorts-detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shorts-detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.shorts-detail-content {
  white-space: pre-wrap;
}

.shorts-detail-link a {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.shorts-detail-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shorts-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--shorts-text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.shorts-detail-btn.is-danger {
  border-color: rgba(255, 59, 92, 0.34);
  color: #ff6b81;
}

@media (max-width: 640px) {
  .shorts-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .shorts-detail-btn {
    width: 100%;
  }
}
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-modal-title,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-subtitle,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-section-head,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-helper-head,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-helper-tip,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-modal-close,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-empty,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-empty-title,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-empty-sub,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-emptychip,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-input,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-input::placeholder,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-label-chip,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-label-pick,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-addbtn,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-reset,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-apply,
html[data-theme="dark"] body.shorts-page #shorts-detail-modal .shorts-modal-title,
html[data-theme="dark"] body.shorts-page #shorts-detail-modal .shorts-modal-close,
html[data-theme="dark"] body.shorts-page #shorts-detail-modal .shorts-detail-label,
html[data-theme="dark"] body.shorts-page #shorts-detail-modal .shorts-detail-value {
  color: rgba(255, 255, 255, 0.94) !important;
}

html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-label-chip,
html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-label-pick,
html[data-theme="dark"] body.shorts-page #shorts-detail-modal .shorts-detail-chip,
html[data-theme="dark"] body.shorts-page #shorts-detail-modal .shorts-detail-btn {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-inputrow {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] body.shorts-page #shorts-label-filter-modal .shorts-filter-emptychip {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
