@charset "utf-8";

/*
 * jusoking 테마 전용 — ready/style.css 중 배경색 + 격자만 반영
 * (오로라·오브 등은 제외)
 */
:root {
	--jusoking-bg-color: #0F172A;
	--jusoking-bg-image: url('../img/ai-grid-dark.svg');

	--jusoking-bg0: #050814;
	--jusoking-bg1: #0c1028;
	--jusoking-bg2: #2c2c2c;
	--jusoking-text: #f1f5f9;
	--jusoking-muted: #94a3b8;
	/* 너무 옅으면 모니터에서 안 보임 — ready(0.06)보다 약간 올림 */
	--jusoking-grid-line: rgba(148, 163, 184, 0.14);

	--card-bg: rgba(30, 41, 59, 0.4); /* Glassmorphism base */
	--card-border: rgba(255, 255, 255, 0.08);
	--card-hover-border: rgba(56, 189, 248, 0.5); /* Cyan glow */

	--text-main: #F0EEEF;
	--text-primary: #F8FAFC;
	--text-secondary: #94A3B8;
	--text-tertiary: #64748B;

	--accent: #ff5b45;

	/* linknolja 전용 — 즐겨찾기 박스(골드 대신 붉은 계열, jusoking 베이스와 구분) */
	--favorite-border: #dc2626;
	--favorite-border-hover: #f87171;
	--favorite-glow: rgba(220, 38, 38, 0.35);
	--favorite-logo-from: #f87171;
	--favorite-logo-to: #991b1b;
	--favorite-title: #fef2f2;
	--favorite-title-glow: rgba(248, 113, 113, 0.28);

	/* Brand Gradients */
	--brand-gradient: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
	/* 대비 변형(동일 135deg·2스톱) — 용도에 맞게 background 등에 교차 사용 */
	--brand-gradient-warm: linear-gradient(135deg, #FB923C 0%, #F472B6 100%); /* 오렌지 → 핑크 */
	--brand-gradient-sunset: linear-gradient(135deg, #FBBF24 0%, #FB7185 100%); /* 앰버 → 로즈 */
	--brand-gradient-forest: linear-gradient(135deg, #34D399 0%, #14B8A6 100%); /* 에메랄드 → 틸 */
	--brand-gradient-violet: linear-gradient(135deg, #A855F7 0%, #EC4899 100%); /* 바이올렛 → 푸시아 */
	--brand-gradient-ember: linear-gradient(135deg, #F97316 0%, #E11D48 100%); /* 딥 오렌지 → 로즈 레드 */
	--brand-gradient-deep: linear-gradient(135deg, #0369A1 0%, #4F46E5 100%); /* 스카이 딥 → 인디고 딥 */
	--brand-gradient-mint: linear-gradient(135deg, #2DD4BF 0%, #60A5FA 100%); /* 민트 → 블루(기본과 이웃하지만 초록 기운) */
	--brand-glow: 0 0 20px rgba(56, 189, 248, 0.3);

	/* Tag Colors - Neon/Dark styled */
	--tag-bg: rgba(255, 255, 255, 0.05);
	--tag-text: #E2E8F0;

	/* Spacing & Layout */
	--radius-btn: 3px;
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
}

/* 브라우저 스크롤바 — theme/basic/css/custome.css 7~10행과 동일 계열 (WebKit + Firefox) */
html:has(body.jusoking-body) {
	scrollbar-width: thin;
	scrollbar-color: #374151 #111827;
}
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}
::-webkit-scrollbar-track {
	background: #111827;
}
::-webkit-scrollbar-thumb {
	background: #374151;
	border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
	background: #4B5563;
}
.no-scrollbar::-webkit-scrollbar {
	display: none;
}

/* default.css 의 body { background:#fff } 보다 우선 (클래스 + !important) */
body.jusoking-body {
	margin: 0;
	min-height: 100%;
	background-color: var(--jusoking-bg-color);
	background-image: var(--jusoking-bg-image);
	background-attachment: fixed;
	background-size: cover;
	color: var(--text-primary);
	/* sticky 깨짐 방지: body에 overflow-x hidden 두면 대부분 브라우저에서 position:sticky 미동작 */
	overflow-x: visible;
	position: relative;
}

/*
 * 고정 격자 레이어 — ready 의 mask 는 화면 대부분을 숨겨 격자가 안 보이는 문제가 있어 제외.
 * 본문 영역은 #wrapper 등이 투명/반투명일 때 격자가 비침.
 */
.jusoking-bg-grid {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: transparent;
	background-image:
		linear-gradient(var(--jusoking-grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--jusoking-grid-line) 1px, transparent 1px);
	background-size: 48px 48px;
}

/* 격자(z-index:0) 위로 올릴 그누보드 블록만 지정 (직계 전체에 position 주지 않음 — fixed 모달 깨짐 방지) */
body.jusoking-body #hd_login_msg,
body.jusoking-body #hd,
body.jusoking-body > hr,
body.jusoking-body #wrapper,
body.jusoking-body #ft {
	position: relative;
	z-index: 1;
}

/* default.css #hd #212020 / #gnb #fff 제거 — body 격자·배경이 비치도록 */
body.jusoking-body #hd,
body.jusoking-body #gnb {
	background: #121212;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	/*background: transparent !important;*/
}
body.jusoking-body #hd {
	background: linear-gradient(to top left, #121212 47%, #23232f 38%, #121212 72%) !important;
}

/* 본문 래퍼는 배경 투명 — 격자가 비치도록 (게시판 글 상자 등은 각 스킨·요소 배경 유지) */
body.jusoking-body #wrapper,
body.jusoking-body #container_wr,
body.jusoking-body #container {
	background: transparent !important;
}
/* 가로 넘침은 본문 쪽에서만 막음(body overflow-x 제거로 #hd 내 sticky 가능) */
body.jusoking-body #wrapper {
	overflow-x: clip;
	max-width: 100%;
}
body.jusoking-body #container_wr,
body.jusoking-body #container {
	max-width: 100%;
}
.main-banner-pc-nomal {
	border: 2px solid #4b5563;    
	width: 170px; 
	z-index: 5;
}
.main-banner-pc {
	border: 2px solid #4b5563;    
	width: 170px; 
	position: relative;
	z-index: 0;
}

/* 헤더 배너 — ready .cs-card__shine 과 동일 계열 */
.main-banner-shine-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	z-index: 5;
}
.main-banner-shine {
	position: absolute;
	top: 0;
	left: -40%;
	width: 60%;
	height: 100%;
	/* 중앙 하이라이트 농도 — 더 강하게: rgba 마지막 값 ↑ (0.06 → 0.16 근처) */
	background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.16) 50%, transparent 75%);
	animation: cs-shine 6s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}
