/* ── youtube v4 섹션 스킨 ───────────────────────────────────────── */

/* 브라우저 기본 body 리셋 */
body { margin: 0; padding: 0; font-size: 13px; }
html[data-theme="dark"] body { color: var(--chch-card-text-strong, #b7cae2); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body { color: var(--chch-card-text-strong, #b7cae2); }
}

/* ── 페이지 ─────────────────────────────────────────────────────── */
.ytv4-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 14px 60px;
  box-sizing: border-box;
}

/* ── 상태바 ─────────────────────────────────────────────────────── */
.ytv4-statebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid #dbeaf8;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #506a86;
}
html[data-theme="dark"] .ytv4-statebar {
  background: rgba(19, 31, 47, .88);
  border-color: rgba(123, 158, 196, .20);
  color: var(--chch-card-text-strong, #b7cae2);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .ytv4-statebar {
    background: rgba(19, 31, 47, .88);
    border-color: rgba(123, 158, 196, .20);
    color: var(--chch-card-text-strong, #b7cae2);
  }
}
.ytv4-statebar a { color: #2f88e6; text-decoration: none; }
.ytv4-member-state { color: #7a99b8; font-size: 12px; }
html[data-theme="dark"] .ytv4-member-state { color: var(--chch-card-text, #9fb4cc); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .ytv4-member-state { color: var(--chch-card-text, #9fb4cc); }
}
.ytv4-action-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; justify-content: flex-end; }

.ytv4-pinup-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ytv4-pinup-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbeaf8;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 24px rgba(47,136,230,.07);
}

.ytv4-pinup-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.ytv4-pinup-thumb img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.ytv4-pinup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2f88e6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ytv4-pinup-kicker i {
  color: #d39a24;
  font-size: 12px;
}

.ytv4-pinup-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.ytv4-pinup-body h3 a {
  color: #214b73;
  text-decoration: none;
}

.ytv4-pinup-body p {
  margin: 0;
  color: #7f99b3;
  font-size: 12px;
  font-weight: 700;
}

.ytv4-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid currentColor;
}
.ytv4-label-blue  { color: #2f88e6; border-color: #b8d8f8; background: #edf6ff; }
.ytv4-label-red   { color: #c85747; border-color: #f0c4bc; background: #fff4f1; }
.ytv4-label-gray  { color: #506a86; border-color: #c5daf5; background: #f4f8fd; }
.ytv4-label-active {
  box-shadow: 0 0 0 2px rgba(47,136,230,.35);
  font-weight: 800;
  transform: scale(1.05);
}
.ytv4-label-active.ytv4-label-blue { background: #2f88e6; color: #fff; border-color: #2f88e6; }
.ytv4-label-active.ytv4-label-gray { background: #506a86; color: #fff; border-color: #506a86; }
html[data-theme="dark"] .ytv4-label-blue,
html[data-theme="dark"] .ytv4-label-gray,
html[data-theme="dark"] .ytv4-label-red {
  border-color: rgba(123, 158, 196, .22);
}
html[data-theme="dark"] .ytv4-label-blue { background: rgba(73, 118, 170, .18); color: #9cc8ff; }
html[data-theme="dark"] .ytv4-label-gray { background: rgba(42, 56, 74, .78); color: #b7cae2; }
html[data-theme="dark"] .ytv4-label-active.ytv4-label-blue { background: rgba(47,136,230,.60); color: #fff; }
html[data-theme="dark"] .ytv4-label-active.ytv4-label-gray { background: rgba(80,106,134,.60); color: #fff; }
html[data-theme="dark"] .ytv4-label-red { background: rgba(133, 66, 66, .18); color: #f1a6a6; }
html[data-theme="dark"] .ytv4-pinup-card {
  background: rgba(19, 31, 47, .92);
  border-color: rgba(123, 158, 196, .20);
  box-shadow: 0 18px 36px rgba(0,0,0,.24);
}
html[data-theme="dark"] .ytv4-pinup-body h3 a { color: #e2edf8; }
html[data-theme="dark"] .ytv4-pinup-body p { color: #9fb4cc; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .ytv4-label-blue,
  html:not([data-theme="light"]) .ytv4-label-gray,
  html:not([data-theme="light"]) .ytv4-label-red { border-color: rgba(123, 158, 196, .22); }
  html:not([data-theme="light"]) .ytv4-label-blue { background: rgba(73, 118, 170, .18); color: #9cc8ff; }
  html:not([data-theme="light"]) .ytv4-label-gray { background: rgba(42, 56, 74, .78); color: #b7cae2; }
  html:not([data-theme="light"]) .ytv4-label-red { background: rgba(133, 66, 66, .18); color: #f1a6a6; }
  html:not([data-theme="light"]) .ytv4-pinup-card {
    background: rgba(19, 31, 47, .92);
    border-color: rgba(123, 158, 196, .20);
    box-shadow: 0 18px 36px rgba(0,0,0,.24);
  }
  html:not([data-theme="light"]) .ytv4-pinup-body h3 a { color: #e2edf8; }
  html:not([data-theme="light"]) .ytv4-pinup-body p { color: #9fb4cc; }
}

/* ── 레이아웃 — 사이드바 + 본문 ─────────────────────────────────── */
.ytv4-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}
.ytv4-layout.no-sidebar { grid-template-columns: 1fr; }

@media (max-width: 767px) {
  .ytv4-pinup-strip { grid-template-columns: 1fr; }
  .ytv4-pinup-card { grid-template-columns: 1fr; }
  .ytv4-pinup-thumb img { height: 168px; }
  .ytv4-layout { grid-template-columns: 1fr; }
  .ytv4-sidebar { display: none; }
}

/* ── 사이드바 ───────────────────────────────────────────────────── */
.ytv4-sidebar {
  position: sticky;
  top: 14px;
}

/* ── 본문 (list 페이지 — 게시판 iframe 래퍼) ────────────────────── */
.ytv4-main {
  min-width: 0;
  background: var(--chch-card-bg-strong, #fff);
  border: 1px solid var(--chch-card-border, #dbeaf8);
  border-radius: 12px;
  padding: 8px;
}
html[data-theme="dark"] .ytv4-main {
  background: rgba(16, 27, 41, .98);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .ytv4-main {
    background: rgba(16, 27, 41, .98);
  }
}

/* ── 뷰 페이지 콘텐츠 래퍼 (bbs_header.php) ─────────────────────── */
.ytv4-view-main {
  background: var(--chch-card-bg-strong, #fff);
  border: 1px solid var(--chch-card-border, #dbeaf8);
  border-radius: 14px;
  padding: 20px 20px 28px;
  box-sizing: border-box;
}

@media (max-width: 599px) {
  .ytv4-view-main { padding: 12px 10px 20px; }
}

/* ── 활성 내비게이션 항목 ───────────────────────────────────────── */

.chch-desktop-nav .nav li.ytv4-active {
  background: rgba(142,199,249,.18);
  border-radius: 6px;
}
.chch-desktop-nav .nav li.ytv4-active > a {
  color: #2f88e6 !important;
  font-weight: 700;
}

/* 모바일 메뉴 링크 언더라인 제거 */
.mobile-app-grid a { text-decoration: none !important; }
.mobile-app-panel a { text-decoration: none !important; }

/* 모바일 상태바 */
@media (max-width: 767px) {
  .ytv4-label { font-size: 13px; padding: 5px 14px; }
  .ytv4-statebar { padding: 10px 14px; gap: 10px; }
  .ytv4-action-links { gap: 7px; }
}

/* ── 사이드바 카드 (emv4-sidebar-card 계열) ─────────────────────── */
.emv4-sidebar-card {
  background: rgba(255,255,255,.94);
  border: 1px solid #dbeaf8;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(47,136,230,.08);
  padding: 16px;
  margin-bottom: 14px;
}
html[data-theme="dark"] .emv4-sidebar-card {
  background: rgba(22, 35, 52, .98);
  border-color: rgba(123, 158, 196, .20);
  box-shadow: 0 18px 36px rgba(0,0,0,.24);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .emv4-sidebar-card {
    background: rgba(22, 35, 52, .98);
    border-color: rgba(123, 158, 196, .20);
    box-shadow: 0 18px 36px rgba(0,0,0,.24);
  }
}
.emv4-sidebar-card a { text-decoration: none; }
.emv4-sidebar-card a:hover { text-decoration: none; }

/* 브랜드 헤더 */
.emv4-sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf3fb;
  margin-bottom: 12px;
}
html[data-theme="dark"] .emv4-sb-brand,
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .emv4-sb-brand {
    border-bottom-color: rgba(123, 158, 196, .14);
  }
}
.emv4-sb-brand img { border-radius: 8px; }
.emv4-sb-brand-title { font-size: 16px; font-weight: 700; color: var(--chch-card-heading, #2f88e6); }
.emv4-sb-brand-title a { color: inherit; text-decoration: none; }
.emv4-sb-brand-desc { font-size: 11px; color: var(--chch-chip-text, #8aaed1); margin-top: 2px; }

/* 섹션 소제목 */
.emv4-sb-section-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #8aaed1;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 14px 0 6px 4px;
}
.emv4-sb-section-title i {
  font-size: 12px;
  opacity: .75;
  flex-shrink: 0;
}

/* 카테고리 메뉴 */
.emv4-sb-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.emv4-sb-menu li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 12px;
  color: #506a86;
  text-decoration: none;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background .15s;
}
.emv4-sb-menu li a:hover { background: #f0f7ff; color: #2f88e6; text-decoration: none; }
html[data-theme="dark"] .emv4-sb-menu li a { color: var(--chch-card-text-strong, #b7cae2); }
html[data-theme="dark"] .emv4-sb-menu li a:hover { background: rgba(73, 118, 170, .14); color: #9cc8ff; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .emv4-sb-menu li a { color: var(--chch-card-text-strong, #b7cae2); }
  html:not([data-theme="light"]) .emv4-sb-menu li a:hover { background: rgba(73, 118, 170, .14); color: #9cc8ff; }
}

/* 게시물 수 뱃지 */
.emv4-sb-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--chch-card-text, #9ab0c8);
  font-weight: 400;
}

/* ── 사이드바 레거시 CSS (sidebar.php 호환) ─────────────────────── */
/* bigmenu — 섹션 제목 */
.bigmenu { font-size: 10pt; color: var(--chch-card-text-strong, #2a4060); font-weight: bold; text-decoration: none; }

/* menu — 일반 메뉴 항목 */
.menu { color: var(--chch-card-text-strong, #404040); font-weight: normal; text-decoration: none; }
.menu a:link    { color: var(--chch-card-text-strong, #404040); font-weight: normal; text-decoration: none; }
.menu a:visited { color: var(--chch-card-text-strong, #404040); font-weight: normal; text-decoration: none; }
.menu a:active  { color: var(--chch-card-text-strong, #404040); font-weight: normal; text-decoration: none; }
.menu a:hover   { color: #2f88e6; font-weight: normal; text-decoration: underline; }

/* menu2 */
.menu2 { font-weight: normal; text-decoration: none; }
.menu2 a:link    { font-weight: normal; text-decoration: none; }
.menu2 a:visited { font-weight: normal; text-decoration: none; }
.menu2 a:active  { font-weight: normal; text-decoration: none; }
.menu2 a:hover   { color: #2f88e6; font-weight: normal; text-decoration: underline; }

/* foldmenu */
.foldmenu { font-size: 13px; font-weight: bold; text-decoration: none; }
.foldmenu a:link    { font-size: 13px; font-weight: bold; text-decoration: none; }
.foldmenu a:visited { font-size: 13px; font-weight: bold; text-decoration: none; }
.foldmenu a:active  { font-size: 13px; font-weight: bold; text-decoration: none; }
.foldmenu a:hover   { font-size: 13px; font-weight: bold; text-decoration: none; }

/* st, menus, sn, sb, sr — 작은 수치 표시 */
.st    { color: var(--chch-card-text, #a1a1a1); font-family: tahoma, arial; font-size: 7pt; }
.menus { color: var(--chch-card-text, #a1a1a1); font-family: tahoma, arial; font-size: 7pt; }
.sn    { color: #2a7a50; font-family: tahoma, arial; font-size: 7pt; }
.sb    { color: #2f88e6; font-family: tahoma, arial; font-size: 7pt; }
.sr    { color: #c85747; font-family: tahoma, arial; font-size: 7pt; }

/* 검색 입력 */
.searchedit { background: var(--chch-card-bg-soft, #fff); color: var(--chch-card-text-strong, #333); border: 1px solid var(--chch-card-border, #dbeaf8); }

/* editbox */
.editbox { background: var(--chch-card-bg-soft, #fff); color: var(--chch-card-text-strong, #333); border: 1px solid var(--chch-card-border, #ddd); height: 18px; padding: 2px 3px 0; }

/* 클리어 */
.clear { clear: both; }

/* ── 태그 클라우드 — 통일된 pill ─────────────────────────────────── */
.emv4-sb-tag-cloud {
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: 2px 0 4px;
}
.hottag1, .hottag2, .hottag3,
.hottag4, .hottag5, .hottag6 { display: inline; }

.hottag1 a:link, .hottag1 a:visited,
.hottag2 a:link, .hottag2 a:visited,
.hottag3 a:link, .hottag3 a:visited,
.hottag4 a:link, .hottag4 a:visited,
.hottag5 a:link, .hottag5 a:visited,
.hottag6 a:link, .hottag6 a:visited {
  display: inline-flex !important;
  align-items: center;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.hottag1 a:link, .hottag1 a:visited {
  background: #2f88e6; color: #fff !important;
  border: 1px solid #2f88e6; font-weight: 700;
}
.hottag2 a:link, .hottag2 a:visited {
  background: #edf6ff; color: #2163a8 !important;
  border: 1px solid #bdd8f7; font-weight: 600;
}
.hottag3 a:link, .hottag3 a:visited {
  background: #f0f6fe; color: #3a6ea8 !important;
  border: 1px solid #c8ddf5; font-weight: 600;
}
.hottag4 a:link, .hottag4 a:visited {
  background: #f4f8fd; color: #506a86 !important;
  border: 1px solid #d0dff0; font-weight: 400;
}
.hottag5 a:link, .hottag5 a:visited {
  background: #f7fafe; color: #7a99b8 !important;
  border: 1px solid #dce9f5; font-weight: 400;
}
.hottag6 a:link, .hottag6 a:visited {
  background: #f9fbfd; color: #9ab0c8 !important;
  border: 1px solid #e2ecf7; font-weight: 400;
}
.hottag1 a:hover, .hottag2 a:hover, .hottag3 a:hover,
.hottag4 a:hover, .hottag5 a:hover, .hottag6 a:hover {
  background: #2f88e6 !important; color: #fff !important;
  border-color: #2f88e6 !important; text-decoration: none;
}
html[data-theme="dark"] .hottag1 a:link, html[data-theme="dark"] .hottag1 a:visited,
html[data-theme="dark"] .hottag2 a:link, html[data-theme="dark"] .hottag2 a:visited,
html[data-theme="dark"] .hottag3 a:link, html[data-theme="dark"] .hottag3 a:visited,
html[data-theme="dark"] .hottag4 a:link, html[data-theme="dark"] .hottag4 a:visited,
html[data-theme="dark"] .hottag5 a:link, html[data-theme="dark"] .hottag5 a:visited,
html[data-theme="dark"] .hottag6 a:link, html[data-theme="dark"] .hottag6 a:visited {
  border-color: rgba(123, 158, 196, .22) !important;
  background: rgba(20, 35, 54, .98) !important;
  color: #b7cae2 !important;
}
html[data-theme="dark"] .hottag1 a:link, html[data-theme="dark"] .hottag1 a:visited {
  background: rgba(73, 118, 170, .24) !important;
  color: #9cc8ff !important;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hottag1 a:link, html:not([data-theme="light"]) .hottag1 a:visited,
  html:not([data-theme="light"]) .hottag2 a:link, html:not([data-theme="light"]) .hottag2 a:visited,
  html:not([data-theme="light"]) .hottag3 a:link, html:not([data-theme="light"]) .hottag3 a:visited,
  html:not([data-theme="light"]) .hottag4 a:link, html:not([data-theme="light"]) .hottag4 a:visited,
  html:not([data-theme="light"]) .hottag5 a:link, html:not([data-theme="light"]) .hottag5 a:visited,
  html:not([data-theme="light"]) .hottag6 a:link, html:not([data-theme="light"]) .hottag6 a:visited {
    border-color: rgba(123, 158, 196, .22) !important;
    background: rgba(20, 35, 54, .98) !important;
    color: #b7cae2 !important;
  }
  html:not([data-theme="light"]) .hottag1 a:link, html:not([data-theme="light"]) .hottag1 a:visited {
    background: rgba(73, 118, 170, .24) !important;
    color: #9cc8ff !important;
  }
}

/* ── 최근 댓글 ──────────────────────────────────────────────────── */
.emv4-sb-cmt-item {
  padding: 6px 0;
  border-bottom: 1px solid #f0f5fc;
}
.emv4-sb-cmt-item:last-child { border-bottom: none; }
.emv4-sb-cmt-title {
  font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.emv4-sb-cmt-title a:link,
.emv4-sb-cmt-title a:visited { color: #3a5270; text-decoration: none; }
.emv4-sb-cmt-title a:hover   { color: #2f88e6; }
.emv4-sb-cmt-meta {
  display: flex; justify-content: space-between; gap: 6px; margin-top: 2px;
  font-size: 11px; color: #8aaed1;
}

/* ── 다녀간 회원 ─────────────────────────────────────────────────── */
.emv4-sb-visitor-grid {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.emv4-sb-visitor-item a:link,
.emv4-sb-visitor-item a:visited {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 9px; border-radius: 999px;
  background: #f4f8fd; border: 1px solid #d8e8f7;
  color: #506a86; font-size: 11px; text-decoration: none;
}
.emv4-sb-visitor-item a:hover {
  background: #edf6ff; color: #2f88e6; border-color: #b8d9f5;
}

/* ── 방문 통계 Today / Total ─────────────────────────────────────── */
.emv4-sb-stat-row {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f7fbff 100%);
  border: 1px solid #dbeaf8; border-radius: 12px;
  margin: 8px 0 4px;
}
.emv4-sb-stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.emv4-sb-stat-label {
  font-size: 10px; font-weight: 700; color: #8aaed1;
  text-transform: uppercase; letter-spacing: .06em;
}
.emv4-sb-stat-value {
  font-size: 15px; font-weight: 700; color: #2f88e6;
}
.emv4-sb-stat-divider { color: #c5daf5; font-size: 18px; font-weight: 300; }

/* 스크랩 카운트 */
.emv4-sb-scrap {
  font-size: 11px; color: #8aaed1; text-align: center; padding: 3px 0 2px;
}
.emv4-sb-scrap span { color: #2f88e6; font-weight: 700; }
html[data-theme="dark"] .emv4-sb-stat-row {
  background: linear-gradient(135deg, rgba(20, 35, 54, .98) 0%, rgba(16, 27, 41, .98) 100%);
  border-color: rgba(123, 158, 196, .18);
}
html[data-theme="dark"] .emv4-sb-stat-label { color: #7f97b2; }
html[data-theme="dark"] .emv4-sb-stat-value { color: #9cc8ff; }
html[data-theme="dark"] .emv4-sb-stat-divider { color: rgba(123, 158, 196, .26); }
html[data-theme="dark"] .emv4-sb-scrap { color: #8ea8c5; }
html[data-theme="dark"] .emv4-sb-scrap span { color: #9cc8ff; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .emv4-sb-stat-row {
    background: linear-gradient(135deg, rgba(20, 35, 54, .98) 0%, rgba(16, 27, 41, .98) 100%);
    border-color: rgba(123, 158, 196, .18);
  }
  html:not([data-theme="light"]) .emv4-sb-stat-label { color: #7f97b2; }
  html:not([data-theme="light"]) .emv4-sb-stat-value { color: #9cc8ff; }
  html:not([data-theme="light"]) .emv4-sb-stat-divider { color: rgba(123, 158, 196, .26); }
  html:not([data-theme="light"]) .emv4-sb-scrap { color: #8ea8c5; }
  html:not([data-theme="light"]) .emv4-sb-scrap span { color: #9cc8ff; }
}

.emv4-sb-search-wrap { padding: 4px 0 8px; }
.emv4-sb-search-row { display: flex; gap: 4px; }
.emv4-sb-search-input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #c5daf5;
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
  color: #506a86;
}
.emv4-sb-search-button {
  padding: 6px 10px;
  background: #2f88e6;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
html[data-theme="dark"] .emv4-sb-search-input {
  border-color: rgba(123, 158, 196, .18);
  background: rgba(20, 35, 54, .98);
  color: #dbe7f7;
}
html[data-theme="dark"] .emv4-sb-search-button {
  background: rgba(73, 118, 170, .82);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .emv4-sb-search-input {
    border-color: rgba(123, 158, 196, .18);
    background: rgba(20, 35, 54, .98);
    color: #dbe7f7;
  }
  html:not([data-theme="light"]) .emv4-sb-search-button {
    background: rgba(73, 118, 170, .82);
  }
}

.emv4-sb-embed {
  border: 1px solid #dbeaf8;
  border-radius: 12px;
  overflow: hidden;
  margin: 4px 0 8px;
  background: #ffffff;
}
.emv4-sb-calendar-frame {
  display: block;
  width: 100%;
  background: transparent;
}
html[data-theme="dark"] .emv4-sb-embed {
  border-color: rgba(123, 158, 196, .18);
  background: rgba(20, 35, 54, .98);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .emv4-sb-embed {
    border-color: rgba(123, 158, 196, .18);
    background: rgba(20, 35, 54, .98);
  }
}

.ytv4-label-join {
  background: linear-gradient(135deg, #e74c8b 0%, #f472b6 100%) !important;
  border-color: #e74c8b !important;
  color: #fff !important;
  animation: joinPulse 2s ease-in-out infinite;
}
.ytv4-label-join:hover { opacity: .85; }
@keyframes joinPulse { 0%,100%{box-shadow:0 0 0 0 rgba(231,76,139,.3)} 50%{box-shadow:0 0 0 6px rgba(231,76,139,0)} }
