/* TVBridge Core */
.tvb-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.tvb-home .entry-header { display: none; }

/* 검색 */
.tvb-search { margin: 0 0 16px; }
.tvb-search input[type="search"] {
	width: 100%; padding: 14px 18px; border-radius: 10px;
	border: 1px solid rgba(128,128,128,.35); background: rgba(128,128,128,.12);
	color: inherit; font-size: 15px; box-sizing: border-box;
}

/* OTT 버튼 */
.tvb-ottnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.tvb-chip {
	display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
	text-decoration: none !important; color: #fff !important; background: #444; line-height: 1.2;
}
.tvb-chip:hover { opacity: .85; }

/* OTT 색상 */
.tvb-ott-netflix { background: #e50914; }
.tvb-ott-tving { background: #ff153c; }
.tvb-ott-wavve { background: #1351f9; }
.tvb-ott-disney-plus { background: #113ccf; }
.tvb-ott-coupangplay { background: #0a84d6; }
.tvb-ott-appletv-plus { background: #3a3a3c; }
.tvb-ott-watcha { background: #ff0558; }

/* 섹션 */
.tvb-section { margin: 0 0 40px; }
.tvb-section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tvb-section__head h2 { margin: 0; font-size: 20px; }
.tvb-more {
	font-size: 12px; padding: 5px 10px; border: 1px solid #f5a623; color: #f5a623 !important;
	border-radius: 4px; text-decoration: none !important; font-weight: 700;
}
.tvb-archive-head h1 { font-size: 26px; margin: 8px 0 20px; }

/* 카드 그리드 */
.tvb-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.tvb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tvb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tvb-cols-5 { grid-template-columns: repeat(5, 1fr); }
.tvb-cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .tvb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tvb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.tvb-card { display: block; text-decoration: none !important; color: inherit !important; }
.tvb-media {
	display: block; position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden;
	background: #1a1a1f; transition: transform .15s ease;
}
.tvb-card:hover .tvb-media { transform: translateY(-3px); }
.tvb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvb-card .tvb-badge { position: absolute; top: 6px; right: 6px; }
.tvb-name { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.35; }

/* 포스터 없는 텍스트 카드 */
.tvb-card--text .tvb-media { background: linear-gradient(160deg, hsl(var(--h), 55%, 28%), hsl(calc(var(--h) + 40), 60%, 12%)); }
.tvb-card--text .tvb-name { display: none; }
.tvb-ph {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
	justify-content: center; text-align: center; padding: 14px; color: #fff; gap: 8px;
}
.tvb-ph small { font-size: 11px; opacity: .8; letter-spacing: .5px; }
.tvb-ph strong { font-size: 18px; line-height: 1.3; word-break: keep-all; }

.tvb-badge {
	display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 800;
	color: #fff; background: #444; line-height: 1.3;
}

/* 상세 */
.tvb-detail { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 24px; }
.tvb-detail__poster { margin: 0; width: 220px; max-width: 100%; }
.tvb-detail__poster img { width: 100%; border-radius: 8px; display: block; }
.tvb-detail__poster figcaption { font-size: 11px; opacity: .6; margin-top: 4px; }
.tvb-detail__info { flex: 1; min-width: 220px; display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; }
.tvb-detail__info dt { font-weight: 700; opacity: .7; }
.tvb-detail__info dd { margin: 0; }

.tvb-watch { margin: 0 0 28px; padding: 18px; border-radius: 10px; background: rgba(128,128,128,.12); }
.tvb-watch h2 { margin: 0 0 12px; font-size: 18px; }
.tvb-watch__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tvb-watch__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tvb-btn {
	display: inline-block; padding: 10px 18px; border-radius: 8px; background: #f5a623; color: #111 !important;
	font-weight: 800; text-decoration: none !important; font-size: 14px;
}
.tvb-btn--ghost { background: transparent; border: 1px solid rgba(128,128,128,.6); color: inherit !important; }
.tvb-note { font-size: 12px; opacity: .7; margin: 10px 0 0; }

.tvb-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 24px; }
.tvb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

.tvb-ad { margin: 24px 0; text-align: center; overflow: hidden; }

.tvb-pagination { margin: 30px 0 0; text-align: center; }
.tvb-pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 2px; border-radius: 6px; background: rgba(128,128,128,.15); text-decoration: none; }
.tvb-pagination .current { background: #f5a623; color: #111; font-weight: 800; }
.tvb-empty { opacity: .7; }

/* 어두운 디자인 (GeneratePress 기준, 테마 설정보다 우선 적용) */
body.tvb-dark,
body.tvb-dark .site,
body.tvb-dark .site-content,
body.tvb-dark .site-header,
body.tvb-dark .inside-header,
body.tvb-dark .main-navigation,
body.tvb-dark .main-navigation ul ul,
body.tvb-dark .inside-article,
body.tvb-dark .page-header,
body.tvb-dark .comments-area,
body.tvb-dark .comment-respond,
body.tvb-dark .site-footer,
body.tvb-dark .footer-widgets,
body.tvb-dark .site-info,
body.tvb-dark .sidebar .widget,
body.tvb-dark .paging-navigation {
	background: #0b0b0d !important;
	color: #e8e8ea !important;
}
body.tvb-dark p,
body.tvb-dark li,
body.tvb-dark dd,
body.tvb-dark dt,
body.tvb-dark td,
body.tvb-dark label,
body.tvb-dark blockquote,
body.tvb-dark blockquote p,
body.tvb-dark .entry-content,
body.tvb-dark .entry-summary { color: #e8e8ea !important; }
body.tvb-dark blockquote { background: transparent !important; border-left: 3px solid #3a3a42 !important; }
body.tvb-dark .site-title a,
body.tvb-dark .main-title a,
body.tvb-dark .site-description,
body.tvb-dark .main-navigation .main-nav ul li a,
body.tvb-dark .entry-title,
body.tvb-dark .entry-title a,
body.tvb-dark h1, body.tvb-dark h2, body.tvb-dark h3, body.tvb-dark h4 { color: #fff !important; }
body.tvb-dark .entry-content a { color: #f5a623; }
body.tvb-dark .entry-meta, body.tvb-dark .entry-meta a,
body.tvb-dark .tvb-note, body.tvb-dark .tvb-detail__poster figcaption { color: #9a9aa2 !important; }
body.tvb-dark input[type="search"],
body.tvb-dark input[type="text"],
body.tvb-dark textarea { color: #fff !important; background: #1a1a1f !important; }
body.tvb-dark .tvb-watch { background: #16161a !important; }
body.tvb-dark .tvb-btn { color: #111 !important; }
body.tvb-dark .tvb-btn--ghost { color: #e8e8ea !important; border-color: rgba(255,255,255,.45) !important; background: transparent !important; }
body.tvb-dark .tvb-chip, body.tvb-dark .tvb-badge { color: #fff !important; }

/* ========================================================
 * TVBridge 1.1.0: 검색 플랫폼 스타일 및 GeneratePress 폭 개선
 * 기존 설정·상세 페이지 메타 키·쇼트코드는 그대로 유지합니다.
 * ======================================================== */
body.tvb-dark {
	--tvb-bg: #0d111a;
	--tvb-panel: #171e2b;
	--tvb-panel2: #202b3d;
	--tvb-line: #303e52;
	--tvb-text: #f2f5fc;
	--tvb-muted: #a6b4c8;
	--tvb-accent: #4385ef;
}
body.tvb-dark,
body.tvb-dark .site,
body.tvb-dark .site-content,
body.tvb-dark .site-header,
body.tvb-dark .inside-header,
body.tvb-dark .main-navigation,
body.tvb-dark .inside-article,
body.tvb-dark .page-header,
body.tvb-dark .site-footer,
body.tvb-dark .comments-area,
body.tvb-dark .footer-widgets,
body.tvb-dark .site-info {
	background: #0d111a !important;
	color: #f2f5fc !important;
}
body.tvb-dark .tvb-landing,
body.tvb-dark .tvb-article,
body.tvb-dark .tvb-wrap { color: var(--tvb-text); }
body.tvb-dark .tvb-landing a,
body.tvb-dark .tvb-article a,
body.tvb-dark .tvb-archive-shell a { color: #94bfff; }
body.tvb-dark .tvb-article h1,
body.tvb-dark .tvb-article h2,
body.tvb-dark .tvb-article h3,
body.tvb-dark .tvb-wrap h1,
body.tvb-dark .tvb-wrap h2,
body.tvb-dark .tvb-landing h1,
body.tvb-dark .tvb-landing h2 { color: #fff !important; }

/* GP narrow .content-area and .inside-article defaults no longer constrain work pages. */
body.single-tvb_work .site-content,
body.post-type-archive-tvb_work .site-content,
body.tax-tvb_ott .site-content,
body.tax-tvb_kind .site-content,
body.tax-tvb_genre .site-content,
body.search .site-content:has(.tvb-archive-shell) { display: block; }
body.single-tvb_work .tvb-primary,
body.post-type-archive-tvb_work .tvb-primary,
body.tax-tvb_ott .tvb-primary,
body.tax-tvb_kind .tvb-primary,
body.tax-tvb_genre .tvb-primary,
.tvb-primary { width: 100% !important; float: none !important; max-width: none !important; margin: 0 !important; }
.tvb-single-shell,
.tvb-archive-shell { box-sizing: border-box; width: 100%; padding: 30px clamp(16px, 4vw, 52px) 60px; }
.tvb-article, .tvb-comments { max-width: 1060px; margin: 0 auto; }
.tvb-wrap { max-width: 1160px; margin: 0 auto; padding: 0; }
.tvb-single-body { font-size: 16px; line-height: 1.8; letter-spacing: -.01em; }
.tvb-single-body > p,
.tvb-single-body > h2,
.tvb-single-body > h3,
.tvb-single-body > ul,
.tvb-single-body > ol,
.tvb-single-body > blockquote { max-width: 820px; }
.tvb-single-body > h2 { font-size: clamp(20px, 2.3vw, 25px); margin: 34px 0 14px; line-height: 1.4; }
.tvb-single-body > h3 { font-size: 18px; margin: 22px 0 12px; }
.tvb-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .82; margin: 0 0 27px; }
.tvb-breadcrumb a { text-decoration: none; }
.tvb-single-head { margin-bottom: 26px; }
.tvb-single-head__eyebrow, .tvb-hero__eyebrow { color: #78aaff !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.tvb-single-head h1, .tvb-archive-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.2; margin: 0 0 12px; }
.tvb-single-head__meta { font-size: 14px; color: #aab8cd !important; margin: 0; }
.tvb-detail { display: flex; align-items: stretch; gap: 30px; flex-wrap: nowrap; border: 1px solid #263347; background: #151d2a; padding: 24px; border-radius: 18px; margin-bottom: 28px; }
.tvb-detail__poster,
.tvb-detail__placeholder { flex: 0 0 clamp(142px, 24%, 240px); width: clamp(142px, 24%, 240px); max-width: 100%; }
.tvb-detail__poster img { border-radius: 11px; aspect-ratio: 2 / 3; object-fit: cover; }
.tvb-detail__placeholder { aspect-ratio: 2 / 3; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-align: center; padding: 18px; box-sizing: border-box; background: linear-gradient(155deg, hsl(var(--h),50%,29%),hsl(calc(var(--h) + 35),54%,12%)); color: #fff; }
.tvb-detail__placeholder > span { font-size: 42px; opacity: .38; }
.tvb-detail__placeholder > strong { font-size: 22px; line-height: 1.35; word-break: keep-all; }
.tvb-detail__info { grid-template-columns: minmax(94px, 126px) minmax(0, 1fr); gap: 10px 14px; align-content: center; min-width: 0; }
.tvb-detail__info dt { color: #aab8cd !important; font-size: 14px; }
.tvb-detail__info dd { color: #f4f7fb !important; font-size: 15px; word-break: break-word; }
.tvb-watch { max-width: 1060px; border-radius: 16px; background: #182338 !important; border: 1px solid #2c3f5f; padding: 22px; margin: 0 0 28px; }
.tvb-watch h2 { margin: 0 0 15px; }
.tvb-watch__btns { gap: 12px; }
.tvb-btn { padding: 12px 18px; border-radius: 9px; background: #4385ef; color: #fff !important; }
body.tvb-dark .tvb-btn { color: #fff !important; }
body.tvb-dark .tvb-btn--ghost { background: transparent !important; border-color: #5d769f !important; color: #e8f0ff !important; }
.tvb-video { max-width: 950px; border-radius: 14px; overflow: hidden; }
.tvb-related { border-top: 1px solid #2e3a4f; padding-top: 35px; margin-top: 44px; }
.tvb-comments { margin-top: 36px; }

/* Homepage & search */
.tvb-landing { width: 100%; max-width: 1160px; margin: 0 auto; padding: 6px 0 50px; }
.tvb-hero { padding: clamp(26px, 5vw, 54px); border: 1px solid #2b3b58; border-radius: 22px; margin: 8px 0 30px; background: radial-gradient(circle at 100% 0%, #243d63 0%, #172235 43%, #111a29 100%); }
.tvb-hero h1 { font-size: clamp(29px, 4vw, 50px); color: #fff; line-height: 1.17; font-weight: 800; margin: 0 0 16px; }
.tvb-hero > p:not(.tvb-hero__eyebrow) { margin: 0 0 26px; color: #bcc9dc; font-size: 15px; }
.tvb-hero .tvb-search { margin: 0; }
.tvb-search { margin: 0 0 24px; }
.tvb-search__row { display: flex; gap: 10px; }
.tvb-search input[type="search"] { min-width: 0; width: 100%; flex: 1; height: 52px; padding: 14px 18px; border: 1px solid #394b65; border-radius: 11px; background: #f8fafc; color: #14233c; font-size: 16px; box-sizing: border-box; }
body.tvb-dark .tvb-search input[type="search"] { background: #fff !important; color: #172033 !important; }
.tvb-search button { flex: 0 0 auto; border: 0; color: #fff; font-size: 15px; font-weight: 800; padding: 0 22px; border-radius: 11px; background: #347ce8; cursor: pointer; }
.tvb-search button:hover { background: #2565c7; }
.tvb-search__filters { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tvb-search__filter { flex: 1 1 155px; }
.tvb-search__filter select { display: block; width: 100%; background: #1f2c41; color: #eaf2ff; border-radius: 8px; padding: 9px 13px; border: 1px solid #3b506f; font-size: 13px; }
.tvb-ottnav { gap: 9px; margin-bottom: 26px; }
.tvb-chip { padding: 9px 16px; font-size: 12px; border: 1px solid rgba(255,255,255,.1); }
.tvb-section { margin: 0 0 45px; }
.tvb-section__head { margin-bottom: 18px; gap: 16px; }
.tvb-section__head h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.tvb-more { border: 1px solid #4d78b5; padding: 8px 12px; border-radius: 8px; color: #9ec4ff !important; font-size: 12px; }
body.tvb-dark .tvb-more { color: #9ec4ff !important; }
.tvb-grid { gap: 20px 15px; }
.tvb-media { border-radius: 12px; border: 1px solid #2b3a50; }
.tvb-card { min-width: 0; }
.tvb-card:hover .tvb-media { transform: translateY(-4px); border-color: #5a86bd; }
.tvb-card--text .tvb-media { background: linear-gradient(160deg, hsl(var(--h),55%,28%),hsl(calc(var(--h) + 40),60%,12%)); }
.tvb-card--text .tvb-name { display: block; }
.tvb-ph__icon { font-size: 27px; opacity: .28; }
.tvb-ph strong { font-size: clamp(15px, 1.9vw, 22px); }
.tvb-name { margin: 10px 0 4px; font-size: 15px; line-height: 1.4; color: #f3f6fc; }
.tvb-card__meta { display: block; color: #a6b4c8; font-size: 12px; line-height: 1.4; }
.tvb-archive-head { margin-bottom: 24px; }
.tvb-archive-head p { color: #a6b4c8; font-size: 15px; margin: 6px 0 0; }
.tvb-archive-total { font-weight: 700; color: #aebed3; font-size: 13px; margin-bottom: 18px; }
.tvb-empty { padding: 42px 18px; border: 1px dashed #516079; border-radius: 15px; text-align: center; }
.tvb-guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.tvb-guide { display: flex; flex-direction: column; min-height: 134px; padding: 21px; border: 1px solid #2d3c54; border-radius: 12px; background: #172234; text-decoration: none !important; }
.tvb-guide__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .09em; color: #78b0ff; }
.tvb-guide strong { color: #f3f6fc; font-size: 17px; line-height: 1.45; margin: 12px 0 auto; }
.tvb-guide__more { margin-top: 14px; color: #b8c9e4; font-size: 12px; }

/* Home shortcode in existing pages needs the wider GP page content. */
body.tvb-home .site-content #primary { width: 100%; float: none; }
body.tvb-home .site-content .inside-article { max-width: 1240px; margin: auto; }
body.tvb-home .site-content .entry-content { margin-top: 0; }

@media (max-width: 780px) {
	.tvb-single-shell, .tvb-archive-shell { padding: 22px 16px 44px; }
	.tvb-detail { padding: 16px; gap: 18px; }
	.tvb-detail__poster, .tvb-detail__placeholder { flex-basis: 145px; width: 145px; }
	.tvb-detail__info { grid-template-columns: 90px 1fr; }
	.tvb-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
	.tvb-hero { padding: 27px 22px; }
}
@media (max-width: 540px) {
	.tvb-detail { flex-direction: column; }
	.tvb-detail__poster, .tvb-detail__placeholder { flex: none; width: 56%; max-width: 225px; }
	.tvb-detail__info { width: 100%; grid-template-columns: 100px 1fr; }
	.tvb-grid, .tvb-cols-4, .tvb-cols-5, .tvb-cols-6 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 10px; }
	.tvb-guide-grid { grid-template-columns: 1fr; }
	.tvb-search__row { flex-direction: column; }
	.tvb-search button { height: 44px; }
	.tvb-hero h1 { font-size: 29px; }
	.tvb-media .tvb-badge { font-size: 10px; }
	.tvb-name { font-size: 13px; }
	.tvb-single-body { font-size: 15px; }
}