@keyframes cs-shine {
	0%,
	100% {
		transform: translateX(-10%);
		/* 약한 구간 밝기 — ↑ 하면 전체적으로 진해짐 */
		opacity: 0.65;
	}
	50% {
		transform: translateX(180%);
		opacity: 1;
	}
}
.position-relative {
	position: relative;
}
.position-absolute {
	position: absolute;
}



.logo-text {
    font-size: 0.7rem;
    font-weight: bold;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.2em;
    text-align: center;
    /*padding-top: 5px;*/
}
/* 부모의 -webkit-text-fill-color: transparent 가 상속되어 color 만으로는 안 보임 */
.logo-text span {
	color: var(--text-primary);
	-webkit-text-fill-color: var(--text-primary);
	background: none;
	-webkit-background-clip: border-box;
	background-clip: border-box;
}

/* 카테고리 컨테이너*/
.top-section {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    gap: 32px;
    /*margin-bottom: 60px;*/
    position: relative;
    z-index: 10;
}
/* 카테고리 */
.cate-section {
	/*width: 700px;*/
	display: flex;
	flex-direction: column;
    /*align-items: center;*/
    /* gap: 32px; */
    margin-bottom: 5px;
    position: relative;
    z-index: 10;
}
.serch-pc {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 16px 20px;
}
/* 검색창이 남는 폭을 쓰되 과도하게 늘어나지 않게 */
.serch-pc #hd_sch {
	flex: 1 1 200px;
	min-width: min(100%, 160px);
	max-width: 420px;
}
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  /*justify-content: center;*/
}
.filter-btn {
  /* background-color: rgba(255,255,255,0.03); 원본 */
  background-color: rgb(49 64 93);
  border: 1px solid var(--card-border);
  padding: 1px 13px;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  background-color: rgba(255,255,255,0.08);
  color: white;
}
.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(255, 91, 69, 0.35);
}

