@charset "utf-8";

.ytb-wrap { margin: 12px 0 28px; }

nav.ytc-bar {
	display: block;
	width: 100%;
	background: #111;
	border-bottom: 3px solid #e11d48;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
}
nav.ytc-bar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
nav.ytc-bar li a {
	display: inline-block;
	padding: .85rem 1rem;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}
nav.ytc-bar li.active,
nav.ytc-bar li:hover { background: #e11d48; }
nav.ytc-bar .ytc-search-item {
	margin-left: auto;
	padding: .55rem .8rem;
}
.ytc-input {
	height: 32px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 0 10px;
	min-width: 160px;
}
.ytc-btn {
	display: inline-block;
	height: 32px;
	line-height: 30px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: #2563eb;
	color: #fff !important;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
}
.ytc-btn:hover { background: #1d4ed8; color: #fff !important; }

#ytc-channel-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
}
#ytc-channel-categories .item a {
	display: block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	text-decoration: none;
	font-weight: 700;
	font-size: .9rem;
}
#ytc-channel-categories .item.selected a {
	background: #111;
	color: #fff;
}

#ytc-video-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
#ytc-video-list li {
	width: 25%;
	padding: 10px;
	box-sizing: border-box;
}
.ytc-video img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px;
	background: #e2e8f0;
}
.ytc-video-title {
	margin-top: 8px;
	font-weight: 800;
	line-height: 1.35;
	height: 2.7em;
	overflow: hidden;
}
.ytc-video-title a { color: #111; text-decoration: none; }
.ytc-channel-title {
	margin-top: 4px;
	font-size: .9rem;
	color: #64748b;
}
.ytc-channel-title a { color: #64748b; text-decoration: none; }

#ytc-channel-list { list-style: none; margin: 0; padding: 0; }
#ytc-channel-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 8px;
	border-bottom: 1px solid #eee;
}
#ytc-channel-list img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}
#ytc-channel-list .ytc-channel-title {
	flex: 1;
	font-weight: 800;
	color: #111;
	text-decoration: none;
	margin: 0;
	font-size: 1rem;
}
#ytc-channel-list .ytc-channel-cmd a {
	margin-left: 8px;
	font-size: .9rem;
	color: #64748b;
}

.ytc-noitem {
	padding: 48px 16px;
	text-align: center;
	color: #64748b;
	background: #f8fafc;
	border-radius: 12px;
}

#ytc-video-player .video-title {
	font-size: 1.2rem;
	font-weight: 900;
	margin: 0 0 14px;
}
#ytc-video-player .video-title a { color: #111; text-decoration: none; }
#ytc-video-player .video-player {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}
#ytc-video-player .video-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
#ytc-video-player .video-content {
	margin-top: 16px;
	padding: 14px;
	background: #f8fafc;
	border-radius: 12px;
	white-space: pre-wrap;
	line-height: 1.6;
	color: #334155;
}
#ytc-video-player .video-buttons {
	margin-top: 16px;
	text-align: center;
}
#ytc-video-player .back-link,
#ytc-video-player .del-link {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	background: #e11d48;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	margin: 0 4px;
}

.ytc-admin-box,
.ytc-add-box {
	max-width: 720px;
	margin: 18px auto;
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
}
.ytc-admin-box label {
	display: block;
	font-weight: 800;
	margin: 12px 0 6px;
}
.ytc-admin-box input[type="text"],
.ytc-admin-box input[type="number"],
.ytc-admin-box textarea,
.ytc-add-box input[type="text"],
.ytc-add-box select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #dbe3ef;
	border-radius: 10px;
}
.ytc-msg {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #eff6ff;
	color: #1e40af;
	font-weight: 700;
}
.ytc-msg.is-error { background: #fff1f2; color: #9f1239; }
.ytc-msg.is-ok { background: #ecfdf5; color: #065f46; }

.pg_wrap { margin: 18px 0; text-align: center; }
.pg_wrap .pg_page,
.pg_wrap .pg_current {
	display: inline-block;
	padding: 6px 10px;
	margin: 0 2px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-decoration: none;
	color: #334155;
}
.pg_wrap .pg_current {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

@media (max-width: 900px) {
	#ytc-video-list li { width: 33.333%; }
}
@media (max-width: 640px) {
	#ytc-video-list li { width: 50%; }
	nav.ytc-bar .ytc-search-item { width: 100%; margin-left: 0; }
	.ytc-input { width: calc(100% - 70px); min-width: 0; }
	.ytc-lic-item { flex-direction: column; }
}

.ytc-badge {
	display: inline-block;
	margin-left: 6px;
	min-width: 18px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: #e11d48;
	font-size: 12px;
	line-height: 18px;
	text-align: center;
}
.ytc-lic-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
}
.ytc-lic-tabs a {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #334155;
	text-decoration: none;
	font-weight: 700;
	font-size: .92rem;
}
.ytc-lic-tabs a.on { background: #111; color: #fff; }
.ytc-lic-item {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #e2e8f0;
}
.ytc-lic-st {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.ytc-lic-st.st-pending { background: #fef3c7; color: #92400e; }
.ytc-lic-st.st-approved { background: #d1fae5; color: #065f46; }
.ytc-lic-st.st-blocked { background: #fee2e2; color: #991b1b; }
.ytc-lic-meta {
	margin-top: 6px;
	color: #64748b;
	font-size: .88rem;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ytc-lic-memo { margin-top: 4px; color: #475569; font-size: .9rem; }
.ytc-lic-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: flex-start;
}
.ytc-btn-gray { background: #64748b !important; }
.ytc-btn-danger { background: #dc2626 !important; }
