/* TubeJAV Navigation & Discovery — loaded after the child theme. */
.tjnd-highlight > a .tj-nav-label { color:#fff; }
.tjnd-highlight > a { background:linear-gradient(180deg,rgba(240,53,67,.09),transparent 72%); }

@media (min-width:901px) {
	.tubejav-theme #tj-site-header #site-navigation .tjnd-menu-wide > .sub-menu {
		width:430px !important;
		display:grid !important;
		grid-template-columns:repeat(2,minmax(0,1fr)) !important;
		gap:3px !important;
	}
	.tubejav-theme #tj-site-header #site-navigation .tjnd-menu-wide > .sub-menu > li { min-width:0; }
	.tubejav-theme #tj-site-header #site-navigation .tjnd-menu-wide > .sub-menu a { height:100% !important; }
}

.tjnd-studio-shortcuts {
	grid-column:1/-1;
	margin:0 0 22px;
	padding:20px;
	border:1px solid var(--tj-line,rgba(255,255,255,.1));
	border-radius:16px;
	background:linear-gradient(135deg,rgba(240,53,67,.08),rgba(255,255,255,.025) 48%,transparent);
}
.tjnd-studio-shortcuts__head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.tjnd-studio-shortcuts__head span,
.tjnd-feed__intro > span { display:block; margin-bottom:3px; color:var(--tj-red-bright,#f03543); font-size:11px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.tjnd-studio-shortcuts__head h2 { margin:0; color:var(--tj-text,#fff); font-size:clamp(19px,2vw,26px); line-height:1.15; }
.tjnd-studio-shortcuts__head > a { flex:0 0 auto; color:var(--tj-ivory,#f2e5ca); font-size:12px; font-weight:850; }
.tjnd-studio-shortcuts__rail { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.tjnd-studio-shortcuts__rail a { min-width:0; padding:11px 12px; border:1px solid rgba(255,255,255,.075); border-radius:11px; background:rgba(255,255,255,.035); transition:transform .16s ease,border-color .16s ease,background .16s ease; }
.tjnd-studio-shortcuts__rail a:hover { transform:translateY(-2px); border-color:rgba(240,53,67,.45); background:rgba(240,53,67,.09); }
.tjnd-studio-shortcuts__rail strong { display:block; overflow:hidden; color:#fff; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.tjnd-studio-shortcuts__rail small { display:block; margin-top:2px; color:var(--tj-muted,#aaa); font-size:10px; }

.tjnd-directory { margin-top:8px; }
.tjnd-directory__intro { max-width:820px; color:var(--tj-muted,#aaa); font-size:15px; }
.tjnd-directory__tools { position:sticky; z-index:20; top:76px; display:flex; align-items:center; justify-content:space-between; gap:15px; margin:22px 0 18px; padding:10px; border:1px solid var(--tj-line,rgba(255,255,255,.1)); border-radius:14px; background:rgba(15,17,21,.94); backdrop-filter:blur(14px); }
.admin-bar .tjnd-directory__tools { top:108px; }
.tjnd-directory__tools label { flex:1 1 360px; max-width:520px; }
.tjnd-directory__tools input { width:100%; height:42px; padding:0 14px; border:1px solid rgba(255,255,255,.1); border-radius:10px; outline:0; background:rgba(255,255,255,.045); color:var(--tj-text,#fff); font-size:14px; }
.tjnd-directory__tools input:focus { border-color:rgba(240,53,67,.7); box-shadow:0 0 0 3px rgba(240,53,67,.11); }
.tjnd-directory__tools > span { flex:0 0 auto; padding-right:8px; color:var(--tj-muted,#aaa); font-size:12px; font-weight:800; }
.tjnd-studio-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.tjnd-studio-card { display:flex; align-items:center; min-width:0; min-height:76px; padding:12px; border:1px solid var(--tj-line,rgba(255,255,255,.1)); border-radius:14px; background:var(--tj-surface,#15181d); box-shadow:0 8px 22px rgba(0,0,0,.1); transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease; }
.tjnd-studio-card:hover { transform:translateY(-2px); border-color:rgba(240,53,67,.48); box-shadow:0 12px 28px rgba(0,0,0,.2); }
.tjnd-studio-card[hidden] { display:none !important; }
.tjnd-studio-card__mark { flex:0 0 46px; display:grid; place-items:center; width:46px; height:46px; border:1px solid rgba(240,53,67,.28); border-radius:12px; background:linear-gradient(145deg,rgba(240,53,67,.18),rgba(240,53,67,.04)); color:#fff; font-size:19px; font-weight:950; }
.tjnd-studio-card__copy { min-width:0; margin-left:12px; }
.tjnd-studio-card__copy strong { display:block; overflow:hidden; color:var(--tj-text,#fff); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.tjnd-studio-card__copy small { display:block; margin-top:3px; color:var(--tj-muted,#aaa); font-size:11px; }
.tjnd-studio-card__arrow { margin-left:auto; padding-left:8px; color:var(--tj-red-bright,#f03543); font-size:17px; }
.tjnd-directory__empty,.tjnd-empty { padding:24px; border:1px dashed var(--tj-line,rgba(255,255,255,.1)); border-radius:14px; color:var(--tj-muted,#aaa); text-align:center; }

.tjnd-feed__intro { max-width:900px; margin:0 0 16px; }
.tjnd-feed__intro p { margin:0; color:var(--tj-muted,#aaa); }
.tjnd-feed-tabs { display:flex; gap:7px; overflow-x:auto; margin:0 0 22px; padding:4px 0 8px; scrollbar-width:thin; }
.tjnd-feed-tabs a { flex:0 0 auto; padding:9px 13px; border:1px solid var(--tj-line,rgba(255,255,255,.1)); border-radius:999px; background:var(--tj-surface,#15181d); color:var(--tj-muted,#aaa); font-size:12px; font-weight:850; }
.tjnd-feed-tabs a:hover,.tjnd-feed-tabs a.is-active { border-color:rgba(240,53,67,.5); background:rgba(240,53,67,.12); color:#fff; }
.tjnd-pagination { margin-top:24px; }

.tjnd-submenu-toggle { display:none; }

@media (max-width:1180px) and (min-width:901px) {
	.tj-menu a { font-size:12px; }
	.tj-nav-icon { display:none; }
}
@media (max-width:1050px) and (min-width:901px) {
	.tj-menu a { padding-inline:7px; }
	.tj-menu .menu-item-has-children > a { padding-right:22px; }
}
@media (max-width:900px) {
	.tj-mobile-menu__panel .tjnd-menu-parent { position:relative; }
	.tj-mobile-menu__panel .tjnd-menu-parent > a { padding-right:54px !important; }
	.tj-mobile-menu__panel .tjnd-menu-parent > a::before { display:none !important; }
	.tjnd-submenu-toggle { position:absolute; z-index:2; top:3px; right:3px; display:grid; place-items:center; width:40px; height:40px; padding:0; border:0; border-radius:9px; background:rgba(255,255,255,.05); color:#d9d6cf; }
	.tjnd-submenu-toggle::before { content:""; width:7px; height:7px; margin-top:-4px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); transition:transform .16s ease; }
	.tjnd-menu-parent.is-open > .tjnd-submenu-toggle::before { margin-top:3px; transform:rotate(225deg); }
	.tj-mobile-menu__panel.tjnd-enhanced .tjnd-menu-parent > .sub-menu { display:none !important; }
	.tj-mobile-menu__panel.tjnd-enhanced .tjnd-menu-parent.is-open > .sub-menu { display:grid !important; }
	.tjnd-studio-shortcuts__rail { grid-template-columns:repeat(3,minmax(0,1fr)); }
	.tjnd-studio-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:640px) {
	.tjnd-studio-shortcuts { margin-bottom:16px; padding:15px; }
	.tjnd-studio-shortcuts__head { align-items:flex-start; }
	.tjnd-studio-shortcuts__head > a { margin-top:4px; font-size:11px; }
	.tjnd-studio-shortcuts__rail { display:flex; gap:8px; overflow-x:auto; margin-inline:-15px; padding:1px 15px 7px; scroll-snap-type:x proximity; }
	.tjnd-studio-shortcuts__rail a { flex:0 0 145px; scroll-snap-align:start; }
	.tjnd-directory__tools { top:67px; align-items:stretch; flex-direction:column; padding:8px; }
	.admin-bar .tjnd-directory__tools { top:113px; }
	.tjnd-directory__tools label { flex:auto; width:100%; max-width:none; }
	.tjnd-directory__tools > span { padding:0 5px 2px; }
	.tjnd-studio-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
	.tjnd-studio-card { min-height:68px; padding:9px; }
	.tjnd-studio-card__mark { flex-basis:38px; width:38px; height:38px; border-radius:10px; font-size:16px; }
	.tjnd-studio-card__copy { margin-left:9px; }
	.tjnd-studio-card__arrow { display:none; }
}
@media (max-width:400px) {
	.tjnd-studio-grid { grid-template-columns:1fr; }
}

html[data-tj-theme="light"] .tjnd-directory__tools { background:rgba(255,255,255,.95); }
html[data-tj-theme="light"] .tjnd-directory__tools input,
html[data-tj-theme="light"] .tjnd-studio-shortcuts__rail a { background:rgba(20,24,31,.035); color:#17191e; }
html[data-tj-theme="light"] .tjnd-studio-card { background:#fff; box-shadow:0 8px 22px rgba(25,30,38,.07); }
html[data-tj-theme="light"] .tjnd-studio-card__copy strong,
html[data-tj-theme="light"] .tjnd-studio-shortcuts__rail strong,
html[data-tj-theme="light"] .tjnd-studio-shortcuts__head h2 { color:#17191e; }
html[data-tj-theme="light"] .tjnd-submenu-toggle { background:#f0f1f4; color:#333842; }