.search-container {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* PC·태블릿(md+): .serch-pc 한 줄 안에서 텔레그램·즐겨찾기 옆에 인기검색어 */
@media (min-width: 768px) {
	.serch-pc .search-container {
		flex: 1 1 200px;
		min-width: 0;
		max-width: min(270px, 100%);
		width: auto;
		margin-left: 0;
		margin-right: 0;
		align-items: stretch;
		align-self: center;
	}
	.serch-pc .search-container #popular {
		margin-top: 0;
		margin-bottom: 0;
		width: 100%;
	}
	.serch-pc .search-container #popular .popular_inner,
	.serch-pc .search-container #popular .popular-spin-wrap {
		max-width: 100%;
	}
}

/* default.css 의 #hd_sch float 폼 — 블록 폭을 내용에 맞춰 가운데 배치 */
body.jusoking-body .search-container #hd_sch {
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

body.jusoking-body .search-container .header-popular-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* #hd_wrapper 3단: 좌·우 고정폭, 가운데(.hd_sch_wr)는 남는 공간 */
/* 1단계: default.css 의 height:270px 고정 해제 — 카테고리·검색이 잘리지 않게 (특히 1200px 이상 뷰포트) */
body.jusoking-body #hd_wrapper {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 24px;
	box-sizing: border-box;
	height: auto !important;
	overflow: visible;
	padding-bottom: 12px;
	/*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
}

body.jusoking-body #hd_wrapper::after {
	display: none;
}

body.jusoking-body #logo {
	float: none;
	flex: 0 0 auto;
}


body.jusoking-body .hd_sch_wr {
	float: none;
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	margin-left: 0 !important;
}

body.jusoking-body .hd_sch_right {
	float: none;
	flex: 0 0 auto;
	width: 240px;
	min-width: 220px;
	box-sizing: border-box;
	padding: 20px 0 0;
}
body.jusoking-body .hd_sch_right .sidebar-banner-float-pc {
	float: right;
}

/* 텔레그램 버튼 스타일 */
.telbox {	
	width : 140px;
	/*margin-top: 10px;*/
}
.telegram-btn-login {
	display: flex;
	align-items: center;
	gap: 6px; /* 20260207 우측 사이트 줄이면서 값 수정함. 10px */
	padding: 2px 10px 2px 2px;
	background-color: #1a1a2e;
	border: 2px solid #0088cc;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	max-width: 140px; /*로고와 맞추기*/
	width: 100%;
	margin: 0 auto;
}
.telegram-btn-login:hover {
	box-shadow: 0 0 5px rgba(0, 136, 204, 0.7), 0 0 10px rgba(0, 136, 204, 0.5);
	transform: translateY(-2px);
	border-color: #00a8ff;
}
.telegram-btn {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 5px 20px;
	background-color: #1a1a2e;
	border: 2px solid #0088cc;
	border-radius: 50px;
	text-decoration: none;
	box-shadow: 0 0 5px rgba(0, 136, 204, 0.5), 0 0 15px rgba(0, 136, 204, 0.3);
	transition: all 0.3s ease;
	max-width: 350px;
	width: 100%;
	margin: 0 auto;
}
.telegram-btn:hover {
	box-shadow: 0 0 10px rgba(0, 136, 204, 0.7), 0 0 20px rgba(0, 136, 204, 0.5);
	transform: translateY(-2px);
	border-color: #00a8ff;
}
.telegram-logo {
	width: 35px;
	height: 35px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #0088cc;
	border-radius: 8px;
}
.telegram-logo i {
	font-size: 28px;
	color: white;
}
.telegram-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	text-align: left;
}
.telegram-title {
	color: #ffffff;
	font-size: 0.825em;
	font-weight: 700;
	line-height: 1.2;
}
.telegram-subtitle {
	color: #94a3b8;
    font-size: 0.6375em;
    font-weight: 400;
    line-height: 1.2;
}

/* 즐겨찾기 — 레이아웃은 jusoking(텔레그램 박스)과 동일, 색만 linknolja: 붉은 계열 */
.favbox {
	width: 140px;
	/*margin-top: 20px;*/
}
.favorite-btn-login {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 2px 10px 2px 2px;
	background-color: #1a1520;
	border: 2px solid var(--favorite-border);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	max-width: 140px;
	width: 100%;
	margin: 0 auto;
	box-shadow: 0 0 6px var(--favorite-glow);
}
.favorite-btn-login:hover {
	box-shadow:
		0 0 10px rgba(248, 113, 113, 0.4),
		0 0 18px rgba(185, 28, 28, 0.35);
	transform: translateY(-2px);
	border-color: var(--favorite-border-hover);
}
.favorite-logo {
	width: 35px;
	height: 35px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, var(--favorite-logo-from) 0%, var(--favorite-logo-to) 100%);
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.favorite-logo i {
	font-size: 18px;
	color: #e0e0e0;
}
.favorite-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	text-align: left;
	min-width: 0;
}
.favorite-title {
	color: var(--favorite-title);
	font-size: 0.825em;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 0 12px var(--favorite-title-glow);
}
.favorite-subtitle {
	color: #94a3b8;
	font-size: 0.6375em;
	font-weight: 400;
	line-height: 1.2;
}

/* ---------- 반응형 #hd (모바일: 로고+햄버거 / 태블릿: 로고+검색 / PC: 기존 3단) ---------- */
@media (max-width: 1199px) {
	body.jusoking-body #hd,
	body.jusoking-body #wrapper,
	body.jusoking-body #ft {
		min-width: 0;
	}
	body.jusoking-body #hd_wrapper {
		width: 100% !important;
		max-width: 100%;
		height: auto;
		min-height: 0;
		box-sizing: border-box;
	}
}

.logo_img_top_style {
	width:140px; height:auto;
}

@media (max-width: 767px) {
    #logo {
        width: 125px !important;
    }
	#logo .logo-text {
		width: 125px !important;
	}
	.logo_img_top_style {
		width:125px; height:auto;
	}
}

/* 태블릿~좁은 화면: 카테고리 줄만 가용 너비에 맞춤(PC는 .cate-section 700px 유지) */
@media (min-width: 768px) and (max-width: 1199px) {
	body.jusoking-body .cate-section {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
}

/* 햄버거: 모바일(767px 이하)만 표시 — 태블릿·PC에서는 숨김 */
body.jusoking-body .hd-menu-toggle {
	display: none !important;
}

@media (max-width: 767px) {
	body.jusoking-body .hd-menu-toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: 10px;
		border: 1px solid rgba(148, 163, 184, 0.35);
		background: rgba(15, 23, 42, 0.6);
		color: var(--text-primary);
		cursor: pointer;
	}
	body.jusoking-body #hd_wrapper {
		align-items: center;
		flex-wrap: nowrap;
		gap: 12px;
		padding-left: 12px;
		padding-right: 12px;
		padding-bottom: 12px;
	}
	body.jusoking-body #logo {
		flex: 1 1 auto;
		min-width: 0;
		padding-top: 8px;
	}
	body.jusoking-body #logo .favbox,
	body.jusoking-body #logo .telbox {
		display: none !important;
	}

	/* 햄버거로 여는 패널 (#mobile-menu-block) — #hd_wrapper 밖 #hd 직속, 한 줄 전체 너비(display는 .hidden 과 충돌 나지 않게 생략) */
	body.jusoking-body #hd > #mobile-menu-block.mobile-menu-block {
		width: 100%;
		max-width: 100%;
		clear: both;
		box-sizing: border-box;
		flex: none;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-inner {
		padding: 0.75rem;
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-search-form {
		width: 100%;
		min-width: 0;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-search-wrap {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.35rem 0.65rem;
		border-radius: 9999px;
		border: 1px solid rgba(148, 163, 184, 0.35);
		background: rgba(15, 23, 42, 0.75);
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-search-icon {
		color: var(--text-tertiary);
		flex-shrink: 0;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-search-input {
		flex: 1 1 auto;
		min-width: 0;
		border: 0;
		background: transparent;
		color: var(--text-primary);
		font-size: 0.95rem;
		outline: none;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-search-btn {
		flex-shrink: 0;
		border: 0;
		background: transparent;
		color: var(--text-secondary);
		cursor: pointer;
		padding: 0.25rem;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-links {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem 0.65rem;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-link {
		display: inline-flex;
		align-items: center;
		padding: 0.15rem 0.75rem;
		border-radius: 9999px;
		font-size: 0.875rem;
		color: var(--text-primary);
		text-decoration: none;
		border: 1px solid var(--card-border);
		background: rgb(49 64 93);
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-link:hover {
		color: var(--text-primary);
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-cats {
		border: 1px solid rgba(56, 189, 248, 0.3);
		border-radius: 0.625rem;
		padding: 0.625rem 0.75rem;
		/*background: rgba(56, 189, 248, 0.1);*/
		background: linear-gradient(180deg, #101e32 0%, #26294f 100%);
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-cats-title {
		font-size: 0.8rem;
		font-weight: 700;
		color: #cbd5e1;
		margin-bottom: 0.5rem;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-cat-list {
		margin: 0;
		padding: 0;
		list-style: none;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.35rem 0.6rem;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-cat-list a {
		color: #94a3b8;
		font-size: 0.82rem;
		text-decoration: none;
	}
	body.jusoking-body #mobile-menu-block .mobile-menu-cat-list a:hover {
		color: #38bdf8;
	}
}
@media (max-width: 767px) {
	body.jusoking-body #mobile-menu-block.mobile-menu-block:not(.hidden) {
		margin: 0.5rem 0 0.75rem;
		background: rgba(15, 23, 42, 0.72);
		border: 1px solid rgba(71, 85, 105, 0.45);
		border-radius: 0.875rem;
	}
	/* 모바일 카테고리는 #hd 밖(#jusoking-mobile-cat-nav) — 문서 스크롤 기준 sticky */
	body.jusoking-body #jusoking-mobile-cat-nav {
		display: block;
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		z-index: 100;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		background: rgb(64 64 95 / 85%);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border-bottom: 1px solid rgba(55, 65, 81, 0.8);
		margin: 0rem;
	}
	/* 가로 나열 + 터치/마우스로 좌우 스크롤 (overflow-x: auto). grid 스킨의 scrollbar 숨김을 덮어쓰기 위해 !important */
	body.jusoking-body #jusoking-mobile-cat-nav .board-grid-subnav-inner {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.5rem 1.2rem;
		padding: 0 1rem;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: auto !important;
		scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
		-ms-overflow-style: auto !important;
	}
	body.jusoking-body #jusoking-mobile-cat-nav .board-grid-subnav-inner--fullmd {
		max-width: none;
		justify-content: flex-start;
		padding-left: 1rem;
		padding-right: 1rem;
	}
	body.jusoking-body #jusoking-mobile-cat-nav .board-grid-subnav-inner::-webkit-scrollbar {
		display: block !important;
		height: 3px;
	}
	body.jusoking-body #jusoking-mobile-cat-nav .board-grid-subnav-inner::-webkit-scrollbar-track {
		background: transparent;
	}
	body.jusoking-body #jusoking-mobile-cat-nav .board-grid-subnav-inner::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, 0.3);
		border-radius: 10px;
	}
}
.board-grid-subnav-tab {
    flex-shrink: 0;
    position: relative;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: aliceblue;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.board-grid-subnav-tab:hover { color: #cbd5e1; }
.board-grid-subnav-tab.active {
    color: #60a5fa;
}
.board-grid-subnav-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

body.jusoking-body #hd_wrapper .hd-mobile-head-actions {
	display: none !important;
}
@media (max-width: 767px) {
	/* #logo | .hd-mobile-head-actions 유지 — actions 안만 세로: 1행 버튼 / 2행 인기검색어 */
	body.jusoking-body #hd_wrapper .hd-mobile-head-actions {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		/*width: 70%;*/
		flex-shrink: 0;
		gap: 4px;
		margin-top: 7px;
		min-width: 0;
	}
	body.jusoking-body #hd_wrapper .hd-mobile-head-actions__btns {
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		align-items: center;
		gap: 1.05em;
		width: 100%;
		min-width: 0;
	}
	body.jusoking-body #hd_wrapper .hd-mobile-head-actions .bookmark_marker.site-header__btn {
		position: relative;
		display: inline-flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 0.45rem;
		height: 44px;
		padding: 0 0.75rem;
		border-radius: 10px;
		border: 1px solid rgba(148, 163, 184, 0.35);
		background: rgba(15, 23, 42, 0.6);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
		text-decoration: none;
		transition: background 0.2s ease, border-color 0.2s ease;
	}
	body.jusoking-body #hd_wrapper .hd-mobile-head-actions .bookmark_marker.site-header__btn:hover {
		background: rgba(30, 41, 59, 0.75);
		border-color: rgba(147, 197, 253, 0.35);
	}
	body.jusoking-body #hd_wrapper .hd-mobile-head-actions .bookmark_content {
		font-size: 0.8125rem;
		font-weight: 700;
		letter-spacing: -0.02em;
		color: #f4f4f0;
	}
	body.jusoking-body #hd_wrapper .hd-mobile-head-actions .site-header__btn--fav i.fa-bookmark {
		font-size: 1rem;
		line-height: 1;
		color: #f87171;
	}
	body.jusoking-body #hd_wrapper .hd-mobile-head-actions .rank_card {
		width: 100%;
		min-width: 0;
		min-height: 35px;
		height: auto;
		overflow: visible;
	}
	body.jusoking-body #hd_wrapper .hd-mobile-head-actions .rank_card .rank_loader {
		height: 30px;
	}
	body.jusoking-body #hd_wrapper .hd-mobile-head-actions .rank_card #popular {
		margin: 0 0 0 !important;
	}
}

/* SNS 라인 */
.main-title, .main-title-side {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
    line-height: 1.1;
	text-align: center;
    background: linear-gradient(to bottom right, #FFFFFF 30%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.main-title span {
    background: var(--brand-gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.main-title-side span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    color: var(--text-secondary);
    font-size: 1.0rem;
    max-width: 680px;
    margin: 0 auto 0px;
    font-weight: 400;
}
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
	}
}


/* SNS 바로가기 도크 — theme/juso114/css/juso114-codehtml.css 와 동일 (index 마크업 호환) */
body.jusoking-body .sns-shortcut-dock .sns-shortcut-shell.glass-card {
	position: relative;
	border-radius: 1rem;
	padding: 0.5rem;
	overflow: hidden;
	border: 1px solid rgba(51, 65, 85, 0.45);
	background: linear-gradient(180deg, rgba(16, 26, 42, 0.96) 0%, rgba(8, 14, 24, 0.94) 100%);
	border-color: rgba(122, 149, 191, 0.32);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		0 10px 36px rgba(0, 0, 0, 0.32);
}
body.jusoking-body .sns-shortcut-dock .sns-shortcut-shell::before {
	content: "";
	position: absolute;
	top: 0;
	left: 14px;
	right: 14px;
	height: 2px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(174, 206, 241, 0.35),
		rgba(133, 173, 255, 0.55),
		rgba(174, 206, 241, 0.35),
		transparent
	);
	pointer-events: none;
}
body.jusoking-body .sns-shortcut-dock .sns-shortcut-shell::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(133, 173, 255, 0.12), transparent 55%);
	opacity: 0.9;
}
body.jusoking-body .sns-shortcut-dock .sns-shortcut-item {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 45%, rgba(0, 0, 0, 0.18) 100%);
	border: 1px solid rgba(133, 173, 255, 0.22);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
body.jusoking-body .sns-shortcut-dock .sns-shortcut-item:hover {
	transform: translateY(-3px) scale(1.05);
	border-color: rgba(174, 206, 241, 0.55);
	box-shadow:
		0 0 0 2px rgba(133, 173, 255, 0.12),
		0 10px 22px rgba(0, 0, 0, 0.35);
	background: radial-gradient(circle at 32% 28%, rgba(174, 206, 241, 0.14), rgba(133, 173, 255, 0.06) 50%, rgba(0, 0, 0, 0.12) 100%);
}
body.jusoking-body .sns-shortcut-dock .sns-shortcut-icon img {
	width: 30px;
	height: 30px;
	object-fit: contain;
	display: block;
}
body.jusoking-body .sns-shortcut-dock .sns-shortcut-fa i {
	font-size: 22px;
	color: #aecef1;
}

.welcome_title {
	font-size: 2rem;
    font-weight: 800;
    margin-top: 17px;
    /* letter-spacing: -0.03em; */
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(to bottom right, #FFFFFF 30%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* index.php 상단: 모바일(~767px) 숨김 — md+ 3열(1/3·1/3·1/3), 가운데 SNS는 최소 폭 유지 후 좌우만 먼저 줄어듦 → 더 좁아지면 wrap */
body.jusoking-body #index-top.index-top {
	display: none;
}
@media (min-width: 768px) {
	body.jusoking-body #index-top.index-top {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 1rem;
		/*padding: 1rem;*/
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	body.jusoking-body #index-top .index-top__col {
		box-sizing: border-box;
		padding: 1rem;
	}
	/* 좌·우: 3등분 중 한 몫, 공간 부족 시 먼저 줄어듦 */
	body.jusoking-body #index-top .index-top__col--intro,
	body.jusoking-body #index-top .index-top__col--side {
		flex: 1 1 calc((100% - 2rem) / 3);
		min-width: 0;
		max-width: 277px;
	}
	/* 가운데 SNS: 동일 1/3 비율을 기본으로 두되 shrink 금지 + 최소 폭으로 ‘받은 공간’ 유지 */
	body.jusoking-body #index-top .index-top__col--sns {
		flex: 1 0 calc((100% - 2rem) / 3);
		min-width: min(100%, 360px);
		flex-shrink: 0;
	}
	body.jusoking-body #index-top .index-top__subtitle {
		margin-left: 0;
		margin-right: 0;
		text-align: center;
		max-width: none;
	}
	body.jusoking-body #index-top .sns-shortcut-shell--index {
		width: 100%;
		max-width: 722px;
		margin-left: auto;
		margin-right: auto;
	}
}
/*제휴사배너*/
/* 모바일(767px 이하)에서만 숨기기 */
@media (max-width: 767px) {    
	.main_banner {
		display: none !important;
	}
}
@media (min-width: 768px) {    
	.mobile_main_banner {
		display: none !important;
	}
}
.uxc_banner {
    width: 100%;
}

.uxc_banner .banner_list {
    display: grid;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 1개 컬럼 */
.uxc_banner .banner_list.grid-col-1 {
    grid-template-columns: 1fr;
}

/* 2개 컬럼 */
.uxc_banner .banner_list.grid-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3개 컬럼 */
.uxc_banner .banner_list.grid-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4개 컬럼 */
.uxc_banner .banner_list.grid-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 5개 컬럼 */
.uxc_banner .banner_list.grid-col-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* 6개 컬럼 */
.uxc_banner .banner_list.grid-col-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* 6개 이상 (flex 방식) - CSS 변수 사용 */
.uxc_banner .banner_list.grid-col-flex {
    display: flex;
    flex-wrap: wrap;
}

.uxc_banner .banner_list.grid-col-flex .banner_item {
    flex: 0 0 calc((100% - (var(--columns, 6) - 1) * 15px) / var(--columns, 6));
    margin-right: 15px;
    margin-bottom: 15px;
}

.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(6n),
.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(7n),
.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(8n),
.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(9n),
.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(10n) {
    margin-right: 0;
}

.uxc_banner .banner_item {
    position: relative;
    overflow: hidden;
    /*height: 100px;*/              /* 그리드 셀(카드) 고정 높이 */
}

.uxc_banner .banner_item .banner_img {
    width: 100%;
	height: 90px;
    max-height: 90px;
    object-fit: fill;          /* 셀을 꽉 채우고 넘치는 부분 잘라냄 */
    display: block;
}
.uxc_banner .banner_item .banner_img_1 {
    width: 100%;
	height: 80px;
    object-fit: fill;          /* 셀을 꽉 채우고 넘치는 부분 잘라냄 */
    display: block;
}
.uxc_banner .banner_item .banner_img_2 {
    width: 100%;
	height: 58px;
    max-height: 58px;
    object-fit: fill;          /* 셀을 꽉 채우고 넘치는 부분 잘라냄 */
    display: block;
}
.banner_img_2 {
	border: 2px solid #4b5563;
	border-radius: 8px;
}

.uxc_banner .banner_link {
    display: block;
    width: 100%;
}

/* 빈 칸 스타일 */
.uxc_banner .banner_item_empty {
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: var(--board-gray-100, #f5f5f5);*/
    border: 4px dashed var(--board-gray-300, #436283);
    border-radius: 4px;
}

.uxc_banner .banner_empty_text {
    color: var(--board-gray-500, #999);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* 반응형 처리 */
@media (max-width: 1200px) {
    .uxc_banner .banner_list.grid-col-6 {
        grid-template-columns: repeat(4, 1fr);
    }
    .uxc_banner .banner_list.grid-col-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .uxc_banner .banner_list.grid-col-6,
    .uxc_banner .banner_list.grid-col-5,
    .uxc_banner .banner_list.grid-col-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .uxc_banner .banner_list.grid-col-6,
    .uxc_banner .banner_list.grid-col-5,
    .uxc_banner .banner_list.grid-col-4,
    .uxc_banner .banner_list.grid-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .uxc_banner .banner_list:not(.banner_list-mobile-2) {
        grid-template-columns: 1fr !important;
    }
    /* 두 번째 모바일 배너 묶음은 항상 2열 유지 */
    .uxc_banner .banner_list.banner_list-mobile-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .uxc_banner .banner_list.grid-col-flex .banner_item {
        flex: 0 0 100%;
        margin-right: 0;
    }
}

/* 모바일 텔레그램 영역 */
.coupon-button-wrapper {
	padding: 0 10px;    
    width: 100%;
}
.telegram-button-wrapper {
    display: block;
}
.coupon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    width: 100%;
    background: #1f2937;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    height: 60px;
    font-weight: 500;
    border: 1px solid #4b5563;
}
.coupon-button i {
    font-size: 16px;
}
.telegram-button {
    background: #1c76a3;
    color: #ffffff;
    border-color: #51b1e1;
}
.ft-telegram-link {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.5rem !important;
}

/* 인기순위 그리드: 모바일 2개, 태블릿 3개, PC 4개 */
.popular-rank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .popular-rank-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
@media (min-width: 1024px) {
    .popular-rank-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}
/* 인기순위 그리드: 카드 등폭 */
.popular-rank-grid .popular-rank-cell { display: flex; width: 100%; min-width: 0; }
.popular-rank-cell .popular-rank-card { flex: 1; min-width: 0; }

/* 일반 사이트 링크 디렉터리 (/inc/directory_links.php) */
.div-title-underbar2 {
	font-size: 16px;
    /*color: chocolate;*/
}
.directory-links__a {
    color: var(--text-secondary);
	font-size: 16px;
}


.bottom-info-box {
	background-color: rgb(30 41 59 / 0.8);
	border-color: rgb(255 255 255 / 0.1);
	border-width: 1px;
	padding: 18px;
	margin-top: 10px;
}
.bottom-info-box-title {
	font-weight: bold;
	margin-bottom: 10px;
	font-size: 1.05em;
	color: #38bdf8 !important;
	position: relative;
	padding-bottom: 8px;
	display: inline-block;
}
/* 밑줄 애니메이션 */
.bottom-info-box-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066cc, #0099ff);
  transition: width 0.3s ease;
}
.bottom-info-box:hover .bottom-info-box-title::after {
  width: 100%;
}
.bottom-info-box-content {
	font-size: 0.95em;
	line-height: 1.5;
}

.pc_banner {
	position: absolute;
    right: -185px;
    top: -2px;
}
@media (max-width: 768px) { /* 모바일은 필요없음*/
    .pc_banner {
        display: none;
    }
}

/*
 * 모바일 가로 배너: CSS Scroll Snap (230px 카드, 좌우 인접 배너 살짝 노출)
 * — snap-align: center + scroll-padding으로 카드가 뷰포트 중앙에 오도록 함
*/
.banner-container.banner-container--snap {
	--banner-snap-width: 300px;
	--banner-snap-gap: 12px;
	display: flex;
	flex-wrap: nowrap;
	gap: var(--banner-snap-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	/* 카드(230px)가 화면 중앙에 스냅되도록 — 좌우에 이전/다음 배너가 비침 */
	scroll-padding-inline: max(12px, calc(50vw - (var(--banner-snap-width) / 2)));
	/* padding-block: 12px 16px; */
	touch-action: pan-x;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.banner-container.banner-container--snap::-webkit-scrollbar {
	display: none;
}

.banner-container.banner-container--snap .banner-item {
	flex: 0 0 var(--banner-snap-width);
	width: var(--banner-snap-width);
	min-width: var(--banner-snap-width);
	scroll-snap-align: center;
	scroll-snap-stop: always;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
}

.banner-container.banner-container--snap .banner-item-link {
	display: block;
	text-decoration: none;
	color: inherit;
	outline-offset: 2px;
}

.banner-container.banner-container--snap .btn.btn-install {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	font: inherit;
	color: inherit;
}

.banner-container.banner-container--snap .banner-item-img {
	display: block;
	width: var(--banner-snap-width);
	max-width: 100%;
	height: 133px;
	vertical-align: middle;
	border: 1px solid #4b5563;
    border-radius: 16px;
}

/* 샘플 배경색 */
.bg-1 { background: #ff5f6d; }
.bg-2 { background: #ffc371; }
.bg-3 { background: #2193b0; }